model

package
v0.0.0-...-cd1bf01 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountLastloginInfo

type AccountLastloginInfo struct {
	UserID          int64     `gorm:"primary_key:true" json:"user_id"` //用户ID
	LastLoginIP     string    `json:"last_login_ip"`
	LastLoginMacid  string    `json:"last_login_macid"`
	LastLoginAppid  string    `json:"last_login_appid"`
	LastLoginChanid int32     `json:"last_login_chanid"`
	LastLoginDevid  int8      `json:"last_login_devid"`
	LoginTime       time.Time `json:"login_time"`
}

AccountLastloginInfo 用户最近登录平台信息

func (AccountLastloginInfo) TableName

func (a AccountLastloginInfo) TableName() string

type AccountMainInfo

type AccountMainInfo struct {
	UserID          int64     `gorm:"primary_key:true" json:"user_id"` //用户ID
	Account         string    `json:"account"`                         //
	Passwd          string    `json:"passwd"`                          //
	AppID           string    `json:"app_id"`                          //
	ProdID          string    `json:"prod_id"`                         //
	NickName        string    `json:"nick_name"`                       //
	SiteID          int32     `json:"site_id"`                         //
	Gender          int8      `json:"gender"`
	ChannelID       int32     `json:"channel_id"`    //
	AccountIndex    int32     `json:"account_index"` //
	AccountType     int16     `json:"account_type"`
	AccountStatus   int8      `json:"account_status"`
	RegisteDate     time.Time `json:"registe_date"`
	RegisteIP       string    `json:"registe_ip"`
	RegisteMacid    string    `json:"registe_macid"`
	RegisteProvince string    `json:"registe_province"`
	RegisteCity     string    `json:"registe_city"`
	CreateTime      time.Time `json:"create_time"`
	UpdateTime      time.Time `json:"update_time"`
}

func (AccountMainInfo) TableName

func (a AccountMainInfo) TableName() string

type AccountSecurityInfo

type AccountSecurityInfo struct {
	UserID     int64     `gorm:"primary_key:true" json:"user_id"` //用户ID
	IdcID      string    `json:"idc_id"`
	PhoneNum   string    `json:"phone_num"`
	EmailAddr  string    `json:"email_addr"`
	AlipayAddr string    `json:"alipay_addr"`
	HomeAddr   string    `json:"home_addr"`
	WxAppID    string    `json:"wx_app_id"`
	WxOpenID   string    `json:"wx_open_id"`
	WxUnionID  string    `json:"wx_union_id"`
	UpdateTime time.Time `json:"update_time"`
}

AccountSecurityInfo 用户安全信息

func (AccountSecurityInfo) TableName

func (a AccountSecurityInfo) TableName() string

type AccountThirdpartInfo

type AccountThirdpartInfo struct {
	UserID     int64  `gorm:"primary_key:true" json:"user_id"` //用户ID
	AppID      string `gorm:"primary_key:true" json:"app_id"`  //用户ID
	ProdID     string `json:"prod_id"`                         //产品线ID
	ThirdAppID string `json:"third_app_id"`                    //第三方AppID

	OpenID      string    `json:"open_id"`
	UnionID     string    `json:"union_id"`
	NickName    string    `json:"nick_name"`
	Gender      int8      `json:"gender"` //第三方性别
	HeadUrl     string    `json:"head_url"`
	AccountType int8      `json:"account_type"` //注册来源
	CreateTime  time.Time `json:"create_time"`
	UpdateTime  time.Time `json:"update_time"`
}

AccountThirdpartInfo 用户第三方信息

func (AccountThirdpartInfo) TableName

func (a AccountThirdpartInfo) TableName() string

type AccountTokenInfo

type AccountTokenInfo struct {
	Account string
	UserID  int64
	Token   string
	ProdID  string
}

type ApplyRobotInfo

type ApplyRobotInfo struct {
	RobotID     int64
	NickName    string
	TableID     int32
	ChairID     int32
	GameCoin    int64
	PrizeTicket int32
	VipExp      int32
	Gender      int8
	HeadUrl     string //头像地址
	MatchTime   int64  //匹配入座时间
	UpdateTime  int64  //更新UI时间
}

type AttributeChangelog

