define

package
v0.0.0-...-af31a00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

刷新token的操作定义

Index

Constants

View Source
const (
	AccountCollection        = "account"          // 用户表
	RedpacketCollection      = "redpacket"        // 红包表
	GrabRecordCollection     = "redpacket_record" // 抢红包记录表
	ScanningCollection       = "scanning"         // 扫红包表
	TradeCollection          = "trade_no"         // 订单交易
	BackpayCollection        = "backpay"          // 提现交易
	PayPhoneRecordCollection = "payphone_record"  // 手机充值
	EnterpriseCertCollection = "enterprise_cert"  // 企业认证
)
View Source
const (
	E_Weixin = iota
	E_Weibo
	E_QQ
)
View Source
const (
	EPoint_Login     = iota + 1 // 登陆5次
	EPoint_Redpacket            // 完成红包任务 分享类需要分享成功 导量类需要下载成功
	EPoint_Invite               // 邀请好友
)
View Source
const (
	ERank_Income = iota + 1
	ERank_Friend
	ERank_Level
	ERank_Outcome
)
View Source
const (
	AddFriendPrefix    = "addFriend:"       // 添加好友缓存key的前缀
	UserCachePrefix    = "userCache:"       // 用户数据缓存key的前缀
	RedpktListKey      = "redpacketlist"    // 红包列表key
	RedpktGrabRrefix   = "redpacketgrab:"   // 正在抢红包的记录key前缀
	RedpktRecordPrefix = "redpacketrecord:" // 已抢到红包的记录key前缀
	RedpktDevicePrefix = "redpacketdevice:" // 抢红包用户和设备id的映射
	GrabStatusPrefix   = "grabstatus:"      // 用户抢红包的状态
	BeenSendPrefix     = "beensend:"        // 用户已发送的红包列表
	IncomeRank         = "income_rank"      // 用户总收入排名(红包排行榜)
	OutcomeRank        = "outcome_rank"     // 用户总收入排名(老板排行榜)
	LevelRank          = "level_rank"       // 用户等级排行榜
	FriendRank         = "friend_rank"      // 好友排行榜
	SystemNotice       = "system_notice:"   // 系统通知
	RemoteNotice       = "remote_notice"    // 远程推送(调用极光推送api)
)
View Source
const (
	ERedpkt_Share = iota + 1
	ERedpkt_App
	ERedpkt_Game
	ERedpkt_OA // 公众号 Official account
)
View Source
const (
	ERefreshToken_Refresh  = iota + 1 // 用refresh token 刷新
	ERefreshToken_Login               // 登陆刷新token
	ERefreshToken_Forcibly            // 强制刷新access 和 refresh token,比如修改密码
)
View Source
const (
	EUser_Sex          = "sex"
	EUser_Area         = "area"
	EUser_Signature    = "signature"
	EUser_Portrait     = "portrait"
	EUser_Nickname     = "nickname"
	EUser_Money        = "money"
	EUser_Account      = "account"
	EUser_Phone        = "phone"
	EUser_WeixinOpenId = "weixin_openid"
	EUser_WeiboOpenId  = "weibo_openid"
	EUser_QQOpenId     = "qq_openid"
	EUser_LoginCount   = "login_count"
	EUser_Point        = "point"
	EUser_Outcome      = "outcome"
	EUser_Income       = "income"
	EUser_DailyGrab    = "daily_grab"
	EUser_ShareLimit   = "share_limit"
	EUser_AppLimit     = "app_limit"
	EUser_GameLimit    = "game_limit"
	EUser_OALimit      = "oa_limit"
	EUser_Cert         = "cert"
)

不要随便配!!!!

View Source
const (
	NgrokDomain = "http://domiapp_win.ngrok.natapp.cn" // ngrok内网穿透地址
)

Variables

View Source
var GRedpktLua_Finish = `` /* 560-byte string literal not displayed */

完成红包的脚本 KEYS = this.GrabKey, this.RecordKey, this.DeviceKey ARGV = userId, deviceId, now, total

View Source
var GRedpktLua_Grab = `` /* 512-byte string literal not displayed */

抢红包的脚本 KEYS = this.GrabKey,this.GrabStatusKey,this.DeviceKey ARGV = exp, userId, deviceId, now, status

View Source
var GRedpktLua_Share = `` /* 1374-byte string literal not displayed */

分享红包任务脚本 KEYS = this.GrabStatusKey, this.GrabKey, this.DeviceKey ARGV = userId, exp, now, deviceId, status

View Source
var GUser_Outcome = `` /* 693-byte string literal not displayed */

更新用户发出的红包 KEYS = define.UserCachePrefix + userId ARGV = define.EUser_Outcome, year, money

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL