209 lines
2.3 KiB
Go
209 lines
2.3 KiB
Go
|
package common
|
|||
|
|
|||
|
const ( // step Type
|
|||
|
_ = iota
|
|||
|
DaySign
|
|||
|
WxStep // 每日运动步数(包括App端和小程序端)
|
|||
|
TaskAward // 新用户是邀请的时候加成
|
|||
|
InviteAward // 邀请的每日步数加成
|
|||
|
ShoppingAward // 购物奖励
|
|||
|
AdAward // 广告
|
|||
|
)
|
|||
|
|
|||
|
//(1-每日签到 2-步数兑换 3-任务奖励)
|
|||
|
|
|||
|
const DefaultLimit = 15
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
DefaultAddress
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
Check
|
|||
|
Uncheck
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
Receive
|
|||
|
UnReceive
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
UnCollect
|
|||
|
Collect
|
|||
|
)
|
|||
|
|
|||
|
const ( // vm type
|
|||
|
_ = iota
|
|||
|
Exchange // 兑换
|
|||
|
Spent // 使用
|
|||
|
Task // 任务
|
|||
|
)
|
|||
|
|
|||
|
//const (
|
|||
|
// _ = iota
|
|||
|
// NewArea
|
|||
|
// InviteArea
|
|||
|
// CheckinArea
|
|||
|
// SuperArea
|
|||
|
//)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
NewArea // 新人专区
|
|||
|
MemberArea // 会员专区
|
|||
|
CheckinArea // 签到专区
|
|||
|
SuperArea // 精选专区
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
Show
|
|||
|
UnShow
|
|||
|
)
|
|||
|
|
|||
|
// 发货状态
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
UnApply // 未申请
|
|||
|
UnPost // 待发货
|
|||
|
Posted // 已发货
|
|||
|
Complete // 完成
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
Real
|
|||
|
UnReal // 虚拟奖品
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
AutoChargeOpen
|
|||
|
AutoChargeClose
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
AutoCharge
|
|||
|
VerifyCharge
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
Yes
|
|||
|
No
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
Customer
|
|||
|
CanvasPic
|
|||
|
DirectTo
|
|||
|
InviteView
|
|||
|
WebView
|
|||
|
None
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
DisplayByIcon
|
|||
|
DisplayByImg
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
TaskTypeEveryDay
|
|||
|
TaskTypeOnce
|
|||
|
TaskTypeForever
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
PlaceInTask
|
|||
|
PlaceInInfo
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
DrawStateChecking
|
|||
|
DrawStateRefuse
|
|||
|
DrawStateDrawing
|
|||
|
DrawStateUnShow
|
|||
|
DrawStateOver
|
|||
|
DrawStateUnpay
|
|||
|
DrawStateInvalid
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
SponsorTypeBusiness
|
|||
|
SponsorTypeUser
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
DrawTypeByTime
|
|||
|
DrawTypeByNum
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
DrawRecordNo
|
|||
|
DrawRecordLv1
|
|||
|
DrawRecordLv2
|
|||
|
DrawRecordLv3
|
|||
|
DrawRecordLv4
|
|||
|
DrawRecordLv5
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
InviteTypeInvite
|
|||
|
InviteTypeFriend
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
UserPrizeStateUnPay
|
|||
|
UserPrizeStatePay
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
DrawOrderStateUnPost
|
|||
|
DrawOrderStatePost
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
UserInfoLotteryListAll
|
|||
|
UserInfoLotteryListSponsor
|
|||
|
UserInfoLotteryListWin
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
InviteSourceSanBu
|
|||
|
InviteSourceLottery
|
|||
|
InviteSourceTelFare
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
InviteLotteryIng
|
|||
|
InviteLotteryOverAndLost
|
|||
|
InviteLotteryOverAndWin
|
|||
|
InviteLotteryPosted
|
|||
|
)
|
|||
|
|
|||
|
const (
|
|||
|
_ = iota
|
|||
|
LotteryDetailNormal
|
|||
|
LotteryDetailAd
|
|||
|
)
|