package service import ( "apigame/service-common/svconst" "apigame/service-common/svmysql" "apigame/service/cardholder" ) func Init() { // create table // 卡牌卡包 for _, gameId := range svconst.GameListCardHolder { svmysql.InitTable(new(cardholder.Player), gameId, true) svmysql.InitTable(new(cardholder.RecordOpen), gameId, true) svmysql.InitTable(new(cardholder.RecordCardAdd), gameId, true) svmysql.InitTable(new(cardholder.RecordRewardAlbum), gameId, true) svmysql.InitTable(new(cardholder.RecordRewardRound), gameId, true) } }