Documentation ¶
Index ¶
Constants ¶
View Source
const ( FetchDefaultLimit = 100 MaxNameLength = 200 MaxOrders = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchConfig ¶
type GetSimilarConfig ¶
type Repository ¶
type Repository interface { Store(ctx context.Context, input *model.QualificationInput) (*model.Qualification, error) UpdateMany(ctx context.Context, f *model.QualificationFilter, input *model.QualificationInput) ([]*model.Qualification, error) Delete(ctx context.Context, f *model.QualificationFilter) ([]*model.Qualification, error) Fetch(ctx context.Context, cfg *FetchConfig) ([]*model.Qualification, int, error) GetSimilar(ctx context.Context, cfg *GetSimilarConfig) ([]*model.Qualification, int, error) }
type Usecase ¶
type Usecase interface { Store(ctx context.Context, input *model.QualificationInput) (*model.Qualification, error) UpdateOneByID(ctx context.Context, id int, input *model.QualificationInput) (*model.Qualification, error) Delete(ctx context.Context, f *model.QualificationFilter) ([]*model.Qualification, error) Fetch(ctx context.Context, cfg *FetchConfig) ([]*model.Qualification, int, error) GetByID(ctx context.Context, id int) (*model.Qualification, error) GetBySlug(ctx context.Context, slug string) (*model.Qualification, error) GetSimilar(ctx context.Context, cfg *GetSimilarConfig) ([]*model.Qualification, int, error) }
Click to show internal directories.
Click to hide internal directories.