Documentation ¶
Index ¶
- type PermissionRpcServer
- func (s *PermissionRpcServer) AddApi(ctx context.Context, in *permissionrpc.ApiNewReq) (*permissionrpc.ApiDetails, error)
- func (s *PermissionRpcServer) AddMenu(ctx context.Context, in *permissionrpc.MenuNewReq) (*permissionrpc.MenuDetails, error)
- func (s *PermissionRpcServer) AddRole(ctx context.Context, in *permissionrpc.RoleNewReq) (*permissionrpc.RoleDetails, error)
- func (s *PermissionRpcServer) CleanApiList(ctx context.Context, in *permissionrpc.EmptyReq) (*permissionrpc.BatchResp, error)
- func (s *PermissionRpcServer) CleanMenuList(ctx context.Context, in *permissionrpc.EmptyReq) (*permissionrpc.BatchResp, error)
- func (s *PermissionRpcServer) DeleteApi(ctx context.Context, in *permissionrpc.IdsReq) (*permissionrpc.BatchResp, error)
- func (s *PermissionRpcServer) DeleteMenu(ctx context.Context, in *permissionrpc.IdsReq) (*permissionrpc.BatchResp, error)
- func (s *PermissionRpcServer) DeleteRole(ctx context.Context, in *permissionrpc.IdsReq) (*permissionrpc.BatchResp, error)
- func (s *PermissionRpcServer) FindApiList(ctx context.Context, in *permissionrpc.FindApiListReq) (*permissionrpc.FindApiListResp, error)
- func (s *PermissionRpcServer) FindMenuList(ctx context.Context, in *permissionrpc.FindMenuListReq) (*permissionrpc.FindMenuListResp, error)
- func (s *PermissionRpcServer) FindRoleList(ctx context.Context, in *permissionrpc.FindRoleListReq) (*permissionrpc.FindRoleListResp, error)
- func (s *PermissionRpcServer) FindRoleResources(ctx context.Context, in *permissionrpc.IdReq) (*permissionrpc.RoleResourcesResp, error)
- func (s *PermissionRpcServer) FindUserApis(ctx context.Context, in *permissionrpc.UserIdReq) (*permissionrpc.FindApiListResp, error)
- func (s *PermissionRpcServer) FindUserMenus(ctx context.Context, in *permissionrpc.UserIdReq) (*permissionrpc.FindMenuListResp, error)
- func (s *PermissionRpcServer) FindUserRoles(ctx context.Context, in *permissionrpc.UserIdReq) (*permissionrpc.FindRoleListResp, error)
- func (s *PermissionRpcServer) SyncApiList(ctx context.Context, in *permissionrpc.SyncApiReq) (*permissionrpc.BatchResp, error)
- func (s *PermissionRpcServer) SyncMenuList(ctx context.Context, in *permissionrpc.SyncMenuReq) (*permissionrpc.BatchResp, error)
- func (s *PermissionRpcServer) UpdateApi(ctx context.Context, in *permissionrpc.ApiNewReq) (*permissionrpc.ApiDetails, error)
- func (s *PermissionRpcServer) UpdateMenu(ctx context.Context, in *permissionrpc.MenuNewReq) (*permissionrpc.MenuDetails, error)
- func (s *PermissionRpcServer) UpdateRole(ctx context.Context, in *permissionrpc.RoleNewReq) (*permissionrpc.RoleDetails, error)
- func (s *PermissionRpcServer) UpdateRoleApis(ctx context.Context, in *permissionrpc.UpdateRoleApisReq) (*permissionrpc.EmptyResp, error)
- func (s *PermissionRpcServer) UpdateRoleMenus(ctx context.Context, in *permissionrpc.UpdateRoleMenusReq) (*permissionrpc.EmptyResp, error)
- func (s *PermissionRpcServer) UpdateUserRole(ctx context.Context, in *permissionrpc.UpdateUserRoleReq) (*permissionrpc.EmptyResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionRpcServer ¶
type PermissionRpcServer struct { permissionrpc.UnimplementedPermissionRpcServer // contains filtered or unexported fields }
func NewPermissionRpcServer ¶
func NewPermissionRpcServer(svcCtx *svc.ServiceContext) *PermissionRpcServer
func (*PermissionRpcServer) AddApi ¶
func (s *PermissionRpcServer) AddApi(ctx context.Context, in *permissionrpc.ApiNewReq) (*permissionrpc.ApiDetails, error)
创建接口
func (*PermissionRpcServer) AddMenu ¶
func (s *PermissionRpcServer) AddMenu(ctx context.Context, in *permissionrpc.MenuNewReq) (*permissionrpc.MenuDetails, error)
创建菜单
func (*PermissionRpcServer) AddRole ¶
func (s *PermissionRpcServer) AddRole(ctx context.Context, in *permissionrpc.RoleNewReq) (*permissionrpc.RoleDetails, error)
创建角色
func (*PermissionRpcServer) CleanApiList ¶
func (s *PermissionRpcServer) CleanApiList(ctx context.Context, in *permissionrpc.EmptyReq) (*permissionrpc.BatchResp, error)
清空接口列表
func (*PermissionRpcServer) CleanMenuList ¶
func (s *PermissionRpcServer) CleanMenuList(ctx context.Context, in *permissionrpc.EmptyReq) (*permissionrpc.BatchResp, error)
清空菜单列表
func (*PermissionRpcServer) DeleteApi ¶
func (s *PermissionRpcServer) DeleteApi(ctx context.Context, in *permissionrpc.IdsReq) (*permissionrpc.BatchResp, error)
删除接口
func (*PermissionRpcServer) DeleteMenu ¶
func (s *PermissionRpcServer) DeleteMenu(ctx context.Context, in *permissionrpc.IdsReq) (*permissionrpc.BatchResp, error)
删除菜单
func (*PermissionRpcServer) DeleteRole ¶
func (s *PermissionRpcServer) DeleteRole(ctx context.Context, in *permissionrpc.IdsReq) (*permissionrpc.BatchResp, error)
删除角色
func (*PermissionRpcServer) FindApiList ¶
func (s *PermissionRpcServer) FindApiList(ctx context.Context, in *permissionrpc.FindApiListReq) (*permissionrpc.FindApiListResp, error)
查询接口列表
func (*PermissionRpcServer) FindMenuList ¶
func (s *PermissionRpcServer) FindMenuList(ctx context.Context, in *permissionrpc.FindMenuListReq) (*permissionrpc.FindMenuListResp, error)
查询菜单列表
func (*PermissionRpcServer) FindRoleList ¶
func (s *PermissionRpcServer) FindRoleList(ctx context.Context, in *permissionrpc.FindRoleListReq) (*permissionrpc.FindRoleListResp, error)
查询角色列表
func (*PermissionRpcServer) FindRoleResources ¶
func (s *PermissionRpcServer) FindRoleResources(ctx context.Context, in *permissionrpc.IdReq) (*permissionrpc.RoleResourcesResp, error)
查询角色资源权限
func (*PermissionRpcServer) FindUserApis ¶
func (s *PermissionRpcServer) FindUserApis(ctx context.Context, in *permissionrpc.UserIdReq) (*permissionrpc.FindApiListResp, error)
获取用户接口权限
func (*PermissionRpcServer) FindUserMenus ¶
func (s *PermissionRpcServer) FindUserMenus(ctx context.Context, in *permissionrpc.UserIdReq) (*permissionrpc.FindMenuListResp, error)
获取用户菜单权限
func (*PermissionRpcServer) FindUserRoles ¶
func (s *PermissionRpcServer) FindUserRoles(ctx context.Context, in *permissionrpc.UserIdReq) (*permissionrpc.FindRoleListResp, error)
获取用户角色信息
func (*PermissionRpcServer) SyncApiList ¶
func (s *PermissionRpcServer) SyncApiList(ctx context.Context, in *permissionrpc.SyncApiReq) (*permissionrpc.BatchResp, error)
同步接口列表
func (*PermissionRpcServer) SyncMenuList ¶
func (s *PermissionRpcServer) SyncMenuList(ctx context.Context, in *permissionrpc.SyncMenuReq) (*permissionrpc.BatchResp, error)
同步菜单列表
func (*PermissionRpcServer) UpdateApi ¶
func (s *PermissionRpcServer) UpdateApi(ctx context.Context, in *permissionrpc.ApiNewReq) (*permissionrpc.ApiDetails, error)
更新接口
func (*PermissionRpcServer) UpdateMenu ¶
func (s *PermissionRpcServer) UpdateMenu(ctx context.Context, in *permissionrpc.MenuNewReq) (*permissionrpc.MenuDetails, error)
更新菜单
func (*PermissionRpcServer) UpdateRole ¶
func (s *PermissionRpcServer) UpdateRole(ctx context.Context, in *permissionrpc.RoleNewReq) (*permissionrpc.RoleDetails, error)
更新角色
func (*PermissionRpcServer) UpdateRoleApis ¶
func (s *PermissionRpcServer) UpdateRoleApis(ctx context.Context, in *permissionrpc.UpdateRoleApisReq) (*permissionrpc.EmptyResp, error)
更新角色资源
func (*PermissionRpcServer) UpdateRoleMenus ¶
func (s *PermissionRpcServer) UpdateRoleMenus(ctx context.Context, in *permissionrpc.UpdateRoleMenusReq) (*permissionrpc.EmptyResp, error)
更新角色菜单
func (*PermissionRpcServer) UpdateUserRole ¶
func (s *PermissionRpcServer) UpdateUserRole(ctx context.Context, in *permissionrpc.UpdateUserRoleReq) (*permissionrpc.EmptyResp, error)
修改用户角色
Click to show internal directories.
Click to hide internal directories.