Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
1206889b
F
foot
项目概览
加钱居士.
/
foot
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
foot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1206889b
编写于
1月 08, 2020
作者:
S
shi.zeyuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.xxx
上级
8baae1df
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
foot-api/module/match/pojo/BFBattle.go
foot-api/module/match/pojo/BFBattle.go
+4
-4
foot-api/module/match/pojo/BFFutureEvent.go
foot-api/module/match/pojo/BFFutureEvent.go
+4
-4
foot-api/module/match/pojo/BFScore.go
foot-api/module/match/pojo/BFScore.go
+2
-2
foot-core/common/base/service/mysql/DBOpsService.go
foot-core/common/base/service/mysql/DBOpsService.go
+2
-2
未找到文件。
foot-api/module/match/pojo/B
aseFace
Battle.go
→
foot-api/module/match/pojo/B
F
Battle.go
浏览文件 @
1206889b
...
...
@@ -8,14 +8,14 @@ import (
/**
历史对战
*/
type
B
aseFace
Battle
struct
{
type
B
F
Battle
struct
{
//比赛id
MatchId
string
`xorm:"comment('比赛ID')"`
/**
* 比赛时间
*/
BattleMatchDate
time
.
Time
`xorm:"unique(BattleMatchDate_
BattleMainTeamId_Battle
GuestTeamId)"`
BattleMatchDate
time
.
Time
`xorm:"unique(BattleMatchDate_
MainTeamId_
GuestTeamId)"`
/**
* 联赛Id
*/
...
...
@@ -23,7 +23,7 @@ type BaseFaceBattle struct {
/**
* 主队id,目前为主队名称
*/
BattleMainTeamId
string
`xorm:"unique(BattleMatchDate_
BattleMainTeamId_Battle
GuestTeamId)"`
BattleMainTeamId
string
`xorm:"unique(BattleMatchDate_
MainTeamId_
GuestTeamId)"`
/**
* 主队进球数
*/
...
...
@@ -32,7 +32,7 @@ type BaseFaceBattle struct {
/**
* 客队id,目前为客队名称
*/
BattleGuestTeamId
string
`xorm:"unique(BattleMatchDate_
BattleMainTeamId_Battle
GuestTeamId)"`
BattleGuestTeamId
string
`xorm:"unique(BattleMatchDate_
MainTeamId_
GuestTeamId)"`
/**
* 客队进球数
*/
...
...
foot-api/module/match/pojo/B
aseFace
FutureEvent.go
→
foot-api/module/match/pojo/B
F
FutureEvent.go
浏览文件 @
1206889b
...
...
@@ -8,14 +8,14 @@ import (
/**
未来赛事
*/
type
B
aseFace
FutureEvent
struct
{
type
B
F
FutureEvent
struct
{
//比赛id
MatchId
string
`xorm:"comment('比赛ID')"`
/**
* 比赛时间
*/
EventMatchDate
time
.
Time
`xorm:"unique(EventMatchDate_
EventMainTeamId_Event
GuestTeamId)"`
EventMatchDate
time
.
Time
`xorm:"unique(EventMatchDate_
MainTeamId_
GuestTeamId)"`
/**
* 联赛Id
*/
...
...
@@ -23,11 +23,11 @@ type BaseFaceFutureEvent struct {
/**
* 主队id,目前为主队名称
*/
EventMainTeamId
string
`xorm:"unique(EventMatchDate_
EventMainTeamId_Event
GuestTeamId)"`
EventMainTeamId
string
`xorm:"unique(EventMatchDate_
MainTeamId_
GuestTeamId)"`
/**
* 客队id,目前为客队名称
*/
EventGuestTeamId
string
`xorm:"unique(EventMatchDate_
EventMainTeamId_Event
GuestTeamId)"`
EventGuestTeamId
string
`xorm:"unique(EventMatchDate_
MainTeamId_
GuestTeamId)"`
/**
间隔天数
*/
...
...
foot-api/module/match/pojo/B
aseFace
Score.go
→
foot-api/module/match/pojo/B
F
Score.go
浏览文件 @
1206889b
...
...
@@ -5,7 +5,7 @@ import "tesou.io/platform/foot-parent/foot-api/common/base/pojo"
/**
联赛积分
*/
type
B
aseFace
Score
struct
{
type
B
F
Score
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"`
...
...
foot-core/common/base/service/mysql/DBOpsService.go
浏览文件 @
1206889b
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录