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
cfcc97f1
Commit
cfcc97f1
authored
Jan 26, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分页
parent
a8b40bc0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
org_player.go
app/mobile/apis/org_player.go
+2
-2
org_player.go
app/mobile/router/org_player.go
+1
-1
org_player.go
app/mobile/service/dto/org_player.go
+1
-1
No files found.
app/mobile/apis/org_player.go
View file @
cfcc97f1
...
...
@@ -134,14 +134,14 @@ func (e OrgPlayer) Get(c *gin.Context) {
// @Tags <手机端>球员数据
// @Param playerId path string false "playerId"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /mobile/v1/org-player/info
/{id}
[get]
// @Router /mobile/v1/org-player/info [get]
// @Security Bearer
func
(
e
OrgPlayer
)
GetInfo
(
c
*
gin
.
Context
)
{
req
:=
dto
.
OrgPlayerGetReq
{}
s
:=
service
.
OrgPlayer
{}
c
.
Bind
(
&
req
)
err
:=
e
.
MakeContext
(
c
)
.
MakeOrm
()
.
Bind
(
&
req
)
.
MakeService
(
&
s
.
Service
)
.
Errors
if
err
!=
nil
{
...
...
app/mobile/router/org_player.go
View file @
cfcc97f1
...
...
@@ -16,7 +16,7 @@ func registerOrgPlayerRouter(v1 *gin.RouterGroup) {
{
r
.
GET
(
""
,
api
.
GetPage
)
r
.
GET
(
"/:id"
,
api
.
Get
)
r
.
GET
(
"/info
/:id
"
,
api
.
GetInfo
)
r
.
GET
(
"/info"
,
api
.
GetInfo
)
r
.
GET
(
"/get-match-season/:id"
,
api
.
GetOrgMatchSeason
)
r
.
GET
(
"/evaluate"
,
api
.
GetOrgMatchEvaluate
)
r
.
GET
(
"/get-rounds"
,
api
.
GetOrgRounds
)
...
...
app/mobile/service/dto/org_player.go
View file @
cfcc97f1
...
...
@@ -140,7 +140,7 @@ type OrgMatchEvaluateList struct {
// OrgPlayerGetReq 功能获取请求参数
type
OrgPlayerGetReq
struct
{
dto
.
Pagination
`search:"-"`
PlayerId
int
`
uri:"i
d"`
PlayerId
int
`
form:"playerId" json:"playerI
d"`
}
type
OrgPlayerGetReply
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