Documentation ¶
Index ¶
- Variables
- type AuthorizationService
- func (s *AuthorizationService) CheckAuthorization(ctx context.Context, req *v1.CheckAuthorizationReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) CreateApi(ctx context.Context, req *v1.CreateApiReq) (*v1.Api, error)
- func (s *AuthorizationService) CreateMenu(ctx context.Context, req *v1.CreateMenuReq) (*v1.Menu, error)
- func (s *AuthorizationService) CreateRole(ctx context.Context, req *v1.CreateRoleReq) (*v1.Role, error)
- func (s *AuthorizationService) DeleteApi(ctx context.Context, req *v1.DeleteApiReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) DeleteMenu(ctx context.Context, req *v1.IdReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) DeleteRole(ctx context.Context, req *v1.DeleteRoleReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) DeleteRoleForUser(ctx context.Context, req *v1.DeleteRoleForUserReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) DeleteRolesForUser(ctx context.Context, req *v1.DeleteRolesForUserReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) GetApiList(ctx context.Context, req *v1.GetApiListReq) (*v1.GetApiListPageRes, error)
- func (s *AuthorizationService) GetApiListAll(ctx context.Context, req *emptypb.Empty) (*v1.GetApiListAllRes, error)
- func (s *AuthorizationService) GetMenuAll(ctx context.Context, req *emptypb.Empty) (*v1.GetMenuTreeRes, error)
- func (s *AuthorizationService) GetMenuTree(ctx context.Context, req *emptypb.Empty) (*v1.GetMenuTreeRes, error)
- func (s *AuthorizationService) GetPolicies(ctx context.Context, req *v1.RoleNameReq) (*v1.GetPoliciesRes, error)
- func (s *AuthorizationService) GetRoleAll(ctx context.Context, req *emptypb.Empty) (*v1.GetRoleAllRes, error)
- func (s *AuthorizationService) GetRoleMenu(ctx context.Context, req *v1.RoleNameReq) (*v1.GetMenuTreeRes, error)
- func (s *AuthorizationService) GetRoleMenuBtn(ctx context.Context, req *v1.GetRoleMenuBtnReq) (*v1.GetRoleMenuBtnRes, error)
- func (s *AuthorizationService) GetRoleMenuTree(ctx context.Context, req *v1.RoleNameReq) (*v1.GetMenuTreeRes, error)
- func (s *AuthorizationService) GetRolesForUser(ctx context.Context, req *v1.GetRolesForUserReq) (*v1.GetRolesForUserRes, error)
- func (s *AuthorizationService) GetUsersForRole(ctx context.Context, req *v1.RoleNameReq) (*v1.GetUsersForRoleRes, error)
- func (s *AuthorizationService) SaveRoleMenu(ctx context.Context, req *v1.SaveRoleMenuReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) SaveRoleMenuBtn(ctx context.Context, req *v1.SaveRoleMenuBtnReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) SetRolesForUser(ctx context.Context, req *v1.SetRolesForUserReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) UpdateApi(ctx context.Context, req *v1.UpdateApiReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) UpdateMenu(ctx context.Context, req *v1.UpdateMenuReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) UpdatePolicies(ctx context.Context, req *v1.UpdatePoliciesReq) (*emptypb.Empty, error)
- func (s *AuthorizationService) UpdateRole(ctx context.Context, req *v1.UpdateRoleReq) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewAuthorizationService)
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 (*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 (s *AuthorizationService) GetApiList(ctx context.Context, req *v1.GetApiListReq) (*v1.GetApiListPageRes, error)
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 (s *AuthorizationService) GetRoleMenuBtn(ctx context.Context, req *v1.GetRoleMenuBtnReq) (*v1.GetRoleMenuBtnRes, error)
func (*AuthorizationService) GetRoleMenuTree ¶
func (s *AuthorizationService) GetRoleMenuTree(ctx context.Context, req *v1.RoleNameReq) (*v1.GetMenuTreeRes, error)
func (*AuthorizationService) GetRolesForUser ¶
func (s *AuthorizationService) GetRolesForUser(ctx context.Context, req *v1.GetRolesForUserReq) (*v1.GetRolesForUserRes, error)
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)
Click to show internal directories.
Click to hide internal directories.