Documentation ¶
Index ¶
- func New(c *config.Config, hs *http.Server, gs *grpc.Server)
- type AuthService
- type DepartmentService
- func (d DepartmentService) AddDepartment(ctx context.Context, request *v1.AddDepartmentRequest) (*v1.AddDepartmentReply, error)
- func (d DepartmentService) AddDepartmentObject(ctx context.Context, request *v1.AddDepartmentObjectRequest) (*v1.AddDepartmentObjectReply, error)
- func (d DepartmentService) AllDepartmentObjectValue(ctx context.Context, request *v1.AllDepartmentObjectValueRequest) (*v1.AllDepartmentObjectValueReply, error)
- func (d DepartmentService) DeleteDepartment(ctx context.Context, request *v1.DeleteDepartmentRequest) (*emptypb.Empty, error)
- func (d DepartmentService) DeleteDepartmentObject(ctx context.Context, request *v1.DeleteDepartmentObjectRequest) (*emptypb.Empty, error)
- func (d DepartmentService) GetDepartmentTree(ctx context.Context, empty *emptypb.Empty) (*v1.GetDepartmentTreeReply, error)
- func (d DepartmentService) ImportDepartmentObject(ctx context.Context, request *v1.ImportDepartmentObjectRequest) (*emptypb.Empty, error)
- func (d DepartmentService) UpdateDepartment(ctx context.Context, request *v1.UpdateDepartmentRequest) (*emptypb.Empty, error)
- type DictionaryService
- func (s *DictionaryService) AddDictionary(ctx context.Context, request *v1.AddDictionaryRequest) (*v1.AddDictionaryReply, error)
- func (s *DictionaryService) AddDictionaryValue(ctx context.Context, request *v1.AddDictionaryValueRequest) (*v1.AddDictionaryValueReply, error)
- func (s *DictionaryService) DeleteDictionary(ctx context.Context, request *v1.DeleteDictionaryRequest) (*empty.Empty, error)
- func (s *DictionaryService) DeleteDictionaryValue(ctx context.Context, request *v1.DeleteDictionaryValueRequest) (*empty.Empty, error)
- func (s *DictionaryService) GetDictionaryValue(ctx context.Context, request *v1.GetDictionaryValueRequest) (*v1.GetDictionaryValueReply, error)
- func (s *DictionaryService) PageDictionary(ctx context.Context, request *v1.PageDictionaryRequest) (*v1.PageDictionaryReply, error)
- func (s *DictionaryService) PageDictionaryValue(ctx context.Context, request *v1.PageDictionaryValueRequest) (*v1.PageDictionaryValueReply, error)
- func (s *DictionaryService) UpdateDictionary(ctx context.Context, request *v1.UpdateDictionaryRequest) (*empty.Empty, error)
- func (s *DictionaryService) UpdateDictionaryValue(ctx context.Context, request *v1.UpdateDictionaryValueRequest) (*empty.Empty, error)
- type JobService
- func (o JobService) AddJob(ctx context.Context, request *v1.AddJobRequest) (*v1.AddJobReply, error)
- func (o JobService) DeleteJob(ctx context.Context, request *v1.DeleteJobRequest) (*emptypb.Empty, error)
- func (o JobService) GetJob(ctx context.Context, request *v1.GetJobRequest) (*v1.Job, error)
- func (o JobService) PageJob(ctx context.Context, request *v1.PageJobRequest) (*v1.PageJobReply, error)
- func (o JobService) UpdateJob(ctx context.Context, request *v1.UpdateJobRequest) (*emptypb.Empty, error)
- type MenuService
- func (m MenuService) AddMenu(ctx context.Context, request *v1.AddMenuRequest) (*v1.AddMenuReply, error)
- func (m MenuService) DeleteMenu(ctx context.Context, request *v1.DeleteMenuRequest) (*emptypb.Empty, error)
- func (m MenuService) GetMenuTree(ctx context.Context, _ *emptypb.Empty) (*v1.GetMenuTreeReply, error)
- func (m MenuService) GetMenuTreeFromRole(ctx context.Context, _ *emptypb.Empty) (*v1.GetMenuTreeReply, error)
- func (m MenuService) UpdateMenu(ctx context.Context, request *v1.UpdateMenuRequest) (*emptypb.Empty, error)
- type ObjectService
- func (o ObjectService) AddObject(ctx context.Context, request *v1.AddObjectRequest) (*v1.AddObjectReply, error)
- func (o ObjectService) DeleteObject(ctx context.Context, request *v1.DeleteObjectRequest) (*emptypb.Empty, error)
- func (o ObjectService) GetObject(ctx context.Context, request *v1.GetObjectRequest) (*v1.Object, error)
- func (o ObjectService) PageObject(ctx context.Context, request *v1.PageObjectRequest) (*v1.PageObjectReply, error)
- func (o ObjectService) UpdateObject(ctx context.Context, request *v1.UpdateObjectRequest) (*emptypb.Empty, error)
- type RoleService
- func (r RoleService) AddRole(ctx context.Context, request *v1.AddRoleRequest) (*v1.AddRoleReply, error)
- func (r RoleService) DeleteRole(ctx context.Context, request *v1.DeleteRoleRequest) (*emptypb.Empty, error)
- func (r RoleService) GetRoleMenuIds(ctx context.Context, request *v1.GetRoleMenuIdsRequest) (*v1.GetRoleMenuIdsReply, error)
- func (r RoleService) GetRoleTree(ctx context.Context, _ *emptypb.Empty) (*v1.Role, error)
- func (r RoleService) UpdateRole(ctx context.Context, request *v1.UpdateRoleRequest) (*emptypb.Empty, error)
- func (r RoleService) UpdateRoleMenus(ctx context.Context, request *v1.UpdateRoleMenuRequest) (*emptypb.Empty, error)
- type SettingService
- type UserService
- func (u UserService) AddUser(ctx context.Context, request *v1.AddUserRequest) (*v1.AddUserReply, error)
- func (u UserService) ChangeUserPassword(ctx context.Context, request *v1.ChangeUserPasswordRequest) (*emptypb.Empty, error)
- func (u UserService) ChangeUserPasswordCaptcha(ctx context.Context, _ *emptypb.Empty) (*v1.CaptchaReply, error)
- func (u UserService) CurrentUser(ctx context.Context, _ *emptypb.Empty) (*v1.User, error)
- func (u UserService) DeleteUser(ctx context.Context, request *v1.DeleteUserRequest) (*emptypb.Empty, error)
- func (u UserService) DisableUser(ctx context.Context, request *v1.DisableUserRequest) (*emptypb.Empty, error)
- func (u UserService) EnableUser(ctx context.Context, request *v1.EnableUserRequest) (*emptypb.Empty, error)
- func (u UserService) OfflineUser(ctx context.Context, request *v1.OfflineUserRequest) (*emptypb.Empty, error)
- func (u UserService) PageUser(ctx context.Context, request *v1.PageUserRequest) (*v1.PageUserReply, error)
- func (u UserService) ResetUserPassword(ctx context.Context, request *v1.ResetUserPasswordRequest) (*emptypb.Empty, error)
- func (u UserService) SwitchCurrentUserRole(ctx context.Context, request *v1.SwitchCurrentUserRoleRequest) (*v1.SwitchCurrentUserRoleReply, error)
- func (u UserService) UpdateCurrentUser(ctx context.Context, request *v1.UpdateCurrentUserRequest) (*emptypb.Empty, error)
- func (u UserService) UpdateUser(ctx context.Context, request *v1.UpdateUserRequest) (*emptypb.Empty, error)
- func (u UserService) UserLogin(ctx context.Context, request *v1.UserLoginRequest) (*v1.UserLoginReply, error)
- func (u UserService) UserLoginCaptcha(ctx context.Context, _ *emptypb.Empty) (*v1.CaptchaReply, error)
- func (u UserService) UserLogout(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)
- func (u UserService) UserRefreshToken(ctx context.Context, _ *emptypb.Empty) (*v1.UserRefreshTokenReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthService ¶
type AuthService struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewAuthService ¶
func NewAuthService(conf *config.Config) *AuthService
func (AuthService) Auth ¶
func (s AuthService) Auth(ctx context.Context, in *v1.AuthRequest) (*v1.AuthReply, error)
type DepartmentService ¶
type DepartmentService struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewDepartmentService ¶
func NewDepartmentService(conf *config.Config) *DepartmentService
func (DepartmentService) AddDepartment ¶
func (d DepartmentService) AddDepartment(ctx context.Context, request *v1.AddDepartmentRequest) (*v1.AddDepartmentReply, error)
func (DepartmentService) AddDepartmentObject ¶
func (d DepartmentService) AddDepartmentObject(ctx context.Context, request *v1.AddDepartmentObjectRequest) (*v1.AddDepartmentObjectReply, error)
func (DepartmentService) AllDepartmentObjectValue ¶
func (d DepartmentService) AllDepartmentObjectValue(ctx context.Context, request *v1.AllDepartmentObjectValueRequest) (*v1.AllDepartmentObjectValueReply, error)
func (DepartmentService) DeleteDepartment ¶
func (d DepartmentService) DeleteDepartment(ctx context.Context, request *v1.DeleteDepartmentRequest) (*emptypb.Empty, error)
func (DepartmentService) DeleteDepartmentObject ¶
func (d DepartmentService) DeleteDepartmentObject(ctx context.Context, request *v1.DeleteDepartmentObjectRequest) (*emptypb.Empty, error)
func (DepartmentService) GetDepartmentTree ¶
func (d DepartmentService) GetDepartmentTree(ctx context.Context, empty *emptypb.Empty) (*v1.GetDepartmentTreeReply, error)
func (DepartmentService) ImportDepartmentObject ¶
func (d DepartmentService) ImportDepartmentObject(ctx context.Context, request *v1.ImportDepartmentObjectRequest) (*emptypb.Empty, error)
func (DepartmentService) UpdateDepartment ¶
func (d DepartmentService) UpdateDepartment(ctx context.Context, request *v1.UpdateDepartmentRequest) (*emptypb.Empty, error)
type DictionaryService ¶
type DictionaryService struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewDictionaryService ¶
func NewDictionaryService(conf *config.Config) *DictionaryService
func (*DictionaryService) AddDictionary ¶
func (s *DictionaryService) AddDictionary(ctx context.Context, request *v1.AddDictionaryRequest) (*v1.AddDictionaryReply, error)
func (*DictionaryService) AddDictionaryValue ¶
func (s *DictionaryService) AddDictionaryValue(ctx context.Context, request *v1.AddDictionaryValueRequest) (*v1.AddDictionaryValueReply, error)
func (*DictionaryService) DeleteDictionary ¶
func (s *DictionaryService) DeleteDictionary(ctx context.Context, request *v1.DeleteDictionaryRequest) (*empty.Empty, error)
func (*DictionaryService) DeleteDictionaryValue ¶
func (s *DictionaryService) DeleteDictionaryValue(ctx context.Context, request *v1.DeleteDictionaryValueRequest) (*empty.Empty, error)
func (*DictionaryService) GetDictionaryValue ¶
func (s *DictionaryService) GetDictionaryValue(ctx context.Context, request *v1.GetDictionaryValueRequest) (*v1.GetDictionaryValueReply, error)
func (*DictionaryService) PageDictionary ¶
func (s *DictionaryService) PageDictionary(ctx context.Context, request *v1.PageDictionaryRequest) (*v1.PageDictionaryReply, error)
func (*DictionaryService) PageDictionaryValue ¶
func (s *DictionaryService) PageDictionaryValue(ctx context.Context, request *v1.PageDictionaryValueRequest) (*v1.PageDictionaryValueReply, error)
func (*DictionaryService) UpdateDictionary ¶
func (s *DictionaryService) UpdateDictionary(ctx context.Context, request *v1.UpdateDictionaryRequest) (*empty.Empty, error)
func (*DictionaryService) UpdateDictionaryValue ¶
func (s *DictionaryService) UpdateDictionaryValue(ctx context.Context, request *v1.UpdateDictionaryValueRequest) (*empty.Empty, error)
type JobService ¶
type JobService struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewJobService ¶
func NewJobService(conf *config.Config) *JobService
func (JobService) AddJob ¶
func (o JobService) AddJob(ctx context.Context, request *v1.AddJobRequest) (*v1.AddJobReply, error)
func (JobService) DeleteJob ¶
func (o JobService) DeleteJob(ctx context.Context, request *v1.DeleteJobRequest) (*emptypb.Empty, error)
func (JobService) GetJob ¶
func (o JobService) GetJob(ctx context.Context, request *v1.GetJobRequest) (*v1.Job, error)
func (JobService) PageJob ¶
func (o JobService) PageJob(ctx context.Context, request *v1.PageJobRequest) (*v1.PageJobReply, error)
func (JobService) UpdateJob ¶
func (o JobService) UpdateJob(ctx context.Context, request *v1.UpdateJobRequest) (*emptypb.Empty, error)
type MenuService ¶
type MenuService struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewMenuService ¶
func NewMenuService(conf *config.Config) *MenuService
func (MenuService) AddMenu ¶
func (m MenuService) AddMenu(ctx context.Context, request *v1.AddMenuRequest) (*v1.AddMenuReply, error)
func (MenuService) DeleteMenu ¶
func (m MenuService) DeleteMenu(ctx context.Context, request *v1.DeleteMenuRequest) (*emptypb.Empty, error)
func (MenuService) GetMenuTree ¶
func (m MenuService) GetMenuTree(ctx context.Context, _ *emptypb.Empty) (*v1.GetMenuTreeReply, error)
func (MenuService) GetMenuTreeFromRole ¶
func (m MenuService) GetMenuTreeFromRole(ctx context.Context, _ *emptypb.Empty) (*v1.GetMenuTreeReply, error)
func (MenuService) UpdateMenu ¶
func (m MenuService) UpdateMenu(ctx context.Context, request *v1.UpdateMenuRequest) (*emptypb.Empty, error)
type ObjectService ¶
type ObjectService struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewObjectService ¶
func NewObjectService(conf *config.Config) *ObjectService
func (ObjectService) AddObject ¶
func (o ObjectService) AddObject(ctx context.Context, request *v1.AddObjectRequest) (*v1.AddObjectReply, error)
func (ObjectService) DeleteObject ¶
func (o ObjectService) DeleteObject(ctx context.Context, request *v1.DeleteObjectRequest) (*emptypb.Empty, error)
func (ObjectService) GetObject ¶
func (o ObjectService) GetObject(ctx context.Context, request *v1.GetObjectRequest) (*v1.Object, error)
func (ObjectService) PageObject ¶
func (o ObjectService) PageObject(ctx context.Context, request *v1.PageObjectRequest) (*v1.PageObjectReply, error)
func (ObjectService) UpdateObject ¶
func (o ObjectService) UpdateObject(ctx context.Context, request *v1.UpdateObjectRequest) (*emptypb.Empty, error)
type RoleService ¶
type RoleService struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewRoleService ¶
func NewRoleService(conf *config.Config) *RoleService
func (RoleService) AddRole ¶
func (r RoleService) AddRole(ctx context.Context, request *v1.AddRoleRequest) (*v1.AddRoleReply, error)
func (RoleService) DeleteRole ¶
func (r RoleService) DeleteRole(ctx context.Context, request *v1.DeleteRoleRequest) (*emptypb.Empty, error)
func (RoleService) GetRoleMenuIds ¶
func (r RoleService) GetRoleMenuIds(ctx context.Context, request *v1.GetRoleMenuIdsRequest) (*v1.GetRoleMenuIdsReply, error)
func (RoleService) GetRoleTree ¶
func (RoleService) UpdateRole ¶
func (r RoleService) UpdateRole(ctx context.Context, request *v1.UpdateRoleRequest) (*emptypb.Empty, error)
func (RoleService) UpdateRoleMenus ¶
func (r RoleService) UpdateRoleMenus(ctx context.Context, request *v1.UpdateRoleMenuRequest) (*emptypb.Empty, error)
type SettingService ¶
type SettingService struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewSettingService ¶
func NewSettingService(conf *config.Config) *SettingService
func (SettingService) GetSetting ¶
func (s SettingService) GetSetting(ctx context.Context, _ *emptypb.Empty) (*v1.GetSettingReply, error)
type UserService ¶
type UserService struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(conf *config.Config) *UserService
func (UserService) AddUser ¶
func (u UserService) AddUser(ctx context.Context, request *v1.AddUserRequest) (*v1.AddUserReply, error)
func (UserService) ChangeUserPassword ¶
func (u UserService) ChangeUserPassword(ctx context.Context, request *v1.ChangeUserPasswordRequest) (*emptypb.Empty, error)
func (UserService) ChangeUserPasswordCaptcha ¶
func (u UserService) ChangeUserPasswordCaptcha(ctx context.Context, _ *emptypb.Empty) (*v1.CaptchaReply, error)
func (UserService) CurrentUser ¶
func (UserService) DeleteUser ¶
func (u UserService) DeleteUser(ctx context.Context, request *v1.DeleteUserRequest) (*emptypb.Empty, error)
func (UserService) DisableUser ¶
func (u UserService) DisableUser(ctx context.Context, request *v1.DisableUserRequest) (*emptypb.Empty, error)
func (UserService) EnableUser ¶
func (u UserService) EnableUser(ctx context.Context, request *v1.EnableUserRequest) (*emptypb.Empty, error)
func (UserService) OfflineUser ¶
func (u UserService) OfflineUser(ctx context.Context, request *v1.OfflineUserRequest) (*emptypb.Empty, error)
func (UserService) PageUser ¶
func (u UserService) PageUser(ctx context.Context, request *v1.PageUserRequest) (*v1.PageUserReply, error)
func (UserService) ResetUserPassword ¶
func (u UserService) ResetUserPassword(ctx context.Context, request *v1.ResetUserPasswordRequest) (*emptypb.Empty, error)
func (UserService) SwitchCurrentUserRole ¶
func (u UserService) SwitchCurrentUserRole(ctx context.Context, request *v1.SwitchCurrentUserRoleRequest) (*v1.SwitchCurrentUserRoleReply, error)
func (UserService) UpdateCurrentUser ¶
func (u UserService) UpdateCurrentUser(ctx context.Context, request *v1.UpdateCurrentUserRequest) (*emptypb.Empty, error)
func (UserService) UpdateUser ¶
func (u UserService) UpdateUser(ctx context.Context, request *v1.UpdateUserRequest) (*emptypb.Empty, error)
func (UserService) UserLogin ¶
func (u UserService) UserLogin(ctx context.Context, request *v1.UserLoginRequest) (*v1.UserLoginReply, error)
func (UserService) UserLoginCaptcha ¶
func (u UserService) UserLoginCaptcha(ctx context.Context, _ *emptypb.Empty) (*v1.CaptchaReply, error)
func (UserService) UserLogout ¶
func (UserService) UserRefreshToken ¶
func (u UserService) UserRefreshToken(ctx context.Context, _ *emptypb.Empty) (*v1.UserRefreshTokenReply, error)
Click to show internal directories.
Click to hide internal directories.