Documentation
¶
Index ¶
- type ConfigAddReq
- type ConfigAddRes
- type ConfigDeleteReq
- type ConfigDeleteRes
- type ConfigEditReq
- type ConfigEditRes
- type ConfigGetReq
- type ConfigGetRes
- type ConfigReq
- type ConfigSearchReq
- type ConfigSearchRes
- type DbInitCreateDbReq
- type DbInitCreateDbRes
- type DbInitGetEnvInfoReq
- type DbInitGetEnvInfoRes
- type DbInitIsInitReq
- type DbInitIsInitRes
- type DeptAddReq
- type DeptAddRes
- type DeptDeleteReq
- type DeptDeleteRes
- type DeptEditReq
- type DeptEditRes
- type DeptSearchReq
- type DeptSearchRes
- type DeptTreeSelectReq
- type DeptTreeSelectRes
- type DictDataAddReq
- type DictDataAddRes
- type DictDataDeleteReq
- type DictDataDeleteRes
- type DictDataEditReq
- type DictDataEditRes
- type DictDataGetReq
- type DictDataGetRes
- type DictDataReq
- type DictDataSearchReq
- type DictDataSearchRes
- type DictTypeAddReq
- type DictTypeAddRes
- type DictTypeDeleteReq
- type DictTypeDeleteRes
- type DictTypeEditReq
- type DictTypeEditRes
- type DictTypeGetReq
- type DictTypeGetRes
- type DictTypeSearchReq
- type DictTypeSearchRes
- type GenCodRelationRes
- type GenCodSingleRelation
- type GenCodSingleRelationReq
- type GenCodeDownReq
- type GenCodeDownRes
- type GenCodePreviewReq
- type GenCodePreviewRes
- type GenCodeReq
- type GenCodeRes
- type GenDbSearchReq
- type GenDbSearchRes
- type GenTableClearReq
- type GenTableClearRes
- type GenTableColumnSearchReq
- type GenTableColumnSearchRes
- type GenTableDelReq
- type GenTableDelRes
- type GenTableEditReq
- type GenTableEditRes
- type GenTableImportReq
- type GenTableImportRes
- type GenTableSearchReq
- type GenTableSearchRes
- type GetDictReq
- type GetDictRes
- type LoginLogClearReq
- type LoginLogClearRes
- type LoginLogDelReq
- type LoginLogDelRes
- type LoginLogSearchReq
- type LoginLogSearchRes
- type MonitorSearchReq
- type MonitorSearchRes
- type PostAddReq
- type PostAddRes
- type PostDeleteReq
- type PostDeleteRes
- type PostEditReq
- type PostEditRes
- type PostSearchReq
- type PostSearchRes
- type RoleAddReq
- type RoleAddRes
- type RoleDeleteReq
- type RoleDeleteRes
- type RoleEditReq
- type RoleEditRes
- type RoleGetParamsReq
- type RoleGetParamsRes
- type RoleGetReq
- type RoleGetRes
- type RoleListReq
- type RoleListRes
- type RuleAddReq
- type RuleAddRes
- type RuleDeleteReq
- type RuleDeleteRes
- type RuleGetParamsReq
- type RuleGetParamsRes
- type RuleInfoReq
- type RuleInfoRes
- type RuleListRes
- type RuleSearchReq
- type RuleUpdateReq
- type RuleUpdateRes
- type SetUserReq
- type SysJobAddReq
- type SysJobAddRes
- type SysJobDeleteReq
- type SysJobDeleteRes
- type SysJobEditReq
- type SysJobEditRes
- type SysJobGetReq
- type SysJobGetRes
- type SysJobSearchReq
- type SysJobSearchRes
- type SysJobStatusReq
- type SysJobStatusRes
- type UserAddReq
- type UserAddRes
- type UserDeleteReq
- type UserDeleteRes
- type UserEditReq
- type UserEditRes
- type UserGetEditReq
- type UserGetEditRes
- type UserGetParamsReq
- type UserGetParamsRes
- type UserLoginOutReq
- type UserLoginOutRes
- type UserLoginReq
- type UserLoginRes
- type UserMenusReq
- type UserMenusRes
- type UserResetPwdReq
- type UserResetPwdRes
- type UserSearchReq
- type UserSearchRes
- type UserStatusReq
- type UserStatusRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigAddReq ¶
type ConfigAddRes ¶
type ConfigAddRes struct {
}
type ConfigDeleteReq ¶
type ConfigDeleteRes ¶
type ConfigDeleteRes struct {
}
type ConfigEditReq ¶
type ConfigEditRes ¶
type ConfigEditRes struct {
}
type ConfigGetReq ¶
type ConfigGetRes ¶
type ConfigSearchReq ¶
type ConfigSearchRes ¶
type DbInitCreateDbReq ¶
type DbInitCreateDbReq struct {
g.Meta `path:"/dbInit/createDb" tags:"系统初始化" method:"post" summary:"创建配置文件"`
DbHost string `json:"dbHost" p:"dbHost" v:"required#数据库地址必须"`
DbPort int `json:"dbPort" p:"dbPort" v:"required#数据库端口必须"`
DbUser string `json:"dbUser" p:"dbUser" v:"required#数据库用户名称必须"`
DbPass string `json:"dbPass"`
DbName string `json:"dbName" p:"dbName" v:"required#数据库名称必须"`
DbCharset string `json:"dbCharset" p:"dbCharset" v:"required#数据库编码必须"`
RedisAddress string `json:"redisAddress" p:"redisAddress" v:"required#Redis地址必须"`
RedisPort int `json:"redisPort" p:"redisPort" v:"required#Redis端口必须"`
RedisDb int `json:"redisDb" p:"redisDb" v:"required#Redis索引必须"`
RedisPass string `json:"redisPass"`
}
func (*DbInitCreateDbReq) ToDbInitConfig ¶
func (req *DbInitCreateDbReq) ToDbInitConfig() *model.DbInitConfig
type DbInitCreateDbRes ¶
type DbInitCreateDbRes bool
type DbInitGetEnvInfoReq ¶
type DbInitGetEnvInfoRes ¶
type DbInitIsInitReq ¶
type DbInitIsInitRes ¶
type DbInitIsInitRes bool
type DeptAddReq ¶
type DeptAddReq struct {
g.Meta `path:"/dept/add" tags:"部门管理" method:"post" summary:"添加部门"`
ParentID int `p:"parentId" v:"required#父级不能为空"`
DeptName string `p:"deptName" v:"required#部门名称不能为空"`
OrderNum int `p:"orderNum" v:"required#排序不能为空"`
Leader string `p:"leader"`
Phone string `p:"phone"`
Email string `p:"email" v:"email#邮箱格式不正确"`
Status uint `p:"status" v:"required#状态必须"`
}
type DeptAddRes ¶
type DeptAddRes struct {
}
type DeptDeleteReq ¶
type DeptDeleteRes ¶
type DeptDeleteRes struct {
}
type DeptEditReq ¶
type DeptEditReq struct {
g.Meta `path:"/dept/edit" tags:"部门管理" method:"put" summary:"修改部门"`
DeptId int `p:"deptId" v:"required#deptId不能为空"`
ParentID int `p:"parentId" v:"required#父级不能为空"`
DeptName string `p:"deptName" v:"required#部门名称不能为空"`
OrderNum int `p:"orderNum" v:"required#排序不能为空"`
Leader string `p:"leader"`
Phone string `p:"phone"`
Email string `p:"email" v:"email#邮箱格式不正确"`
Status uint `p:"status" v:"required#状态必须"`
}
type DeptEditRes ¶
type DeptEditRes struct {
}
type DeptSearchReq ¶
type DeptSearchRes ¶
type DeptTreeSelectReq ¶
type DeptTreeSelectRes ¶
type DeptTreeSelectRes struct {
g.Meta `mime:"application/json"`
Deps []*model.SysDeptTreeRes `json:"deps"`
}
type DictDataAddReq ¶
type DictDataAddReq struct {
g.Meta `path:"/dict/data/add" tags:"字典管理" method:"post" summary:"添加字典数据"`
*DictDataReq
}
type DictDataAddRes ¶
type DictDataAddRes struct {
}
type DictDataDeleteReq ¶
type DictDataDeleteRes ¶
type DictDataDeleteRes struct {
}
type DictDataEditReq ¶
type DictDataEditReq struct {
g.Meta `path:"/dict/data/edit" tags:"字典管理" method:"put" summary:"修改字典数据"`
DictCode int `p:"dictCode" v:"required|min:1#主键ID不能为空|主键ID不能小于1"`
*DictDataReq
}
type DictDataEditRes ¶
type DictDataEditRes struct {
}
type DictDataGetReq ¶
type DictDataGetRes ¶
type DictDataGetRes struct {
g.Meta `mime:"application/json"`
Dict *entity.SysDictData `json:"dict"`
}
type DictDataReq ¶
type DictDataReq struct {
DictLabel string `p:"dictLabel" v:"required#字典标签不能为空"`
DictValue string `p:"dictValue" v:"required#字典键值不能为空"`
DictType string `p:"dictType" v:"required#字典类型不能为空"`
DictSort int `p:"dictSort" v:"integer#排序只能为整数"`
CssClass string `p:"cssClass"`
ListClass string `p:"listClass"`
IsDefault int `p:"isDefault" v:"required|in:0,1#系统默认不能为空|默认值只能为0或1"`
Status int `p:"status" v:"required|in:0,1#状态不能为空|状态只能为0或1"`
Remark string `p:"remark"`
}
type DictDataSearchReq ¶
type DictDataSearchReq struct {
g.Meta `path:"/dict/data/list" tags:"字典管理" method:"get" summary:"字典数据列表"`
DictType string `p:"dictType"` //字典类型
DictLabel string `p:"dictLabel"` //字典标签
Status string `p:"status"` //状态
commonApi.PageReq
}
DictDataSearchReq 分页请求参数
type DictDataSearchRes ¶
type DictDataSearchRes struct {
g.Meta `mime:"application/json"`
List []*entity.SysDictData `json:"list"`
commonApi.ListRes
}
DictDataSearchRes 字典数据结果
type DictTypeAddReq ¶
type DictTypeAddRes ¶
type DictTypeAddRes struct {
}
type DictTypeDeleteReq ¶
type DictTypeDeleteRes ¶
type DictTypeDeleteRes struct {
}
type DictTypeEditReq ¶
type DictTypeEditReq struct {
g.Meta `path:"/dict/type/edit" tags:"字典管理" method:"put" summary:"修改字典类型"`
DictId int64 `p:"dictId" v:"required|min:1#主键ID不能为空|主键ID必须为大于0的值"`
DictName string `p:"dictName" v:"required#字典名称不能为空"`
DictType string `p:"dictType" v:"required#字典类型不能为空"`
Status uint `p:"status" v:"required|in:0,1#状态不能为空|状态只能为0或1"`
Remark string `p:"remark"`
}
type DictTypeEditRes ¶
type DictTypeEditRes struct {
}
type DictTypeGetReq ¶
type DictTypeGetRes ¶
type DictTypeGetRes struct {
g.Meta `mime:"application/json"`
DictType *entity.SysDictType `json:"dictType"`
}
type DictTypeSearchReq ¶
type DictTypeSearchRes ¶
type DictTypeSearchRes struct {
g.Meta `mime:"application/json"`
DictTypeList []*commonModel.SysDictTypeInfoRes `json:"dictTypeList"`
commonApi.ListRes
}
type GenCodRelationRes ¶
type GenCodRelationRes struct {
g.Meta `mime:"application/json"`
List []*GenCodSingleRelation `json:"list"`
}
ToolsGenTableColumnsRes 表与字段组合数据
type GenCodSingleRelation ¶
type GenCodSingleRelation struct {
*entity.SysGenTable
Columns []*model.SysGenTableColumn `json:"columns"`
}
type GenCodSingleRelationReq ¶
type GenCodSingleRelationReq struct {
g.Meta `path:"/gen/relationTable" tags:"代码生成" method:"get" summary:"获取可选的关联表"`
TableName string // 表名称
TableComment string // 表描述
BeginTime string //开始时间
EndTime string //结束时间
commonApi.PageReq
}
GenCodSingleRelationReq 获取可选的关联表
type GenCodeDownReq ¶
type GenCodeDownRes ¶
type GenCodeDownRes struct {
}
type GenCodePreviewReq ¶
type GenCodePreviewRes ¶
type GenCodeReq ¶
type GenCodeRes ¶
type GenCodeRes struct {
}
type GenDbSearchReq ¶
type GenDbSearchReq struct {
g.Meta `path:"/gen/getDbTable" tags:"代码生成" method:"get" summary:"库表信息列表"`
TableName string `p:"tableName"` // 表名称
TableComment string `p:"tableComment"` // 表描述
BeginTime string `p:"beginTime"` //开始时间
EndTime string `p:"endTime"` //结束时间
commonApi.PageReq
}
GenTableSearchReq 查询列表请求参数
type GenDbSearchRes ¶
type GenTableClearReq ¶
type GenTableClearRes ¶
type GenTableClearRes struct {
}
type GenTableColumnSearchReq ¶
type GenTableColumnSearchRes ¶
type GenTableDelReq ¶
type GenTableDelRes ¶
type GenTableDelRes struct {
}
type GenTableEditReq ¶
type GenTableEditReq struct {
g.Meta `path:"/gen/edit" tags:"代码生成" method:"put" summary:"修改表和列信息"`
TableId int64 `p:"tableId" v:"required#主键ID不能为空"`
TableName string `p:"tableName" v:"required#表名称不能为空"`
TableComment string `p:"tableComment" v:"required#表描述不能为空"`
ClassName string `p:"className" v:"required#实体类名称不能为空"`
FunctionAuthor string `p:"functionAuthor" v:"required#作者不能为空"`
TplCategory string `p:"tplCategory"`
PackageName string `p:"packageName" v:"required#生成包路径不能为空"`
ModuleName string `p:"moduleName" v:"required#生成模块名不能为空"`
BusinessName string `p:"businessName" v:"required#生成业务名不能为空"`
FunctionName string `p:"functionName" v:"required#生成功能名不能为空"`
Remark string `p:"remark"`
Params string `p:"params"`
Columns []*entity.SysGenTableColumn `p:"columns"`
TreeCode string `p:"tree_code"`
TreeParentCode string `p:"tree_parent_code"`
TreeName string `p:"tree_name"`
UserName string
}
修改页面请求参数
type GenTableEditRes ¶
type GenTableEditRes struct {
}
type GenTableImportReq ¶
type GenTableImportRes ¶
type GenTableImportRes struct {
}
type GenTableSearchReq ¶
type GenTableSearchReq struct {
g.Meta `path:"/gen/tableList" tags:"代码生成" method:"get" summary:"表信息列表"`
TableName string // 表名称
TableComment string // 表描述
BeginTime string //开始时间
EndTime string //结束时间
commonApi.PageReq
}
GenTableSearchReq 查询列表请求参数
type GenTableSearchRes ¶
type GetDictReq ¶
type GetDictReq struct {
g.Meta `path:"/dict/data/getDictData" tags:"字典管理" method:"get" summary:"获取字典数据公共方法"`
Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"`
DictType string `p:"dictType" v:"required#字典类型不能为空"`
DefaultValue string `p:"defaultValue"`
}
GetDictReq 获取字典信息请求参数
type GetDictRes ¶
type GetDictRes struct {
g.Meta `mime:"application/json"`
Info *commonModel.DictTypeRes `json:"info"`
Values []*commonModel.DictDataRes `json:"values"`
}
GetDictRes 完整的一个字典信息
type LoginLogClearReq ¶
type LoginLogClearRes ¶
type LoginLogClearRes struct {
}
type LoginLogDelReq ¶
type LoginLogDelRes ¶
type LoginLogDelRes struct {
}
type LoginLogSearchReq ¶
type LoginLogSearchReq struct {
g.Meta `path:"/loginLog/list" tags:"登录日志管理" method:"get" summary:"日志列表"`
LoginName string `p:"userName"` //登陆名
Status string `p:"status"` //状态
Ipaddr string `p:"ipaddr"` //登录地址
SortName string `p:"orderByColumn"` //排序字段
SortOrder string `p:"isAsc"` //排序方式
LoginLocation string `p:"loginLocation"` //登录地点
commonApi.PageReq
}
LoginLogSearchReq 查询列表请求参数
type LoginLogSearchRes ¶
type MonitorSearchReq ¶
type MonitorSearchRes ¶
type PostAddReq ¶
type PostAddReq struct {
g.Meta `path:"/post/add" tags:"岗位管理" method:"post" summary:"添加岗位"`
PostCode string `p:"postCode" v:"required#岗位编码不能为空"`
PostName string `p:"postName" v:"required#岗位名称不能为空"`
PostSort int `p:"postSort" v:"required#岗位排序不能为空"`
Status uint `p:"status" v:"required#状态不能为空"`
Remark string `p:"remark"`
}
type PostAddRes ¶
type PostAddRes struct {
}
type PostDeleteReq ¶
type PostDeleteRes ¶
type PostDeleteRes struct {
}
type PostEditReq ¶
type PostEditReq struct {
g.Meta `path:"/post/edit" tags:"岗位管理" method:"put" summary:"修改岗位"`
PostId int64 `p:"postId" v:"required#id必须"`
PostCode string `p:"postCode" v:"required#岗位编码不能为空"`
PostName string `p:"postName" v:"required#岗位名称不能为空"`
PostSort int `p:"postSort" v:"required#岗位排序不能为空"`
Status uint `p:"status" v:"required#状态不能为空"`
Remark string `p:"remark"`
}
type PostEditRes ¶
type PostEditRes struct {
}
type PostSearchReq ¶
type PostSearchRes ¶
type RoleAddReq ¶
type RoleAddRes ¶
type RoleAddRes struct {
}
type RoleDeleteReq ¶
type RoleDeleteRes ¶
type RoleDeleteRes struct {
}
type RoleEditReq ¶
type RoleEditRes ¶
type RoleEditRes struct {
}
type RoleGetParamsReq ¶
type RoleGetParamsRes ¶
type RoleGetParamsRes struct {
g.Meta `mime:"application/json"`
Menu []*model.SysAuthRuleInfoRes `json:"menu"`
}
type RoleGetReq ¶
type RoleGetRes ¶
type RoleListReq ¶
type RoleListRes ¶
type RuleAddReq ¶
type RuleAddReq struct {
g.Meta `path:"/menu/add" tags:"菜单管理" method:"post" summary:"添加菜单"`
Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"`
MenuType uint `p:"menuType" v:"min:0|max:2#菜单类型最小值为:min|菜单类型最大值为:max"`
Pid uint `p:"parentId" v:"min:0"`
Name string `p:"name" v:"required#请填写规则名称"`
Title string `p:"menuName" v:"required|length:1,100#请填写标题|标题长度在:min到:max位"`
Icon string `p:"icon"`
Weigh int `p:"menuSort" `
Condition string `p:"condition" `
Remark string `p:"remark" `
IsHide uint `p:"isHide"`
Path string `p:"path"`
Redirect string `p:"redirect"` // 路由重定向
Roles []uint `p:"roles"` // 角色ids
Component string `p:"component" v:"required-if:menuType,1#组件路径不能为空"`
IsLink uint `p:"isLink"`
IsIframe uint `p:"isIframe"`
IsCached uint `p:"isKeepAlive"`
IsAffix uint `p:"isAffix"`
LinkUrl string `p:"linkUrl"`
}
type RuleAddRes ¶
type RuleAddRes struct {
}
type RuleDeleteReq ¶
type RuleDeleteRes ¶
type RuleDeleteRes struct {
}
type RuleGetParamsReq ¶
type RuleGetParamsRes ¶
type RuleInfoReq ¶
type RuleInfoRes ¶
type RuleInfoRes struct {
g.Meta `mime:"application/json"`
Rule *entity.SysAuthRule `json:"rule"`
RoleIds []uint `json:"roleIds"`
}
type RuleListRes ¶
type RuleListRes struct {
g.Meta `mime:"application/json"`
Rules []*model.SysAuthRuleTreeRes `json:"rules"`
}
type RuleSearchReq ¶
type RuleUpdateReq ¶
type RuleUpdateReq struct {
g.Meta `path:"/menu/update" tags:"菜单管理" method:"put" summary:"修改菜单"`
Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"`
Id uint `p:"id" v:"required#id必须"`
MenuType uint `p:"menuType" v:"min:0|max:2#菜单类型最小值为:min|菜单类型最大值为:max"`
Pid uint `p:"parentId" v:"min:0"`
Name string `p:"name" v:"required#请填写规则名称"`
Title string `p:"menuName" v:"required|length:1,100#请填写标题|标题长度在:min到:max位"`
Icon string `p:"icon"`
Weigh int `p:"menuSort" `
Condition string `p:"condition" `
Remark string `p:"remark" `
IsHide uint `p:"isHide"`
Path string `p:"path"`
Redirect string `p:"redirect"` // 路由重定向
Roles []uint `p:"roles"` // 角色ids
Component string `p:"component" v:"required-if:menuType,1#组件路径不能为空"`
IsLink uint `p:"isLink"`
IsIframe uint `p:"isIframe"`
IsCached uint `p:"isKeepAlive"`
IsAffix uint `p:"isAffix"`
LinkUrl string `p:"linkUrl"`
}
type RuleUpdateRes ¶
type RuleUpdateRes struct {
}
type SetUserReq ¶
type SetUserReq struct {
DeptId uint64 `p:"deptId" v:"required#用户部门不能为空"` //所属部门
Email string `p:"email" v:"email#邮箱格式错误"` //邮箱
NickName string `p:"nickName" v:"required#用户昵称不能为空"`
Mobile string `p:"mobile" v:"required|phone#手机号不能为空|手机号格式错误"`
PostIds []int64 `p:"postIds"`
Remark string `p:"remark"`
RoleIds []int64 `p:"roleIds"`
Sex int `p:"sex"`
Status uint `p:"status"`
IsAdmin int `p:"isAdmin"` // 是否后台管理员 1 是 0 否
}
SetUserReq 添加修改用户公用请求字段
type SysJobAddReq ¶
type SysJobAddReq struct {
g.Meta `path:"/job/add" tags:"定时任务调度" method:"post" summary:"添加定时任务调度"`
JobParams string `p:"jobParams" `
InvokeTarget string `p:"invokeTarget" v:"required#调用目标字符串不能为空"`
CronExpression string `p:"cronExpression" `
MisfirePolicy int `p:"misfirePolicy" `
Concurrent int `p:"concurrent" `
Status int `p:"status" v:"required#状态(0正常 1暂停)不能为空"`
CreateBy uint64 `p:"createBy" `
UpdateBy uint64 `p:"updateBy" `
Remark string `p:"remark" `
}
SysJobAddReq 添加操作请求参数
type SysJobAddRes ¶
type SysJobAddRes struct {
}
type SysJobDeleteReq ¶
type SysJobDeleteRes ¶
type SysJobDeleteRes struct {
}
type SysJobEditReq ¶
type SysJobEditReq struct {
g.Meta `path:"/job/edit" tags:"定时任务调度" method:"put" summary:"修改定时任务调度"`
JobId int64 `p:"jobId" v:"required#主键ID不能为空"`
JobParams string `p:"jobParams" `
InvokeTarget string `p:"invokeTarget" v:"required#调用目标字符串不能为空"`
CronExpression string `p:"cronExpression" `
MisfirePolicy int `p:"misfirePolicy" `
Concurrent int `p:"concurrent" `
Status int `p:"status" v:"required#状态(0正常 1暂停)不能为空"`
CreateBy uint64 `p:"createBy" `
UpdateBy uint64 `p:"updateBy" `
Remark string `p:"remark" `
}
SysJobEditReq 修改操作请求参数
type SysJobEditRes ¶
type SysJobEditRes struct {
}
type SysJobGetReq ¶
type SysJobSearchReq ¶
type SysJobSearchReq struct {
g.Meta `path:"/job/list" tags:"定时任务调度" method:"get" summary:"定时任务调度列表"`
JobId string `p:"jobId"` //任务ID
JobName string `p:"jobName"` //任务名称
JobGroup string `p:"jobGroup"` //任务组名
MisfirePolicy string `p:"misfirePolicy"` //计划执行策略(1多次执行 2执行一次)
Concurrent string `p:"concurrent"` //是否并发执行(0允许 1禁止)
Status string `p:"status"` //状态(0正常 1暂停)
commonApi.PageReq
}
SysJobSearchReq 分页请求参数
type SysJobSearchRes ¶
type SysJobStatusReq ¶
type SysJobStatusReq struct {
g.Meta `path:"/job/status" tags:"定时任务调度" method:"put" summary:"修改定时任务调度状态"`
JobId int64 `p:"jobId" v:"required#主键ID不能为空"`
Status int `p:"status" v:"required#状态(0正常 1暂停)不能为空"`
}
SysJobStatusReq 设置用户状态参数
type SysJobStatusRes ¶
type SysJobStatusRes struct {
}
type UserAddReq ¶
type UserAddReq struct {
g.Meta `path:"/user/add" tags:"用户管理" method:"post" summary:"添加用户"`
*SetUserReq
UserName string `p:"userName" v:"required#用户账号不能为空"`
Password string `` /* 139-byte string literal not displayed */
UserSalt string
}
UserAddReq 添加用户参数
type UserAddRes ¶
type UserAddRes struct {
}
type UserDeleteReq ¶
type UserDeleteRes ¶
type UserDeleteRes struct {
}
type UserEditReq ¶
type UserEditReq struct {
g.Meta `path:"/user/edit" tags:"用户管理" method:"put" summary:"修改用户"`
*SetUserReq
UserId int64 `p:"userId" v:"required#用户id不能为空"`
}
UserEditReq 修改用户参数
type UserEditRes ¶
type UserEditRes struct {
}
type UserGetEditReq ¶
type UserGetEditRes ¶
type UserGetParamsReq ¶
type UserGetParamsRes ¶
type UserLoginOutReq ¶
type UserLoginOutRes ¶
type UserLoginOutRes struct {
}
type UserLoginReq ¶
type UserLoginRes ¶
type UserMenusReq ¶
type UserMenusRes ¶
type UserResetPwdReq ¶
type UserResetPwdReq struct {
g.Meta `path:"/user/resetPwd" tags:"用户管理" method:"put" summary:"重置用户密码"`
Id uint64 `p:"userId" v:"required#用户id不能为空"`
Password string `` /* 139-byte string literal not displayed */
}
UserResetPwdReq 重置用户密码状态参数
type UserResetPwdRes ¶
type UserResetPwdRes struct {
}
type UserSearchReq ¶
type UserSearchReq struct {
g.Meta `path:"/user/list" tags:"用户管理" method:"get" summary:"用户列表"`
DeptId string `p:"deptId"` //部门id
Mobile string `p:"mobile"`
Status string `p:"status"`
KeyWords string `p:"keyWords"`
commonApi.PageReq
}
UserSearchReq 用户搜索请求参数
type UserSearchRes ¶
type UserStatusReq ¶
type UserStatusReq struct {
g.Meta `path:"/user/setStatus" tags:"用户管理" method:"put" summary:"设置用户状态"`
Id uint64 `p:"userId" v:"required#用户id不能为空"`
UserStatus uint `p:"status" v:"required#用户状态不能为空"`
}
UserStatusReq 设置用户状态参数
type UserStatusRes ¶
type UserStatusRes struct {
}
Click to show internal directories.
Click to hide internal directories.