书籍列表接口新增参数
This commit is contained in:
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/category" tags:"APP" method:"get" summary:"获取分类列表"`
|
||||
g.Meta `path:"/category" tags:"Backend-APP/Category" method:"get" summary:"获取分类列表"`
|
||||
Page int `json:"page" dc:"页码"`
|
||||
Size int `json:"size" dc:"每页数量"`
|
||||
Name string `json:"name" dc:"分类名称(模糊搜索)"`
|
||||
@ -19,7 +19,7 @@ type ListRes struct {
|
||||
}
|
||||
|
||||
type AddReq struct {
|
||||
g.Meta `path:"/category" tags:"Backend/Admin" method:"post" summary:"新增分类"`
|
||||
g.Meta `path:"/category" tags:"Backend/Category" method:"post" summary:"新增分类"`
|
||||
Name string `json:"name" dc:"分类名称" v:"required"`
|
||||
Channel int `json:"channel" dc:"频道类型:1=男频,2=女频" v:"required"`
|
||||
}
|
||||
@ -28,7 +28,7 @@ type AddRes struct {
|
||||
}
|
||||
|
||||
type EditReq struct {
|
||||
g.Meta `path:"/category" tags:"Backend/Admin" method:"put" summary:"编辑分类"`
|
||||
g.Meta `path:"/category" tags:"Backend/Category" method:"put" summary:"编辑分类"`
|
||||
Id int64 `json:"id" dc:"分类ID" v:"required"`
|
||||
Name string `json:"name" dc:"分类名称" v:"required"`
|
||||
Channel int `json:"channel" dc:"频道类型:1=男频,2=女频" v:"required"`
|
||||
@ -38,7 +38,7 @@ type EditRes struct {
|
||||
}
|
||||
|
||||
type DelReq struct {
|
||||
g.Meta `path:"/category" tags:"Backend/Admin" method:"delete" summary:"删除分类"`
|
||||
g.Meta `path:"/category" tags:"Backend/Category" method:"delete" summary:"删除分类"`
|
||||
Id int64 `json:"id" dc:"分类ID" v:"required"`
|
||||
}
|
||||
type DelRes struct {
|
||||
|
||||
Reference in New Issue
Block a user