type AttributeChangelog struct {
	BaseLog
	RoomID       string //房间id
	RoomName     string //房间名称
	RoomLevel    int32  //
	TableID      int32  //桌子id
	CombatSerial string //对局编号(对局)
	OrderSerial  string //订单编号(充值/兑换)

	SourceID        int32     //来源id
	AttributeType   int32     //属性类型
	AttributeID     int32     //属性id
	AttributeChange int32     //属性变化
	AttributeRemain int32     //属性剩余
	ActivityID      int32     //活动id
	ActiveBeginTime time.Time //活动开始时间
	ActiveEndTime   time.Time //活动结束时间
	ErrMsg          string    //操作错误信息
}

AttributeChangelog 用户货币道具等属性改变日志

func (*AttributeChangelog) MarshalLogObject

func (proplog *AttributeChangelog) MarshalLogObject(objencoder zapcore.ObjectEncoder) error

func (AttributeChangelog) TableName

func (l AttributeChangelog) TableName() string

type BaseLog

type BaseLog struct {
	ID             int64  `gorm:"primary_key:true"`
	EventTime      int64  //事件发生时间(毫秒)
	Os             string //操作系统A
	IP             string //ip地址
	LobbyVersion   string //大厅版本
	BranchID       string //合集ID
	Branch         string //合集描述 例如:休闲新大厅
	GameID         int32  //游戏id
	GameName       string //
	UserID         int64  //玩家id
	RegTime        time.Time
	RegSiteID      int32
	RegChannelInfo string //注册长渠道
	RegChannelID   int32  //注册短渠道
	RegChannelName string //注册渠道名
	DeviceID       string //设备id

	LgnSiteID      int32
	LgnChannelInfo string //长渠道
	LgnChannelID   int32  //短渠道
	LgnChannelName string //登录渠道名

	VipLevel     int32
	GameCoinNum  int64
	RedPacketNum int32
	DiamondNum   int64
	EventName    string //事件名称:进入房间

	CreateTime  time.Time
	Robot       int8
	ActionName  string //事件下面的动作
	LgnBannerID string //用户引导banner位置
}

BaseLog 日志基础内容

func (*BaseLog) SetCommon

func (b *BaseLog) SetCommon(player *base.ClientNode)

type GameDataRecord

type GameDataRecord struct {
	UserID        int64     `gorm:"primary_key:true" json:"user_id"` //用户ID
	GameID        int32     `gorm:"primary_key:true" json:"game_id"` //用户ID
	HelpTimes     int32     `json:"help_times"`
	HelpCoin      int64     `json:"help_coin"`
	RechargeTimes int32     `json:"recharge_times"`
	RechargeMoney int32     `json:"recharge_money"`
	PlayTime      int32     `json:"play_time"`
	PlayCoin      int64     `json:"play_coin"`
	OnlineTime    int32     `json:"online_time"`
	Prizeticket   int32     `json:"prizeticket"`
	WinTimes      int32     `json:"win_times"`
	LoseTimes     int32     `json:"lose_times"`
	WinStkTimes   int32     `json:"win_stk_times"`
	LoseStkTimes  int32     `json:"lose_stk_times"`
	WinmStkTimes  int32     `json:"winm_stk_times"`
	LosemStkTimes int32     `json:"losem_stk_times"`
	GameExp       int32     `json:"game_exp"`
	LoginTime     time.Time `json:"login_time"`
	LoginIP       string    `json:"login_ip"`
	GameExtStr    string    `json:"game_ext_str"`
	UpdateTime    time.Time `json:"update_time"`
}

func (GameDataRecord) TableName

func (a GameDataRecord) TableName() string

type GameUserAdInfo

type GameUserAdInfo struct {
	UserID             int64 `gorm:"column:user_id;primary_key" json:"user_id"`
	LookChaAdSucTimes  int32 `gorm:"column:look_chaadd_suctimes" json:"look_chaadd_suctimes"` //成功看插屏次数
	LookADSucTimes     int32 `gorm:"column:look_ad_suctimes" json:"look_ad_suctimes"`         //成功看激励视频次数
	LookExcAdPlayTimes int32 `gorm:"column:look_excad_playtimes" json:"look_excad_playtimes"` //CD次数
	GetPowerTimes      int32 `json:"get_power_times"`                                         //看广告获取体力次数
	UpdateTime         int64 `json:"update_time"`                                             //更新时间
}

玩家看广告数据

func (GameUserAdInfo) TableName

func (a GameUserAdInfo) TableName() string

type GameUserBackpack

