You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
653 B

package request
type ListCategoryChildren struct {
Pid int `json:"pid" form:"pid"` // 父id
}
type ListCategoryPage struct {
PageInfo
One string `json:"one" form:"one"`
Two string `json:"two" form:"two"`
Three string `json:"three" form:"three"`
Four string `json:"four" form:"four"`
Five string `json:"five" form:"five"`
}
type CreateCategory struct {
Name string `json:"name" form:"name"` // 名称
Pid int `json:"pid" form:"pid"` // 父id
Layer int `json:"layer"` // 层级
}
type UpdateCategory struct {
Id uint `json:"id" form:"id"` // 主键ID
Name string `json:"name" form:"name"` // 名称
}