Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiUpsertReq ¶
type ApiUpsertReq struct { Method string `json:"method" binding:"required,max=10" label:"请求方式"` Name string `json:"name" binding:"omitempty,max=20" label:"API名称"` Path string `json:"path" binding:"required,max=100" label:"路由路径"` Description string `json:"description" binding:"omitempty,max=255" label:"描述信息"` }
type ChangeMyPasswdReq ¶
type ChangePasswdReq ¶
type DeptUpsertReq ¶
type JobUpsertReq ¶
type MenuUpsertReq ¶
type MenuUpsertReq struct { Symbol string `json:"symbol" binding:"omitempty,max=50,regex=^\\w+:\\w+$" label:"权限标识"` Name string `json:"name" binding:"required,max=20" label:"菜单名称"` Icon string `json:"icon" binding:"omitempty,max=50" label:"图标"` SortNum int32 `json:"sortNum" binding:"omitempty" label:"排序"` Url string `json:"url" binding:"omitempty,max=100" label:"菜单URL"` Display int8 `json:"display" binding:"omitempty,oneof=0 1" label:"是否显示"` External int8 `json:"external" binding:"omitempty,oneof=0 1" label:"是否外链"` ExternalWay int8 `json:"externalWay" binding:"omitempty,oneof=0 1" label:"打开方式"` ParentId int64 `json:"parentId" binding:"omitempty,min=0" label:"父菜单"` }
type RoleMenusUpdateReq ¶
type RoleMenusUpdateReq struct {
Ids []int64 `json:"ids" binding:"required,max=1000" label:"菜单列表"`
}
type RoleUpsertReq ¶
type SettingsUpsertReq ¶
type UpsertMyInfoReq ¶
type UserMenusUpdateReq ¶
type UserMenusUpdateReq struct {
Ids []int64 `json:"ids" binding:"required,max=1000" label:"菜单列表"`
}
type UserUpsertReq ¶
type UserUpsertReq struct { Sex int8 `json:"sex" binding:"omitempty,oneof=0 1" label:"性别"` Birthday string `json:"birthday" binding:"omitempty,regex=^[0-9]{4}-[0-9]{2}-[0-9]{2}$" label:"出生日期"` Cellphone string `json:"cellphone" binding:"omitempty,regex=^1[0-9]{10}$" label:"手机号"` Email string `json:"email" binding:"required,email,max=50" label:"邮箱"` Name string `json:"name" binding:"omitempty,max=20" label:"姓名"` Nickname string `json:"nickname" binding:"required,max=20" label:"昵称"` DeptId int64 `json:"deptId" binding:"required,min=1" label:"部门"` RoleIds []int64 `json:"roleIds" binding:"required,min=1,max=1000" label:"角色列表"` JobIds []int64 `json:"jobIds" binding:"required,min=1,max=1000" label:"岗位列表"` ShouldSendPassword bool `json:"shouldSendPassword" binding:"omitempty" label:"邮件发送标志"` // 仅新增的时候有效 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.