Documentation ¶
Index ¶
Constants ¶
View Source
const ( AdminToken = "admin_token" UserToken = "user_token" )
Variables ¶
Functions ¶
func NewBannerHandler ¶
func NewBannerHandler(servo BannerService) *bannerHandler
Types ¶
type BannerService ¶
type BannerService interface { CreateBanner(ctx context.Context, banner domain.Banner) (int64, error) GetBanners(ctx context.Context, banner domain.BannerFilter) ([]domain.Banner, error) GetBanner(ctx context.Context, tagIDs []int64, featureID int64, lastVersion bool, isAdmin bool) ([]domain.Banner, error) UpdateBanner(ctx context.Context, banner domain.Banner) error DeleteBanner(ctx context.Context, bannerID int64) error }
Click to show internal directories.
Click to hide internal directories.