Files
easygoadmin/app/dto/item_cate.go
yaoyilin 1b36bd8fbe feat: 初始化项目
初始化项目
2022-10-31 22:29:16 +08:00

42 lines
1.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 栏目Dto
* @author
* @since 2021/11/13
* @File : item_cate
*/
package dto
// 栏目查询条件
type ItemCateQueryReq struct {
Name string `form:"name"` // 栏目名称
}
// 添加站点
type ItemCateAddReq struct {
Name string `form:"name" binding:"required"` // 栏目名称
Pid string `form:"pid"` // 父级ID
ItemId string `form:"itemId" binding:"required"` // 站点ID
Pinyin string `form:"pinyin" binding:"required"` // 拼音(全)
Code string `form:"code" binding:"required"` // 拼音(简)
IsCover string `form:"isCover" binding:"required"` // 是否有封面1是 2否
Cover string `form:"cover"` // 封面
Status string `form:"status" binding:"required"` // 状态1启用 2停用
Note string `form:"note"` // 备注
Sort string `form:"sort"` // 排序
}
// 修改
type ItemCateUpdateReq struct {
Id string `form:"id" binding:"required"`
Name string `form:"name" binding:"required"` // 栏目名称
Pid string `form:"pid"` // 父级ID
ItemId string `form:"itemId" binding:"required"` // 站点ID
Pinyin string `form:"pinyin" binding:"required"` // 拼音(全)
Code string `form:"code" binding:"required"` // 拼音(简)
IsCover string `form:"isCover" binding:"required"` // 是否有封面1是 2否
Cover string `form:"cover"` // 封面
Status string `form:"status" binding:"required"` // 状态1启用 2停用
Note string `form:"note"` // 备注
Sort string `form:"sort"` // 排序
}