init: radio init commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package request
|
||||
|
||||
import common "sundynix-go/model/commom/request"
|
||||
|
||||
// GetCategoryList 获取分类列表请求
|
||||
type GetCategoryList struct {
|
||||
common.PageInfo
|
||||
Name string `json:"name" form:"name"` // 分类名称
|
||||
Status int `json:"status" form:"status"` // 状态
|
||||
}
|
||||
|
||||
// SaveCategory 保存分类请求
|
||||
type SaveCategory struct {
|
||||
Id string `json:"id" form:"id"` // 分类ID(更新时使用)
|
||||
Name string `json:"name" binding:"required"` // 分类名称
|
||||
Description string `json:"description"` // 分类描述
|
||||
IconId string `json:"iconId"` // 图标URL
|
||||
CoverId string `json:"coverId"` // 封面图URL
|
||||
Sort int `json:"sort"` // 排序
|
||||
Status int `json:"status"` // 状态
|
||||
}
|
||||
|
||||
// UpdateCategory 更新分类请求
|
||||
type UpdateCategory struct {
|
||||
Id string `json:"id" binding:"required"` // 分类ID
|
||||
Name string `json:"name"` // 分类名称
|
||||
Description string `json:"description"` // 分类描述
|
||||
IconId string `json:"iconId"` // 图标URL
|
||||
CoverId string `json:"coverId"` // 封面图URL
|
||||
Sort int `json:"sort"` // 排序
|
||||
Status int `json:"status"` // 状态
|
||||
}
|
||||
Reference in New Issue
Block a user