mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-15 21:53:48 +08:00
tt
This commit is contained in:
72
hotgo-server/app/form/input/sys_config_input.go
Normal file
72
hotgo-server/app/form/input/sys_config_input.go
Normal file
@@ -0,0 +1,72 @@
|
||||
package input
|
||||
|
||||
import "github.com/bufanyun/hotgo/app/model/entity"
|
||||
|
||||
// 获取指定配置键的值
|
||||
type SysConfigGetValueInp struct {
|
||||
Key string
|
||||
}
|
||||
type SysConfigGetValueModel struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
// 名称是否唯一
|
||||
type SysConfigNameUniqueInp struct {
|
||||
Name string
|
||||
Id int64
|
||||
}
|
||||
|
||||
type SysConfigNameUniqueModel struct {
|
||||
IsUnique bool
|
||||
}
|
||||
|
||||
// 最大排序
|
||||
type SysConfigMaxSortInp struct {
|
||||
Id int64
|
||||
}
|
||||
|
||||
type SysConfigMaxSortModel struct {
|
||||
Sort int
|
||||
}
|
||||
|
||||
// 修改/新增字典数据
|
||||
type SysConfigEditInp struct {
|
||||
entity.SysConfig
|
||||
}
|
||||
type SysConfigEditModel struct{}
|
||||
|
||||
// 删除字典类型
|
||||
type SysConfigDeleteInp struct {
|
||||
Id interface{}
|
||||
}
|
||||
type SysConfigDeleteModel struct{}
|
||||
|
||||
// 获取信息
|
||||
type SysConfigViewInp struct {
|
||||
Id string
|
||||
}
|
||||
|
||||
type SysConfigViewModel struct {
|
||||
entity.SysConfig
|
||||
}
|
||||
|
||||
// 获取列表
|
||||
type SysConfigListInp struct {
|
||||
Page int
|
||||
Limit int
|
||||
Name string
|
||||
Code string
|
||||
DeptId int
|
||||
Mobile int
|
||||
Username string
|
||||
Realname string
|
||||
StartTime string
|
||||
EndTime string
|
||||
Status int
|
||||
}
|
||||
|
||||
type SysConfigListModel struct {
|
||||
entity.SysConfig
|
||||
DeptName string `json:"dept_name"`
|
||||
RoleName string `json:"role_name"`
|
||||
}
|
||||
Reference in New Issue
Block a user