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 DictDataAddReq
- type DictDataAddRes
- type DictDataDeleteReq
- type DictDataDeleteRes
- type DictDataEditReq
- type DictDataEditRes
- type DictDataGetReq
- type DictDataGetRes
- type DictDataReq
- type DictDataSearchReq
- type DictDataSearchRes
- type DictDataSimpleReq
- type DictDataSimpleRes
- type DictTypeAddReq
- type DictTypeAddRes
- type DictTypeDeleteReq
- type DictTypeDeleteRes
- type DictTypeEditReq
- type DictTypeEditRes
- type DictTypeGetReq
- type DictTypeGetRes
- type DictTypeSearchReq
- type DictTypeSearchRes
- type GetDictReq
- type GetDictRes
- type LoginLogClearReq
- type LoginLogClearRes
- type LoginLogDelReq
- type LoginLogDelRes
- type LoginLogSearchReq
- type LoginLogSearchRes
- type MonitorSearchReq
- type MonitorSearchRes
- 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 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 ConfigGetRes struct { g.Meta `mime:"application/json"` Data *commonEntity.SysConfig `json:"data"` }
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 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 *commonEntity.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 []*commonEntity.SysDictData `json:"list"` commonApi.ListRes }
DictDataSearchRes 字典数据结果
type DictDataSimpleReq ¶
type DictDataSimpleRes ¶
type DictDataSimpleRes struct { g.Meta `mime:"application/json"` List []*commonModel.DictDataRes `json:"list"` }
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 *commonEntity.SysDictType `json:"dictType"` }
type DictTypeSearchReq ¶
type DictTypeSearchRes ¶
type DictTypeSearchRes struct { g.Meta `mime:"application/json"` DictTypeList []*commonModel.SysDictTypeInfoRes `json:"dictTypeList"` commonApi.ListRes }
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 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 { 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 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.