package
Version:
v0.0.0-...-34c9f11
Opens a new window with list of versions in this module.
Published: Aug 27, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type TodolistCreateRequest struct {
Tags []string `validate:"min=0,dive,required" json:"tags"`
TodolistMessage string `validate:"required,min=1,max=100" json:"todolistMessage"`
}
type TodolistResponse struct {
Id string `json:"id"`
Done bool `json:"done"`
Tags []string `json:"tags"`
TodolistMessage string `json:"todolistMessage"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type TodolistUpdateRequest struct {
Id string `validate:"required" json:"id"`
Done bool `json:"done"`
Tags []string `validate:"min=0,dive,required" json:"tags"`
TodolistMessage string `validate:"required,min=1,max=100" json:"todolistMessage"`
}
type WebResponse[T any] struct {
Code int `json:"code"`
Status string `json:"status"`
Data T `json:"data"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.