type GameUserBackpack struct {
	UserID     int64     `gorm:"primary_key:true" json:"user_id"` //用户ID
	PropID     int32     `gorm:"primary_key:true" json:"prop_id"`
	PropCount  int32     `json:"prop_count"`
	PropTime   int64     `json:"prop_time"`
	UpdateTime time.Time `json:"update_time"`
	CreateTime time.Time `json:"create_time"`
}

func (GameUserBackpack) TableName

func (a GameUserBackpack) TableName() string

type GameUserCurrency

type GameUserCurrency struct {
	UserID      int64     `gorm:"primary_key:true" json:"user_id"` //用户ID
	GameCoin    int64     `json:"game_coin"`
	PrizeTicket int32     `json:"prize_ticket"`
	Diamond     int64     `json:"diamond"`
	UpdateTime  time.Time `json:"update_time"`
}

func (GameUserCurrency) TableName

func (a GameUserCurrency) TableName() string

type GameUserDayProperty

type GameUserDayProperty struct {
	UserID          int64     `gorm:"primary_key:true" json:"user_id"` //用户ID
	OnlineTime      int32     `json:"online_time"`
	PlayTime        int32     `json:"play_time"`
	PlayCoin        int64     `json:"play_coin"`
	PlayTax         uint64    `json:"play_tax"`
	PlayPrizeticket int32     `json:"play_prizeticket"`
	HelpCoin        uint64    `json:"help_coin"`
	HelpTimes       int32     `json:"help_times"`
	RechargeTimes   int32     `json:"recharge_times"`
	RechargeMoney   int32     `json:"recharge_money"`
	PlayTimes       int32     `json:"play_times"`    //每日玩的局数
	TaskID          int32     `json:"task_id"`       //每日任务数
	TaskProgress    int32     `json:"task_progress"` //每日任务完成进度
	TaskTime        time.Time `json:"task_time"`     //每日任务开始时间
	UpdateTime      int64     `json:"update_time"`
}

func (GameUserDayProperty) TableName

func (a GameUserDayProperty) TableName() string

type GameUserDaybuysaleRecord

type GameUserDaybuysaleRecord struct {
	UserID       int64     `gorm:"primary_key:true" json:"user_id"` //用户ID
	GameID       int32     `json:"game_id"`
	DaybuyTimes  int32     `json:"daybuy_times"`
	DaybuyCoin   int32     `json:"daybuy_coin"`
	DaysaleTimes int32     `json:"daysale_times"`
	DaysaleCoins int32     `json:"daysale_coins"`
	UpdateTime   time.Time `json:"update_time"`
}

func (GameUserDaybuysaleRecord) TableName

func (a GameUserDaybuysaleRecord) TableName() string

type GameUserOnline

type GameUserOnline struct {
	UserID      int64     `gorm:"primary_key:true" json:"user_id"` //用户ID
	AppID       string    `json:"app_id"`
	ChannelID   int32     `json:"channel_id"`
	BranchID    string    `json:"branch_id"`
	SiteID      int32     `json:"site_id"`
	GameID      int32     `json:"game_id"`
	ServerID    string    `json:"server_id"`
	ServerLevel int32     `json:"server_level"`
	CreateTime  time.Time `json:"create_time"`
}

func (GameUserOnline) TableName

func (a GameUserOnline) TableName() string

type GameUserProperty

type GameUserProperty struct {
	UserID          int64     `gorm:"primary_key:true" json:"user_id"` //用户ID
	OnlineTime      int32     `json:"online_time"`
	PlayTime        int32     `json:"play_time"`
	PlayCoin        int64     `json:"play_coin"`
	PlayTax         uint64    `json:"play_tax"`
	PlayPrizeticket int32     `json:"play_prizeticket"`
	RechargeTimes   int32     `json:"recharge_times"`
	RechargeMoney   int32     `json:"recharge_money"`
	VipExp          int32     `json:"vip_exp"`
	GameExp         int32     `json:"game_exp"`
	UpdateTime      time.Time `json:"update_time"`
	RedPacketTimes  int32     `json:"red_packet_times"`  //拆红包次数
	GameWinTimes    int32     `json:"game_win_times"`    //赢局次数
	GameLoseTimes   int32     `json:"game_lose_times"`   //输局次数
	GameBWinTimes   int32     `json:"game_b_win_times"`  //赢局次数
	GameBLoseTimes  int32     `json:"game_b_lose_times"` //输局次数
	BuybPlayTimes   int32     `json:"buyb_play_times"`   //首充B之后,玩的局数
}

