handler

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	v1.UnimplementedServiceServer
	// contains filtered or unexported fields
}

func New

func New(conf *config.Config) *Service

func (*Service) AddDepartment

func (s *Service) AddDepartment(ctx context.Context, in *v1.AddDepartmentRequest) (*emptypb.Empty, error)

func (*Service) AddDict

func (s *Service) AddDict(ctx context.Context, in *v1.AddDictRequest) (*emptypb.Empty, error)

func (*Service) AddDictValue

func (s *Service) AddDictValue(ctx context.Context, in *v1.AddDictValueRequest) (*emptypb.Empty, error)

func (*Service) AddJob

func (s *Service) AddJob(ctx context.Context, in *v1.AddJobRequest) (*emptypb.Empty, error)

func (*Service) AddMenu

func (s *Service) AddMenu(ctx context.Context, in *v1.AddMenuRequest) (*emptypb.Empty, error)

func (*Service) AddRole

func (s *Service) AddRole(ctx context.Context, in *v1.AddRoleRequest) (*emptypb.Empty, error)

func (*Service) AddUser

func (s *Service) AddUser(ctx context.Context, in *v1.AddUserRequest) (*emptypb.Empty, error)

func (*Service) Auth

func (s *Service) Auth(ctx context.Context, in *v1.AuthRequest) (*emptypb.Empty, error)

func (*Service) ChangeUserPassword

func (s *Service) ChangeUserPassword(ctx context.Context, in *v1.ChangeUserPasswordRequest) (*emptypb.Empty, error)

func (*Service) ChangeUserPasswordCaptcha

func (s *Service) ChangeUserPasswordCaptcha(ctx context.Context, in *emptypb.Empty) (*v1.ChangeUserPasswordCaptchaReply, error)

func (*Service) CurrentRoleMenuTree

func (s *Service) CurrentRoleMenuTree(ctx context.Context, in *emptypb.Empty) (*v1.CurrentRoleMenuTreeReply, error)

func (*Service) CurrentUser

func (s *Service) CurrentUser(ctx context.Context, in *emptypb.Empty) (*v1.GetUserReply, error)

func (*Service) CurrentUserRoles

func (s *Service) CurrentUserRoles(ctx context.Context, in *emptypb.Empty) (*v1.GetUserRolesReply, error)

func (*Service) DeleteDepartment

func (s *Service) DeleteDepartment(ctx context.Context, in *v1.DeleteDepartmentRequest) (*emptypb.Empty, error)

func (*Service) DeleteDict

func (s *Service) DeleteDict(ctx context.Context, in *v1.DeleteDictRequest) (*emptypb.Empty, error)

func (*Service) DeleteDictValue

func (s *Service) DeleteDictValue(ctx context.Context, in *v1.DeleteDictValueRequest) (*emptypb.Empty, error)

func (*Service) DeleteJob

func (s *Service) DeleteJob(ctx context.Context, in *v1.DeleteJobRequest) (*emptypb.Empty, error)

func (*Service) DeleteMenu

func (s *Service) DeleteMenu(ctx context.Context, in *v1.DeleteMenuRequest) (*emptypb.Empty, error)

func (*Service) DeleteRole

func (s *Service) DeleteRole(ctx context.Context, in *v1.DeleteRoleRequest) (*emptypb.Empty, error)

func (*Service) DeleteUser

func (s *Service) DeleteUser(ctx context.Context, in *v1.DeleteUserRequest) (*emptypb.Empty, error)

func (*Service) DisableUser

func (s *Service) DisableUser(ctx context.Context, in *v1.DisableUserRequest) (*emptypb.Empty, error)

func (*Service) EnableUser

func (s *Service) EnableUser(ctx context.Context, in *v1.EnableUserRequest) (*emptypb.Empty, error)

func (*Service) GetDepartment

func (s *Service) GetDepartment(ctx context.Context, in *v1.GetDepartmentRequest) (*v1.GetDepartmentReply, error)

func (*Service) GetDepartmentTree

func (s *Service) GetDepartmentTree(ctx context.Context, in *emptypb.Empty) (*v1.GetDepartmentTreeReply, error)

func (*Service) GetJob

func (s *Service) GetJob(ctx context.Context, in *v1.GetJobRequest) (*v1.GetJobReply, error)

func (*Service) GetMenuTree

func (s *Service) GetMenuTree(ctx context.Context, in *emptypb.Empty) (*v1.GetMenuTreeReply, error)

