Documentation ¶
Overview ¶
Package usecase account implementation
Index ¶
- type RoleUsecase
- func (a *RoleUsecase) Count(ctx context.Context, filter *rbac.Filter) (int64, error)
- func (a *RoleUsecase) Create(ctx context.Context, roleObj *model.Role) (uint64, error)
- func (a *RoleUsecase) Delete(ctx context.Context, id uint64) error
- func (a *RoleUsecase) FetchList(ctx context.Context, filter *rbac.Filter, order *rbac.Order, ...) ([]*model.Role, error)
- func (a *RoleUsecase) Get(ctx context.Context, id uint64) (*model.Role, error)
- func (a *RoleUsecase) GetByName(ctx context.Context, name string) (*model.Role, error)
- func (a *RoleUsecase) Update(ctx context.Context, id uint64, roleObj *model.Role) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoleUsecase ¶
type RoleUsecase struct {
// contains filtered or unexported fields
}
RoleUsecase provides bussiness logic for account access
func (*RoleUsecase) Delete ¶
func (a *RoleUsecase) Delete(ctx context.Context, id uint64) error
Delete delites record by ID
func (*RoleUsecase) FetchList ¶
func (a *RoleUsecase) FetchList(ctx context.Context, filter *rbac.Filter, order *rbac.Order, pagination *repository.Pagination) ([]*model.Role, error)
FetchList of roles by filter
Click to show internal directories.
Click to hide internal directories.