func (GameUserProperty) TableName

func (a GameUserProperty) TableName() string

type GameUserShareInfo

type GameUserShareInfo struct {
	ShareID   int32  `json:"share_id"`   //分享ID
	ShareType int32  `json:"share_type"` //分享类型
	ShareURL  string `json:"share_url"`  //分享地址
	ShareTime int64  `json:"share_time"` //分享时间
}

GameUserShareInfo 分享数据

type GameUserTask

type GameUserTask struct {
	UserID       int64     `gorm:"column:user_id;primary_key" json:"user_id"`
	TaskId       int32     `gorm:"column:task_id" json:"task_id"`             //成功看插屏次数
	TaskType     int32     `gorm:"column:task_type" json:"task_type"`         //成功看激励视频次数
	TaskProgress int32     `gorm:"column:task_progress" json:"task_progress"` //CD次数
	TaskTime     time.Time `gorm:"column:task_time" json:"task_time"`         //CD次数
	UpdateTime   int64     `gorm:"column:update_time" json:"update_time"`
}

玩家看广告数据

func (GameUserTask) TableName

func (a GameUserTask) TableName() string

type GiftGetlog

type GiftGetlog struct {
	BaseLog
	GiftID        int32  //礼包ID
	RoomLevel     int32  //房间等级
	TableLevel    int32  //桌子等级
	SourceID      int32  //来源id
	ActivityID    int32  //活动id
	PrizeCont     string //礼包内容
	PlayTime      int64  //游戏时长
	PlayCoin      int64  //累计输赢
	RoundPlayCoin int64  //本局输赢
	RoomID        string //房间id
	RoomName      string //房间名称
	OrderSerial   string //订单编号(充值/兑换)
}

GiftGetlog 礼包获得日志

func (GiftGetlog) TableName

func (l GiftGetlog) TableName() string

type Leavegamelog

type Leavegamelog struct {
	BaseLog
	RoomID    string //房间id
	RoomName  string //房间名称
	RoomLevel int32  //
}

Leavegamelog 退出房间日志

func (*Leavegamelog) MarshalLogObject

func (leavegamelog *Leavegamelog) MarshalLogObject(objencoder zapcore.ObjectEncoder) error

func (Leavegamelog) TableName

func (l Leavegamelog) TableName() string

type Logingamelog

type Logingamelog struct {
	BaseLog
	RoomID    string //房间id
	RoomName  string //房间名称
	RoomLevel int32  //
}

Logingamelog 进入房间日志

func (*Logingamelog) MarshalLogObject

func (logingamelog *Logingamelog) MarshalLogObject(objencoder zapcore.ObjectEncoder) error

func (Logingamelog) TableName

func (l Logingamelog) TableName() string

type Playgamelog

type Playgamelog struct {
	BaseLog
	RoomID       string    //房间id
	RoomName     string    //房间名称
	RoomLevel    int32     //
	TableID      int32     //桌子id
	TableLevel   int32     //桌子等级
	LaunchFrom   string    //对局来源
	CombatSerial string    //对局编号
	SitDownTime  time.Time //入座时间
	HandUpTime   time.Time //举手时间
	TimeBegin    time.Time //对局开始时间(毫秒)
	TimeEnd      time.Time //对局结束时间(毫秒)

	Multiple       int32 //翻倍
	GamecoinChange int32 //积分变化
	GamecoinRemain int32 //积分剩余
	TaxNum         int32 //税收

	IsFreshhelp  int32  //是否新手补助阶段
	IsBanker     int32  //是否庄家
	IsBankrupt   int32  //是否破产
	IsRoomup     int32  //是否升场
	IsRoomdown   int32  //是否降场
	IsRobot      int32  //是否机器人
	IsOffline    int32  //是否离线
	TablePlayers string //同桌所有用户ID
	CardsBegin   string //开始手牌
	CardsEnd     string //结束手牌

}

Playgamelog 游戏对局日志

func (*Playgamelog) MarshalLogObject

func (playgamelog *Playgamelog) MarshalLogObject(objencoder zapcore.ObjectEncoder) error

func (Playgamelog) TableName

func (l Playgamelog) TableName() string

Jump to

Keyboard shortcuts

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