init.go
410 Bytes
package cardholder
import (
"apigame/common/svconst"
"apigame/common/svdto"
)
func Init() {
// create table
// 卡牌卡包
for _, gameId := range svconst.GameListCardHolder {
svdto.InitTable(new(CardHolderData), gameId)
svdto.InitTable(new(CardHolderRecordOpen), gameId)
svdto.InitTable(new(CardHolderRecordRewardAlbum), gameId)
svdto.InitTable(new(CardHolderRecordRewardRound), gameId)
}
}