Documentation ¶
Index ¶
- type RoleServiceImpl
- func (i *RoleServiceImpl) AddApiPermission(ctx context.Context, in *role.AddApiPermissionRequest) ([]*role.ApiPermission, error)
- func (i *RoleServiceImpl) AddViewPermission(ctx context.Context, in *role.AddViewPermissionRequest) ([]*role.ViewPermission, error)
- func (i *RoleServiceImpl) CreateRole(ctx context.Context, in *role.CreateRoleRequest) (*role.Role, error)
- func (i *RoleServiceImpl) DeleteRole(ctx context.Context, in *role.DeleteRoleRequest) (*role.Role, error)
- func (i *RoleServiceImpl) DescribeRole(ctx context.Context, in *role.DescribeRoleRequest) (*role.Role, error)
- func (i *RoleServiceImpl) Init() error
- func (i *RoleServiceImpl) Name() string
- func (i *RoleServiceImpl) QueryApiPermission(ctx context.Context, in *role.QueryApiPermissionRequest) ([]*role.ApiPermission, error)
- func (i *RoleServiceImpl) QueryMatchedEndpoint(ctx context.Context, in *role.QueryMatchedEndpointRequest) (*types.Set[*endpoint.Endpoint], error)
- func (i *RoleServiceImpl) QueryMatchedMenu(ctx context.Context, in *role.QueryMatchedMenuRequest) (*types.Set[*view.Menu], error)
- func (i *RoleServiceImpl) QueryRole(ctx context.Context, in *role.QueryRoleRequest) (*types.Set[*role.Role], error)
- func (i *RoleServiceImpl) QueryViewPermission(ctx context.Context, in *role.QueryViewPermissionRequest) ([]*role.ViewPermission, error)
- func (i *RoleServiceImpl) RemoveApiPermission(ctx context.Context, in *role.RemoveApiPermissionRequest) ([]*role.ApiPermission, error)
- func (i *RoleServiceImpl) RemoveViewPermission(ctx context.Context, in *role.RemoveViewPermissionRequest) ([]*role.ViewPermission, error)
- func (i *RoleServiceImpl) UpdateRole(ctx context.Context, in *role.UpdateRoleRequest) (*role.Role, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoleServiceImpl ¶
type RoleServiceImpl struct {
ioc.ObjectImpl
}
func (*RoleServiceImpl) AddApiPermission ¶
func (i *RoleServiceImpl) AddApiPermission(ctx context.Context, in *role.AddApiPermissionRequest) ([]*role.ApiPermission, error)
添加角色关联API
func (*RoleServiceImpl) AddViewPermission ¶
func (i *RoleServiceImpl) AddViewPermission(ctx context.Context, in *role.AddViewPermissionRequest) ([]*role.ViewPermission, error)
添加角色关联菜单
func (*RoleServiceImpl) CreateRole ¶
func (i *RoleServiceImpl) CreateRole(ctx context.Context, in *role.CreateRoleRequest) (*role.Role, error)
创建角色
func (*RoleServiceImpl) DeleteRole ¶
func (i *RoleServiceImpl) DeleteRole(ctx context.Context, in *role.DeleteRoleRequest) (*role.Role, error)
删除角色
func (*RoleServiceImpl) DescribeRole ¶
func (i *RoleServiceImpl) DescribeRole(ctx context.Context, in *role.DescribeRoleRequest) (*role.Role, error)
详情查询
func (*RoleServiceImpl) Init ¶
func (i *RoleServiceImpl) Init() error
func (*RoleServiceImpl) Name ¶
func (i *RoleServiceImpl) Name() string
func (*RoleServiceImpl) QueryApiPermission ¶
func (i *RoleServiceImpl) QueryApiPermission(ctx context.Context, in *role.QueryApiPermissionRequest) ([]*role.ApiPermission, error)
移除角色关联API
func (*RoleServiceImpl) QueryMatchedEndpoint ¶
func (i *RoleServiceImpl) QueryMatchedEndpoint(ctx context.Context, in *role.QueryMatchedEndpointRequest) (*types.Set[*endpoint.Endpoint], error)
查询匹配到的Api接口列表
func (*RoleServiceImpl) QueryMatchedMenu ¶
func (i *RoleServiceImpl) QueryMatchedMenu(ctx context.Context, in *role.QueryMatchedMenuRequest) (*types.Set[*view.Menu], error)
查询能匹配到视图菜单
func (*RoleServiceImpl) QueryRole ¶
func (i *RoleServiceImpl) QueryRole(ctx context.Context, in *role.QueryRoleRequest) (*types.Set[*role.Role], error)
列表查询
func (*RoleServiceImpl) QueryViewPermission ¶
func (i *RoleServiceImpl) QueryViewPermission(ctx context.Context, in *role.QueryViewPermissionRequest) ([]*role.ViewPermission, error)
查询角色关联的视图权限
func (*RoleServiceImpl) RemoveApiPermission ¶
func (i *RoleServiceImpl) RemoveApiPermission(ctx context.Context, in *role.RemoveApiPermissionRequest) ([]*role.ApiPermission, error)
移除角色关联API
func (*RoleServiceImpl) RemoveViewPermission ¶
func (i *RoleServiceImpl) RemoveViewPermission(ctx context.Context, in *role.RemoveViewPermissionRequest) ([]*role.ViewPermission, error)
移除角色关联菜单
func (*RoleServiceImpl) UpdateRole ¶
func (i *RoleServiceImpl) UpdateRole(ctx context.Context, in *role.UpdateRoleRequest) (*role.Role, error)
更新角色
Click to show internal directories.
Click to hide internal directories.