Documentation ¶
Overview ¶
Package usecase account implementation
Index ¶
- type Usecase
- func (a *Usecase) Count(ctx context.Context, filter *option.Filter) (int64, error)
- func (a *Usecase) Delete(ctx context.Context, name string, otype model.OptionType, targetID uint64) error
- func (a *Usecase) FetchList(ctx context.Context, filter *option.Filter, order *option.ListOrder, ...) ([]*model.Option, error)
- func (a *Usecase) Get(ctx context.Context, name string, otype model.OptionType, targetID uint64) (*model.Option, error)
- func (a *Usecase) Set(ctx context.Context, targetObj *model.Option) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Usecase ¶
type Usecase struct {
// contains filtered or unexported fields
}
Usecase provides bussiness logic for account access
func (*Usecase) Delete ¶
func (a *Usecase) Delete(ctx context.Context, name string, otype model.OptionType, targetID uint64) error
Delete delites record by ID
func (*Usecase) FetchList ¶
func (a *Usecase) FetchList(ctx context.Context, filter *option.Filter, order *option.ListOrder, pagination *repository.Pagination) ([]*model.Option, error)
FetchList of accounts by filter
Click to show internal directories.
Click to hide internal directories.