Documentation
¶
Index ¶
- type Auth
- func (a *Auth) Auth(ctx kratosx.Context, in *v1.AuthRequest) (*emptypb.Empty, error)
- func (a *Auth) Login(ctx kratosx.Context, in *v1.LoginRequest) (*v1.LoginReply, error)
- func (a *Auth) LoginCaptcha(ctx kratosx.Context, in *emptypb.Empty) (*v1.LoginCaptchaReply, error)
- func (a *Auth) Logout(ctx kratosx.Context) (*emptypb.Empty, error)
- func (a *Auth) ParseToken(ctx kratosx.Context) (*v1.ParseTokenReply, error)
- func (a *Auth) RefreshToken(ctx kratosx.Context) (*v1.RefreshTokenReply, error)
- type Department
- func (d *Department) Add(ctx kratosx.Context, in *v1.AddDepartmentRequest) (*emptypb.Empty, error)
- func (d *Department) Delete(ctx kratosx.Context, in *v1.DeleteDepartmentRequest) (*emptypb.Empty, error)
- func (d *Department) Get(ctx kratosx.Context, in *v1.GetDepartmentRequest) (*v1.GetDepartmentReply, error)
- func (d *Department) Tree(ctx kratosx.Context) (*v1.GetDepartmentTreeReply, error)
- func (d *Department) Update(ctx kratosx.Context, in *v1.UpdateDepartmentRequest) (*emptypb.Empty, error)
- type Dict
- func (r *Dict) Add(ctx kratosx.Context, in *v1.AddDictRequest) (*emptypb.Empty, error)
- func (r *Dict) Delete(ctx kratosx.Context, in *v1.DeleteDictRequest) (*emptypb.Empty, error)
- func (r *Dict) Get(ctx kratosx.Context, in *v1.GetDictRequest) (*v1.Dict, error)
- func (r *Dict) Page(ctx kratosx.Context, in *v1.PageDictRequest) (*v1.PageDictReply, error)
- func (r *Dict) Update(ctx kratosx.Context, in *v1.UpdateDictRequest) (*emptypb.Empty, error)
- type DictValue
- func (r *DictValue) Add(ctx kratosx.Context, in *v1.AddDictValueRequest) (*emptypb.Empty, error)
- func (r *DictValue) Delete(ctx kratosx.Context, in *v1.DeleteDictValueRequest) (*emptypb.Empty, error)
- func (r *DictValue) GetValue(ctx kratosx.Context, in *v1.GetDictValueRequest) (*v1.GetDictValueReply, error)
- func (r *DictValue) Import(ctx kratosx.Context, in *v1.ImportDictValueRequest) (*v1.ImportDictValueReply, error)
- func (r *DictValue) Page(ctx kratosx.Context, in *v1.PageDictValueRequest) (*v1.PageDictValueReply, error)
- func (r *DictValue) Update(ctx kratosx.Context, in *v1.UpdateDictValueRequest) (*emptypb.Empty, error)
- type Job
- func (r *Job) Add(ctx kratosx.Context, in *v1.AddJobRequest) (*emptypb.Empty, error)
- func (r *Job) Delete(ctx kratosx.Context, in *v1.DeleteJobRequest) (*emptypb.Empty, error)
- func (r *Job) Get(ctx kratosx.Context, in *v1.GetJobRequest) (*v1.GetJobReply, error)
- func (r *Job) GetUserJob(ctx kratosx.Context, in *v1.GetUserJobRequest) (*v1.GetUserJobReply, error)
- func (r *Job) Page(ctx kratosx.Context, in *v1.PageJobRequest) (*v1.PageJobReply, error)
- func (r *Job) Update(ctx kratosx.Context, in *v1.UpdateJobRequest) (*emptypb.Empty, error)
- type Menu
- func (r *Menu) Add(ctx kratosx.Context, in *v1.AddMenuRequest) (*emptypb.Empty, error)
- func (r *Menu) Delete(ctx kratosx.Context, in *v1.DeleteMenuRequest) (*emptypb.Empty, error)
- func (r *Menu) Tree(ctx kratosx.Context) (*v1.GetMenuTreeReply, error)
- func (r *Menu) Update(ctx kratosx.Context, in *v1.UpdateMenuRequest) (*emptypb.Empty, error)
- type Password
- type Role
- func (r *Role) Add(ctx kratosx.Context, in *v1.AddRoleRequest) (*emptypb.Empty, error)
- func (r *Role) Delete(ctx kratosx.Context, in *v1.DeleteRoleRequest) (*emptypb.Empty, error)
- func (r *Role) Get(ctx kratosx.Context, in *v1.GetRoleRequest) (*v1.GetRoleReply, error)
- func (r *Role) Tree(ctx kratosx.Context) (*v1.GetRoleTreeReply, error)
- func (r *Role) Update(ctx kratosx.Context, in *v1.UpdateRoleRequest) (*emptypb.Empty, error)
- type RoleMenu
- func (r *RoleMenu) CurrenMenuTree(ctx kratosx.Context) (*v1.CurrentRoleMenuTreeReply, error)
- func (r *RoleMenu) GetMenuIds(ctx kratosx.Context, in *v1.GetRoleMenuIdsRequest) (*v1.GetRoleMenuIdsReply, error)
- func (r *RoleMenu) Update(ctx kratosx.Context, in *v1.UpdateRoleMenuRequest) (*emptypb.Empty, error)
- type Setting
- type User
- func (r *User) Add(ctx kratosx.Context, in *v1.AddUserRequest) (*emptypb.Empty, error)
- func (r *User) ChangePassword(ctx kratosx.Context, in *v1.ChangeUserPasswordRequest) (*emptypb.Empty, error)
- func (r *User) ChangePasswordCaptcha(ctx kratosx.Context, in *emptypb.Empty) (*v1.ChangeUserPasswordCaptchaReply, error)
- func (r *User) Current(ctx kratosx.Context) (*v1.GetUserReply, error)
- func (r *User) Delete(ctx kratosx.Context, in *v1.DeleteUserRequest) (*emptypb.Empty, error)
- func (r *User) Disable(ctx kratosx.Context, in *v1.DisableUserRequest) (*emptypb.Empty, error)
- func (r *User) Enable(ctx kratosx.Context, in *v1.EnableUserRequest) (*emptypb.Empty, error)
- func (r *User) Get(ctx kratosx.Context, in *v1.GetUserRequest) (*v1.GetUserReply, error)
- func (r *User) Offline(ctx kratosx.Context, in *v1.OfflineUserRequest) (*emptypb.Empty, error)
- func (r *User) Page(ctx kratosx.Context, in *v1.PageUserRequest) (*v1.PageUserReply, error)
- func (r *User) ResetPassword(ctx kratosx.Context, in *v1.ResetUserPasswordRequest) (*emptypb.Empty, error)
- func (r *User) Update(ctx kratosx.Context, in *v1.UpdateUserRequest) (*emptypb.Empty, error)
- func (r *User) UpdateBasic(ctx kratosx.Context, in *v1.UpdateUserBasicRequest) (*emptypb.Empty, error)
- type UserRole
- func (r *UserRole) CurrentUserRoles(ctx kratosx.Context) (*v1.GetUserRolesReply, error)
- func (r *UserRole) GetUserRoles(ctx kratosx.Context, in *v1.GetUserRolesRequest) (*v1.GetUserRolesReply, error)
- func (r *UserRole) SwitchCurrentUserRole(ctx kratosx.Context, in *v1.SwitchCurrentUserRoleRequest) (*v1.SwitchCurrentUserRoleReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) Login ¶
func (a *Auth) Login(ctx kratosx.Context, in *v1.LoginRequest) (*v1.LoginReply, error)
Login 用户登录
func (*Auth) LoginCaptcha ¶
LoginCaptcha 登录验证码
func (*Auth) ParseToken ¶
ParseToken 对Token信息进行解析返回
func (*Auth) RefreshToken ¶
RefreshToken 刷新用户token
type Department ¶
type Department struct {
// contains filtered or unexported fields
}
func NewDepartment ¶
func NewDepartment(conf *config.Config) *Department
func (*Department) Add ¶
func (d *Department) Add(ctx kratosx.Context, in *v1.AddDepartmentRequest) (*emptypb.Empty, error)
func (*Department) Delete ¶
func (d *Department) Delete(ctx kratosx.Context, in *v1.DeleteDepartmentRequest) (*emptypb.Empty, error)
func (*Department) Get ¶
func (d *Department) Get(ctx kratosx.Context, in *v1.GetDepartmentRequest) (*v1.GetDepartmentReply, error)
func (*Department) Tree ¶
func (d *Department) Tree(ctx kratosx.Context) (*v1.GetDepartmentTreeReply, error)
Tree 查询用户的部门树
func (*Department) Update ¶
func (d *Department) Update(ctx kratosx.Context, in *v1.UpdateDepartmentRequest) (*emptypb.Empty, error)
type Dict ¶
type Dict struct {
// contains filtered or unexported fields
}
func (*Dict) Page ¶
func (r *Dict) Page(ctx kratosx.Context, in *v1.PageDictRequest) (*v1.PageDictReply, error)
type DictValue ¶
type DictValue struct {
// contains filtered or unexported fields
}
func NewDictValue ¶
func (*DictValue) Delete ¶
func (r *DictValue) Delete(ctx kratosx.Context, in *v1.DeleteDictValueRequest) (*emptypb.Empty, error)
Delete 删除字典值
func (*DictValue) GetValue ¶ added in v1.0.1
func (r *DictValue) GetValue(ctx kratosx.Context, in *v1.GetDictValueRequest) (*v1.GetDictValueReply, error)
func (*DictValue) Import ¶ added in v1.0.1
func (r *DictValue) Import(ctx kratosx.Context, in *v1.ImportDictValueRequest) (*v1.ImportDictValueReply, error)
Import 导入字典值信息
func (*DictValue) Page ¶
func (r *DictValue) Page(ctx kratosx.Context, in *v1.PageDictValueRequest) (*v1.PageDictValueReply, error)
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func (*Job) Get ¶
func (r *Job) Get(ctx kratosx.Context, in *v1.GetJobRequest) (*v1.GetJobReply, error)
Get 查询指定的职位信息,提供给外部rpc调用
func (*Job) GetUserJob ¶
func (r *Job) GetUserJob(ctx kratosx.Context, in *v1.GetUserJobRequest) (*v1.GetUserJobReply, error)
GetUserJob 查询指定用户的职位信息,提供给外部rpc调用
func (*Job) Page ¶
func (r *Job) Page(ctx kratosx.Context, in *v1.PageJobRequest) (*v1.PageJobReply, error)
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
func (*Role) Get ¶
func (r *Role) Get(ctx kratosx.Context, in *v1.GetRoleRequest) (*v1.GetRoleReply, error)
Get 查询指定的角色信息
type RoleMenu ¶
type RoleMenu struct {
// contains filtered or unexported fields
}
func NewRoleMenu ¶
func (*RoleMenu) CurrenMenuTree ¶
CurrenMenuTree 查询当前角色的菜单树
func (*RoleMenu) GetMenuIds ¶
func (r *RoleMenu) GetMenuIds(ctx kratosx.Context, in *v1.GetRoleMenuIdsRequest) (*v1.GetRoleMenuIdsReply, error)
GetMenuIds 获取指定角色的菜单ID
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) ChangePassword ¶
func (r *User) ChangePassword(ctx kratosx.Context, in *v1.ChangeUserPasswordRequest) (*emptypb.Empty, error)
ChangePassword 重置用户密码
func (*User) ChangePasswordCaptcha ¶
func (r *User) ChangePasswordCaptcha(ctx kratosx.Context, in *emptypb.Empty) (*v1.ChangeUserPasswordCaptchaReply, error)
ChangePasswordCaptcha 重置用户密码验证码
func (*User) Get ¶
func (r *User) Get(ctx kratosx.Context, in *v1.GetUserRequest) (*v1.GetUserReply, error)
Get 查询指定的用户信息,提供给外部rpc调用
func (*User) Page ¶
func (r *User) Page(ctx kratosx.Context, in *v1.PageUserRequest) (*v1.PageUserReply, error)
func (*User) ResetPassword ¶
func (r *User) ResetPassword(ctx kratosx.Context, in *v1.ResetUserPasswordRequest) (*emptypb.Empty, error)
ResetPassword 重置用户密码
func (*User) UpdateBasic ¶
func (r *User) UpdateBasic(ctx kratosx.Context, in *v1.UpdateUserBasicRequest) (*emptypb.Empty, error)
UpdateBasic 更新用户基础信息
type UserRole ¶
type UserRole struct {
// contains filtered or unexported fields
}
func NewUserRole ¶
func (*UserRole) CurrentUserRoles ¶
CurrentUserRoles 查询当前用户的所有角色
func (*UserRole) GetUserRoles ¶
func (r *UserRole) GetUserRoles(ctx kratosx.Context, in *v1.GetUserRolesRequest) (*v1.GetUserRolesReply, error)
GetUserRoles 查询指定用户的所有角色
func (*UserRole) SwitchCurrentUserRole ¶
func (r *UserRole) SwitchCurrentUserRole(ctx kratosx.Context, in *v1.SwitchCurrentUserRoleRequest) (*v1.SwitchCurrentUserRoleReply, error)
SwitchCurrentUserRole 切换当前用户的角色
Click to show internal directories.
Click to hide internal directories.