Documentation
¶
Overview ¶
Package zone 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
AccountID []uint64
Type *types.ZoneType
Status *types.ApproveStatus
Active *types.ActiveStatus
MinECPM *float64
MaxECPM *float64
}
Filter of the objects list
type ListOrder ¶
type ListOrder struct {
ID models.Order
Codename models.Order
Title models.Order
AccountID models.Order
Type models.Order
Status models.Order
Active models.Order
MinECPM 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.Zone, error)
GetByCodename(ctx context.Context, codename string) (*models.Zone, error)
FetchList(ctx context.Context, qops ...Option) ([]*models.Zone, error)
Count(ctx context.Context, qops ...Option) (int64, error)
Create(ctx context.Context, obj *models.Zone) (uint64, error)
Update(ctx context.Context, id uint64, obj *models.Zone) error
Delete(ctx context.Context, id uint64, msg string) error
Run(ctx context.Context, id uint64, msg string) error
Pause(ctx context.Context, id uint64, msg string) error
Approve(ctx context.Context, id uint64, msg string) error
Reject(ctx context.Context, id uint64, msg string) error
}
Repository of access to the zone
type Usecase ¶
type Usecase interface {
Get(ctx context.Context, id uint64) (*models.Zone, error)
GetByCodename(ctx context.Context, codename string) (*models.Zone, error)
FetchList(ctx context.Context, qops ...Option) ([]*models.Zone, error)
Count(ctx context.Context, qops ...Option) (int64, error)
Create(ctx context.Context, obj *models.Zone) (uint64, error)
Update(ctx context.Context, id uint64, obj *models.Zone) error
Delete(ctx context.Context, id uint64, msg string) error
Run(ctx context.Context, id uint64, msg string) error
Pause(ctx context.Context, id uint64, msg string) error
Approve(ctx context.Context, id uint64, msg string) error
Reject(ctx context.Context, id uint64, msg string) error
}
Usecase of access to the zone
Click to show internal directories.
Click to hide internal directories.