Documentation ¶
Overview ¶
Package items implements application business logic. Each logic group in own file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRUDItems ¶
type CRUDItems interface { List(ctx context.Context) ([]byte, error) Create(ctx context.Context, campaignId int, name string) (entity.Item, error) Update(ctx context.Context, u entity.UpdateData) (entity.Item, error) Delete(ctx context.Context, id int) error }
CRUDItems интерфейс CRUD для Itms
type Items ¶
type Items struct {
// contains filtered or unexported fields
}
Service Items provide access items in database
type ItemsRepo ¶
type ItemsRepo interface { Create(ctx context.Context, item *entity.Item) error Update(ctx context.Context, u entity.UpdateData) (entity.Item, error) Delete(ctx context.Context, id int) (entity.Item, error) List(ctx context.Context) ([]entity.Item, error) MaxPriority(ctx context.Context) (int, error) }
ItemsRepo репозиторий для items
Click to show internal directories.
Click to hide internal directories.