service

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type AuthorizationService

type AuthorizationService struct {
	v1.UnimplementedAuthorizationServiceServer
	// contains filtered or unexported fields
}

func NewAuthorizationService

func NewAuthorizationService(
	menuUsecase *biz.MenuUsecase,
	casbinUsecase *biz.CasbinUsecase,
	roleUsecase *biz.RoleUsecase,
	apiUsecase *biz.ApiUsecase,
	logger log.Logger,
) *AuthorizationService

func (*AuthorizationService) CheckAuthorization

func (s *AuthorizationService) CheckAuthorization(ctx context.Context, req *v1.CheckAuthorizationReq) (*emptypb.Empty, error)

func (*AuthorizationService) CreateApi

func (s *AuthorizationService) CreateApi(ctx context.Context, req *v1.CreateApiReq) (*v1.Api, error)

func (*AuthorizationService) CreateMenu

func (s *AuthorizationService) CreateMenu(ctx context.Context, req *v1.CreateMenuReq) (*v1.Menu, error)

func (*AuthorizationService) CreateRole

func (s *AuthorizationService) CreateRole(ctx context.Context, req *v1.CreateRoleReq) (*v1.Role, error)

func (*AuthorizationService) DeleteApi

func (s *AuthorizationService) DeleteApi(ctx context.Context, req *v1.DeleteApiReq) (*emptypb.Empty, error)

func (*AuthorizationService) DeleteMenu

func (s *AuthorizationService) DeleteMenu(ctx context.Context, req *v1.IdReq) (*emptypb.Empty, error)

func (*AuthorizationService) DeleteRole

func (s *AuthorizationService) DeleteRole(ctx context.Context, req *v1.DeleteRoleReq) (*emptypb.Empty, error)

func (*AuthorizationService) DeleteRoleForUser

func (s *AuthorizationService) DeleteRoleForUser(ctx context.Context, req *v1.DeleteRoleForUserReq) (*emptypb.Empty, error)

func (*AuthorizationService) DeleteRolesForUser

func (s *AuthorizationService) DeleteRolesForUser(ctx context.Context, req *v1.DeleteRolesForUserReq) (*emptypb.Empty, error)

func (*AuthorizationService) GetApiList

func (*AuthorizationService) GetApiListAll

func (s *AuthorizationService) GetApiListAll(ctx context.Context, req *emptypb.Empty) (*v1.GetApiListAllRes, error)

func (*AuthorizationService) GetMenuAll

func (s *AuthorizationService) GetMenuAll(ctx context.Context, req *emptypb.Empty) (*v1.GetMenuTreeRes, error)

func (*AuthorizationService) GetMenuTree

func (s *AuthorizationService) GetMenuTree(ctx context.Context, req *emptypb.Empty) (*v1.GetMenuTreeRes, error)

func (*AuthorizationService) GetPolicies

func (s *AuthorizationService) GetPolicies(ctx context.Context, req *v1.RoleNameReq) (*v1.GetPoliciesRes, error)

func (*AuthorizationService) GetRoleAll

func (s *AuthorizationService) GetRoleAll(ctx context.Context, req *emptypb.Empty) (*v1.GetRoleAllRes, error)

func (*AuthorizationService) GetRoleMenu

func (s *AuthorizationService) GetRoleMenu(ctx context.Context, req *v1.RoleNameReq) (*v1.GetMenuTreeRes, error)

func (*AuthorizationService) GetRoleMenuBtn

func (*AuthorizationService) GetRoleMenuTree

func (s *AuthorizationService) GetRoleMenuTree(ctx context.Context, req *v1.RoleNameReq) (*v1.GetMenuTreeRes, error)

func (*AuthorizationService) GetRolesForUser

func (*AuthorizationService) GetUsersForRole

func (s *AuthorizationService) GetUsersForRole(ctx context.Context, req *v1.RoleNameReq) (*v1.GetUsersForRoleRes, error)

func (*AuthorizationService) SaveRoleMenu

func (s *AuthorizationService) SaveRoleMenu(ctx context.Context, req *v1.SaveRoleMenuReq) (*emptypb.Empty, error)

func (*AuthorizationService) SaveRoleMenuBtn

func (s *AuthorizationService) SaveRoleMenuBtn(ctx context.Context, req *v1.SaveRoleMenuBtnReq) (*emptypb.Empty, error)

func (*AuthorizationService) SetRolesForUser

func (s *AuthorizationService) SetRolesForUser(ctx context.Context, req *v1.SetRolesForUserReq) (*emptypb.Empty, error)

func (*AuthorizationService) UpdateApi

func (s *AuthorizationService) UpdateApi(ctx context.Context, req *v1.UpdateApiReq) (*emptypb.Empty, error)

func (*AuthorizationService) UpdateMenu

func (s *AuthorizationService) UpdateMenu(ctx context.Context, req *v1.UpdateMenuReq) (*emptypb.Empty, error)

func (*AuthorizationService) UpdatePolicies

func (s *AuthorizationService) UpdatePolicies(ctx context.Context, req *v1.UpdatePoliciesReq) (*emptypb.Empty, error)

func (*AuthorizationService) UpdateRole

func (s *AuthorizationService) UpdateRole(ctx context.Context, req *v1.UpdateRoleReq) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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