Documentation ¶
Index ¶
- func New(c *conf.Config, hs *http.Server, gs *grpc.Server)
- type AuthService
- type DepartmentService
- func (s *DepartmentService) CreateDepartment(c context.Context, req *pb.CreateDepartmentRequest) (*pb.CreateDepartmentReply, error)
- func (s *DepartmentService) DeleteDepartment(c context.Context, req *pb.DeleteDepartmentRequest) (*pb.DeleteDepartmentReply, error)
- func (s *DepartmentService) GetDepartment(c context.Context, req *pb.GetDepartmentRequest) (*pb.GetDepartmentReply, error)
- func (s *DepartmentService) ListDepartment(c context.Context, req *pb.ListDepartmentRequest) (*pb.ListDepartmentReply, error)
- func (s *DepartmentService) UpdateDepartment(c context.Context, req *pb.UpdateDepartmentRequest) (*pb.UpdateDepartmentReply, error)
- type DictionaryService
- func (s *DictionaryService) CreateDictionary(c context.Context, req *pb.CreateDictionaryRequest) (*pb.CreateDictionaryReply, error)
- func (s *DictionaryService) CreateDictionaryValue(c context.Context, req *pb.CreateDictionaryValueRequest) (*pb.CreateDictionaryValueReply, error)
- func (s *DictionaryService) DeleteDictionary(c context.Context, req *pb.DeleteDictionaryRequest) (*pb.DeleteDictionaryReply, error)
- func (s *DictionaryService) DeleteDictionaryValue(c context.Context, req *pb.DeleteDictionaryValueRequest) (*pb.DeleteDictionaryValueReply, error)
- func (s *DictionaryService) GetDictionary(c context.Context, req *pb.GetDictionaryRequest) (*pb.GetDictionaryReply, error)
- func (s *DictionaryService) GetDictionaryValues(c context.Context, req *pb.GetDictionaryValuesRequest) (*pb.GetDictionaryValuesReply, error)
- func (s *DictionaryService) ListDictionary(c context.Context, req *pb.ListDictionaryRequest) (*pb.ListDictionaryReply, error)
- func (s *DictionaryService) ListDictionaryValue(c context.Context, req *pb.ListDictionaryValueRequest) (*pb.ListDictionaryValueReply, error)
- func (s *DictionaryService) UpdateDictionary(c context.Context, req *pb.UpdateDictionaryRequest) (*pb.UpdateDictionaryReply, error)
- func (s *DictionaryService) UpdateDictionaryValue(c context.Context, req *pb.UpdateDictionaryValueRequest) (*pb.UpdateDictionaryValueReply, error)
- func (s *DictionaryService) UpdateDictionaryValueStatus(c context.Context, req *pb.UpdateDictionaryValueStatusRequest) (*pb.UpdateDictionaryValueStatusReply, error)
- type JobService
- func (s *JobService) CreateJob(c context.Context, req *pb.CreateJobRequest) (*pb.CreateJobReply, error)
- func (s *JobService) DeleteJob(c context.Context, req *pb.DeleteJobRequest) (*pb.DeleteJobReply, error)
- func (s *JobService) GetJob(c context.Context, req *pb.GetJobRequest) (*pb.GetJobReply, error)
- func (s *JobService) ListJob(c context.Context, req *pb.ListJobRequest) (*pb.ListJobReply, error)
- func (s *JobService) UpdateJob(c context.Context, req *pb.UpdateJobRequest) (*pb.UpdateJobReply, error)
- type MenuService
- func (s *MenuService) CreateMenu(c context.Context, req *pb.CreateMenuRequest) (*pb.CreateMenuReply, error)
- func (s *MenuService) DeleteMenu(c context.Context, req *pb.DeleteMenuRequest) (*pb.DeleteMenuReply, error)
- func (s *MenuService) ListMenu(c context.Context, req *pb.ListMenuRequest) (*pb.ListMenuReply, error)
- func (s *MenuService) ListMenuByCurRole(c context.Context, _ *pb.ListMenuByCurRoleRequest) (*pb.ListMenuByCurRoleReply, error)
- func (s *MenuService) UpdateMenu(c context.Context, req *pb.UpdateMenuRequest) (*pb.UpdateMenuReply, error)
- type ResourceService
- type RoleService
- func (s *RoleService) CreateRole(c context.Context, req *pb.CreateRoleRequest) (*pb.CreateRoleReply, error)
- func (s *RoleService) DeleteRole(c context.Context, req *pb.DeleteRoleRequest) (*pb.DeleteRoleReply, error)
- func (s *RoleService) GetRole(c context.Context, req *pb.GetRoleRequest) (*pb.GetRoleReply, error)
- func (s *RoleService) GetRoleMenuIds(c context.Context, req *pb.GetRoleMenuIdsRequest) (*pb.GetRoleMenuIdsReply, error)
- func (s *RoleService) ListRole(c context.Context, req *pb.ListRoleRequest) (*pb.ListRoleReply, error)
- func (s *RoleService) UpdateRole(c context.Context, req *pb.UpdateRoleRequest) (*pb.UpdateRoleReply, error)
- func (s *RoleService) UpdateRoleMenu(c context.Context, req *pb.UpdateRoleMenuRequest) (*pb.UpdateRoleMenuReply, error)
- func (s *RoleService) UpdateRoleStatus(c context.Context, req *pb.UpdateRoleStatusRequest) (*pb.UpdateRoleStatusReply, error)
- type SystemService
- type UserService
- func (s *UserService) CreateUser(c context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)
- func (s *UserService) DeleteUser(c context.Context, req *pb.DeleteUserRequest) (*pb.DeleteUserReply, error)
- func (s *UserService) GetCurrentUser(c context.Context, _ *emptypb.Empty) (*pb.GetUserReply, error)
- func (s *UserService) GetUser(c context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error)
- func (s *UserService) GetUserLoginCaptcha(c context.Context, _ *emptypb.Empty) (*pb.GetUserLoginCaptchaReply, error)
- func (s *UserService) ListUser(c context.Context, req *pb.ListUserRequest) (*pb.ListUserReply, error)
- func (s *UserService) ResetUserPassword(c context.Context, req *pb.ResetUserPasswordRequest) (*pb.ResetUserPasswordReply, error)
- func (s *UserService) SendCurrentUserCaptcha(c context.Context, req *pb.SendCurrentUserCaptchaRequest) (*pb.SendCurrentUserCaptchaReply, error)
- func (s *UserService) UpdateCurrentUser(c context.Context, req *pb.UpdateCurrentUserRequest) (*pb.UpdateCurrentUserReply, error)
- func (s *UserService) UpdateCurrentUserPassword(c context.Context, req *pb.UpdateCurrentUserPasswordRequest) (*pb.UpdateCurrentUserPasswordReply, error)
- func (s *UserService) UpdateCurrentUserRole(c context.Context, req *pb.UpdateCurrentUserRoleRequest) (*pb.UpdateCurrentUserRoleReply, error)
- func (s *UserService) UpdateCurrentUserSetting(c context.Context, req *pb.UpdateCurrentUserSettingRequest) (*pb.UpdateCurrentUserSettingReply, error)
- func (s *UserService) UpdateUser(c context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserReply, error)
- func (s *UserService) UpdateUserStatus(c context.Context, req *pb.UpdateUserStatusRequest) (*pb.UpdateUserStatusReply, error)
- func (s *UserService) UserLogin(c context.Context, req *pb.UserLoginRequest) (*pb.UserLoginReply, error)
- func (s *UserService) UserLogout(c context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)
- func (s *UserService) UserRefreshToken(c context.Context, _ *emptypb.Empty) (*pb.UserRefreshTokenReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthService ¶
type AuthService struct { pb.UnimplementedAuthServer // contains filtered or unexported fields }
func NewAuthService ¶
func NewAuthService(conf *conf.Config) *AuthService
func (*AuthService) Auth ¶
func (s *AuthService) Auth(c context.Context, req *pb.AuthRequest) (*pb.AuthReply, error)
Auth 接口鉴权
type DepartmentService ¶
type DepartmentService struct { pb.UnimplementedDepartmentServer // contains filtered or unexported fields }
func NewDepartmentService ¶
func NewDepartmentService(conf *conf.Config) *DepartmentService
func (*DepartmentService) CreateDepartment ¶ added in v1.0.15
func (s *DepartmentService) CreateDepartment(c context.Context, req *pb.CreateDepartmentRequest) (*pb.CreateDepartmentReply, error)
CreateDepartment 创建部门信息
func (*DepartmentService) DeleteDepartment ¶
func (s *DepartmentService) DeleteDepartment(c context.Context, req *pb.DeleteDepartmentRequest) (*pb.DeleteDepartmentReply, error)
DeleteDepartment 删除部门信息
func (*DepartmentService) GetDepartment ¶ added in v1.0.15
func (s *DepartmentService) GetDepartment(c context.Context, req *pb.GetDepartmentRequest) (*pb.GetDepartmentReply, error)
GetDepartment 获取指定的部门信息
func (*DepartmentService) ListDepartment ¶ added in v1.0.15
func (s *DepartmentService) ListDepartment(c context.Context, req *pb.ListDepartmentRequest) (*pb.ListDepartmentReply, error)
ListDepartment 获取部门信息列表
func (*DepartmentService) UpdateDepartment ¶
func (s *DepartmentService) UpdateDepartment(c context.Context, req *pb.UpdateDepartmentRequest) (*pb.UpdateDepartmentReply, error)
UpdateDepartment 更新部门信息
type DictionaryService ¶
type DictionaryService struct { pb.UnimplementedDictionaryServer // contains filtered or unexported fields }
func NewDictionaryService ¶
func NewDictionaryService(conf *conf.Config) *DictionaryService
func (*DictionaryService) CreateDictionary ¶ added in v1.0.15
func (s *DictionaryService) CreateDictionary(c context.Context, req *pb.CreateDictionaryRequest) (*pb.CreateDictionaryReply, error)
CreateDictionary 创建字典目录
func (*DictionaryService) CreateDictionaryValue ¶ added in v1.0.15
func (s *DictionaryService) CreateDictionaryValue(c context.Context, req *pb.CreateDictionaryValueRequest) (*pb.CreateDictionaryValueReply, error)
CreateDictionaryValue 创建字典值目录
func (*DictionaryService) DeleteDictionary ¶
func (s *DictionaryService) DeleteDictionary(c context.Context, req *pb.DeleteDictionaryRequest) (*pb.DeleteDictionaryReply, error)
DeleteDictionary 删除字典目录
func (*DictionaryService) DeleteDictionaryValue ¶
func (s *DictionaryService) DeleteDictionaryValue(c context.Context, req *pb.DeleteDictionaryValueRequest) (*pb.DeleteDictionaryValueReply, error)
DeleteDictionaryValue 删除字典值目录
func (*DictionaryService) GetDictionary ¶ added in v1.0.15
func (s *DictionaryService) GetDictionary(c context.Context, req *pb.GetDictionaryRequest) (*pb.GetDictionaryReply, error)
GetDictionary 获取指定的字典目录
func (*DictionaryService) GetDictionaryValues ¶ added in v1.0.16
func (s *DictionaryService) GetDictionaryValues(c context.Context, req *pb.GetDictionaryValuesRequest) (*pb.GetDictionaryValuesReply, error)
func (*DictionaryService) ListDictionary ¶ added in v1.0.15
func (s *DictionaryService) ListDictionary(c context.Context, req *pb.ListDictionaryRequest) (*pb.ListDictionaryReply, error)
ListDictionary 获取字典目录列表
func (*DictionaryService) ListDictionaryValue ¶ added in v1.0.15
func (s *DictionaryService) ListDictionaryValue(c context.Context, req *pb.ListDictionaryValueRequest) (*pb.ListDictionaryValueReply, error)
ListDictionaryValue 获取字典值目录列表
func (*DictionaryService) UpdateDictionary ¶
func (s *DictionaryService) UpdateDictionary(c context.Context, req *pb.UpdateDictionaryRequest) (*pb.UpdateDictionaryReply, error)
UpdateDictionary 更新字典目录
func (*DictionaryService) UpdateDictionaryValue ¶
func (s *DictionaryService) UpdateDictionaryValue(c context.Context, req *pb.UpdateDictionaryValueRequest) (*pb.UpdateDictionaryValueReply, error)
UpdateDictionaryValue 更新字典值目录
func (*DictionaryService) UpdateDictionaryValueStatus ¶ added in v1.0.15
func (s *DictionaryService) UpdateDictionaryValueStatus(c context.Context, req *pb.UpdateDictionaryValueStatusRequest) (*pb.UpdateDictionaryValueStatusReply, error)
UpdateDictionaryValueStatus 更新字典值目录状态
type JobService ¶
type JobService struct { pb.UnimplementedJobServer // contains filtered or unexported fields }
func NewJobService ¶
func NewJobService(conf *conf.Config) *JobService
func (*JobService) CreateJob ¶ added in v1.0.15
func (s *JobService) CreateJob(c context.Context, req *pb.CreateJobRequest) (*pb.CreateJobReply, error)
CreateJob 创建职位信息
func (*JobService) DeleteJob ¶
func (s *JobService) DeleteJob(c context.Context, req *pb.DeleteJobRequest) (*pb.DeleteJobReply, error)
DeleteJob 删除职位信息
func (*JobService) GetJob ¶
func (s *JobService) GetJob(c context.Context, req *pb.GetJobRequest) (*pb.GetJobReply, error)
GetJob 获取指定的职位信息
func (*JobService) ListJob ¶ added in v1.0.15
func (s *JobService) ListJob(c context.Context, req *pb.ListJobRequest) (*pb.ListJobReply, error)
ListJob 获取职位信息列表
func (*JobService) UpdateJob ¶
func (s *JobService) UpdateJob(c context.Context, req *pb.UpdateJobRequest) (*pb.UpdateJobReply, error)
UpdateJob 更新职位信息
type MenuService ¶
type MenuService struct { pb.UnimplementedMenuServer // contains filtered or unexported fields }
func NewMenuService ¶
func NewMenuService(conf *conf.Config) *MenuService
func (*MenuService) CreateMenu ¶ added in v1.0.15
func (s *MenuService) CreateMenu(c context.Context, req *pb.CreateMenuRequest) (*pb.CreateMenuReply, error)
CreateMenu 创建菜单信息
func (*MenuService) DeleteMenu ¶
func (s *MenuService) DeleteMenu(c context.Context, req *pb.DeleteMenuRequest) (*pb.DeleteMenuReply, error)
DeleteMenu 删除菜单信息
func (*MenuService) ListMenu ¶ added in v1.0.15
func (s *MenuService) ListMenu(c context.Context, req *pb.ListMenuRequest) (*pb.ListMenuReply, error)
ListMenu 获取菜单信息列表
func (*MenuService) ListMenuByCurRole ¶ added in v1.0.15
func (s *MenuService) ListMenuByCurRole(c context.Context, _ *pb.ListMenuByCurRoleRequest) (*pb.ListMenuByCurRoleReply, error)
ListMenuByCurRole 获取当前角色的菜单信息列表
func (*MenuService) UpdateMenu ¶
func (s *MenuService) UpdateMenu(c context.Context, req *pb.UpdateMenuRequest) (*pb.UpdateMenuReply, error)
UpdateMenu 更新菜单信息
type ResourceService ¶ added in v1.0.15
type ResourceService struct { pb.UnimplementedResourceServer // contains filtered or unexported fields }
func NewResourceService ¶ added in v1.0.15
func NewResourceService(conf *conf.Config) *ResourceService
func (ResourceService) GetResourceScopes ¶ added in v1.0.15
func (r ResourceService) GetResourceScopes(c context.Context, req *pb.GetResourceScopesRequest) (*pb.GetResourceScopesReply, error)
GetResourceScopes 获取指定用户的资源权限
func (ResourceService) UpdateResourceScopes ¶ added in v1.0.15
func (r ResourceService) UpdateResourceScopes(c context.Context, req *pb.UpdateResourceScopesRequest) (*pb.UpdateResourceScopesReply, error)
UpdateResourceScopes 更新用户的资源权限
type RoleService ¶
type RoleService struct { pb.UnimplementedRoleServer // contains filtered or unexported fields }
func NewRoleService ¶
func NewRoleService(conf *conf.Config) *RoleService
func (*RoleService) CreateRole ¶ added in v1.0.15
func (s *RoleService) CreateRole(c context.Context, req *pb.CreateRoleRequest) (*pb.CreateRoleReply, error)
CreateRole 创建角色信息
func (*RoleService) DeleteRole ¶
func (s *RoleService) DeleteRole(c context.Context, req *pb.DeleteRoleRequest) (*pb.DeleteRoleReply, error)
DeleteRole 删除角色信息
func (*RoleService) GetRole ¶ added in v1.0.15
func (s *RoleService) GetRole(c context.Context, req *pb.GetRoleRequest) (*pb.GetRoleReply, error)
GetRole 获取指定的角色信息
func (*RoleService) GetRoleMenuIds ¶
func (s *RoleService) GetRoleMenuIds(c context.Context, req *pb.GetRoleMenuIdsRequest) (*pb.GetRoleMenuIdsReply, error)
GetRoleMenuIds 获取指定角色的菜单id列表
func (*RoleService) ListRole ¶ added in v1.0.15
func (s *RoleService) ListRole(c context.Context, req *pb.ListRoleRequest) (*pb.ListRoleReply, error)
ListRole 获取角色信息列表
func (*RoleService) UpdateRole ¶
func (s *RoleService) UpdateRole(c context.Context, req *pb.UpdateRoleRequest) (*pb.UpdateRoleReply, error)
UpdateRole 更新角色信息
func (*RoleService) UpdateRoleMenu ¶ added in v1.0.15
func (s *RoleService) UpdateRoleMenu(c context.Context, req *pb.UpdateRoleMenuRequest) (*pb.UpdateRoleMenuReply, error)
UpdateRoleMenu 更新角色菜单
func (*RoleService) UpdateRoleStatus ¶ added in v1.0.15
func (s *RoleService) UpdateRoleStatus(c context.Context, req *pb.UpdateRoleStatusRequest) (*pb.UpdateRoleStatusReply, error)
UpdateRoleStatus 更新角色信息状态
type SystemService ¶ added in v1.0.15
type SystemService struct { pb.UnimplementedSystemServer // contains filtered or unexported fields }
func NewSystemService ¶ added in v1.0.15
func NewSystemService(conf *conf.Config) *SystemService
func (*SystemService) GetSystemSetting ¶ added in v1.0.15
func (s *SystemService) GetSystemSetting(c context.Context, _ *pb.GetSystemSettingRequest) (*pb.GetSystemSettingReply, error)
GetSystemSetting 获取系统设置
type UserService ¶
type UserService struct { pb.UnimplementedUserServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(conf *conf.Config) *UserService
func (*UserService) CreateUser ¶ added in v1.0.15
func (s *UserService) CreateUser(c context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)
CreateUser 创建用户信息 fixed code
func (*UserService) DeleteUser ¶
func (s *UserService) DeleteUser(c context.Context, req *pb.DeleteUserRequest) (*pb.DeleteUserReply, error)
DeleteUser 删除用户信息
func (*UserService) GetCurrentUser ¶ added in v1.0.15
func (s *UserService) GetCurrentUser(c context.Context, _ *emptypb.Empty) (*pb.GetUserReply, error)
func (*UserService) GetUser ¶ added in v1.0.15
func (s *UserService) GetUser(c context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error)
GetUser 获取指定的用户信息
func (*UserService) GetUserLoginCaptcha ¶ added in v1.0.15
func (s *UserService) GetUserLoginCaptcha(c context.Context, _ *emptypb.Empty) (*pb.GetUserLoginCaptchaReply, error)
func (*UserService) ListUser ¶ added in v1.0.15
func (s *UserService) ListUser(c context.Context, req *pb.ListUserRequest) (*pb.ListUserReply, error)
ListUser 获取用户信息列表
func (*UserService) ResetUserPassword ¶
func (s *UserService) ResetUserPassword(c context.Context, req *pb.ResetUserPasswordRequest) (*pb.ResetUserPasswordReply, error)
func (*UserService) SendCurrentUserCaptcha ¶ added in v1.0.15
func (s *UserService) SendCurrentUserCaptcha(c context.Context, req *pb.SendCurrentUserCaptchaRequest) (*pb.SendCurrentUserCaptchaReply, error)
func (*UserService) UpdateCurrentUser ¶
func (s *UserService) UpdateCurrentUser(c context.Context, req *pb.UpdateCurrentUserRequest) (*pb.UpdateCurrentUserReply, error)
func (*UserService) UpdateCurrentUserPassword ¶ added in v1.0.15
func (s *UserService) UpdateCurrentUserPassword(c context.Context, req *pb.UpdateCurrentUserPasswordRequest) (*pb.UpdateCurrentUserPasswordReply, error)
func (*UserService) UpdateCurrentUserRole ¶ added in v1.0.15
func (s *UserService) UpdateCurrentUserRole(c context.Context, req *pb.UpdateCurrentUserRoleRequest) (*pb.UpdateCurrentUserRoleReply, error)
func (*UserService) UpdateCurrentUserSetting ¶ added in v1.0.15
func (s *UserService) UpdateCurrentUserSetting(c context.Context, req *pb.UpdateCurrentUserSettingRequest) (*pb.UpdateCurrentUserSettingReply, error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(c context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserReply, error)
UpdateUser 更新用户信息 fixed code
func (*UserService) UpdateUserStatus ¶ added in v1.0.15
func (s *UserService) UpdateUserStatus(c context.Context, req *pb.UpdateUserStatusRequest) (*pb.UpdateUserStatusReply, error)
UpdateUserStatus 更新用户信息状态
func (*UserService) UserLogin ¶
func (s *UserService) UserLogin(c context.Context, req *pb.UserLoginRequest) (*pb.UserLoginReply, error)
func (*UserService) UserLogout ¶
func (*UserService) UserRefreshToken ¶
func (s *UserService) UserRefreshToken(c context.Context, _ *emptypb.Empty) (*pb.UserRefreshTokenReply, error)