service

package
v0.0.0-...-adb5103 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

func Build

func Build(menus []*pb.MenuTree) []*pb.MenuTreeAuth

Build 构建前端路由

func ConvertApiBaseFromList

func ConvertApiBaseFromList(list [][]string) []*pb.ApiBase

func ConvertApiDataFromApiList

func ConvertApiDataFromApiList(list []*model.SysAPI) []*pb.ApiData

Types

type ApiService

type ApiService struct {
	pb.UnimplementedApiServer
	// contains filtered or unexported fields
}

func NewApiService

func NewApiService(ac *biz.SysApiUseCase, logger log.Logger, casbinUseCase *biz.CasbinRuleUseCase) *ApiService

func (*ApiService) AllApi

func (a *ApiService) AllApi(ctx context.Context, _ *pb.AllApiRequest) (*pb.AllApiReply, error)

func (*ApiService) CreateApi

func (a *ApiService) CreateApi(ctx context.Context, req *pb.CreateApiRequest) (*pb.CreateApiReply, error)

func (*ApiService) DeleteApi

func (a *ApiService) DeleteApi(ctx context.Context, req *pb.DeleteApiRequest) (*pb.DeleteApiReply, error)

func (*ApiService) GetApi

func (a *ApiService) GetApi(ctx context.Context, req *pb.GetApiRequest) (*pb.GetApiReply, error)

func (*ApiService) GetPolicyPathByRoleKey

func (*ApiService) GetSysApi

func (a *ApiService) GetSysApi(path string) *pb.ApiData

func (*ApiService) ListApi

func (a *ApiService) ListApi(ctx context.Context, req *pb.ListApiRequest) (*pb.ListApiReply, error)

func (*ApiService) ReloadSysApi

func (a *ApiService) ReloadSysApi()

func (*ApiService) UpdateApi

func (a *ApiService) UpdateApi(ctx context.Context, req *pb.UpdateApiRequest) (*pb.UpdateApiReply, error)

type DeptService

type DeptService struct {
	pb.UnimplementedDeptServer
	// contains filtered or unexported fields
}

func NewDeptService

func NewDeptService(bc *biz.SysDeptUseCase, logger log.Logger) *DeptService

func (*DeptService) CreateDept

func (s *DeptService) CreateDept(ctx context.Context, req *pb.CreateDeptRequest) (*pb.CreateDeptReply, error)

func (*DeptService) DeleteDept

func (s *DeptService) DeleteDept(ctx context.Context, req *pb.DeleteDeptRequest) (*pb.DeleteDeptReply, error)

func (*DeptService) GetDeptTree

func (s *DeptService) GetDeptTree(ctx context.Context, req *pb.GetDeptTreeRequest) (*pb.GetDeptTreeReply, error)

func (*DeptService) ListDept

func (s *DeptService) ListDept(ctx context.Context, req *pb.ListDeptRequest) (*pb.ListDeptReply, error)

func (*DeptService) RoleDeptTreeSelect

func (*DeptService) UpdateDept

func (s *DeptService) UpdateDept(ctx context.Context, req *pb.UpdateDeptRequest) (*pb.UpdateDeptReply, error)

type DictDataService

type DictDataService struct {
	pb.UnimplementedDictDataServer
	// contains filtered or unexported fields
}

func NewDictDataService

func NewDictDataService(pc *biz.SysDictDatumUseCase, logger log.Logger) *DictDataService

func (*DictDataService) CreateDictData

func (*DictDataService) DeleteDictData

func (*DictDataService) ListDictData

func (*DictDataService) UpdateDictData

type DictTypeService

type DictTypeService struct {
	pb.UnimplementedDictTypeServer
	// contains filtered or unexported fields
}

func NewDictTypeService

func NewDictTypeService(pc *biz.SysDictTypeUseCase, logger log.Logger) *DictTypeService

func (*DictTypeService) CreateDictType

func (*DictTypeService) DeleteDictType

func (*DictTypeService) ListDictType

func (*DictTypeService) UpdateDictType

type LogService

type LogService struct {
	// contains filtered or unexported fields
}

func NewLogService

func NewLogService(rc *biz.SysLogCase) *LogService

func (*LogService) Create

func (r *LogService) Create(ctx context.Context, req *model.SysLog) error
type MenusService struct {
	pb.UnimplementedMenusServer
	// contains filtered or unexported fields
}

func NewMenusService

