Documentation ¶
Index ¶
Constants ¶
View Source
const ( FieldEN = "English" FieldZH = "Chinese" PromotionStatusOver = "over" PromotionStatusPreparing = "preparing" PromotionStatusInProgress = "in-progress" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Promotion ¶
type Promotion struct { Id string Name PromotionName Type PromotionType Desc PromotionDesc Way PromotionWay RegUsers []RegUser StartTime int64 EndTime int64 Poster string Host string Intro string Version int IsStatic bool }
func (*Promotion) CountRegUsers ¶ added in v1.1.0
type PromotionDesc ¶
type PromotionDesc interface {
PromotionDesc() string
}
PromotionDesc
func NewPromotionDesc ¶
func NewPromotionDesc(v string) (PromotionDesc, error)
type PromotionName ¶
type PromotionName interface {
PromotionName() string
}
PronotionName
func NewPromotionName ¶
func NewPromotionName(v string) (PromotionName, error)
type PromotionStatus ¶ added in v1.1.0
type PromotionStatus interface {
PromotionStatus() string
}
func NewPromotionStatus ¶ added in v1.1.0
func NewPromotionStatus(v string) (PromotionStatus, error)
type PromotionType ¶ added in v1.1.0
type PromotionType interface {
PromotionType() string
}
func NewPromotionType ¶ added in v1.1.0
func NewPromotionType(v string) (PromotionType, error)
type PromotionWay ¶ added in v1.1.0
type PromotionWay interface {
PromotionWay() string
}
func NewPromotionWay ¶ added in v1.1.0
func NewPromotionWay(v string) (PromotionWay, error)
type Rule ¶
func (*Rule) IsValidPoint ¶
type Sentence ¶
type Sentence interface { Sentence(common.Language) string SentenceMap() map[string]string ENSentence() string ZHSentence() string }
Sentence
func NewSentence ¶
type UserPoints ¶
type UserRegistration ¶
type UserRegistration = userdomain.UserRegInfo
Click to show internal directories.
Click to hide internal directories.