init.go 485 Bytes
package svdto

import (
	"apigame/common/svconst"
	"apigame/dto"
	"apigame/service/constd"
)

func Init() {

	// create table
	// 卡牌卡包
	for _, gameId := range constd.GameListCardHolder {
		InitTable(svconst.DbCommon, new(dto.CardHolderData), gameId)
		InitTable(svconst.DbCommon, new(dto.CardHolderRecordOpen), gameId)
		InitTable(svconst.DbCommon, new(dto.CardHolderRecordRewardAlbum), gameId)
		InitTable(svconst.DbCommon, new(dto.CardHolderRecordRewardRound), gameId)
	}

}