func NewMenusService(menuUseCase *biz.SysMenuUseCase, roleMenuUseCase *biz.SysRoleMenuUseCase, logger log.Logger) *MenusService
func (s *MenusService) CreateMenus(ctx context.Context, req *pb.CreateMenusRequest) (*pb.CreateMenusReply, error)
func (s *MenusService) DeleteMenus(ctx context.Context, req *pb.DeleteMenusRequest) (*pb.DeleteMenusReply, error)
func (s *MenusService) GetMenus(ctx context.Context, req *pb.GetMenusRequest) (*pb.GetMenusReply, error)
func (s *MenusService) ListMenus(ctx context.Context, req *pb.ListMenusRequest) (*pb.ListMenusReply, error)
func (s *MenusService) UpdateMenus(ctx context.Context, req *pb.UpdateMenusRequest) (*pb.UpdateMenusReply, error)

type PostService

type PostService struct {
	pb.UnimplementedSysPostServer
	// contains filtered or unexported fields
}

func NewPostService

func NewPostService(pc *biz.SysPostUseCase, logger log.Logger) *PostService

func (*PostService) CreatePost

func (s *PostService) CreatePost(ctx context.Context, req *pb.CreatePostRequest) (*pb.CreatePostReply, error)

func (*PostService) DeletePost

func (s *PostService) DeletePost(ctx context.Context, req *pb.DeletePostRequest) (*pb.DeletePostReply, error)

func (*PostService) ListPost

func (s *PostService) ListPost(ctx context.Context, req *pb.ListPostRequest) (*pb.ListPostReply, error)

func (*PostService) UpdatePost

func (s *PostService) UpdatePost(ctx context.Context, req *pb.UpdatePostRequest) (*pb.UpdatePostReply, error)

type RolesService

type RolesService struct {
	pb.UnimplementedRolesServer
	// contains filtered or unexported fields
}

func NewRolesService

func NewRolesService(rc *biz.SysRoleUseCase, logger log.Logger, casbin *biz.CasbinRuleUseCase) *RolesService

func (*RolesService) ChangeRoleStatus

func (*RolesService) CreateRoles

func (r *RolesService) CreateRoles(ctx context.Context, req *pb.CreateRolesRequest) (*pb.CreateRolesReply, error)

func (*RolesService) DataScope

func (r *RolesService) DataScope(ctx context.Context, req *pb.DataScopeRequest) (*pb.DataScopeReply, error)

func (*RolesService) DeleteRoles

func (r *RolesService) DeleteRoles(ctx context.Context, req *pb.DeleteRolesRequest) (*pb.DeleteRolesReply, error)

func (*RolesService) GetRoles

func (r *RolesService) GetRoles(ctx context.Context, req *pb.GetRolesRequest) (*pb.GetRolesReply, error)

func (*RolesService) ListRoles

func (r *RolesService) ListRoles(ctx context.Context, req *pb.ListRolesRequest) (*pb.ListRolesReply, error)

func (*RolesService) Roles

func (*RolesService) UpdateRoles

func (r *RolesService) UpdateRoles(ctx context.Context, req *pb.UpdateRolesRequest) (*pb.UpdateRolesReply, error)

type SysuserService

type SysuserService struct {
	pb.UnimplementedSysuserServer
	// contains filtered or unexported fields
}

func NewSysuserService

func NewSysuserService(serverConf *conf.Server, userCase *biz.SysUserUseCase, authCase *biz.AuthUseCase, roleCase *biz.SysRoleUseCase, roleMenuCase *biz.SysRoleMenuUseCase, postCase *biz.SysPostUseCase, deptCase *biz.SysDeptUseCase, logger log.Logger) *SysuserService

func (*SysuserService) Auth

func (s *SysuserService) Auth(ctx context.Context, req *pb.AuthRequest) (*pb.AuthReply, error)

Auth 用户权限信息

func (*SysuserService) ChangeStatus

func (*SysuserService) CreateSysuser

func (*SysuserService) DeleteSysuser

func (*SysuserService) GetCaptcha

func (*SysuserService) GetPostInit

GetPostInit 获取初始化角色岗位信息

func (*SysuserService) GetSysuser

func (*SysuserService) GetUserGoogleSecret

func (*SysuserService) GetUserRolePost

GetUserRolePost 获取用户角色岗位信息

func (*SysuserService) ListSysuser

func (*SysuserService) Login

func (s *SysuserService) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginReply, error)

func (*SysuserService) Logout

func (s *SysuserService) Logout(ctx context.Context, req *pb.LogoutRequest) (*pb.LogoutReply, error)

func (*SysuserService) UpdateAvatar

func (s *SysuserService) UpdateAvatar(ctx context.Context) error

func (*SysuserService) UpdatePassword

func (*SysuserService) UpdateSysuser

func (*SysuserService) UploadFile

func (s *SysuserService) UploadFile(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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