mirror of
https://gitlab.52pay.top/go/easygoadmin.git
synced 2025-09-26 22:58:01 +08:00
47 lines
1.7 KiB
Go
47 lines
1.7 KiB
Go
/**
|
|
* 配置数据Dto
|
|
* @author
|
|
* @since 2021/11/13
|
|
* @File : config_data
|
|
*/
|
|
package dto
|
|
|
|
// 字典项列表查询条件
|
|
type ConfigDataPageReq struct {
|
|
ConfigId int `form:"configId"` // 字典ID
|
|
Title string `form:"name"` // 配置标题
|
|
Page int `form:"page"` // 页码
|
|
Limit int `form:"limit"` // 每页数
|
|
}
|
|
|
|
// 添加字典项
|
|
type ConfigDataAddReq struct {
|
|
Title string `form:"title" binding:"required"` // 配置标题
|
|
Code string `form:"code" binding:"required"` // 配置编码
|
|
Value string `form:"value"` // 配置值
|
|
Options string `form:"options"` // 配置项
|
|
ConfigId string `form:"configId" binding:"required"` // 配置ID
|
|
Type string `form:"type" binding:"required"` // 配置类型
|
|
Sort string `form:"sort"` // 排序
|
|
Note string `form:"note"` // 配置说明
|
|
}
|
|
|
|
// 更新字典项
|
|
type ConfigDataUpdateReq struct {
|
|
Id string `form:"id" binding:"required"`
|
|
Title string `form:"title" binding:"required"` // 配置标题
|
|
Code string `form:"code" binding:"required"` // 配置编码
|
|
Value string `form:"value"` // 配置值
|
|
Options string `form:"options"` // 配置项
|
|
ConfigId string `form:"configId" binding:"required"` // 配置ID
|
|
Type string `form:"type" binding:"required"` // 配置类型
|
|
Sort string `form:"sort"` // 排序
|
|
Note string `form:"note"` // 配置说明
|
|
}
|
|
|
|
// 设置状态
|
|
type ConfigDataStatusReq struct {
|
|
Id string `form:"id" binding:"required"`
|
|
Status string `form:"status" binding:"required"`
|
|
}
|