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

40 lines
945 B
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.

package dto
// 分页查询
type Example2PageReq struct {
Name string `form:"name"` // 演示名称
Status int `form:"status"` // 状态1正常 2停用
Page int `form:"page"` // 页码
Limit int `form:"limit"` // 每页数
}
// 添加演示二
type Example2AddReq struct {
Name string `form:"name" binding:"required"` // 演示名称
Status string `form:"status" binding:"required"` // 状态1正常 2停用
Sort string `form:"sort" binding:"required"` // 排序号
}
// 编辑演示二
type Example2UpdateReq struct {
Id string `form:"id" binding:"required"`
Name string `form:"name" binding:"required"` // 演示名称
Status string `form:"status" binding:"required"` // 状态1正常 2停用
Sort string `form:"sort" binding:"required"` // 排序号
}
// 设置状态
type Example2StatusReq struct {
Id string `form:"id" binding:"required"`
Status string `form:"status" binding:"required"`
}