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 *models.QualificationInput) (*models.Qualification, error) UpdateMany(ctx context.Context, f *models.QualificationFilter, input *models.QualificationInput) ([]*models.Qualification, error) Delete(ctx context.Context, f *models.QualificationFilter) ([]*models.Qualification, error) Fetch(ctx context.Context, cfg *FetchConfig) ([]*models.Qualification, int, error) GetSimilar(ctx context.Context, cfg *GetSimilarConfig) ([]*models.Qualification, int, error) }
type Usecase ¶
type Usecase interface { Store(ctx context.Context, input *models.QualificationInput) (*models.Qualification, error) UpdateOneByID(ctx context.Context, id int, input *models.QualificationInput) (*models.Qualification, error) Delete(ctx context.Context, f *models.QualificationFilter) ([]*models.Qualification, error) Fetch(ctx context.Context, cfg *FetchConfig) ([]*models.Qualification, int, error) GetByID(ctx context.Context, id int) (*models.Qualification, error) GetBySlug(ctx context.Context, slug string) (*models.Qualification, error) GetSimilar(ctx context.Context, cfg *GetSimilarConfig) ([]*models.Qualification, int, error) }
Click to show internal directories.
Click to hide internal directories.