提交 1206889b 编写于 作者: S shi.zeyuan

1.xxx

上级 8baae1df
......@@ -8,14 +8,14 @@ import (
/**
历史对战
*/
type BaseFaceBattle struct {
type BFBattle struct {
//比赛id
MatchId string `xorm:"comment('比赛ID')"`
/**
* 比赛时间
*/
BattleMatchDate time.Time `xorm:"unique(BattleMatchDate_BattleMainTeamId_BattleGuestTeamId)"`
BattleMatchDate time.Time `xorm:"unique(BattleMatchDate_MainTeamId_GuestTeamId)"`
/**
* 联赛Id
*/
......@@ -23,7 +23,7 @@ type BaseFaceBattle struct {
/**
* 主队id,目前为主队名称
*/
BattleMainTeamId string `xorm:"unique(BattleMatchDate_BattleMainTeamId_BattleGuestTeamId)"`
BattleMainTeamId string `xorm:"unique(BattleMatchDate_MainTeamId_GuestTeamId)"`
/**
* 主队进球数
*/
......@@ -32,7 +32,7 @@ type BaseFaceBattle struct {
/**
* 客队id,目前为客队名称
*/
BattleGuestTeamId string `xorm:"unique(BattleMatchDate_BattleMainTeamId_BattleGuestTeamId)"`
BattleGuestTeamId string `xorm:"unique(BattleMatchDate_MainTeamId_GuestTeamId)"`
/**
* 客队进球数
*/
......
......@@ -8,14 +8,14 @@ import (
/**
未来赛事
*/
type BaseFaceFutureEvent struct {
type BFFutureEvent struct {
//比赛id
MatchId string `xorm:"comment('比赛ID')"`
/**
* 比赛时间
*/
EventMatchDate time.Time `xorm:"unique(EventMatchDate_EventMainTeamId_EventGuestTeamId)"`
EventMatchDate time.Time `xorm:"unique(EventMatchDate_MainTeamId_GuestTeamId)"`
/**
* 联赛Id
*/
......@@ -23,11 +23,11 @@ type BaseFaceFutureEvent struct {
/**
* 主队id,目前为主队名称
*/
EventMainTeamId string `xorm:"unique(EventMatchDate_EventMainTeamId_EventGuestTeamId)"`
EventMainTeamId string `xorm:"unique(EventMatchDate_MainTeamId_GuestTeamId)"`
/**
* 客队id,目前为客队名称
*/
EventGuestTeamId string `xorm:"unique(EventMatchDate_EventMainTeamId_EventGuestTeamId)"`
EventGuestTeamId string `xorm:"unique(EventMatchDate_MainTeamId_GuestTeamId)"`
/**
间隔天数
*/
......
......@@ -5,7 +5,7 @@ import "tesou.io/platform/foot-parent/foot-api/common/base/pojo"
/**
联赛积分
*/
type BaseFaceScore struct {
type BFScore struct {
//比赛id
MatchId string `xorm:"comment('比赛ID')"`
/**
......@@ -14,7 +14,7 @@ type BaseFaceScore struct {
TeamId string `xorm:"comment('球队ID') index"`
// 0 总 , 1 主 ,2客 3 近
Type int `xorm:"comment('类型:0 总 , 1 主 ,2客 3 近') index"`
Type int `xorm:"comment('类型:0总,1主,2客,3近') index"`
//比赛场次
MatchCount int `xorm:"comment('比赛场次') index"`
......
......@@ -47,8 +47,8 @@ func (this *DBOpsService) SyncTableStruct() {
engine := GetEngine()
var err error
//sync model
//比赛相关表
err = engine.Sync2(new(entity1.MatchLast), new(entity1.MatchHis))
//比赛相关表 基本面相关表
err = engine.Sync2(new(entity1.MatchLast), new(entity1.MatchHis), new(entity1.BFBattle), new(entity1.BFFutureEvent), new(entity1.BFScore))
if nil != err {
base.Log.Error(err.Error())
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册