Documentation
¶
Index ¶
- type AppLike
- type RoleService
- func (rs *RoleService) Create(c fs.Context, _ any) (*fs.Role, error)
- func (rs *RoleService) CreateResource(api *fs.Resource)
- func (rs *RoleService) Delete(c fs.Context, _ any) (any, error)
- func (rs *RoleService) Detail(c fs.Context, _ any) (*fs.Role, error)
- func (rs *RoleService) List(c fs.Context, _ any) ([]*fs.Role, error)
- func (rs *RoleService) Update(c fs.Context, _ any) (_ *fs.Role, err error)
- func (rs *RoleService) UpdateRole(c context.Context, id uint64, updateRoleData *entity.Entity) (_ *fs.Role, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoleService ¶
type RoleService struct {
DB func() db.Client
AppKey func() string
UpdateCache func(context.Context) error
}
func New ¶ added in v0.0.5
func New(app AppLike) *RoleService
func (*RoleService) CreateResource ¶ added in v0.6.0
func (rs *RoleService) CreateResource(api *fs.Resource)
Click to show internal directories.
Click to hide internal directories.