Documentation ¶
Index ¶
- type AddPolicyReq
- type AddRoleReq
- type AddRoleResp
- type BaseClaims
- type ChangePasswordReq
- type ChangePasswordResp
- type CustomClaims
- type DeleteUserReq
- type DeleteUserResp
- type LoginReq
- type LoginResp
- type QuerySelfInfoReq
- type QuerySelfInfoResp
- type QueryUserDetailReq
- type QueryUserDetailResp
- type QueryUserListReq
- type QueryUserListResp
- type RegisterReq
- type RegisterResp
- type ResetPasswordReq
- type ResetPasswordResp
- type Role
- type RoleTree
- type RoleTreeReq
- type RoleTreeResp
- type SetSelfInfoReq
- type SetSelfInfoResp
- type SetUserInfoReq
- type SetUserInfoResp
- type SetUserRoleReq
- type SetUserRoleResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPolicyReq ¶
type AddPolicyReq struct {
Rules [][]string `json:"rules"`
}
type AddRoleReq ¶
type AddRoleResp ¶
type AddRoleResp struct {
Role *Role `json:"role"`
}
type BaseClaims ¶
type ChangePasswordReq ¶
type ChangePasswordResp ¶
type ChangePasswordResp struct { }
type CustomClaims ¶
type CustomClaims struct { BaseClaims BufferTime int64 jwt.RegisteredClaims }
type DeleteUserReq ¶
type DeleteUserReq struct {
UserId int64 `json:"userId"`
}
type DeleteUserResp ¶
type DeleteUserResp struct { }
type QuerySelfInfoReq ¶
type QuerySelfInfoReq struct {
ID uint64 `json:"id,optional"`
}
type QuerySelfInfoResp ¶
type QuerySelfInfoResp struct {
User QueryUserDetailResp `json:"user"`
}
type QueryUserDetailReq ¶
type QueryUserDetailReq struct {
Id int64 `path:"id"`
}
type QueryUserDetailResp ¶
type QueryUserDetailResp struct { Id int64 `json:"id"` CreatedAt int64 `json:"createdAt"` UpdatedAt int64 `json:"updatedAt"` DeletedAt int64 `json:"deletedAt"` Username string `json:"username"` Email string `json:"email"` Phone string `json:"phone"` Avatar string `json:"avatar"` Role int64 `json:"role"` Status int32 `json:"status"` Nickname string `json:"nickname"` Gender int32 `json:"gender"` Major string `json:"major"` Grade string `json:"grade"` College string `json:"college"` Realname string `json:"realname"` Class string `json:"class"` }
type QueryUserListReq ¶
type QueryUserListReq struct { Page int32 `json:"page"` PageSize int32 `json:"pageSize"` Username string `json:"username,optional"` Email string `json:"email,optional"` Phone string `json:"phone,optional"` Nickname string `json:"nickname,optional"` Role int64 `json:"role,optional"` Status int32 `json:"status,optional"` Major string `json:"major,optional"` Grade string `json:"grade,optional"` College string `json:"college,optional"` Realname string `json:"realname,optional"` Class string `json:"class,optional"` Gender int32 `json:"gender,optional"` OrderBy string `json:"orderBy,optional"` }
type QueryUserListResp ¶
type QueryUserListResp struct { Total int64 `json:"total"` List []*QueryUserDetailResp `json:"list"` Page int32 `json:"page"` PageSize int32 `json:"pageSize"` }
type RegisterReq ¶
type RegisterReq struct { Username string `json:"username"` Password string `json:"password"` Email string `json:"email,optional"` Phone string `json:"phone,optional"` Nickname string `json:"nickname,optional"` Role int64 `json:"role"` Gender int32 `json:"gender"` Major string `json:"major"` Grade string `json:"grade"` College string `json:"college"` Realname string `json:"realname"` Class string `json:"class"` }
type RegisterResp ¶
type RegisterResp struct {
User *QueryUserDetailResp `json:"user"`
}
type ResetPasswordReq ¶
type ResetPasswordReq struct {
UserId int64 `json:"userId"`
}
type ResetPasswordResp ¶
type ResetPasswordResp struct { }
type RoleTreeReq ¶
type RoleTreeResp ¶
type SetSelfInfoReq ¶
type SetSelfInfoReq struct { ID uint64 `json:"id,optional"` Username string `json:"username"` Email string `json:"email"` Phone string `json:"phone"` Avatar string `json:"avatar"` Role int64 `json:"role"` Status int32 `json:"status"` Nickname string `json:"nickname"` Gender int32 `json:"gender"` Major string `json:"major"` Grade string `json:"grade"` College string `json:"college"` Realname string `json:"realname"` Class string `json:"class"` }
type SetSelfInfoResp ¶
type SetSelfInfoResp struct { }
type SetUserInfoReq ¶
type SetUserInfoReq struct { ID int64 `json:"id"` Username string `json:"username"` Email string `json:"email"` Phone string `json:"phone"` Avatar string `json:"avatar"` Role int64 `json:"role"` Status int32 `json:"status"` Nickname string `json:"nickname"` Gender int32 `json:"gender"` Major string `json:"major"` Grade string `json:"grade"` College string `json:"college"` Realname string `json:"realname"` Class string `json:"class"` }
type SetUserInfoResp ¶
type SetUserInfoResp struct { }
type SetUserRoleReq ¶
type SetUserRoleResp ¶
type SetUserRoleResp struct { }
Click to show internal directories.
Click to hide internal directories.