Documentation ¶
Index ¶
- type Config
- type Usecase
- func (ucase *Usecase) Delete(ctx context.Context, f *model.UserFilter) ([]*model.User, error)
- func (ucase *Usecase) Fetch(ctx context.Context, cfg *user.FetchConfig) ([]*model.User, int, error)
- func (ucase *Usecase) GetByCredentials(ctx context.Context, email, password string) (*model.User, error)
- func (ucase *Usecase) GetByID(ctx context.Context, id int) (*model.User, error)
- func (ucase *Usecase) Store(ctx context.Context, input *model.UserInput) (*model.User, error)
- func (ucase *Usecase) UpdateMany(ctx context.Context, f *model.UserFilter, input *model.UserInput) ([]*model.User, error)
- func (ucase *Usecase) UpdateOneByID(ctx context.Context, id int, input *model.UserInput) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
UserRepository user.Repository
}
type Usecase ¶ added in v1.0.2
type Usecase struct {
// contains filtered or unexported fields
}
func (*Usecase) GetByCredentials ¶ added in v1.0.2
func (*Usecase) UpdateMany ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.