38 lines
1.5 KiB
Go
38 lines
1.5 KiB
Go
package awssqs
|
|
|
|
import (
|
|
"bygdata/global"
|
|
|
|
"gorm.io/datatypes"
|
|
)
|
|
|
|
type SqsUserBehaviorLog struct {
|
|
global.GVA_MODEL2
|
|
ActionId int32 `json:"actionId" gorm:"column:action_id;comment:行为ID;index"`
|
|
Userno string `json:"userno" gorm:"column:userno;comment:用户号;index"`
|
|
Ip string `json:"ip" gorm:"column:ip;comment:IP地址"`
|
|
Header datatypes.JSON `json:"header" gorm:"column:header;comment:请求头(key-value)"`
|
|
Phone string `json:"phone" gorm:"column:phone;comment:手机号"`
|
|
}
|
|
|
|
func (SqsUserBehaviorLog) TableName() string {
|
|
return "byl_data.sqs_user_behavior_log"
|
|
}
|
|
|
|
type SqsWalletBalanceChangeLog struct {
|
|
global.GVA_MODEL2
|
|
Userno string `json:"userno" gorm:"column:userno;comment:用户号;index"`
|
|
Amount string `json:"amount" gorm:"column:amount;comment:变更金额"`
|
|
SourceType int32 `json:"sourceType" gorm:"column:source_type;comment:来源类型"`
|
|
SourceId string `json:"sourceId" gorm:"column:source_id;comment:来源ID;index"`
|
|
GameId string `json:"gameId" gorm:"column:game_id;comment:游戏ID"`
|
|
BeforeBalance string `json:"beforeBalance" gorm:"column:before_balance;comment:变更前余额"`
|
|
AfterBalance string `json:"afterBalance" gorm:"column:after_balance;comment:变更后余额"`
|
|
RecordNo string `json:"recordNo" gorm:"column:record_no;comment:账变流水号"`
|
|
}
|
|
|
|
func (SqsWalletBalanceChangeLog) TableName() string {
|
|
return "byl_data.sqs_wallet_balance_change_log"
|
|
}
|
|
|