qualification

package
v1.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 2 Imported by: 0

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 FetchConfig struct {
	Filter *model.QualificationFilter
	Offset int
	Limit  int
	Sort   []string
	Count  bool
}

type GetSimilarConfig

type GetSimilarConfig struct {
	Limit           int
	Offset          int
	QualificationID int
	Sort            []string
	Count           bool
}

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL