Documentation
¶
Index ¶
- type AlgorithmInfo
- type Base
- type BetByRobot
- type BetDayHourInfo
- type BetDayInfo
- type BjlInfo
- type Dictionary
- type EVPredictive
- type EVPredictiveTotal
- type EVPredictiveTotalByDay
- type EVType
- type EvThirdPre
- type GameDayTotal
- type GameHub
- type GameRoom
- type MSGame
- type MSGameHistory
- type Menu
- type OPHistory
- type Role
- type RoleCode
- type RoleMenu
- type RoomBase
- type RoomDayTotal
- type RoomHourTotal
- type User
- type UserDayTotal
- type UserGameHistory
- type UserHistory
- type WinTotal
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlgorithmInfo ¶
type AlgorithmInfo struct { gorm.Model AlgorithmName string `gorm:"column:algorithm_name;size:30"` // 算法名称 AlgorithmType string `gorm:"column:algorithm_type;size:30"` // 算法类型 AlgorithmDesc string `gorm:"column:algorithm_desc;size:256"` // 算法描述 WorkerCode string `gorm:"column:worker_code;size:50;index"` // 算法工作者的唯一标识 EVType int `gorm:"column:ev_type;size:10"` // 算法类型-关联到策略表-策略类型 EVBet int8 `gorm:"column:ev_bet;size:8;not null;default:1;index"` //1庄闲 2大小 IsUse int `gorm:"column:is_use;size:1"` // 是否使用 IsBet int `gorm:"column:is_bet;size:1"` //是否用于实盘推荐 }
AlgorithmInfo 算法信息-算法通过code推送数据
type BetByRobot ¶
type BetByRobot struct { gorm.Model UserID string `gorm:"column:user_id;type:varchar(50)"` //用户ID RoomName string `gorm:"column:room_name;type:varchar(50)"` //房间名 GameFrom string `gorm:"column:game_from;type:varchar(50)"` // 游戏来源 GameType string `gorm:"column:game_type;type:varchar(50)"` // 游戏类型 EvType int `gorm:"column:ev_type;type:int(10)"` //选择的策略-下注任务创建时候存入 BetType string `gorm:"column:bet_type;type:varchar(50);not null;index"` //下注类型 庄 闲 和 任意对 大 小 庄对 闲对 Amount decimal.Decimal `gorm:"column:amount;type:decimal(10,2);not null;default:10"` //下注金额-当前先写死 1.0版本 MSGameUUID string `gorm:"column:ms_game_uuid;type:varchar(50)"` // 游戏局ID BeforeMsGameHistoryID string `gorm:"column:before_ms_game_history_id;type:varchar(50)"` // 传入预测前的游戏记录ID(由于新的游戏记录还没有生成所以传入之前的) Result string `gorm:"column:result;type:varchar(50)"` // 下注结果-通过另外的job来更新下注的结果 ISClicked int `gorm:"column:is_clicked;type:int;not null;default:0"` // 是否已经点击了 0 等待操作 1点击 2 (检测到当前为非可下注的时间-放弃) 3牌型为洗牌中无法下注 WorkerCode string `gorm:"column:worker_code;size:50;index"` // 算法工作者的唯一标识 }
BetByRobot 通过机器人下注的事件表
type BetDayHourInfo ¶
type BetDayHourInfo struct { RoomBase BetDayInfoID uint `gorm:"column:bet_day_info_id;type:int;not null;index"` //当日关联的ID //OptimumID uint `gorm:"column:optimum_id;type:int;index;not null;default:0"` //选择的最优策略ID Hour int `gorm:"column:hour;type:tinyint(1);index;not null"` // 小时 EvBets int `gorm:"column:ev_bets;size:10;not null;default:1;index"` //1庄闲 2大小 3对子 HourTimes int `gorm:"column:hour_times;size:8;not null;default:0;index"` // 0 1 2 3 StartEnd string `gorm:"column:start_end;type:varchar(20);;not null;default:'00:00-59:59'"` //00:00-30:00 30:01-59:59 开始与结束的时间范围 根据配置的小时次数来定义 WinTotal WorkerCode string `gorm:"column:worker_code;index;not null;default:bf701bbb0e1b413d85f85e59ed66b621"` }
BetDayHourInfo 当日下注每小时的动态数据-从预测的内容里变更信息 与该小时的小计 统计该小时该策略在该房间的数据
type BetDayInfo ¶
type BetDayInfo struct { gorm.Model GameFrom string `gorm:"column:game_from;type:varchar(20);index;not null"` GameType string `gorm:"column:game_type;type:varchar(20);index;not null"` Date time.Time `gorm:"column:date;type:date;not null"` // 日期 2024-09-06 EVType int `gorm:"column:ev_type;type:tinyint(1);not null"` //OptimumID uint `gorm:"column:optimum_id;type:int;not null;index"` //选择的最优策略ID FirstRoom string `gorm:"column:first_room;type:varchar(50);index;not null"` //首次下注的房间 EvBets int `gorm:"column:ev_bets;size:10;not null;default:1;index"` //1庄闲 2大小 3对子 WorkerCode string `gorm:"column:worker_code;index;not null;default:bf701bbb0e1b413d85f85e59ed66b621"` WinTotal }
当日下注的信息与当日的总计
type BjlInfo ¶
type BjlInfo struct { //庄赔率 ZOdds float64 `gorm:"column:z_odds;type:double;not null;default:1.95;comment:庄赔率"` //闲赔率 XOdds float64 `gorm:"column:x_odds;type:double;not null;default:2;comment:闲赔率"` //和赔率 HOdds float64 `gorm:"column:h_odds;type:double;not null;default:9;comment:和赔率"` //大的赔率 DaOdds float64 `gorm:"column:da_odds;type:double;not null;default:1.5;comment:大的赔率"` //小的赔率 XiaoOdds float64 `gorm:"column:xiao_odds;type:double;not null;default:2.5;comment:小的赔率"` //反水率 FSRate float64 `gorm:"column:fs_rate;type:double;not null;default:0.01;comment:反水率"` }
BjlInfo 综合赔率信息
type Dictionary ¶
type Dictionary struct { gorm.Model Name string `json:"name" gorm:"type:varchar(50);comment:名称;index"` Code string `json:"code" gorm:"type:varchar(50);comment:编码;index"` Value string `json:"value" gorm:"type:varchar(255);comment:值"` Desc string `json:"desc" gorm:"type:varchar(255);comment:描述"` Sort int `json:"sort" gorm:"type:int;comment:排序"` //默认顺序 }
Dictionary 数据字典表
type EVPredictive ¶
type EVPredictive struct { Base MSGameUUID string `gorm:"column:ms_game_uuid;type:varchar(50);not null;index"` // 游戏UUID MSGameHistoryID int `gorm:"column:ms_game_history_id;type:int(10);index"` // 游戏卡牌记录历史 GameType string `gorm:"column:game_type;type:varchar(50);not null;default:'bg';index"` //bg ag GameFrom string `gorm:"column:game_from;type:varchar(100);index;not null;default:'美盛'"` //游戏来源 美盛/开云等等 EVType int `gorm:"column:ev_type;type:int(10);index"` // EV类型 1-ev大 2-ev大且绝对值差1.47 Predictive int `gorm:"column:predictive;type:int(10);index"` // 预测结果 0不推荐-1闲 2庄 3和(根据推荐来进行) SOBPredictive int `gorm:"column:sob_predictive;size:8;index"` // 预测大小 1大2小 DZPredictive int `gorm:"column:dz_predictive;size:8;index"` //1闲对 2庄对 3任意对 Result int `gorm:"column:result;type:int(10);index"` // 真实的结果 -1闲 2庄 3和(根据推荐来进行) XD int `gorm:"column:;size:8"` //闲对子 1 对子 2 不是 ZD int `gorm:"column:zd;size:8"` //庄对子 1 对子 2 不是 SOB int `gorm:"column:sob;size:8"` //1 大 2 小 BetAmount decimal.Decimal `gorm:"column:bet_amount;type:decimal(10,2)"` //下注金额 默认每次下注20.0元 EVList string `gorm:"column:ev_list;type:varchar(255)"` // EV值列表 1:--- 2:--- 3:--- Probability string `gorm:"column:probability;type:varchar(255)"` //概率的列表 BeforeHistoryID int `gorm:"column:before_history_id;type:int(10);index"` //前一个ID RoomName string `gorm:"column:room_name;type:varchar(32);index;comment:房间名"` //房间名 DayNum int `gorm:"column:day_num;type:int(10);index;comment:日期"` //20240904 Sort int `gorm:"column:sort;type:int(10);index;not null;default:0;comment:排序"` //排序 }
EVPredictive 游戏预测与结果对比分析
type EVPredictiveTotal ¶
type EVPredictiveTotal struct { Base GameNum int `gorm:"column:game_num;type:int(10)"` // 游戏局数 GameType string `gorm:"column:game_type;type:varchar(50);not null;default:'bg'"` //bg ag GameFrom string `gorm:"column:game_from;type:varchar(100);not null;default:'美盛'"` //游戏来源 美盛/开云等等 EVType int `gorm:"column:ev_type;type:int(10);index"` // EV类型 1-ev大 2-ev大且绝对值差1.47 AllNum int `gorm:"column:all_num;type:int(10)"` //总共局数 RightNum int `gorm:"column:right_num;type:int(10)"` //正确局数 BetAmount decimal.Decimal `gorm:"column:bet_amount;type:decimal(10,2)"` //下注金额 默认每次下注20.0元 AllAmount decimal.Decimal `gorm:"column:all_amount;type:decimal(10,2)"` //总金额 WinAmount decimal.Decimal `gorm:"column:win_amount;type:decimal(10,2)"` //总赢金额 LoseAmount decimal.Decimal `gorm:"column:lose_amount;type:decimal(10,2)"` //总输金额 }
EVPredictiveTotal 游戏预测与结果对比分析统计
type EVPredictiveTotalByDay ¶
type EVPredictiveTotalByDay struct { ID uint `gorm:"primarykey"` Date string `gorm:"column:date;type:varchar(10);not null;"` //日期 2024-01-01 GameNum int `gorm:"column:game_num;type:int(10)"` // 游戏局数 GameType string `gorm:"column:game_type;type:varchar(50);not null;default:'bg'"` //bg ag GameFrom string `gorm:"column:game_from;type:varchar(100);not null;default:'美盛'"` //游戏来源 美盛/开云等等 EVType int `gorm:"column:ev_type;type:int(10);index"` // EV类型 1-ev大 2-ev大且绝对值差1.47 AllNum int `gorm:"column:all_num;type:int(10)"` //总共局数 RightNum int `gorm:"column:right_num;type:int(10)"` //正确局数 BetAmount decimal.Decimal `gorm:"column:bet_amount;type:decimal(10,2)"` //下注金额 默认每次下注20.0元 AllAmount decimal.Decimal `gorm:"column:all_amount;type:decimal(10,2)"` //总金额 WinAmount decimal.Decimal `gorm:"column:win_amount;type:decimal(10,2)"` //总赢金额 LoseAmount decimal.Decimal `gorm:"column:lose_amount;type:decimal(10,2)"` //总输金额 AllGameTimes int `gorm:"column:all_game_times;type:int(10)"` // 总游戏次数 }
EVPredictiveTotalByDay 日统计表 2
func (*EVPredictiveTotalByDay) TableName ¶
func (d *EVPredictiveTotalByDay) TableName() string
type EVType ¶
type EVType struct { gorm.Model EVType int `gorm:"column:ev_type;type:int(10);index"` //策略名称 Name string `gorm:"column:name;type:varchar(50)"` //策略描述 Desc string `gorm:"column:desc;type:varchar(255)"` //是否使用 IsUse int `gorm:"column:is_use;size:8"` //1线上使用中 BetDesc string `gorm:"column:bet_desc;type:varchar(50)"` //下注描述 EVBet int8 `gorm:"column:ev_bet;size:8;not null;default:1;index"` //ev的下注列表 1:庄闲 2:大小 3:对子 Platform int `gorm:"column:platform;size:8;not null;default:1;index"` //适配平台 1:全部 2:OU 3:BG BetOpen int `gorm:"column:bet_open;size:8;not null;default:2;index"` //是否下注的开关 WorkerCode string `gorm:"column:worker_code;size:50;index;default:bf701bbb0e1b413d85f85e59ed66b621"` // 算法工作者的唯一标识 }
策略池
type EvThirdPre ¶
type EvThirdPre struct { Base MSGameUUID string `gorm:"column:ms_game_uuid;type:varchar(50);not null"` // 游戏UUID MSGameHistoryID int `gorm:"column:ms_game_history_id;size:10"` // 游戏卡牌记录历史 GameType string `gorm:"column:game_type;type:varchar(20);not null;default:'bg'"` //bg ag GameFrom string `gorm:"column:game_from;type:varchar(20);not null;default:'美盛'"` //游戏来源 美盛/开云等等 Predictive int `gorm:"column:predictive;type:int(10);index;comment:预测结果"` //预测结果 Result int `gorm:"column:result;type:int(10);index;comment:真实结果"` BetAmount decimal.Decimal `gorm:"column:bet_amount;type:decimal(10,2)"` Desc string `gorm:"column:desc;type:varchar(255)"` AlgorithmType string `gorm:"column:algorithm_type;type:varchar(20);not null;index"` //算法类别-用于区别算法来源 WorkerCode string `gorm:"column:worker_code;size:50;index;default:bf701bbb0e1b413d85f85e59ed66b621"` // 算法工作者的唯一标识 }
EvThirdPre 第三方游戏预测与结果对比分析统计
type GameDayTotal ¶
type GameDayTotal struct { gorm.Model GameFrom string `gorm:"column:game_from;type:varchar(20);not null;index"` // 来源 (游戏来源名称) GameType string `gorm:"column:game_type;type:varchar(20);not null;index"` // 游戏类型 (如: bg, mg 等) // 时间范围:date_start 和 date_end 定义该记录的统计周期 DateStart string `gorm:"column:date_start;type:varchar(20);not null;index"` // 起始日期 (格式: 2024-08-01) DateEnd string `gorm:"column:date_end;type:varchar(20);not null;index"` // 结束日期 (格式: 2024-08-07) EvBets int `gorm:"column:ev_bets;type:tinyint(2);not null"` // 押注方式 (1-庄闲, 2-大小) Result string `gorm:"column:result;type:varchar(20);not null"` // 游戏结果 (胜负, 和局等) AllNums int `gorm:"column:all_nums;type:int(10)"` // 总次数 (统计的总局数) Rate float64 `gorm:"column:rate;type:decimal(10,3)"` }
func (*GameDayTotal) TableName ¶
func (g *GameDayTotal) TableName() string
type GameHub ¶
type GameHub struct { gorm.Model Name string `gorm:"column:name;type:varchar(30);not null"` //ky-ag Icon string `gorm:"colum:icon;type:varchar(255)"` //图标 GameFrom string `gorm:"column:game_from;type:varchar(100);not null"` //游戏来源 美盛/开云等等 GameType string `gorm:"column:game_type;type:varchar(50);not null"` //bg ag Description string `gorm:"column:description;type:varchar(500)"` //游戏介绍 Sort int `gorm:"type:int(3);not null;default:10;index"` Status int `gorm:"column:status;type:int(3);not null;default:1"` //状态 1 正常 2 禁用 }
GameHub 游戏列表 bg dg ag ...
type GameRoom ¶
type GameRoom struct { gorm.Model GameFrom string `gorm:"column:game_from;type:varchar(100);not null"` //游戏来源 美盛/开云等等 GameType string `gorm:"column:game_type;type:varchar(50);not null"` RoomName string `gorm:"column:room_name;type:varchar(30);not null"` //A01 LastGameUUID string `gorm:"column:last_game_uuid;type:varchar(50);not null"` //末次获取数据的uuid LastDataTime time.Time //末次获取数据的时间 LastStatus string `gorm:"column:last_status;type:varchar(50)"` //最后一次同步时房间的状态 洗牌中-游戏中-(超过半小时没数据表示游戏已停止获取) }
GameRoom 游戏房间-末次数据爬取时间更新 根据时间排序-爬取数据时候更新内容
type MSGame ¶
type MSGame struct { gorm.Model GameName string `gorm:"column:game_name;type:varchar(255);comment:游戏类型名称"` GameUUID string `gorm:"column:game_uuid;type:varchar(50);not null;index;comment:该局的游戏UUID"` StartDate time.Time `gorm:"column:start_date;index;comment:游戏开始时间"` GameType string `gorm:"column:game_type;type:varchar(50);not null;default:'bg'"` GameFrom string `gorm:"column:game_from;type:varchar(100);not null;default:'美盛'"` //游戏来源 美盛/开云等等 RoomName string `gorm:"column:room_name;type:varchar(32);not null;index;comment:房间名"` // 房间名:百家乐 A01 PaiType string `gorm:"column:pai_type;type:varchar(255);not null;comment:牌型列表"` //牌型列表 }
MSGame 爬取到的游戏局数列表
type MSGameHistory ¶
type MSGameHistory struct { gorm.Model GameUUID string `gorm:"column:game_uuid;type:varchar(50);not null;index;comment:该局的游戏UUID"` //外键 获取房间局数的信息 Pukes string `gorm:"column:pukes;type:varchar(50);not null;comment:本次出的牌"` //本次出的牌 Result string `gorm:"column:result;type:varchar(20);not null;comment:结果 庄和闲"` //结果 庄和闲 ZNum uint `gorm:"column:z_num"` //庄的点数 XNum uint `gorm:"column:x_num"` //闲的点数 FileUrl string `gorm:"column:file_url;type:varchar(400);not null;comment:图片地址"` //图片地址 目前是本地后期上传 cos 或 oos Sort uint `gorm:"column:sort;comment:排序 1-100 越大越靠前"` //排序 1-100 越大越靠前 ISEV int `gorm:"column:isev;type:int(1);not null;default:0"` //1表示已经测试过 DZ int `gorm:"column:dz;size:8"` //对子的情况 有对子为1 其他情况为没有对子 ZDZ int `gorm:"column:zdz;size:8"` //庄对子 1 对- 2无 XDZ int `gorm:"column:xdz;size:8"` //闲对子 1 对- 2无 SmallAndBig int `gorm:"column:small_and_big;size:8"` //大小 1大 2小 ZPukes string `gorm:"column:z_pukes;type:varchar(20);index"` //庄的牌 XPukes string `gorm:"column:x_pukes;type:varchar(20);index"` //闲的牌 RoomName string `gorm:"column:room_name;type:varchar(20);index"` //房间名:Y01 CardList string `gorm:"column:card_list"` //已出牌型列表(不包含当前牌型) GameFrom string `gorm:"column:game_from"` //游戏来源 GameType string `gorm:"column:game_type"` //游戏类型 BeforeID int `gorm:"column:before_id"` //上一把的id ResultList string `gorm:"column:result_list"` //结果列表(不包含当前结果) }
type Menu ¶
type Menu struct { gorm.Model Name string `gorm:"type:varchar(100);not null"` // 菜单名称(唯一) Path string `gorm:"type:varchar(255);not null;default:'/'"` // 菜单路径 Icon string `gorm:"type:varchar(100);"` // 菜单图标 Sort int `gorm:"type:int(3);not null;default:10;index"` // 菜单排序 IsShow bool `gorm:"type:bool;not null;default:0"` // 是否显示,true表示显示,false表示隐藏 IsDisable bool `gorm:"type:bool;not null;default:0"` // 是否禁用,true表示禁用,false表示启用 Component string `gorm:"column:component;type:varchar(200);"` //组件名称 ParentID uint `gorm:"column:parent_id;type:int(10);not null;default:0;index"` // 父级菜单ID,0 表示顶级菜单 }
type OPHistory ¶
type OPHistory struct { gorm.Model GameType string `gorm:"column:game_type;type:varchar(50);not null;default:'ou'"` GameFrom string `gorm:"column:game_from;type:varchar(100);not null;default:'ou'"` //游戏来源 美盛/开云等等 Data string `gorm:"column:data"` Status int `gorm:"column:status"` RoundID string `gorm:"column:round_id"` RoomName string `gorm:"column:room_name"` //房间名:百家乐 A01 }
type Role ¶
type RoleCode ¶
type RoleMenu ¶
type RoomBase ¶
type RoomBase struct { gorm.Model GameFrom string `gorm:"column:game_from;type:varchar(20);index;not null"` GameType string `gorm:"column:game_type;type:varchar(20);index;not null"` Date time.Time `gorm:"column:date;type:date;not null"` // 日期 2024-09-06 EVType int `gorm:"column:ev_type;type:tinyint(1);not null"` RoomName string `gorm:"column:room_name;type:varchar(50);index;not null"` // 房间名称 }
type RoomDayTotal ¶
type RoomDayTotal struct { gorm.Model Date time.Time `gorm:"column:date;type:date"` //日期 GameFrom string `gorm:"column:game_from;type:varchar(100);not null"` //游戏来源 美盛/开云/ou 等等 GameType string `gorm:"column:game_type;type:varchar(50);not null"` RoomName string `gorm:"column:room_name;type:varchar(30);not null"` //A01 EVType int `gorm:"column:ev_type;type:int(10);index"` // EV类型 1-ev大 2-ev大且绝对值差1.47 AllNum int `gorm:"column:all_num;type:int(10)"` //总共局数 RightNum int `gorm:"column:right_num;type:int(10)"` //正确局数 BetAmount decimal.Decimal `gorm:"column:bet_amount;type:decimal(10,2)"` //下注金额 默认每次下注20.0元 AllAmount decimal.Decimal `gorm:"column:all_amount;type:decimal(10,2)"` //总金额 WinAmount decimal.Decimal `gorm:"column:win_amount;type:decimal(10,2)"` //总赢金额 LoseAmount decimal.Decimal `gorm:"column:lose_amount;type:decimal(10,2)"` //总输金额 AllGameTimes int `gorm:"column:all_game_times;type:int(10)"` //总游戏次数 DateWinRate decimal.Decimal `gorm:"column:date_win_rate;type:decimal(10,2)"` //日胜率 DateWinLoss decimal.Decimal `gorm:"column:date_win_loss;type:decimal(10,2)"` //日盈亏 // contains filtered or unexported fields }
RoomDayTotal 房间对应的数据日统计-根据策略与游戏来源等
type RoomHourTotal ¶
type RoomHourTotal struct { gorm.Model Date int `gorm:"column:date;type:int(10);index"` //日期- 20290904 Hour int `gorm:"column:hour;type:int(10);index"` //小时 - 0-23 GameFrom string `gorm:"column:game_from;type:varchar(100);not null"` //游戏来源 美盛/开云/ou 等等 GameType string `gorm:"column:game_type;type:varchar(50);not null"` RoomName string `gorm:"column:room_name;type:varchar(30);not null"` //A01 EVType int `gorm:"column:ev_type;type:int(10);index"` // EV类型 1-ev大 2-ev大且绝对值差1.47 AllNum int `gorm:"column:all_num;type:int(10)"` //总共局数 RightNum int `gorm:"column:right_num;type:int(10)"` //正确局数 BetAmount decimal.Decimal `gorm:"column:bet_amount;type:decimal(10,2)"` //下注金额 默认每次下注20.0元 AllAmount decimal.Decimal `gorm:"column:all_amount;type:decimal(10,2)"` //总金额 WinAmount decimal.Decimal `gorm:"column:win_amount;type:decimal(10,2)"` //总赢金额 LoseAmount decimal.Decimal `gorm:"column:lose_amount;type:decimal(10,2)"` //总输金额 AllGameTimes int `gorm:"column:all_game_times;type:int(10)"` // 总游戏次数 DateWinRate decimal.Decimal `gorm:"column:date_win_rate;type:decimal(10,2);index"` //日胜率 DateWinLoss decimal.Decimal `gorm:"column:date_win_loss;type:decimal(10,2);index"` //日盈亏 // contains filtered or unexported fields }
type User ¶
type User struct { gorm.Model UserID string `gorm:"column:user_id;type:varchar(50);not null;index"` //用户ID uuid UserName string `gorm:"column:user_name;type:varchar(100);not null;unique"` //用户名 Password string `gorm:"column:password;varchar(255);not null;"` //密码 加密入参 解密读取 Role string `gorm:"column:role;varchar(100);not null;default:guest"` //角色 admin guest RoleID uint `gorm:"column:role_id;type:int(10)"` //角色ID Email string `gorm:"column:email;varchar(30)"` // Mobile string `gorm:"column:mobile;varchar(11)"` // Avatar string `gorm:"column:avatar;varchar(255)"` //头像-建议男女默认值 Sex string `gorm:"column:sex;varchar(20)"` //性别-male female Birthday string `gorm:"column:birthday;varchar(30)"` //生日 Code string `gorm:"column:code;varchar(10);unique"` //邀请码- InviterCode string `gorm:"column:inviter_code;varchar(10)"` //邀请人的邀请码 }
type UserDayTotal ¶
type UserDayTotal struct { gorm.Model UserID string `gorm:"column:user_id;type:varchar(50);not null;"` //用户ID uuid Date time.Time `gorm:"column:date;type:date"` //日期 WinTotal }
UserDayTotal 用户的日下注盈亏统计表
type UserGameHistory ¶
type UserGameHistory struct { gorm.Model //用户ID UserID string `gorm:"column:user_id;type:varchar(50);not null;"` //用户ID GameUuid string `gorm:"column:game_uuid;type:varchar(50);not null;"` //游戏ID //游戏的数据源ID MSGameHistoryID uint `gorm:"column:ms_game_history_id;type:int(10);not null;index;comment:游戏的数据源ID"` //RoomName string `gorm:"column:room_name;type:varchar(50);not null;comment:房间名称"` EVType int `gorm:"column:ev_type;type:int(10);index;not null;default:0"` // EV类型 1-ev大 2-ev大且绝对值差1.47 EvBets int `gorm:"column:ev_bets;size:8;not null;default:0"` //本次投注的押注方式 1 庄闲 2大小 BjlInfo //本次预计 Expect int `gorm:"column:expect;size:8;not null;default:0;comment:本次预计 1闲 2 庄 3 和"` // 预测大小 1大2小 SOBPredictive int `gorm:"column:sob_predictive;size:8;default:0"` //本次命中结果 HitResult int `gorm:"column:hit_result;size:8;not null;default:0;comment:本次命中结果 1闲 2 庄 3 和"` SOB int `gorm:"column:sob;size:8;not null;default:0"` //大小结果 1 大 2 小 //本次投注金额 BetAmount decimal.Decimal `gorm:"column:bet_amount;type:decimal(10,2);not null;default:0;comment:本次投注金额"` //本次投注的庄和闲 BetResult int `gorm:"column:bet_result;size:8;not null;default:0;comment:本次投注的结果 1收益为正 2收益为负"` //本次收益-负收益为负 WinAmount decimal.Decimal `gorm:"column:win_amount;type:decimal(10,2)"` EVList string `gorm:"column:ev_list;type:varchar(255)"` //EV值列表 1:--- 2:--- 3:--- Probability string `gorm:"column:probability;type:varchar(255)"` //概率的列表 }
UserGameHistory 用户游戏记录
type UserHistory ¶
type UserHistory struct { Base UserID string `gorm:"column:user_id;type:varchar(50);not null;"` //用户ID UserName string `gorm:"column:user_name;type:varchar(100);not null"` //用户名 Operation string `gorm:"column:operation;varchar(50)"` //操作 login register 等等 IP string `gorm:"column:ip;varchar(50)"` //ip Location string `gorm:"column:location;varchar(300)"` //地址 Browser string `gorm:"column:browser;varchar(100)"` //浏览器 OS string `gorm:"column:os;varchar(100)"` //操作系统 IsOtherPlace bool `gorm:"column:is_other_place;type:tinyint(1);default:0"` //是否异地登录 }
func (*UserHistory) TableName ¶
func (u *UserHistory) TableName() string
type WinTotal ¶
type WinTotal struct { AllNum int `gorm:"column:all_num;type:int(10)"` //总共次数 RightNum int `gorm:"column:right_num;type:int(10)"` //正确次数 BetAmount decimal.Decimal `gorm:"column:bet_amount;type:decimal(10,2)"` //下注金额 默认每次下注20.0元 AllAmount decimal.Decimal `gorm:"column:all_amount;type:decimal(10,2)"` //总金额 WinAmount decimal.Decimal `gorm:"column:win_amount;type:decimal(10,2)"` //总赢金额 LoseAmount decimal.Decimal `gorm:"column:lose_amount;type:decimal(10,2)"` //总输金额 AllGameTimes int `gorm:"column:all_game_times;type:int(10)"` //总游戏次数 WinRate decimal.Decimal `gorm:"column:win_rate;type:decimal(10,2)"` //胜率 DWinLoss decimal.Decimal `gorm:"column:win_loss;type:decimal(10,2)"` //盈亏 }
type Worker ¶
type Worker struct { gorm.Model WorkerName string `gorm:"column:worker_name;size:20;not null;comment:算法师名称"` // 算法师名称 WorkerDesc string `gorm:"column:worker_desc;size:255;"` // 算法师描述 Code string `gorm:"column:code;size:50;uniqueIndex;not null"` //算法工作者的唯一标识 当前表唯一 Mobile string `gorm:"column:mobile;size:20"` //联系方式 包含座机或手机号 IsShow int `gorm:"column:is_show;size:1"` //是否展示到多台下注给用户看 全部算法师展示到用户的就一个 }
Worker 算法师
Click to show internal directories.
Click to hide internal directories.