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.

20 lines
551 B

package request
type TbCategory struct {
Pid uint `json:"pid" form:"pid"` //父id
Name string `json:"name" form:"name"` //搜索
}
type ListCategoryPage struct {
PageInfo
Name string `json:"name" form:"name"` // 名称
Layer int `json:"layer"` // 层级
}
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"` // 名称
}