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

45 lines
1.5 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
*/
package dto
// 分页查询条件
type ItemPageReq struct {
Name string `form:"name"` // 站点名称
Type int `form:"type"` // 站点类型
Page int `form:"page"` // 页码
Limit int `form:"limit"` // 每页数
}
// 添加站点
type ItemAddReq struct {
Name string `form:"name" binding:"required"` // 站点名称
Type string `form:"type" binding:"required"` // 站点类型:1普通站点 2其他
Url string `form:"url" binding:"required"` // 站点地址
Image string `form:"image"` // 站点图片
Status string `form:"status" binding:"required"` // 状态1在用 2停用
Note string `form:"note"` // 站点备注
Sort string `form:"sort"` // 显示顺序
}
// 更新站点
type ItemUpdateReq struct {
Id string `form:"id" binding:"required"`
Name string `form:"name" binding:"required"` // 站点名称
Type string `form:"type" binding:"required"` // 站点类型:1普通站点 2其他
Url string `form:"url" binding:"required"` // 站点地址
Image string `form:"image"` // 站点图片
Status string `form:"status" binding:"required"` // 状态1在用 2停用
Note string `form:"note"` // 站点备注
Sort string `form:"sort"` // 显示顺序
}
// 设置状态
type ItemStatusReq struct {
Id string `form:"id" binding:"required"`
Status string `form:"status" binding:"required"`
}