Documentation ¶
Index ¶
- Variables
- func AddFriendByAccount(userId, targetAccount string) uint32
- func AddFriendById(fromId, targetId string) uint32
- func AddToBlackList(userIdB, targetId string)
- func AgreeFriend(userIdB, userIdA string) uint32
- func AlipayNotify(req *http.Request) bool
- func AuditRedpacket(c *gin.Context) error
- func BackPayCommon(request *http.Request, userId string) uint32
- func BindAccount(userId, account string) uint32
- func BindPhoneNum(userId, phoneNum, password string) uint32
- func BindQQAccount(userId, openId, openKey string) uint32
- func BindWeiboAccount(userId, token string) uint32
- func BindWeixinAccount(userId, openId, token string) uint32
- func CreateRedpacket(c *gin.Context) (string, error)
- func CreateScanning(c *gin.Context) uint32
- func DataRecharge(userId, phone, pkgid string) (*models.DataRechargeResp, uint32)
- func DataRechargeNotify(state, orderid, ordertime, sign, errMsg string) error
- func DataRechargeQuery(phone string) (*models.DataRechargeQueryResp, error)
- func EditEnterpriseCertInfo(c *gin.Context) uint32
- func FilterRedpacket(userId string) *models.UserExpireList
- func FindRcToken(userId, flag string) (string, error)
- func FinishRedpacket(userId, redpacketId, deviceid string) uint32
- func FinishShare(userId, redpacketId, deviceid string) uint32
- func GenerateNewToken(tokenStr string) (uint32, *models.TokenInfo, *models.TokenInfo)
- func GetAlipayParams() *models.AlipayParams
- func GetEnterpriseCertInfo(userId string) (*models.S2C_EnterpriseCertInfo, uint32)
- func GetFriendInfo(userId, targetId string, updateTime int64) (*models.S2C_UserData, error)
- func GetFriendList(userId string) (*models.FriendList, error)
- func GetRankListByType(userId, tpStr, page string) *models.S2C_RankList
- func GetRedpacketList(index string, req *http.Request) *models.S2C_RedpacketList
- func GetRedpacketStatistics(userId, redpktId string) *models.S2C_RedpktStatistics
- func GetRedpketRecieveInfo(userId string) *models.S2C_RedpketRecieveInfo
- func GetRedpketRecieveList(userId, date string) *models.S2C_ReceivedList
- func GetRedpketSendInfo(userId, year string) *models.S2C_RedpketSendInfo
- func GetRedpketSendList(userId, year string) *models.S2C_RedpktSendList
- func GetRedpktRecordList(redpktId, cursor string) *models.S2C_RedpktRecord
- func GetScanListByTag1(index, tag string) *models.ScanningList
- func GetScanningRedpkt(redpktId, userId string) uint32
- func GetSystemNoticeList(userId string) *models.S2C_SysNoticeList
- func GetTobeReleasedRedpktList(userId string) *models.S2C_ToBeReleasedList
- func GetUnionpayTradeNo(orderId string) (string, error)
- func GetUserInfo(userId string, updateTime int64) (*models.S2C_UserData, error)
- func GetWechatPayParams() *models.WechatPayParams
- func GiveupRedpacket(userId, redpacketId string)
- func GrabRedpacket(userId, redpacketId, deviceid string) uint32
- func Login(account, password string) (uint32, *models.TokenInfo, *models.TokenInfo)
- func LoginByQQ(openId, openKey string) (err error, access, refresh *models.TokenInfo)
- func LoginByWeibo(token string) (err error, access, refresh *models.TokenInfo)
- func LoginByWeixin(openId, token string) (err error, access, refresh *models.TokenInfo)
- func Logout(req *http.Request, userId string) error
- func MakeOutTradeNo(userId string) (string, error)
- func MakeQiniuPrivateUploadToken(key string) string
- func MakeQiniuPrivateUrl(key string) string
- func MakeQiniuUploadToken(key string) string
- func ManualCharge(c *gin.Context) error
- func PayPhoneBalance() (float64, error)
- func PayRedpacketBy3rdParty(redpktId string, fee int) bool
- func PayRedpacketByBalance(userId, redpacketId string) bool
- func PhoneRecharge(userId, phone, price string) (*models.PhoneRechargeResp, uint32)
- func PhoneRechargeNotify(state, orderid, ordertime, sign, errMsg string) error
- func PhoneRechargeQuery(phone, price string) (*models.PhoneRechargeQueryResp, error)
- func QueryUnionpayStatus(orderId string) error
- func RefuseFriend(userIdB, userIdA string)
- func Register(phonenum, password string) (uint32, *models.TokenInfo, *models.TokenInfo)
- func RemoveFriend(userId, friendId string)
- func ResetPassword(userId, password, flag, code string) (uint32, *models.TokenInfo, *models.TokenInfo)
- func ResetPhoneNum(userId, phoneNum, password, code string) uint32
- func SubmitEnterpriseCertMaterial(c *gin.Context) uint32
- func TestQiniuUpload(tokenStr string)
- func UnbindOauthAccount(userId, plat string) uint32
- func UnionBackpay() error
- func UnionBackpayNotify(request *http.Request) error
- func UnionpayNotify(request *http.Request) error
- func UpdatePersonalInfo(userId, key string, value interface{}) error
- func VerifyAppRedpacket(redpktId, status string)
- func VerifyPassword(userId, password string) uint32
- func WechatBackPay(userId string, request *http.Request) uint32
- func WechatpayNoify(request *http.Request) error
Constants ¶
This section is empty.
Variables ¶
View Source
var UserList map[string]*models.User
Functions ¶
func AddFriendByAccount ¶
通过手机号或者红包号添加好友
func AuditRedpacket ¶
func BindPhoneNum ¶
绑定手机号(第一次绑定手机号并设置密码)
func BindWeixinAccount ¶
/////////////////////////////////////////////////////// 绑定第三方账号 绑定微信账号
func CreateScanning ¶
func DataRecharge ¶
func DataRecharge(userId, phone, pkgid string) (*models.DataRechargeResp, uint32)
充值流量
func DataRechargeNotify ¶
充值流量回调
func DataRechargeQuery ¶
func DataRechargeQuery(phone string) (*models.DataRechargeQueryResp, error)
查询号码支持的流量套餐
func EditEnterpriseCertInfo ¶
func FindRcToken ¶
从数据库中查询融云token,有就不需要去融云serve获取token flag = true表示重新去融云服务器获取token
func GenerateNewToken ¶
刷新token,用旧的refresh token获取新的access token 和新的refresh token
func GetAlipayParams ¶
func GetAlipayParams() *models.AlipayParams
func GetEnterpriseCertInfo ¶
func GetEnterpriseCertInfo(userId string) (*models.S2C_EnterpriseCertInfo, uint32)
func GetFriendInfo ¶
func GetFriendInfo(userId, targetId string, updateTime int64) (*models.S2C_UserData, error)
用户获取好友列表
func GetRankListByType ¶
func GetRankListByType(userId, tpStr, page string) *models.S2C_RankList
func GetRedpacketList ¶
func GetRedpacketList(index string, req *http.Request) *models.S2C_RedpacketList
获取红包列表
func GetRedpacketStatistics ¶
func GetRedpacketStatistics(userId, redpktId string) *models.S2C_RedpktStatistics
获取红包的统计数据
func GetRedpketRecieveInfo ¶
func GetRedpketRecieveInfo(userId string) *models.S2C_RedpketRecieveInfo
获取收到的红包信息,发出的红包个数和排名等
func GetRedpketRecieveList ¶
func GetRedpketRecieveList(userId, date string) *models.S2C_ReceivedList
收到的红包列表
func GetRedpketSendInfo ¶
func GetRedpketSendInfo(userId, year string) *models.S2C_RedpketSendInfo
获取发出的红包信息,个数和总金额
func GetRedpketSendList ¶
func GetRedpketSendList(userId, year string) *models.S2C_RedpktSendList
获取发出的红包列表
func GetRedpktRecordList ¶
func GetRedpktRecordList(redpktId, cursor string) *models.S2C_RedpktRecord
红包领取记录
func GetScanListByTag1 ¶
func GetScanListByTag1(index, tag string) *models.ScanningList
func GetScanningRedpkt ¶
func GetSystemNoticeList ¶
func GetSystemNoticeList(userId string) *models.S2C_SysNoticeList
func GetTobeReleasedRedpktList ¶
func GetTobeReleasedRedpktList(userId string) *models.S2C_ToBeReleasedList
获取待发布红包列表
func GetUserInfo ¶
func GetUserInfo(userId string, updateTime int64) (*models.S2C_UserData, error)
拉取用户信息
func LoginByWeixin ¶
/////////////////////////////////////////////////////// 第三方登陆
func MakeQiniuPrivateUploadToken ¶
生成私有上传凭证,有效期1小时
func ManualCharge ¶
func PhoneRecharge ¶
func PhoneRecharge(userId, phone, price string) (*models.PhoneRechargeResp, uint32)
充值话费
func PhoneRechargeNotify ¶
充值话费回调
func PhoneRechargeQuery ¶
func PhoneRechargeQuery(phone, price string) (*models.PhoneRechargeQueryResp, error)
根据手机号和充值额度查询商品信息
func ResetPassword ¶
func ResetPassword(userId, password, flag, code string) (uint32, *models.TokenInfo, *models.TokenInfo)
重置密码
func UnbindOauthAccount ¶
/////////////////////////////////////////////////////// 解绑第三方登陆
func UpdatePersonalInfo ¶
更新个人资料(个性签名、地理位置、性别)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.