Documentation
¶
Index ¶
- type BindRoleApiReq
- type BindRoleResourceReq
- type ChangePasswordReq
- type ChangeStatusReq
- type CreateDeptReq
- type CreateDictReq
- type CreatePostReq
- type CreateResourceReq
- type CreateRoleReq
- type CreateSysUserExtReq
- type DeleteByIdReq
- type GetApiReq
- type GetByIdReq
- type GetCaptchaReq
- type GetDeptReq
- type GetDictReq
- type GetPostReq
- type GetResourceReq
- type GetRoleReq
- type GetSysConfigReq
- type GetSysUserExtReq
- type GetSysUserReq
- type GetTreeResourceReq
- type GetUriReq
- type ListApiReq
- type ListDeptReq
- type ListDictReq
- type ListPostReq
- type ListResourceReq
- type ListRoleApiReq
- type ListRoleReq
- type ListRoleResourceReq
- type ListSysConfigReq
- type ListSysUserExtReq
- type ListSysUserReq
- type LoginReq
- type RegisterReq
- type VerifyCaptchaReq
- type VerifyTokenReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindRoleApiReq ¶
type BindRoleResourceReq ¶ added in v1.21.2
type ChangePasswordReq ¶
type ChangeStatusReq ¶
type CreateDeptReq ¶
type CreateDeptReq struct {
ParentId uint `json:"parentId" form:"parentId"`
Ancestors string `json:"ancestors" form:"ancestors"`
Name string `json:"name" form:"name" binding:"required"`
Sort int `json:"sort" form:"sort"`
Leader string `json:"leader" form:"leader"`
Mobile string `json:"mobile" form:"mobile"`
Type string `json:"type" form:"type"`
}
type CreateDictReq ¶
type CreateDictReq struct {
Type string `json:"type" form:"type" binding:"required"`
ParentId int `json:"parentId" form:"parentId"`
Name string `json:"name" form:"name" binding:"required"`
Key string `json:"key" form:"key" binding:"required"`
Value string `json:"value" form:"value" binding:"required"`
Sort int `json:"sort" form:"sort"`
Remark string `json:"remark" form:"remark"`
}
type CreatePostReq ¶
type CreateResourceReq ¶ added in v1.21.2
type CreateResourceReq struct {
ResourceLevel int `json:"menuLevel" form:"menuLevel" binding:"required"` // 资源等级(1主资源 2子资源)
ParentId uint `json:"parentId" form:"parentId"`
Path string `json:"path" form:"path" binding:"required"`
Name string `json:"name" form:"name" binding:"required"`
Component string `json:"component" form:"component" binding:"required"`
Redirect string `json:"redirect" form:"redirect"`
Icon string `json:"icon" form:"icon"`
Title string `json:"title" form:"title" binding:"required"`
Sort int `json:"sort" form:"sort"`
Hidden uint8 `json:"hidden" form:"hidden"`
KeepAlive uint8 `json:"keepAlive" form:"keepAlive"`
AlwaysShow uint8 `json:"alwaysShow" form:"alwaysShow"`
Breadcrumb uint8 `json:"breadcrumb" form:"breadcrumb"`
Affix uint8 `json:"affix" form:"affix"`
ActiveResource string `json:"activeResource" form:"activeResource"`
Status int `json:"status" form:"status"`
ApiId *uint `json:"apiId" form:"apiId"` // 资源关联的apiId
}
type CreateRoleReq ¶
type CreateSysUserExtReq ¶
type CreateSysUserExtReq struct {
UserId uint `json:"userId" form:"userId" binding:"required"`
ListSysUserExtReq
}
type DeleteByIdReq ¶
type DeleteByIdReq struct {
ID int64 `json:"id" form:"id" binding:"required"`
}
type GetByIdReq ¶
type GetByIdReq struct {
ID *int64 `json:"id" form:"id" binding:"required"`
}
type GetCaptchaReq ¶
type GetDeptReq ¶
type GetDictReq ¶
type GetPostReq ¶
type GetResourceReq ¶ added in v1.21.2
type GetRoleReq ¶
type GetSysConfigReq ¶
type GetSysUserExtReq ¶
type GetSysUserExtReq struct {
UserId uint `json:"userId" form:"userId" binding:"required"`
}
type GetSysUserReq ¶
type GetTreeResourceReq ¶ added in v1.21.2
type ListApiReq ¶
type ListDeptReq ¶
type ListDictReq ¶
type ListPostReq ¶
type ListResourceReq ¶ added in v1.21.2
type ListResourceReq struct {
ParentId uint `json:"parentId" form:"parentId"`
Path string `json:"path" form:"path"` //资源路径
Name string `json:"name" form:"name"` //资源名称
Component string `json:"component" form:"component"` //组件路径
Title string `json:"title" form:"title"` //资源标题
Status int `json:"status" form:"status"`
Page int `json:"page" form:"page"`
PageSize int `json:"pageSize" form:"pageSize"`
}
type ListRoleApiReq ¶
type ListRoleApiReq struct {
RoleId int64 `json:"roleId" form:"roleId" binding:"required"`
}
type ListRoleReq ¶
type ListRoleResourceReq ¶ added in v1.21.2
type ListRoleResourceReq struct {
RoleId int64 `json:"roleId" form:"roleId" binding:"required"`
}
type ListSysConfigReq ¶
type ListSysUserExtReq ¶
type ListSysUserReq ¶
type ListSysUserReq struct {
Keyword string `json:"keyword" form:"keyword"`
Status uint8 `json:"status" form:"status"`
UserType string `json:"userType" form:"userType"`
DeptId uint64 `json:"deptId" form:"deptId"`
RoleId uint64 `json:"roleId" form:"roleId"`
PostId uint64 `json:"postId" form:"postId"`
Page int `json:"page" form:"page"`
PageSize int `json:"pageSize" form:"pageSize"`
}
type LoginReq ¶
type LoginReq struct {
LoginName string `json:"loginName" form:"loginName" binding:"required"` // 可以是用户名或邮箱或手机号,自动识别
Password string `json:"password" form:"password" binding:"required"`
Captcha *VerifyCaptchaReq `json:"captcha" form:"captcha" binding:"required"`
}
type RegisterReq ¶
type RegisterReq struct {
LoginName string `json:"loginName" form:"loginName" binding:"required"`
Password string `json:"password" form:"password" binding:"required"`
Email string `json:"email" form:"email"`
Mobile string `json:"mobile" form:"mobile"`
NickName string `json:"nickName" form:"nickName"`
Sex uint8 `json:"sex" form:"sex"`
Avatar string `json:"avatar" form:"avatar"`
Captcha *VerifyCaptchaReq `json:"captcha" form:"captcha" binding:"required"`
}
type VerifyCaptchaReq ¶
type VerifyTokenReq ¶
type VerifyTokenReq struct {
Token string `json:"token" form:"token" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.