Documentation
¶
Index ¶
- type Banner
- func (b *Banner) Create(req *models.Banner) error
- func (b *Banner) Delete(bannerID int) error
- func (b *Banner) GetForAdmin(req *models.Banner, limit, offset int) ([]*models.Banner, error)
- func (b *Banner) GetForUser(req *models.Banner) (*models.Content, error)
- func (b *Banner) GetForUserLatest(req *models.Banner) (*models.Content, error)
- func (b *Banner) SetVersionActive(bannerID, version int) error
- func (b *Banner) Update(req *models.Banner) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Banner ¶
type Banner struct { Ctx context.Context Repo repository.Repository Config *config.Config Cache *cache.BannerCache }
func NewBanner ¶
func NewBanner(ctx context.Context, repo repository.Repository, conf *config.Config, cache *cache.BannerCache) *Banner
func (*Banner) GetForAdmin ¶
func (*Banner) GetForUser ¶
func (*Banner) GetForUserLatest ¶
func (*Banner) SetVersionActive ¶
Click to show internal directories.
Click to hide internal directories.