func (*Service) GetRole

func (s *Service) GetRole(ctx context.Context, in *v1.GetRoleRequest) (*v1.GetRoleReply, error)

func (*Service) GetRoleMenuIds

func (s *Service) GetRoleMenuIds(ctx context.Context, in *v1.GetRoleMenuIdsRequest) (*v1.GetRoleMenuIdsReply, error)

func (*Service) GetRoleTree

func (s *Service) GetRoleTree(ctx context.Context, in *emptypb.Empty) (*v1.GetRoleTreeReply, error)

func (*Service) GetSetting

func (s *Service) GetSetting(ctx context.Context, in *emptypb.Empty) (*v1.GetSettingReply, error)

func (*Service) GetUser

func (s *Service) GetUser(ctx context.Context, in *v1.GetUserRequest) (*v1.GetUserReply, error)

func (*Service) GetUserJob

func (s *Service) GetUserJob(ctx context.Context, in *v1.GetUserJobRequest) (*v1.GetUserJobReply, error)

func (*Service) GetUserRoles

func (s *Service) GetUserRoles(ctx context.Context, in *v1.GetUserRolesRequest) (*v1.GetUserRolesReply, error)

func (*Service) Login

func (s *Service) Login(ctx context.Context, in *v1.LoginRequest) (*v1.LoginReply, error)

func (*Service) LoginCaptcha

func (s *Service) LoginCaptcha(ctx context.Context, in *emptypb.Empty) (*v1.LoginCaptchaReply, error)

func (*Service) Logout

func (s *Service) Logout(ctx context.Context, in *emptypb.Empty) (*emptypb.Empty, error)

func (*Service) OfflineUser

func (s *Service) OfflineUser(ctx context.Context, in *v1.OfflineUserRequest) (*emptypb.Empty, error)

func (*Service) PageDict

func (s *Service) PageDict(ctx context.Context, in *v1.PageDictRequest) (*v1.PageDictReply, error)

func (*Service) PageDictValue

func (s *Service) PageDictValue(ctx context.Context, in *v1.PageDictValueRequest) (*v1.PageDictValueReply, error)

func (*Service) PageJob

func (s *Service) PageJob(ctx context.Context, in *v1.PageJobRequest) (*v1.PageJobReply, error)

func (*Service) PageUser

func (s *Service) PageUser(ctx context.Context, in *v1.PageUserRequest) (*v1.PageUserReply, error)

func (*Service) ParseToken

func (s *Service) ParseToken(ctx context.Context, in *emptypb.Empty) (*v1.ParseTokenReply, error)

func (*Service) RefreshToken

func (s *Service) RefreshToken(ctx context.Context, in *emptypb.Empty) (*v1.RefreshTokenReply, error)

func (*Service) ResetUserPassword

func (s *Service) ResetUserPassword(ctx context.Context, in *v1.ResetUserPasswordRequest) (*emptypb.Empty, error)

func (*Service) SwitchCurrentUserRole

func (*Service) UpdateDepartment

func (s *Service) UpdateDepartment(ctx context.Context, in *v1.UpdateDepartmentRequest) (*emptypb.Empty, error)

func (*Service) UpdateDict

func (s *Service) UpdateDict(ctx context.Context, in *v1.UpdateDictRequest) (*emptypb.Empty, error)

func (*Service) UpdateDictValue

func (s *Service) UpdateDictValue(ctx context.Context, in *v1.UpdateDictValueRequest) (*emptypb.Empty, error)

func (*Service) UpdateJob

func (s *Service) UpdateJob(ctx context.Context, in *v1.UpdateJobRequest) (*emptypb.Empty, error)

func (*Service) UpdateMenu

func (s *Service) UpdateMenu(ctx context.Context, in *v1.UpdateMenuRequest) (*emptypb.Empty, error)

func (*Service) UpdateRole

func (s *Service) UpdateRole(ctx context.Context, in *v1.UpdateRoleRequest) (*emptypb.Empty, error)

func (*Service) UpdateRoleMenus

func (s *Service) UpdateRoleMenus(ctx context.Context, in *v1.UpdateRoleMenuRequest) (*emptypb.Empty, error)

func (*Service) UpdateUser

func (s *Service) UpdateUser(ctx context.Context, in *v1.UpdateUserRequest) (*emptypb.Empty, error)

func (*Service) UpdateUserBasic

func (s *Service) UpdateUserBasic(ctx context.Context, in *v1.UpdateUserBasicRequest) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL