| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- 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
- )
- //type UserLevel int64
- // 用户等级 用pb.UserLevel ???
- //const (
- // UserUnknown UserLevel = 0 // 未知
- // UserLevelTrial UserLevel = 1 // 试用 1
- // UserLevelFree UserLevel = 2 // 免费 2
- // UserLevelMember UserLevel = 3 // 会员 3
- // UserLevelInternal UserLevel = 9999 // 内部 9999
- //)
- 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.nomo.subscribe.1.trial" //默认试用套餐,如果没有指定套餐,默认试用这个套餐
- )
|