package service import ( "apigame/service-common/svconst" "apigame/service-common/svmysql" "apigame/service/cardholder" "apigame/service/roomrank" ) func Init() { // create table // 卡牌卡包 for _, gameId := range svconst.GameListCardHolder { svmysql.InitTable(new(cardholder.Player), gameId, true) svmysql.InitTable(new(cardholder.RecordCardHolderOpen), gameId, true) svmysql.InitTable(new(cardholder.RecordCardHolderRewardAlbum), gameId, true) svmysql.InitTable(new(cardholder.RecordCardHolderRewardRound), gameId, true) } // 房间排行 for _, gameId := range svconst.GameListRoomRank { svmysql.InitTable(new(roomrank.Player), gameId, true) } }