service

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *conf.Config, hs *http.Server, gs *grpc.Server)

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

CreateDepartment 创建部门信息

func (*DepartmentService) DeleteDepartment

DeleteDepartment 删除部门信息

func (*DepartmentService) GetDepartment added in v1.0.15

GetDepartment 获取指定的部门信息

func (*DepartmentService) ListDepartment added in v1.0.15

ListDepartment 获取部门信息列表

func (*DepartmentService) UpdateDepartment

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

CreateDictionary 创建字典目录

func (*DictionaryService) CreateDictionaryValue added in v1.0.15

CreateDictionaryValue 创建字典值目录

func (*DictionaryService) DeleteDictionary

DeleteDictionary 删除字典目录

func (*DictionaryService) DeleteDictionaryValue

DeleteDictionaryValue 删除字典值目录

func (*DictionaryService) GetDictionary added in v1.0.15

GetDictionary 获取指定的字典目录

func (*DictionaryService) GetDictionaryValues added in v1.0.16

func (*DictionaryService) ListDictionary added in v1.0.15

ListDictionary 获取字典目录列表

func (*DictionaryService) ListDictionaryValue added in v1.0.15

ListDictionaryValue 获取字典值目录列表

func (*DictionaryService) UpdateDictionary

UpdateDictionary 更新字典目录

func (*DictionaryService) UpdateDictionaryValue

UpdateDictionaryValue 更新字典值目录

func (*DictionaryService) UpdateDictionaryValueStatus added in v1.0.15

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 struct {
	pb.UnimplementedMenuServer
	// contains filtered or unexported fields
}

func NewMenuService

func NewMenuService(conf *conf.Config) *MenuService

CreateMenu 创建菜单信息

DeleteMenu 删除菜单信息

ListMenu 获取菜单信息列表

ListMenuByCurRole 获取当前角色的菜单信息列表

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

GetResourceScopes 获取指定用户的资源权限

func (ResourceService) UpdateResourceScopes added in v1.0.15

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

CreateRole 创建角色信息

func (*RoleService) DeleteRole

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

GetRoleMenuIds 获取指定角色的菜单id列表

func (*RoleService) ListRole added in v1.0.15

ListRole 获取角色信息列表

func (*RoleService) UpdateRole

UpdateRole 更新角色信息

func (*RoleService) UpdateRoleMenu added in v1.0.15

UpdateRoleMenu 更新角色菜单

func (*RoleService) UpdateRoleStatus added in v1.0.15

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

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

CreateUser 创建用户信息 fixed code

func (*UserService) DeleteUser

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

ListUser 获取用户信息列表

func (*UserService) ResetUserPassword

func (*UserService) SendCurrentUserCaptcha added in v1.0.15

func (*UserService) UpdateCurrentUser

func (*UserService) UpdateCurrentUserPassword added in v1.0.15

func (*UserService) UpdateCurrentUserRole added in v1.0.15

func (*UserService) UpdateCurrentUserSetting added in v1.0.15

func (*UserService) UpdateUser

UpdateUser 更新用户信息 fixed code

func (*UserService) UpdateUserStatus added in v1.0.15

UpdateUserStatus 更新用户信息状态

func (*UserService) UserLogin

func (*UserService) UserLogout

func (s *UserService) UserLogout(c context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*UserService) UserRefreshToken

func (s *UserService) UserRefreshToken(c context.Context, _ *emptypb.Empty) (*pb.UserRefreshTokenReply, error)

Jump to

Keyboard shortcuts

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