| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- package constant
- // 用户JWTToken里的key信息
- const (
- UserMemberLevelKey = "memberLevel"
- UserUserNameKey = "username"
- UserUuid = "userUuid"
- UserDeviceIdKey = "deviceId"
- UserCountryKey = "country"
- UserAccountKey = "accountKey"
- UserAccountPwdKey = "accountPassword"
- UserCreateTimeKey = "createTime"
- UserIpKey = "userIp"
- UserStatus = "userStatus"
- UserActiveStatus = "userActiveStatus"
- UserRegistModeKey = "UserRegistModeKey"
- UserProviderKey = "UserProviderKey"
- )
- // 白名单用户
- const (
- WhitelistNormalUser = 1
- WhitelistUser = 2
- )
- // 测试用户
- const (
- TestNormalUser = 1
- TestUser = 2
- )
- // 会员类型,游客 1,普通会员 2
- const (
- UserMemberVisitorLevel0 = 1
- UserMemberAccountLevel = 2
- )
- // 从哪里注册
- const (
- RegistFromUnknown = 0 // 未知
- RegistFromGuest = 1 // 游客
- RegistFromApp = 2 // App
- RegistFromWeb = 3 // Web
- RegistFromPc = 4 // pc
- RegistFromInvalid = 9999 // invalid
- )
- const (
- AccountActivate = 1
- AccountUnActivate = 2
- )
- // 支付渠道: alipay-支付宝,wechat-微信,appstore-苹果支付,googleplay-谷歌支付,agent,portal-其他
- const (
- PayChannelAlipay = "alipay"
- PayChannelWechat = "wechat"
- PayChannelAppstore = "appstore"
- PayChannelGooglePlay = "googleplay"
- PayChannelAgent = "agent" // 代理商
- PayChannelPortal = "portal" //如:官网调用
- )
- // username, email, phone, wechat, qq, google, apple
- const (
- AccountTypeUsername = "username"
- AccountTypeEmail = "email"
- AccountTypePhone = "phone"
- AccountTypeWechat = "wechat"
- AccountTypeQQ = "qq"
- AccountTypeGoogle = "google"
- AccountTypeApple = "apple"
- )
- // 权益常量定义
- const (
- ServiceTypeCodeUserLevel = "user_level"
- ServiceTypeCodeDeviceLimit = "device_limit"
- ServiceTypeCodeSpeedLimit = "speed_limit"
- ServiceTypeCodeTrafficLimit = "traffic_limit"
- )
- const (
- ServiceChannelPlanSkuTrial = "app.flashlink.subscribe.1.trial" //默认试用套餐,如果没有指定套餐,默认试用这个套餐
- )
|