service

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 33 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

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 (DepartmentService) AddDepartmentObject

func (DepartmentService) AllDepartmentObjectValue

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 (*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 (*DictionaryService) PageDictionary

func (*DictionaryService) PageDictionaryValue

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

func NewMenuService

func NewMenuService(conf *config.Config) *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

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 (r RoleService) GetRoleTree(ctx context.Context, _ *emptypb.Empty) (*v1.Role, error)

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 (u UserService) CurrentUser(ctx context.Context, _ *emptypb.Empty) (*v1.User, error)

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 (u UserService) UserLogout(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (UserService) UserRefreshToken

func (u UserService) UserRefreshToken(ctx context.Context, _ *emptypb.Empty) (*v1.UserRefreshTokenReply, error)

Jump to

Keyboard shortcuts

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