package
Version:
v0.0.0-...-8af6e0c
Opens a new window with list of versions in this module.
Published: Dec 20, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreReq struct {
g.Meta `path:"tag/create" method:"post" sm:"新增" tags:"标签"`
GrpId model.Id `json:"grpId" v:"required|integer|between:1,4294967295"`
Name string `json:"name" v:"required|length:1, 30"`
}
type DelReq struct {
g.Meta `path:"tag/delete/{id}" method:"post" sm:"删除" tags:"标签"`
*model.IdInput
}
type List struct {
Id model.Id `json:"id"`
Name string `json:"name"`
}
type ListReq struct {
g.Meta `path:"tag/list" method:"get" sm:"查询列表" tags:"标签"`
GrpId model.Id `json:"grpId" v:"required|integer|between:1,4294967295"`
}
type ListRes struct {
List []List `json:"list"`
}
type ShowReq struct {
g.Meta `path:"tag/show/{id}" method:"get" sm:"查询详情" tags:"标签"`
*model.IdInput
}
type UpdReq struct {
g.Meta `path:"tag/update/{id}" method:"post" sm:"修改" tags:"标签"`
*model.IdInput
GrpId model.Id `json:"grpId" v:"required|integer|between:1,4294967295"`
Name string `json:"name" v:"required|length:1, 30"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.