Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nbya
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoyanbin
nbya
Commits
b3491d06
Commit
b3491d06
authored
Jan 15, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Time
parent
1539b3c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
38 deletions
+39
-38
org_match.go
app/operate/service/dto/org_match.go
+39
-38
No files found.
app/operate/service/dto/org_match.go
View file @
b3491d06
...
@@ -85,8 +85,8 @@ type OrgMatchInsertReq struct {
...
@@ -85,8 +85,8 @@ type OrgMatchInsertReq struct {
Status
string
`json:"status" comment:"比赛状态 1 未开始 2 比赛中 3 已结束"`
Status
string
`json:"status" comment:"比赛状态 1 未开始 2 比赛中 3 已结束"`
Rounds
string
`json:"rounds" comment:"轮次"`
Rounds
string
`json:"rounds" comment:"轮次"`
Grouping
string
`json:"grouping" comment:"分组"`
Grouping
string
`json:"grouping" comment:"分组"`
MatchStartTime
time
.
Time
`json:"matchStartTime" comment:"比赛开始时间"`
MatchStartTime
string
`json:"matchStartTime" comment:"比赛开始时间"`
MatchEndTime
time
.
Time
`json:"matchEndTime" comment:"比赛结束时间"`
MatchEndTime
string
`json:"matchEndTime" comment:"比赛结束时间"`
TeamAId
string
`json:"teamAId" comment:"a队id"`
TeamAId
string
`json:"teamAId" comment:"a队id"`
TeamBId
string
`json:"teamBId" comment:"b队id"`
TeamBId
string
`json:"teamBId" comment:"b队id"`
TeamAScore
string
`json:"teamAScore" comment:"a队比分"`
TeamAScore
string
`json:"teamAScore" comment:"a队比分"`
...
@@ -100,6 +100,7 @@ func (s *OrgMatchInsertReq) Generate(model *models.OrgMatch) {
...
@@ -100,6 +100,7 @@ func (s *OrgMatchInsertReq) Generate(model *models.OrgMatch) {
if
s
.
Id
==
0
{
if
s
.
Id
==
0
{
model
.
Model
=
common
.
Model
{
Id
:
s
.
Id
}
model
.
Model
=
common
.
Model
{
Id
:
s
.
Id
}
}
}
model
.
LeagueId
=
s
.
LeagueId
model
.
LeagueId
=
s
.
LeagueId
model
.
DivisionId
=
s
.
DivisionId
model
.
DivisionId
=
s
.
DivisionId
model
.
SeasonId
=
s
.
SeasonId
model
.
SeasonId
=
s
.
SeasonId
...
@@ -108,8 +109,8 @@ func (s *OrgMatchInsertReq) Generate(model *models.OrgMatch) {
...
@@ -108,8 +109,8 @@ func (s *OrgMatchInsertReq) Generate(model *models.OrgMatch) {
model
.
Status
=
s
.
Status
model
.
Status
=
s
.
Status
model
.
Rounds
=
s
.
Rounds
model
.
Rounds
=
s
.
Rounds
model
.
Grouping
=
s
.
Grouping
model
.
Grouping
=
s
.
Grouping
model
.
MatchStartTime
=
s
.
MatchStartTime
model
.
MatchStartTime
,
_
=
time
.
Parse
(
"2006-01-02 15:04:05"
,
s
.
MatchStartTime
)
model
.
MatchEndTime
=
s
.
MatchEndTime
model
.
MatchEndTime
,
_
=
time
.
Parse
(
"2006-01-02 15:04:05"
,
s
.
MatchEndTime
)
model
.
TeamAId
=
s
.
TeamAId
model
.
TeamAId
=
s
.
TeamAId
model
.
TeamBId
=
s
.
TeamBId
model
.
TeamBId
=
s
.
TeamBId
model
.
TeamAScore
=
s
.
TeamAScore
model
.
TeamAScore
=
s
.
TeamAScore
...
@@ -132,8 +133,8 @@ type OrgMatchUpdateReq struct {
...
@@ -132,8 +133,8 @@ type OrgMatchUpdateReq struct {
Status
string
`json:"status" comment:"比赛状态 1 未开始 2 比赛中 3 已结束"`
Status
string
`json:"status" comment:"比赛状态 1 未开始 2 比赛中 3 已结束"`
Rounds
string
`json:"rounds" comment:"轮次"`
Rounds
string
`json:"rounds" comment:"轮次"`
Grouping
string
`json:"grouping" comment:"分组"`
Grouping
string
`json:"grouping" comment:"分组"`
MatchStartTime
time
.
Time
`json:"matchStartTime" comment:"比赛开始时间"`
MatchStartTime
string
`json:"matchStartTime" comment:"比赛开始时间"`
MatchEndTime
time
.
Time
`json:"matchEndTime" comment:"比赛结束时间"`
MatchEndTime
string
`json:"matchEndTime" comment:"比赛结束时间"`
TeamAId
string
`json:"teamAId" comment:"a队id"`
TeamAId
string
`json:"teamAId" comment:"a队id"`
TeamBId
string
`json:"teamBId" comment:"b队id"`
TeamBId
string
`json:"teamBId" comment:"b队id"`
TeamAScore
string
`json:"teamAScore" comment:"a队比分"`
TeamAScore
string
`json:"teamAScore" comment:"a队比分"`
...
@@ -155,8 +156,8 @@ func (s *OrgMatchUpdateReq) Generate(model *models.OrgMatch) {
...
@@ -155,8 +156,8 @@ func (s *OrgMatchUpdateReq) Generate(model *models.OrgMatch) {
model
.
Status
=
s
.
Status
model
.
Status
=
s
.
Status
model
.
Rounds
=
s
.
Rounds
model
.
Rounds
=
s
.
Rounds
model
.
Grouping
=
s
.
Grouping
model
.
Grouping
=
s
.
Grouping
model
.
MatchStartTime
=
s
.
MatchStartTime
model
.
MatchStartTime
,
_
=
time
.
Parse
(
"2006-01-02 15:04:05"
,
s
.
MatchStartTime
)
model
.
MatchEndTime
=
s
.
MatchEndTime
model
.
MatchEndTime
,
_
=
time
.
Parse
(
"2006-01-02 15:04:05"
,
s
.
MatchEndTime
)
model
.
TeamAId
=
s
.
TeamAId
model
.
TeamAId
=
s
.
TeamAId
model
.
TeamBId
=
s
.
TeamBId
model
.
TeamBId
=
s
.
TeamBId
model
.
TeamAScore
=
s
.
TeamAScore
model
.
TeamAScore
=
s
.
TeamAScore
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment