package
Version:
v0.0.0-...-29094d0
Opens a new window with list of versions in this module.
Published: Dec 14, 2022
License: GPL-2.0
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 ErrorResponse struct {
Title string `json:"title"`
Messages []string `json:"messages"`
}
type RequestAuth struct {
Username string `json:"username" form:"username" validate:"required"`
Password string `json:"password" form:"password" validate:"required"`
}
type RequestParameterTodo struct {
Keyword string `json:"keyword" form:"keyword"`
IsDone string `json:"is_done" form:"is_done" validate:"oneof=true false"`
}
type RequestTodo struct {
Name string `json:"name" form:"name" validate:"required"`
Priority string `json:"priority" form:"priority" validate:"required,oneof=low medium high"`
}
type ResponseStandard struct {
Code int `json:"code"`
Message string `json:"message"`
Data any `json:"data"`
Errors []ErrorResponse `json:"errors"`
}
type ResponseToken struct {
Token string `json:"token"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.