sync: 同步 v1.0.4 并脱敏配置与镜像
This commit is contained in:
@@ -3,9 +3,24 @@ package model
|
||||
import "github.com/gogf/gf/v2/os/gtime"
|
||||
|
||||
type AgentDeptListParam struct {
|
||||
DeptName string `json:"deptName"`
|
||||
Status string `json:"status"`
|
||||
DeptType *int `json:"deptType"`
|
||||
ExportColumnsJson string `json:"exportColumnsJson"`
|
||||
Page int `json:"page" d:"1" v:"min:1|max:100000000" `
|
||||
PageSize int `json:"pageSize" d:"20" v:"min:1|max:2000" `
|
||||
DeptName string `json:"deptName"`
|
||||
Status string `json:"status"`
|
||||
DeptType *int `json:"deptType"`
|
||||
}
|
||||
|
||||
func (in *AgentDeptListParam) NormalizePagination() {
|
||||
if in.Page <= 0 {
|
||||
in.Page = 1
|
||||
}
|
||||
if in.PageSize <= 0 {
|
||||
in.PageSize = 20
|
||||
}
|
||||
if in.PageSize > 2000 {
|
||||
in.PageSize = 2000
|
||||
}
|
||||
}
|
||||
|
||||
type AgentDeptModel struct {
|
||||
|
||||
Reference in New Issue
Block a user