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
7606c505
Commit
7606c505
authored
Jan 28, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Org club
parent
73645988
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
org_match.go
app/operate/apis/org_match.go
+22
-0
org_match.go
app/operate/service/dto/org_match.go
+1
-0
No files found.
app/operate/apis/org_match.go
View file @
7606c505
...
@@ -159,12 +159,34 @@ func (e OrgMatch) GetInfo(c *gin.Context) {
...
@@ -159,12 +159,34 @@ func (e OrgMatch) GetInfo(c *gin.Context) {
return
return
}
}
sOrgClubUser
:=
service
.
OrgClubUser
{}
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
MakeService
(
&
sOrgClubUser
.
Service
)
_
,
clubId
:=
sOrgClubUser
.
GetClubId
(
user
.
GetUserId
(
c
))
sOrgClub
:=
service
.
OrgClub
{}
var
objectOrgClub
models
.
OrgClub
err
=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
MakeService
(
&
sOrgClub
.
Service
)
.
Errors
if
clubId
!=
""
{
reqOrgClub
:=
dto
.
OrgClubGetReq
{}
reqOrgClub
.
Id
,
_
=
strconv
.
Atoi
(
clubId
)
err
=
sOrgClub
.
Get
(
&
reqOrgClub
,
p
,
&
objectOrgClub
)
if
err
!=
nil
{
e
.
Error
(
500
,
err
,
fmt
.
Sprintf
(
"获取联赛 失败,
\r\n
失败信息 %s"
,
err
.
Error
()))
return
}
}
reply
:=
dto
.
OrgMatchGetInfoReply
{
reply
:=
dto
.
OrgMatchGetInfoReply
{
OrgMatch
:
match
,
OrgMatch
:
match
,
OrgLeagueList
:
listOrgLeague
,
OrgLeagueList
:
listOrgLeague
,
OrgSeasonList
:
listOrgSeason
,
OrgSeasonList
:
listOrgSeason
,
OrgDivisionList
:
listOrgDivision
,
OrgDivisionList
:
listOrgDivision
,
OrgTeamList
:
listOrgTeam
,
OrgTeamList
:
listOrgTeam
,
OrgClub
:
objectOrgClub
,
}
}
e
.
OK
(
reply
,
"查询成功"
)
e
.
OK
(
reply
,
"查询成功"
)
...
...
app/operate/service/dto/org_match.go
View file @
7606c505
...
@@ -45,6 +45,7 @@ type OrgMatchGetInfoReply struct {
...
@@ -45,6 +45,7 @@ type OrgMatchGetInfoReply struct {
OrgSeasonList
[]
OrgSeasonGetPageReply
`form:"orgSeasonList"`
OrgSeasonList
[]
OrgSeasonGetPageReply
`form:"orgSeasonList"`
OrgDivisionList
[]
models
.
OrgDivision
`form:"orgDivisionList"`
OrgDivisionList
[]
models
.
OrgDivision
`form:"orgDivisionList"`
OrgTeamList
[]
OrgTeamGetPageReply
`form:"orgTeamList"`
OrgTeamList
[]
OrgTeamGetPageReply
`form:"orgTeamList"`
OrgClub
models
.
OrgClub
`form:"orgClub"`
}
}
type
OrgMatchOrder
struct
{
type
OrgMatchOrder
struct
{
...
...
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