Documentation
¶
Overview ¶
Package adformat present full API functionality of the specific object
Package adformat present full API functionality of the specific object
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
ID []uint64
Codename []string
CodenameLike string
Type []string
Active *types.ActiveStatus
}
Filter of the objects list
type ListOrder ¶
type ListOrder struct {
Title models.Order
Codename models.Order
Type models.Order
Active models.Order
CreatedAt models.Order
UpdatedAt models.Order
}
ListOrder of the objects list
type Option ¶
type Option = repository.QOption
type Options ¶
type Options = repository.ListOptions
type Repository ¶
type Repository interface {
Get(ctx context.Context, id uint64) (*models.Format, error)
GetByCodename(ctx context.Context, codename string) (*models.Format, error)
FetchList(ctx context.Context, qops ...Option) ([]*models.Format, error)
Count(ctx context.Context, qops ...Option) (int64, error)
Create(ctx context.Context, source *models.Format) (uint64, error)
Update(ctx context.Context, id uint64, source *models.Format) error
Delete(ctx context.Context, id uint64) error
DeleteByCodename(ctx context.Context, codename string) error
}
Repository of access to the ad format
type Usecase ¶
type Usecase interface {
Get(ctx context.Context, id uint64) (*models.Format, error)
GetByCodename(ctx context.Context, codename string) (*models.Format, error)
FetchList(ctx context.Context, qops ...repository.QOption) ([]*models.Format, error)
Count(ctx context.Context, qops ...repository.QOption) (int64, error)
Create(ctx context.Context, source *models.Format) (uint64, error)
Update(ctx context.Context, id uint64, source *models.Format) error
Delete(ctx context.Context, id uint64, msg *string) error
DeleteByCodename(ctx context.Context, codename string, msg *string) error
}
usecase of access to the ad format
Click to show internal directories.
Click to hide internal directories.