diff --git a/foot-api/module/match/pojo/BaseFace.go b/foot-api/module/match/pojo/BaseFace.go deleted file mode 100644 index 485f9407b7801998d6a1d6a628c2a8ae213cb441..0000000000000000000000000000000000000000 --- a/foot-api/module/match/pojo/BaseFace.go +++ /dev/null @@ -1,20 +0,0 @@ -package pojo - -import ( - "tesou.io/platform/foot-parent/foot-api/common/base/pojo" -) - -/** -基本面 - */ -type BaseFace struct { - //比赛id - MatchId string `xorm:"comment('比赛ID') unique(MatchId)"` - - - - - - pojo.BasePojo `xorm:"extends"` -} - diff --git a/foot-api/module/match/pojo/BaseFaceBattle.go b/foot-api/module/match/pojo/BaseFaceBattle.go new file mode 100644 index 0000000000000000000000000000000000000000..fb179bd9a55ba7215c7da33eb29ae2951c7d3718 --- /dev/null +++ b/foot-api/module/match/pojo/BaseFaceBattle.go @@ -0,0 +1,45 @@ +package pojo + +import ( + "tesou.io/platform/foot-parent/foot-api/common/base/pojo" + "time" +) + +/** +历史对战 +*/ +type BaseFaceBattle struct { + //比赛id + MatchId string `xorm:"comment('比赛ID')"` + + /** + * 比赛时间 + */ + BattleMatchDate time.Time `xorm:"unique(BattleMatchDate_BattleMainTeamId_BattleGuestTeamId)"` + /** + * 联赛Id + */ + BattleLeagueId string `xorm:" comment('联赛Id') index"` + /** + * 主队id,目前为主队名称 + */ + BattleMainTeamId string `xorm:"unique(BattleMatchDate_BattleMainTeamId_BattleGuestTeamId)"` + /** + * 主队进球数 + */ + BattleMainTeamHalfGoals int `xorm:" comment('主队半场进球数') index"` + BattleMainTeamGoals int `xorm:" comment('主队进球数') index"` + /** + * 客队id,目前为客队名称 + */ + BattleGuestTeamId string `xorm:"unique(BattleMatchDate_BattleMainTeamId_BattleGuestTeamId)"` + /** + * 客队进球数 + */ + BattleGuestTeamHalfGoals int `xorm:" comment('客队半场进球数') index"` + BattleGuestTeamGoals int `xorm:" comment('客队进球数') index"` + + + + pojo.BasePojo `xorm:"extends"` +} diff --git a/foot-api/module/match/pojo/BaseFaceFutureEvent.go b/foot-api/module/match/pojo/BaseFaceFutureEvent.go new file mode 100644 index 0000000000000000000000000000000000000000..87f483dca65f20bec52cb88e7fe4da66fa57d530 --- /dev/null +++ b/foot-api/module/match/pojo/BaseFaceFutureEvent.go @@ -0,0 +1,38 @@ +package pojo + +import ( + "tesou.io/platform/foot-parent/foot-api/common/base/pojo" + "time" +) + +/** +未来赛事 +*/ +type BaseFaceFutureEvent struct { + //比赛id + MatchId string `xorm:"comment('比赛ID')"` + + /** + * 比赛时间 + */ + EventMatchDate time.Time `xorm:"unique(EventMatchDate_EventMainTeamId_EventGuestTeamId)"` + /** + * 联赛Id + */ + EventLeagueId string `xorm:" comment('联赛Id') index"` + /** + * 主队id,目前为主队名称 + */ + EventMainTeamId string `xorm:"unique(EventMatchDate_EventMainTeamId_EventGuestTeamId)"` + /** + * 客队id,目前为客队名称 + */ + EventGuestTeamId string `xorm:"unique(EventMatchDate_EventMainTeamId_EventGuestTeamId)"` + /** + 间隔天数 + */ + IntervalDay int `xorm:" comment('间隔天数') index"` + + + pojo.BasePojo `xorm:"extends"` +} diff --git a/foot-api/module/match/pojo/BaseFaceScore.go b/foot-api/module/match/pojo/BaseFaceScore.go new file mode 100644 index 0000000000000000000000000000000000000000..9d5a72e3693bf0f3e3dc446d4ebf19799035e29b --- /dev/null +++ b/foot-api/module/match/pojo/BaseFaceScore.go @@ -0,0 +1,41 @@ +package pojo + +import "tesou.io/platform/foot-parent/foot-api/common/base/pojo" + +/** +联赛积分 +*/ +type BaseFaceScore struct { + //比赛id + MatchId string `xorm:"comment('比赛ID')"` + /** + * 主队id,目前为主队名称 + */ + TeamId string `xorm:"comment('球队ID') index"` + + // 0 总 , 1 主 ,2客 3 近 + Type int `xorm:"comment('类型:0 总 , 1 主 ,2客 3 近') index"` + + //比赛场次 + MatchCount int `xorm:"comment('比赛场次') index"` + + //胜次数 + WinCount int `xorm:"comment('胜次数') index"` + DrawCount int `xorm:"comment('平次数') index"` + FailCount int `xorm:"comment('败次数') index"` + + //进球 + GetGoal int `xorm:"comment('进球') index"` + LossGoal int `xorm:"comment('丢球') index"` + DiffGoal int `xorm:"comment('净胜球') index"` + + //得分 + Score int `xorm:"comment('进球') index"` + + //排名 + Ranking int `xorm:"comment('排名') index"` + + + + pojo.BasePojo `xorm:"extends"` +}