package common // 重新加载配置的id const ( ReloadWhiteList = iota + 1 ReloadChannel ReloadPlatform ReloadNotice ReloadBroadcast ReloadConfigServerVersion // 服务器版本配置 ReloadConfigRWPer // 充提比配置 ReloadConfigActivity // 活动配置 ReloadConfigPayWeight // 支付渠道权重配置 ReloadConfigWithdrawWeight // 退出渠道配置 ReloadConfigPayProduct // 商品配置 ReloadConfigGameSwitch // 游戏开关配置变动 ReloadConfigVip // VIP ReloadConfigH5 // h5配置 ReloadConfigTron // tron配置 ReloadConfigWithdrawProduct // 退出商品配置 ReloadConfigGameList // 游戏列表配置 ReloadConfigGameProvider // 游戏提供商配置 ReloadConfigGameTypes // 游戏类别配置 ReloadConfigGameMarks // 游戏角标配置 ReloadConfigFirstPageGames // 首页游戏配置 ReloadConfigBroadcast // 广播配置 ReloadConfigCurrencyRateUSD // 汇率配置 ReloadConfigGameRoom // 房间配置 ReloadConfigWater // 水位配置 ReloadConfigRobot // 机器人配置 ReloadConfigAppSpin // 下载app转盘 ReloadConfigShare // 分享相关配置 ReloadConfigShareSys // 分享系统相关配置 ReloadConfigActivityPddSpin // 拼多多转盘配置 ReloadConfigActivityPdd // 拼多多配置 ReloadConfigTask // 任务配置 ReloadConfigCurrencyResource // 奖励来源配置 ReloadConfigFirstPay // 首充配置 ReloadConfigActivityFreeSpin // 免费转盘活动 ReloadConfigActivityFirstRechargeBack // 首日充值返还 ReloadConfigLuckyCode // 幸运码活动 ReloadConfigBanner // banner配置 ReloadConfigActivitySign // 签到配置 ReloadConfigActivityBreakGift // 破产礼包 ReloadConfigShareRobot // 分享机器人 ReloadConfigActivityWeekCard // 周卡 ReloadConfigActivitySlots // slots奖池活动 ReloadConfigActivityLuckyShop // 幸运商店活动 ReloadConfigServerFlag // 服务器配置 ReloadConfigActivitySevenDayBox // 7日宝箱活动 ReloadConfigActivitySuper // 超级1+2 ReloadConfigTgRobot // tg机器人配置 ReloadConfigBetDraw // 下注抽奖 ReloadConfigActivityPopup // 活动弹窗 ReloadConfigDiscountTicket // 折扣券 ReloadConfigRTP // rtp配置 ReloadConfigCustomerRobot // 客服系统机器人配置 ReloadConfigCustomerLabel // 客服系统订单标签 ReloadConfigCustomer // 客服系统订单标签 ) // GetConfigStructByType 获取相应配置的结构 func GetConfigStructByType(t int) (interface{}, interface{}) { switch t { case ReloadConfigRWPer: return &ConfigRWPer{}, &[]ConfigRWPer{} case ReloadConfigActivity: return &ConfigActivity{}, &[]ConfigActivity{} case ReloadConfigPayProduct: return &ConfigPayProduct{}, &[]ConfigPayProduct{} case ReloadConfigPayWeight: return &ConfigPayChannels{}, &[]ConfigPayChannels{} case ReloadConfigWithdrawWeight: return &ConfigWithdrawChannels{}, &[]ConfigWithdrawChannels{} case ReloadConfigH5: return &ConfigH5{}, &[]ConfigH5{} case ReloadConfigTron: return &ConfigTron{}, &[]ConfigTron{} case ReloadConfigWithdrawProduct: return &ConfigWithdrawProduct{}, &[]ConfigWithdrawProduct{} case ReloadConfigGameList: return &ConfigGameList{}, &[]ConfigGameList{} case ReloadConfigGameProvider: return &ConfigGameProvider{}, &[]ConfigGameProvider{} case ReloadConfigGameTypes: return &ConfigGameType{}, &[]ConfigGameType{} case ReloadConfigGameMarks: return &ConfigGameMark{}, &[]ConfigGameMark{} case ReloadConfigFirstPageGames: return &ConfigFirstPageGames{}, &[]ConfigFirstPageGames{} case ReloadConfigBroadcast: return &ConfigBroadcast{}, &[]ConfigBroadcast{} case ReloadConfigVip: return &ConfigVIP{}, &[]ConfigVIP{} case ReloadConfigCurrencyRateUSD: return &ConfigCurrencyRateUSD{}, &[]ConfigCurrencyRateUSD{} case ReloadConfigGameRoom: return &ConfigGameRoom{}, &[]ConfigGameRoom{} case ReloadConfigWater: return &ConfigWater{}, &[]ConfigWater{} case ReloadConfigRobot: return &ConfigRobot{}, &[]ConfigRobot{} case ReloadConfigAppSpin: return &ConfigAppSpin{}, &[]ConfigAppSpin{} case ReloadConfigShare: return &ConfigShare{}, &[]ConfigShare{} case ReloadConfigShareSys: return &ConfigShareSys{}, &[]ConfigShareSys{} case ReloadConfigActivityPddSpin: return &ConfigActivityPddSpin{}, &[]ConfigActivityPddSpin{} case ReloadConfigActivityPdd: return &ConfigActivityPdd{}, &[]ConfigActivityPdd{} case ReloadConfigTask: return &ConfigTask{}, &[]ConfigTask{} case ReloadConfigCurrencyResource: return &ConfigCurrencyResource{}, &[]ConfigCurrencyResource{} case ReloadConfigFirstPay: return &ConfigFirstPay{}, &[]ConfigFirstPay{} case ReloadConfigActivityFreeSpin: return &ConfigActivityFreeSpin{}, &[]ConfigActivityFreeSpin{} case ReloadConfigActivityFirstRechargeBack: return &ConfigActivityFirstRechargeBack{}, &[]ConfigActivityFirstRechargeBack{} case ReloadConfigLuckyCode: return &ConfigActivityLuckyCode{}, &[]ConfigActivityLuckyCode{} case ReloadConfigBanner: return &ConfigBanner{}, &[]ConfigBanner{} case ReloadConfigActivitySign: return &ConfigActivitySign{}, &[]ConfigActivitySign{} case ReloadConfigActivityBreakGift: return &ConfigActivityBreakGift{}, &[]ConfigActivityBreakGift{} case ReloadConfigShareRobot: return &ConfigShareRobot{}, &[]ConfigShareRobot{} case ReloadConfigActivityWeekCard: return &ConfigActivityWeekCard{}, &[]ConfigActivityWeekCard{} case ReloadConfigActivitySlots: return &ConfigActivitySlots{}, &[]ConfigActivitySlots{} case ReloadConfigActivityLuckyShop: return &ConfigActivityLuckyShop{}, &[]ConfigActivityLuckyShop{} case ReloadConfigServerFlag: return &ConfigServerFlag{}, &[]ConfigServerFlag{} case ReloadConfigActivitySevenDayBox: return &ConfigActivitySevenDayBox{}, &[]ConfigActivitySevenDayBox{} case ReloadConfigActivitySuper: return &ConfigActivitySuper{}, &[]ConfigActivitySuper{} case ReloadConfigTgRobot: return &ConfigTgRobot{}, &[]ConfigTgRobot{} case ReloadConfigBetDraw: return &ConfigActivityBetDraw{}, &[]ConfigActivityBetDraw{} case ReloadConfigActivityPopup: return &ConfigActivityPopup{}, &[]ConfigActivityPopup{} case ReloadConfigDiscountTicket: return &ConfigDiscountTicket{}, &[]ConfigDiscountTicket{} case ReloadConfigRTP: return &ConfigRtp{}, &[]ConfigRtp{} default: return nil, nil } } // 平台配置 // BreakAmount 破产金币 // NewPlayerGift 新玩家初始赠送 // NewGuideFirst 新手引导初始赠送 // NewGuideGift 完成新手引导赠送 // BindPhoneGift 绑定手机赠送 // WithdrawRecharge 退出需付费的金额 // NewControlEnd 新手调控结束阀值 type ConfigPlatform struct { ID int `gorm:"primarykey"` NewPlayerGift int64 `gorm:"column:new_player_gift;type:int(11);default:1000;comment:新玩家赠送金币" json:"NewPlayerGift" web:"new_player_gift"` BindPhoneGift int64 `gorm:"column:bind_phone_gift;type:int(11);default:1000;comment:绑定手机赠送" json:"BindPhoneGift" web:"bind_phone_gift"` AvatarCount int `gorm:"column:avatar_count;type:int(11);default:400;comment:最大头像数目" json:"AvatarCount" web:"avatar_count"` CartoonCount int `gorm:"column:cartoon_count;type:int(11);default:15;comment:卡通头像数目" json:"CartoonCount" web:"cartoon_count"` SmsChannel int `gorm:"column:sms_channel;type:int(11);default:1;comment:短信服务商 1Antgst 2Buka" json:"SmsChannel" web:"sms_channel"` Telegram string `gorm:"column:telegram;type:varchar(256);default:'+66636640245';comment:客服telegram" json:"Telegram" web:"telegram"` Whatsapp string `gorm:"column:whatsapp;type:varchar(256);default:'+66636640245';comment:客服whatsapp" json:"Whatsapp" web:"whatsapp"` Email string `gorm:"column:email;type:varchar(256);default:'rummywallah@gmail.com';comment:客服email" json:"Email" web:"email"` PayTips string `gorm:"column:pay_tips;type:varchar(256);default:'';comment:充值提示语" json:"PayTips" web:"pay_tips"` WithdrawTips string `gorm:"column:withdraw_tips;type:varchar(256);default:'';comment:tx提示语" json:"WithdrawTips" web:"withdraw_tips"` BlackList int `gorm:"column:black_list;type:int(11);default:0;comment:是否开启黑名单 0不开 1开启" json:"BlackList" web:"black_list"` Rtp int `gorm:"column:rtp;type:int(11);default:0;comment:平台RTP" json:"Rtp" web:"rtp"` ShareBindReward int64 `gorm:"column:share_bind_reward;type:bigint(20);default:0;comment:分享奖励" json:"ShareBindReward" web:"share_bind_reward"` } func (c *ConfigPlatform) TableName() string { return "config_platform" } const ( RWPerTypeZero = iota RWPerTypeFirst RWPerTypeMulti RWPerTypeAll ) // ConfigRWPer 充提比配置 type ConfigRWPer struct { ID int `gorm:"primarykey"` Down int64 `gorm:"column:down;type:bigint(20);default:0;comment:充值范围下限" json:"Down" web:"down"` Up int64 `gorm:"column:up;type:bigint(20);default:0;comment:充值范围上限" json:"Up" web:"up"` Per int64 `gorm:"column:per;type:int(11);default:10;comment:充提比" json:"Per" web:"per"` Type int `gorm:"column:type;type:int(11);default:1;comment:类型 1首次 2非首次" json:"Type" web:"type"` } func (c *ConfigRWPer) TableName() string { return "config_rwper" } const ( PayKindBank = iota + 1 PayKindTron ) // ConfigPayProduct type ConfigPayProduct struct { ID int `gorm:"primarykey"` Pic string `gorm:"column:pic;type:varchar(256);default:'';comment:图片" web:"pic"` ProductID int `gorm:"column:product_id;type:int(11);default:0;comment:商品id" web:"product_id"` ActivityID int `gorm:"column:activityid;type:int(11);default:0;comment:活动id" web:"activityid"` Sort int `gorm:"column:sort;type:int(11);default:0;comment:排序" web:"sort"` Recommend int `gorm:"column:recommend;type:int(11);default:0;comment:是否推荐 1推荐 2不推荐" web:"recommend"` OriginAmount int64 `gorm:"column:origin_amount;type:bigint(20);default:0;comment:显示价格" web:"origin_amount"` Amount int64 `gorm:"column:amount;type:bigint(20);default:0;comment:实际价格" web:"amount"` Value int64 `gorm:"column:value;type:bigint(20);default:0;comment:发放金额" web:"value"` Type CurrencyType `gorm:"column:type;type:int(11);default:1;comment:货币类型" web:"type"` IfSell int `gorm:"column:if_sell;type:int(11);default:1;comment:是否上架 1上架 2不上架" web:"if_sell"` Kind int `gorm:"column:kind;type:int(11);default:1;comment:支付类型 1银行 2区块链" web:"kind"` Exi int `gorm:"column:exi;type:int(11);default:0;comment:商品额外信息" web:"exi"` Channels []int `gorm:"-"` } func (c *ConfigPayProduct) TableName() string { return "config_pay_product" } // ConfigPayChannels 代收渠道配置 type ConfigPayChannels struct { ID int `gorm:"primarykey"` ChannelID int `gorm:"column:channel_id;not null;type:int(11);uniqueIndex:channel_id" web:"ChannelID"` PayPer int `gorm:"column:pay_per;type:int(11);default:0;comment:代收权重" json:"PayPer" web:"pay_per"` PayDown int64 `gorm:"column:pay_down;type:bigint(20);default:1;comment:代收下限" json:"PayDown" web:"pay_down"` PayUp int64 `gorm:"column:pay_up;type:bigint(20);default:1;comment:代收上限" json:"PayUp" web:"pay_up"` CurrencyType CurrencyType `gorm:"column:currency_type;type:bigint(20);default:1;uniqueIndex:channel_id;comment:货币类型" json:"CurrencyType" web:"currency_type"` Kind int64 `gorm:"column:kind;type:bigint(20);default:1;comment:协议类型" json:"Kind" web:"kind"` } func (c *ConfigPayChannels) TableName() string { return "config_pay_channels" } // ConfigWithdrawChannels 代付渠道配置 type ConfigWithdrawChannels struct { ID int `gorm:"primarykey"` ChannelID int `gorm:"column:channel_id;not null;type:int(11);uniqueIndex:channel_id" web:"ChannelID"` WithdrawPer int `gorm:"column:withdraw_per;type:int(11);default:0;comment:代付权重" json:"WithdrawPer" web:"WithdrawPer"` PayDown int64 `gorm:"column:pay_down;type:bigint(20);default:1;comment:代收下限" json:"PayDown" web:"pay_down"` PayUp int64 `gorm:"column:pay_up;type:bigint(20);default:1;comment:代收上限" json:"PayUp" web:"pay_up"` CurrencyType CurrencyType `gorm:"column:currency_type;type:bigint(20);default:1;uniqueIndex:channel_id;comment:货币类型" json:"CurrencyType" web:"currency_type"` Kind int64 `gorm:"column:kind;type:bigint(20);default:1;comment:协议类型" json:"Kind" web:"kind"` Per int64 `gorm:"column:per;type:bigint(20);default:30;comment:渠道费率,千分位" json:"Per" web:"per"` Per2 int64 `gorm:"column:per2;type:bigint(20);default:600;comment:单笔费率,单位分" json:"Per2" web:"per2"` Amount int64 `gorm:"column:amount;type:bigint(20);default:10000000;comment:渠道余额,单位分" json:"Amount" web:"amount"` } func (c *ConfigWithdrawChannels) TableName() string { return "config_withdraw_channels" } // CalAmount 计算费率 func (c *ConfigWithdrawChannels) CalAmount(amount int64) int64 { return amount*(1000+c.Per)/1000 + c.Per2 } // ConfigVIP vip配置 // Exp 该等级需要的经验值 // WithdrawCount 每日可代付次数 // Cashback 返利比例(千分位) // Bonus 等级奖励 // Bet 升级所需下注额 // Fee 代付手续费(千分位) type ConfigVIP struct { ID int `gorm:"primarykey;AUTO_INCREMENT;column:id"` Level int `gorm:"column:level;not null;type:int(11);default:0;comment:vip等级" json:"Level" web:"level"` Exp int64 `gorm:"column:exp;not null;type:bigint(20);default:0;comment:该等级需要的经验值" json:"Exp" web:"exp"` WithdrawCount int `gorm:"column:withdraw_count;not null;type:int(11);default:0;comment:每日可代付次数" json:"WithdrawCount" web:"withdraw_count"` Cashback int64 `gorm:"column:cashback;type:bigint(20);default:0;comment:返利比例千分位" json:"Cashback" web:"cashback"` Bonus int64 `gorm:"column:bonus;type:bigint(20);default:0;comment:等级奖励" json:"Bonus" web:"bonus"` Bet int64 `gorm:"column:bet;type:bigint(20);default:0;comment:升级所需下注额" json:"Bet" web:"bet"` Fee int64 `gorm:"column:fee;type:bigint(20);default:0;comment:手续费率千分比" json:"Fee" web:"fee"` UFee int64 `gorm:"column:u_fee;type:bigint(20);default:0;comment:u手续费(固定值)" json:"UFee" web:"u_fee"` } func (c *ConfigVIP) TableName() string { return "config_vip" } // vip商品类型 const ( VIPProductTypeDay = iota + 1 VIPProductTypeWeek VIPProductTypeMonth ) // H5配置 type ConfigH5 struct { ID int `gorm:"primarykey"` CollectReward int64 `gorm:"column:collect_reward;type:bigint(20);default:0;comment:收藏奖励" web:"collect_reward"` DownloadReward int64 `gorm:"column:download_reward;type:bigint(20);default:0;comment:下载奖励" web:"download_reward"` } func (c *ConfigH5) TableName() string { return "config_h5" } // ConfigTron type ConfigTron struct { ID int `gorm:"primarykey"` CurrentBlock int64 `gorm:"column:current_block;type:bigint(20);default:0;comment:当前扫描的区块" web:"current_block"` CurrentBlockTest int64 `gorm:"column:current_block_test;type:bigint(20);default:0;comment:当前扫描的区块(测试链)" web:"current_block_test"` Rate int64 `gorm:"column:rate;type:bigint(20);default:8193;comment:1U转换成当前货币的汇率,百分位" web:"rate"` } func (c *ConfigTron) TableName() string { return "config_tron" } // ConfigWithdrawProduct type ConfigWithdrawProduct struct { ID int `gorm:"primarykey"` Pic string `gorm:"column:pic;type:varchar(256);default:'';comment:图片" web:"pic"` ProductID int `gorm:"column:product_id;type:int(11);default:0;comment:商品id" web:"product_id"` Sort int `gorm:"column:sort;type:int(11);default:0;comment:排序" web:"sort"` Amount int64 `gorm:"column:amount;type:bigint(20);default:0;comment:金额" web:"amount"` Type CurrencyType `gorm:"column:type;type:int(11);default:1;comment:货币类型" web:"type"` IfSell int `gorm:"column:if_sell;type:int(11);default:1;comment:是否上架 1上架 2不上架" web:"if_sell"` Kind int `gorm:"column:kind;type:int(11);default:1;comment:支付类型 1银行 2区块链" web:"kind"` Channels []int `gorm:"-"` } func (c *ConfigWithdrawProduct) TableName() string { return "config_withdraw_product" } // ConfigGameList 游戏列表配置 // GameID 游戏id // Icon 游戏图标 // URL 跳转url // GameProvider 提供商id // Mark 角标 // Sort 排序(玩家每玩一次,sort值会自增1) // Jackpot 奖池 // Demo 是否支持demo 1支持 2不支持 // SubID 一些游戏有子id 如桌子号 type ConfigGameList struct { ID int `gorm:"primarykey"` GameID int `gorm:"column:game_id;not null;type:int(11);uniqueIndex:game;comment:游戏id" web:"game_id"` GameCode string `gorm:"column:game_code;type:varchar(255);default:'';comment:一些游戏的唯一识别" web:"game_code"` GameType int `gorm:"column:game_type;not null;type:int(11);comment:游戏类别id" web:"game_type"` Name string `gorm:"column:name;not null;type:varchar(255);comment:游戏名" web:"name"` Icon string `gorm:"column:icon;type:varchar(255);comment:游戏图标" web:"icon"` URL string `gorm:"column:url;type:varchar(255);comment:跳转地址" web:"url"` GameProvider int `gorm:"column:game_provider;not null;type:int(11);uniqueIndex:game;comment:游戏提供商" web:"game_provider"` Mark int `gorm:"column:mark;default:0;type:int(11);comment:角标" web:"mark"` Sort uint64 `gorm:"column:sort;type:bigint(20);comment:游戏排序,玩家每玩一次,sort值会自增1" web:"sort"` Open int `gorm:"column:open;type:int(11);default:1;comment:是否开启 1开2不开" web:"open"` Orientation int `gorm:"column:orientation;type:int(11);default:1;comment:横屏竖屏 1竖屏2横屏3两者都可" web:"orientation"` Demo int `gorm:"column:demo;type:int(11);default:1;comment:是否支持demo 1支持 2不支持" web:"demo"` SubID string `gorm:"column:subid;type:varchar(255);default:'';comment:一些游戏有子id" web:"subid"` Jackpot int64 `gorm:"-" web:"-"` MaxReward int64 `gorm:"-" web:"-" redis:"maxReward"` // 最大奖励 PlayerNumber int64 `gorm:"-" web:"-" redis:"number"` // 游玩人数 RTP int64 `gorm:"-" web:"-" redis:"rtp"` // rtp } func (c *ConfigGameList) TableName() string { return "config_game_list" } // ConfigGameProvider 游戏提供商配置 type ConfigGameProvider struct { ID int `gorm:"primarykey"` ProviderID int `gorm:"column:provider_id;not null;type:int(11);uniqueIndex:id;comment:游戏提供商id"` ProviderName string `gorm:"column:provider_name;type:varchar(255);comment:游戏提供商名称" web:"provider_name"` Icon string `gorm:"column:icon;type:varchar(255);comment:供应商图标" web:"icon"` Sort int `gorm:"column:sort;type:int(11);comment:供应商排序" web:"sort"` Callback string `gorm:"column:callback;type:varchar(255);comment:回调地址" web:"callback"` WhiteIPs string `gorm:"column:white_ips;type:varchar(1024);comment:ip白名单" web:"white_ips"` SubIp []string `gorm:"-" web:"-"` GamesNum int `gorm:"-" web:"-"` Open int `gorm:"column:open;type:int(11);default:1;comment:是否开启 1开2不开" web:"open"` Show int `gorm:"column:show;type:int(11);default:1;comment:是否显示在banner栏 1显示2不显示" web:"show"` Method int `gorm:"column:method;type:int(11);default:1;comment:打开方式 1正常url 2html格式" web:"method"` } func (c *ConfigGameProvider) TableName() string { return "config_game_provider" } func (c *ConfigGameProvider) IsIpWhite(ip string) bool { if len(c.SubIp) == 0 { return true } for _, v := range c.SubIp { if v == ip { return true } } return false } type ConfigGameType struct { ID int `gorm:"primarykey"` TypeID int `gorm:"column:type_id;not null;type:int(11);uniqueIndex:type_id;comment:游戏类别id" web:"type_id"` TypeName string `gorm:"column:type_name;type:varchar(64);comment:游戏类别名" web:"type_name"` Icon string `gorm:"column:icon;type:varchar(255);comment:游戏类别图标" web:"icon"` Sort int `gorm:"column:sort;type:int(11);comment:排序" web:"sort"` Open int `gorm:"column:open;type:int(11);default:0;comment:是否打开 1打开" web:"open"` } func (c *ConfigGameType) TableName() string { return "config_game_type" } type ConfigGameMark struct { ID int `gorm:"primarykey"` MarkID int `gorm:"column:mark_id;not null;type:int(11);uniqueIndex:type_id;comment:游戏角标id" web:"mark_id"` MarkName string `gorm:"column:mark_name;type:varchar(64);comment:游戏角标名" web:"mark_name"` Icon string `gorm:"column:icon;type:varchar(255);comment:游戏角标图标" web:"icon"` Sort int `gorm:"column:sort;type:int(11);comment:排序" web:"sort"` } func (c *ConfigGameMark) TableName() string { return "config_game_mark" } type ConfigFirstPageGames struct { ID int `gorm:"primarykey"` Icon string `gorm:"column:icon;type:varchar(255);comment:游戏标题图标" web:"icon"` Name string `gorm:"column:name;type:varchar(64);comment:游戏标题名" web:"name"` JumpType int `gorm:"column:jump_type;default:1;type:int(11);comment:跳转类型 1type 2mark" web:"jump_type"` JumpID int `gorm:"column:jump_id;default:1;type:int(11);comment:跳转查询id" web:"jump_id"` Sort int `gorm:"column:sort;type:int(11);comment:排序" web:"sort"` Open int `gorm:"column:open;type:int(11);default:0;comment:是否打开 1打开" web:"open"` } func (c *ConfigFirstPageGames) TableName() string { return "config_first_page_games" } type ConfigBroadcast struct { ID int `gorm:"primarykey"` BroadcastID int `gorm:"column:broadcast_id;type:int(11);comment:广播类型id" web:"broadcast_id"` Content string `gorm:"column:content;type:varchar(255);comment:广播正文" web:"content"` Open int `gorm:"column:open;type:int(11);comment:是否打开 1打开" web:"open"` Event int `gorm:"column:event;type:int(11);comment:事件" web:"event"` TargetID int `gorm:"column:target_id;type:int(11);comment:跳转id" web:"target_id"` Type int `gorm:"column:type;type:int(11);comment:类型" web:"type"` Priority int `gorm:"column:priority;type:int(11);comment:优先级" web:"priority"` LoopFrequency int `gorm:"column:loop_frequency;type:int(11);comment:循环次数" web:"loop_frequency"` Interval int `gorm:"column:interval;type:int(11);comment:间隔" web:"interval"` ConditionDown int `gorm:"column:condition_down;type:int(11);comment:触发条件下限" web:"condition_down"` ConditionUp int `gorm:"column:condition_up;type:int(11);comment:触发条件上限" web:"condition_up"` } func (c *ConfigBroadcast) TableName() string { return "config_broadcast" } type ConfigNotice struct { ID int `gorm:"primarykey"` Title1 string `gorm:"column:title1;type:varchar(255);comment:标题1" web:"title1"` // 公告标题_1(英语) Content1 string `gorm:"column:content1;type:varchar(255);comment:正文1" web:"content1"` // 公告内容_1(英语) Title2 string `gorm:"column:title2;type:varchar(255);comment:标题2" web:"title2"` // 公告标题_2 Content2 string `gorm:"column:content2;type:varchar(255);comment:正文2" web:"content2"` // 公告内容_2 Type int `gorm:"column:type;type:int(11);comment:公告类型 (1.紧急 2.常规)" web:"type"` // 公告类型 (1.紧急 2.常规) Open int `gorm:"column:open;type:int(11);comment:是否打开 1打开" web:"open"` // 是否发布 Method int `gorm:"column:method;type:int(11);comment:发布方式" web:"method"` // 发布方式 Time int64 `gorm:"column:time;type:int(11);comment:发布时间" web:"time"` // 发布时间 Interval int `gorm:"column:interval;type:int(11);comment:间隔" web:"interval"` PushTimes int `gorm:"column:push_times;type:int(11);comment:推送次数" web:"push_times"` // 推送次数 } func (c *ConfigNotice) TableName() string { return "config_notice" } // 货币汇率(各种货币转换成美元的汇率) type ConfigCurrencyRateUSD struct { ID int `gorm:"primary_key;AUTO_INCREMENT;column:id"` CurrencyType CurrencyType `gorm:"column:currency_type;type:int(11);default:1;comment:货币类型"` Rate int64 `gorm:"column:rate;type:int(11);default:1;comment:汇率(万分位)"` RefreshTime int64 `gorm:"column:refresh_time;type:bigint(20);default:0;comment:刷新时间,一天刷一次"` } func (c *ConfigCurrencyRateUSD) TableName() string { return "config_currency_rate_usd" } type ConfigGameRoom struct { ID int `gorm:"primary_key;AUTO_INCREMENT;column:id"` GameID int `gorm:"column:game_id;type:int(11);default:0;comment:游戏id" web:"game_id"` RoomID int `gorm:"column:room_id;type:int(11);default:0;comment:房间id" web:"room_id"` RoomName string `gorm:"column:room_name;type:varchar(64);default:0;comment:房间名字" web:"room_name"` RoomType int `gorm:"column:room_type;type:int(11);default:0;comment:房间类型 1金币 2练习" web:"room_type"` Open bool `gorm:"column:open;type:int(11);default:0;comment:是否开放 0不开 1开" web:"open"` Initial int64 `gorm:"column:initial;type:int(11);default:0;comment:初始额度" web:"initial"` BetTime int64 `gorm:"column:bet_time;type:int(11);default:0;comment:下注时长" web:"bet_time"` SettleTime int64 `gorm:"column:settle_time;type:int(11);default:0;comment:结算时长" web:"settle_time"` MaxSeats int `gorm:"column:max_seats;type:int(11);default:0;comment:座位数" web:"max_seats"` BetLimitStr string `gorm:"column:bet_limit_str;type:varchar(256);default:'[0]';comment:下注限额数组形式[0,0]" web:"bet_limit_str"` BetLimit []int64 `gorm:"-" json:"-"` } func (c *ConfigGameRoom) TableName() string { return "config_game_room" } // 水位 type ConfigWater struct { ID int `gorm:"primarykey"` GameID int `gorm:"column:game_id;not null;type:int(11);comment:游戏id" json:"GameID" web:"game_id"` RoomID int `gorm:"column:room_id;not null;type:int(11);comment:房间id" json:"RoomID" web:"room_id"` WaterLower int64 `gorm:"column:water_lower;not null;type:bigint(20);comment:下水位" json:"WaterLower" web:"water_lower"` WaterUp int64 `gorm:"column:water_up;not null;type:bigint(20);comment:上水位" json:"WaterUp" web:"water_up"` // ControlPer int `gorm:"column:control_per;not null;type:int(11);comment:控制概率" json:"ControlPer" web:"control_per"` // RebatePer int64 `gorm:"column:rebate_per;not null;type:int(11);comment:返税比例" json:"RebatePer" web:"rebate_per"` Value int64 `gorm:"column:vale;not null;type:bigint(20);comment:当前水位" web:"value"` Rtp int64 `gorm:"column:rtp;not null;type:int(11);comment:正常时候的rtp,万分位" web:"rtp"` DownRtp int64 `gorm:"column:down_rtp;not null;type:int(11);comment:下水位的rtp,万分位" web:"down_rtp"` UpRtp int64 `gorm:"column:up_rtp;not null;type:int(11);comment:上水位的rtp,万分位" web:"up_rtp"` } func (c *ConfigWater) TableName() string { return "config_water" } // 机器人 type ConfigRobot struct { ID int `gorm:"primarykey"` Avatar string `gorm:"column:avatar;type:varchar(512);default:''" web:"avatar"` Nick string `gorm:"column:nick;type:varchar(512);default:''" web:"nick"` } func (c *ConfigRobot) TableName() string { return "config_robot" } // 下载app奖励转盘 type ConfigAppSpin struct { ID int `gorm:"primarykey"` Amount int64 `gorm:"column:amount;type:bigint(20);default:0" web:"amount"` CurrencyType CurrencyType `gorm:"column:type;type:int(11);default:1;comment:货币类型" web:"type"` Sort int `gorm:"column:sort;type:int(11);default:1;comment:排序" web:"sort"` Weight int `gorm:"column:weight;type:int(11);default:1;comment:权重" web:"weight"` } func (c *ConfigAppSpin) TableName() string { return "config_app_spin" } // ConfigCurrencyResource 奖励来源配置 type ConfigCurrencyResource struct { ID int `gorm:"primary_key;AUTO_INCREMENT;column:id"` Type CurrencyRes `gorm:"column:type;type:int(11);default:0;uniqueIndex:type;comment:奖励类型" web:"type"` Multiple int64 `gorm:"column:multiple;type:bigint(20);default:2000;comment:所需下注倍数,百分位" web:"multiple"` } func (c *ConfigCurrencyResource) TableName() string { return "config_Currency_resource" } type ConfigTgRobot struct { ID int `gorm:"primarykey"` Type int `gorm:"column:type;type:int(11);default:0;comment:机器人类型" web:"type"` ChannelName string `gorm:"column:channel_name;type:varchar(255);comment:频道名称" web:"channel_name"` // 频道id ChannelType string `gorm:"column:channel_type;type:varchar(255);comment:频道类型" web:"channel_type"` // 频道类型 vip 普通 Content string `gorm:"column:content;type:text;comment:内容" web:"content"` // 内容 ContentType string `gorm:"column:content_type;type:varchar(255);comment:发送类型" web:"content_type"` // 发送类型 Image string `gorm:"column:image;type:longtext;comment:发送类型" web:"image"` // 图片 Time string `gorm:"column:time;type:varchar(255);comment:发送类型" web:"time"` // 时间 Open bool `gorm:"column:open;type:int(11);default:0;comment:是否开启" web:"open"` // 是否开启 } func (c *ConfigTgRobot) TableName() string { return "config_tg_robot" } type ConfigActivityBetDraw struct { ID int `gorm:"primarykey"` Type int `gorm:"column:type;type:int(11);default:0;comment:转盘类型" web:"type"` Cost int64 `gorm:"column:cost;type:int(11);default:0;comment:消耗幸运值" web:"cost"` Reward int64 `gorm:"column:reward;type:bigint(20);comment:奖励" web:"reward"` Weight int64 `gorm:"column:weight;type:bigint(20);comment:权重" web:"weight"` VipUnlock int `gorm:"column:vip_unlock;type:int(11);comment:vip解锁等级" web:"vip_unlock"` Cd int64 `gorm:"column:cd;type:bigint(20);comment:冷却时间" web:"cd"` LimitNum int `gorm:"column:limit_num;type:int(11);comment:每日领取次数" web:"limit_num"` } func (c *ConfigActivityBetDraw) TableName() string { return "config_activity_betdraw" }