Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListPromotionsCmd ¶ added in v1.1.0
type ListPromotionsCmd struct { User types.Account Type domain.PromotionType Status domain.PromotionStatus Tags []string Way domain.PromotionWay PageNo int PageSize int }
type PointsRankDTO ¶
type PointsService ¶
type PointsService interface { GetPoints(*PointsCmd) (PointsDTO, error) GetPointsRank(promotionid string) ([]PointsRankDTO, error) }
func NewPointsService ¶
func NewPointsService( service service.PointsTaskService, ) PointsService
type PromotionCmd ¶
type PromotionDTO ¶
type PromotionDTO struct { Id string `json:"id"` Name string `json:"name"` Desc string `json:"desc"` Poster string `json:"poster"` Status string `json:"status"` IsRegister bool `json:"is_register"` Total int `json:"total"` Duration string `json:"duration"` Count int64 `json:"count"` Host string `json:"host"` Way string `json:"way"` Type string `json:"type"` Intro string `json:"intro"` IsStatic bool `json:"is_static"` }
type PromotionService ¶
type PromotionService interface { GetPromotion(*PromotionCmd) (PromotionDTO, error) GetUserRegisterPromotion(types.Account) ([]PromotionDTO, string, error) UserRegister(*UserRegistrationCmd) (code string, err error) Get(*PromotionCmd) (PromotionDTO, error) List(*ListPromotionsCmd) (PromotionsDTO, error) }
func NewPromotionService ¶
func NewPromotionService( service service.PromotionUserService, ptservice service.PointsTaskService, repo repository.Promotion, ) PromotionService
type PromotionsDTO ¶ added in v1.1.0
type PromotionsDTO struct { Items []PromotionDTO `json:"items"` Total int64 `json:"total"` }
type UserRegistrationCmd ¶
type UserRegistrationCmd struct { PromotionId string domain.UserRegistration Origin domain.Origin }
Click to show internal directories.
Click to hide internal directories.