Documentation ¶
Index ¶
- type Config
- type Usecase
- func (ucase *Usecase) Delete(ctx context.Context, f *model.ProfessionFilter) ([]*model.Profession, error)
- func (ucase *Usecase) Fetch(ctx context.Context, cfg *profession.FetchConfig) ([]*model.Profession, int, error)
- func (ucase *Usecase) GetByID(ctx context.Context, id int) (*model.Profession, error)
- func (ucase *Usecase) GetBySlug(ctx context.Context, slug string) (*model.Profession, error)
- func (ucase *Usecase) Store(ctx context.Context, input *model.ProfessionInput) (*model.Profession, error)
- func (ucase *Usecase) UpdateOneByID(ctx context.Context, id int, input *model.ProfessionInput) (*model.Profession, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ProfessionRepository profession.Repository
}
type Usecase ¶ added in v1.0.2
type Usecase struct {
// contains filtered or unexported fields
}
func (*Usecase) Delete ¶ added in v1.0.2
func (ucase *Usecase) Delete(ctx context.Context, f *model.ProfessionFilter) ([]*model.Profession, error)
func (*Usecase) Fetch ¶ added in v1.0.2
func (ucase *Usecase) Fetch(ctx context.Context, cfg *profession.FetchConfig) ([]*model.Profession, int, error)
func (*Usecase) Store ¶ added in v1.0.2
func (ucase *Usecase) Store(ctx context.Context, input *model.ProfessionInput) (*model.Profession, error)
func (*Usecase) UpdateOneByID ¶ added in v1.0.2
func (ucase *Usecase) UpdateOneByID(ctx context.Context, id int, input *model.ProfessionInput) (*model.Profession, error)
Click to show internal directories.
Click to hide internal directories.