Documentation ¶
Index ¶
- Constants
- func AddAnnuonceData(data *AnnuonceData) bool
- func AddBanAccount(data *BanAccount) bool
- func AddBanRole(data *BanRole) bool
- func AddGlobalMail(info *protoMsg.MailInfo)
- func AddUsedName(name string, id uint64)
- func DelAnnuoncing(id uint64) bool
- func DelDataCenterAddr(field1, field2 string) error
- func DelTeamVoiceInfo(teamId uint64)
- func FetchGameID() uint64
- func FillCDKEY(cdkey string) bool
- func GetAllAnnuoncingData() *protoMsg.InitAnnuonceInfoRet
- func GetAnnuonceGlobalID() uint64
- func GetCDKEYState(cdkey string) uint32
- func GetDataCenterAddr(field string) (string, error)
- func GetGlobalMails() []*protoMsg.MailInfo
- func GetIDByName(name string) uint64
- func GetTeamGlobalID() uint64
- func IdipMailUtil() *idipMailUtil
- func JudgeCDKEYInUse(cdkey string) bool
- func JudgeNameInUse(name string) bool
- func MailUtil(uid uint64) *mailUtil
- func PlayerCareerDataUtil(uid uint64, season int) *playerCareerDataUtil
- func PlayerDayDataUtil(uid uint64, season int) *playerDayDataUtil
- func PlayerGlobalMailUtil(uid uint64) *playerGlobalMailUtil
- func PlayerInfoUtil(uid uint64) *playerInfoUtil
- func PlayerMapUtil(uid uint64) *playerMapUtil
- func PlayerRankUtil(typ string, season int) *playerRankUtil
- func PlayerRatingUtil(uid uint64, season int) *playerRatingUtil
- func PlayerTempUtil(uid uint64) *playerTempUtil
- func PrintAnnuoncingData()
- func SetCDKEYBeUsed(cdkey string, userName string) bool
- func SetCDKEYUse(cdkey string, account string)
- func SetDataCenterAddr(field1 string, value1 interface{}, field2 string, value2 interface{}) error
- func SetTeamVoiceInfo(teamId uint64, memlist []*MemVoiceInfo)
- func SpaceTeamUtil(uid uint64) *spaceTeamUtil
- func UnbanAccount(account string) bool
- func UnbanRole(role string) bool
- type AnnuonceData
- type ApplyInfo
- type BanAccount
- type BanRole
- type FriendInfo
- type FriendUtil
- func (f *FriendUtil) AddApplyInfo(info ApplyInfo) bool
- func (f *FriendUtil) AddFriend(info FriendInfo) bool
- func (f *FriendUtil) DelApply(id uint64) bool
- func (f *FriendUtil) DelFriend(id uint64) bool
- func (f *FriendUtil) GetApplyList() []*ApplyInfo
- func (f *FriendUtil) GetFriendList() []*FriendInfo
- func (f *FriendUtil) GetPlatFrientInfo() []uint64
- func (f *FriendUtil) GetSigleApplyReq(id uint64) *FriendInfo
- func (f *FriendUtil) InApplyListByID(id uint64) bool
- func (f *FriendUtil) IsFriendByID(id uint64) bool
- func (f *FriendUtil) IsReachApplyLimit() bool
- func (f *FriendUtil) IsReachLimit() bool
- func (f *FriendUtil) UpdatePlatFrientInfo(info []uint64)
- type GoodsInfo
- type GoodsUtil
- type IdipMailData
- type MemVoiceInfo
- type PlayerMapData
- type PlayerRating
- type RedisVoiceInfo
- type SliAnData
- type SliIdipMail
- type SpaceTeamInfo
- type TeamInfo
Constants ¶
const ( BanAccountRedis = "BanAccount" BanRoleRedis = "BanRole" )
const ( CDKEYEXIST = 0 // 激活存在未使用 CDKEYINUSE = 1 // 激活码已被使用 CDKEYABSEND = 2 // 激活码不存在 )
激活码状态
const (
IdipMail = "IdipMailInfo"
)
Variables ¶
This section is empty.
Functions ¶
func AddGlobalMail ¶
func DelDataCenterAddr ¶
DelDataCenterAddr 删除DataCenter地址
func DelTeamVoiceInfo ¶
func DelTeamVoiceInfo(teamId uint64)
func GetAllAnnuoncingData ¶
func GetAllAnnuoncingData() *protoMsg.InitAnnuonceInfoRet
GetAllAnnuoncingData 获取所有进行中的公告数据
func GetDataCenterAddr ¶
GetDataCenterAddr 获取DataCenter地址
func GetGlobalMails ¶
func IdipMailUtil ¶
func IdipMailUtil() *idipMailUtil
func PlayerCareerDataUtil ¶
func PlayerDayDataUtil ¶
func PlayerGlobalMailUtil ¶
func PlayerGlobalMailUtil(uid uint64) *playerGlobalMailUtil
func PlayerRankUtil ¶
func PlayerRatingUtil ¶
func SetDataCenterAddr ¶
SetDataCenterAddr 设置DataCenter地址
func SetTeamVoiceInfo ¶
func SetTeamVoiceInfo(teamId uint64, memlist []*MemVoiceInfo)
SetTeamVoiceInfo TODO:什么时候删除是个问题,需要解决
Types ¶
type AnnuonceData ¶
type AnnuonceData struct { ID uint64 ServerID uint32 // 服务器:微信(1),手Q(2) PlatID uint8 // 平台:IOS(0),安卓(1) StartTime uint32 // 开始时间 EndTime uint32 // 结束时间 InternalTime uint32 // 滚动间隔时间 :**秒/次 Content string // 公告内容 Source uint32 // 渠道号,由前端生成,不需要填写 Serial string // 流水号,由前端生成,不需要填写 }
AnnuonceData 公告数据
func QueryAnnuonceData ¶
func QueryAnnuonceData(beginTime uint32, endTime uint32) []*AnnuonceData
查询公告数据
type BanAccount ¶
type BanAccount struct { Uid uint64 OpenID string BanDuration int32 // 封停时长,-1表示永久封号 EndTime uint32 // 封停结束时间 BanReason string // 封号原因:(自定义文字,玩家登录时客户端可见) }
BanAccount 账号封停信息
func GetBanAccountData ¶
func GetBanAccountData(account string) *BanAccount
GetBanAccountInfo 获取账号封停信息
type BanRole ¶
type BanRole struct { Uid uint64 OpenID string RoleID string BanDuration int32 // 封停时长,-1表示永久封号 EndTime uint32 // 封停结束时间 BanReason string // 封号原因:(自定义文字,玩家登录时客户端可见) }
BanRole 角色封停信息
type FriendUtil ¶
type FriendUtil struct {
// contains filtered or unexported fields
}
friendUtil 好友工具
func (*FriendUtil) AddApplyInfo ¶
func (f *FriendUtil) AddApplyInfo(info ApplyInfo) bool
AddApplyInfo 添加申请信息
func (*FriendUtil) GetApplyList ¶
func (f *FriendUtil) GetApplyList() []*ApplyInfo
GetApplyList 获取申请列表
func (*FriendUtil) GetFriendList ¶
func (f *FriendUtil) GetFriendList() []*FriendInfo
GetFriendList 获取好友列表
func (*FriendUtil) GetPlatFrientInfo ¶
func (f *FriendUtil) GetPlatFrientInfo() []uint64
GetPlatFrientInfo 获取平台好友信息
func (*FriendUtil) GetSigleApplyReq ¶
func (f *FriendUtil) GetSigleApplyReq(id uint64) *FriendInfo
GetSigleApplyReq 获取申请请求
func (*FriendUtil) InApplyListByID ¶
func (f *FriendUtil) InApplyListByID(id uint64) bool
InApplyListByID 根据id判断是否在申请列表中
func (*FriendUtil) IsFriendByID ¶
func (f *FriendUtil) IsFriendByID(id uint64) bool
IsFriendByID 根据id判断是否为好友
func (*FriendUtil) IsReachApplyLimit ¶
func (f *FriendUtil) IsReachApplyLimit() bool
IsReachApplyLimit 是否达到好友申请上限
func (*FriendUtil) UpdatePlatFrientInfo ¶
func (f *FriendUtil) UpdatePlatFrientInfo(info []uint64)
UpdatePlatFrientInfo 更新平台好友信息
type GoodsUtil ¶
type GoodsUtil struct {
// contains filtered or unexported fields
}
GoodsUtil
func PlayerGoodsUtil ¶
func (*GoodsUtil) AddGoodsInfo ¶
AddGoodsInfo 添加商品信息
func (*GoodsUtil) GetAllGoodsInfo ¶
GetAllGoodsInfo 获取所有商品信息
func (*GoodsUtil) GetGoodsInfo ¶
GetGoodsInfo 获取物品信息
func (*GoodsUtil) UpdateGoodsInfo ¶
UpdateGoodsInfo 更新商品信息
type IdipMailData ¶
type IdipMailData struct { MailID uint32 `json:"MailId"` // 邮件ID SendTime uint32 `json:"SendTime"` // 发送时间 MailTitle string `json:"MailTitle"` // 邮件标题 MailContent string `json:"MailContent"` // 邮件内容 MinLevel uint16 `json:"MinLevel"` // 最小领取等级(默认0) MaxLevel uint32 `json:"MaxLevel"` // 最大领取等级(默认0) ItemOneID uint32 `json:"ItemOneId"` // 道具ID1 ItemOneNum uint32 `json:"ItemOneNum"` // 道具数量1 ItemTwoID uint32 `json:"ItemTwoId"` // 道具ID2 ItemTwoNum uint32 `json:"ItemTwoNum"` // 道具数量2 ItemThreeID uint32 `json:"ItemThreeId"` // 道具ID3 ItemThreeNum uint32 `json:"ItemThreeNum"` // 道具数量3 ItemFourID uint32 `json:"ItemFourId"` // 道具ID4 ItemFourNum uint32 `json:"ItemFourNum"` // 道具数量4 ItemFiveID uint32 `json:"ItemFiveId"` // 道具ID5 ItemFiveNum uint32 `json:"ItemFiveNum"` // 道具数量5 Hyperlink string `json:"Hyperlink"` // 超链接 ButtonCon string `json:"ButtonCon"` // 按钮内容:(可以为空、为空时则不显示该超链接的按钮。不为空时则按钮显示输入的文字、如”点击查看“按钮) }
type MemVoiceInfo ¶
func GetTeamVoiceInfo ¶
func GetTeamVoiceInfo(teamId uint64) []*MemVoiceInfo
type PlayerMapData ¶
type PlayerMapData struct { ID uint64 MapID uint64 // 地图ID MapName string // 地图名 Pos linmath.Vector3 //坐标 Rota linmath.Vector3 //旋转 }
PlayerMapData 地图相关数据
type PlayerRating ¶
type PlayerRating struct { Inited bool // 是否已初始化 SoloWinRating float32 SoloKillRating float32 SoloFinalRating float32 DuoWinRating float32 DuoKillRating float32 DuoFinalRating float32 SquadWinRating float32 SquadKillRating float32 SquadFinalRating float32 }
PlayerRating 录入redis哈希表 PlayerRating 表中
type RedisVoiceInfo ¶
type RedisVoiceInfo struct {
MemList []*MemVoiceInfo `json:"memlist"`
}
type SliAnData ¶
type SliAnData []*AnnuonceData
type SliIdipMail ¶
type SliIdipMail []*IdipMailData
func (SliIdipMail) Len ¶
func (a SliIdipMail) Len() int
func (SliIdipMail) Less ¶
func (a SliIdipMail) Less(i, j int) bool
func (SliIdipMail) Swap ¶
func (a SliIdipMail) Swap(i, j int)
type SpaceTeamInfo ¶
SpaceTeamInfo 场景队伍信息