Commit 676562a8 authored by haoyanbin's avatar haoyanbin

1

parent 2a4b51ec
...@@ -284,10 +284,6 @@ func (e OrgPlayer) GetOrgMatchEvaluate(c *gin.Context) { ...@@ -284,10 +284,6 @@ func (e OrgPlayer) GetOrgMatchEvaluate(c *gin.Context) {
// @Summary <手机端>获取球员精彩时刻 // @Summary <手机端>获取球员精彩时刻
// @Description <手机端>获取球员精彩时刻 // @Description <手机端>获取球员精彩时刻
// @Tags <手机端>球员数据 // @Tags <手机端>球员数据
// @Param leagueId path string false "leagueId"
// @Param seasonId path string false "seasonId"
// @Param matchId path string false "matchId"
// @Param rounds path string false "rounds"
// @Param playerId path string false "playerId" // @Param playerId path string false "playerId"
// @Success 200 {string} string "{"code": 200, "data": [...]}" // @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /mobile/v1/org-player/get-rounds [get] // @Router /mobile/v1/org-player/get-rounds [get]
......
...@@ -7,6 +7,7 @@ import ( ...@@ -7,6 +7,7 @@ import (
"gorm.io/gorm" "gorm.io/gorm"
"sort" "sort"
"strconv" "strconv"
"time"
"go-admin/app/mobile/service/dto" "go-admin/app/mobile/service/dto"
"go-admin/app/operate/models" "go-admin/app/operate/models"
...@@ -586,3 +587,26 @@ func (e *OrgPlayer) GetPageWonderful(evaluateId string, list *[]cDto.Wonderful, ...@@ -586,3 +587,26 @@ func (e *OrgPlayer) GetPageWonderful(evaluateId string, list *[]cDto.Wonderful,
} }
return nil return nil
} }
func (e *OrgPlayer) GetNowSeasonId() string {
reply := new(models.OrgSeason)
now := time.Now()
negativeM, _ := time.ParseDuration("-5m")
nowBefore := now.Add(negativeM)
err := e.Orm.Table("org_season").
Scopes(cDto.PassDel("org_season")).
Where("start_time>?", nowBefore).
Order("id desc").
First(&reply).Error
if err != nil && errors.Is(err, gorm.ErrRecordNotFound) {
err = errors.New("查看对象不存在或无权查看")
e.Log.Errorf("Service GetOrgMsg error:%s \r\n", err)
return "0"
}
if err != nil {
e.Log.Errorf("db error:%s", err)
return "0"
}
return "0"
}
...@@ -6597,7 +6597,52 @@ var doc = `{ ...@@ -6597,7 +6597,52 @@ var doc = `{
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/dto.OrgTeamPlayerGetPageReq" "$ref": "#/definitions/dto.OrgPlayerRankGetPageReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/mobile/v1/org-player-rank/team": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c手机端\u003e获取球队排名",
"tags": [
"\u003c手机端\u003e比赛排名"
],
"summary": "\u003c手机端\u003e获取球队排名",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
},
{
"description": "data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgPlayerRankGetPageReq"
} }
} }
], ],
...@@ -6761,6 +6806,36 @@ var doc = `{ ...@@ -6761,6 +6806,36 @@ var doc = `{
} }
} }
}, },
"/mobile/v1/org-player/get-rounds": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c手机端\u003e获取球员精彩时刻",
"tags": [
"\u003c手机端\u003e球员数据"
],
"summary": "\u003c手机端\u003e获取球员精彩时刻",
"parameters": [
{
"type": "string",
"description": "playerId",
"name": "playerId",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/mobile/v1/org-player/info": { "/mobile/v1/org-player/info": {
"get": { "get": {
"security": [ "security": [
...@@ -7729,9 +7804,6 @@ var doc = `{ ...@@ -7729,9 +7804,6 @@ var doc = `{
"playerName": { "playerName": {
"type": "string" "type": "string"
}, },
"playerUserId": {
"type": "string"
},
"status": { "status": {
"type": "string" "type": "string"
}, },
...@@ -7791,6 +7863,24 @@ var doc = `{ ...@@ -7791,6 +7863,24 @@ var doc = `{
} }
} }
}, },
"dto.OrgPlayerRankGetPageReq": {
"type": "object",
"properties": {
"leagueId": {
"description": "联赛级别id",
"type": "string"
},
"pageIndex": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"typeName": {
"type": "string"
}
}
},
"dto.OrgPlayerUpdateReq": { "dto.OrgPlayerUpdateReq": {
"type": "object", "type": "object",
"properties": { "properties": {
...@@ -9593,9 +9683,21 @@ var doc = `{ ...@@ -9593,9 +9683,21 @@ var doc = `{
"action": { "action": {
"type": "string" "type": "string"
}, },
"apis": {
"type": "array",
"items": {
"type": "integer"
}
},
"breadcrumb": { "breadcrumb": {
"type": "string" "type": "string"
}, },
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/models.SysMenu"
}
},
"component": { "component": {
"type": "string" "type": "string"
}, },
...@@ -9605,12 +9707,18 @@ var doc = `{ ...@@ -9605,12 +9707,18 @@ var doc = `{
"createdAt": { "createdAt": {
"type": "string" "type": "string"
}, },
"dataScope": {
"type": "string"
},
"icon": { "icon": {
"type": "string" "type": "string"
}, },
"isFrame": { "isFrame": {
"type": "string" "type": "string"
}, },
"is_select": {
"type": "boolean"
},
"menuId": { "menuId": {
"type": "integer" "type": "integer"
}, },
...@@ -9623,6 +9731,9 @@ var doc = `{ ...@@ -9623,6 +9731,9 @@ var doc = `{
"noCache": { "noCache": {
"type": "boolean" "type": "boolean"
}, },
"params": {
"type": "string"
},
"parentId": { "parentId": {
"type": "integer" "type": "integer"
}, },
...@@ -9635,6 +9746,9 @@ var doc = `{ ...@@ -9635,6 +9746,9 @@ var doc = `{
"permission": { "permission": {
"type": "string" "type": "string"
}, },
"roleId": {
"type": "integer"
},
"sort": { "sort": {
"type": "integer" "type": "integer"
}, },
......
...@@ -6580,7 +6580,52 @@ ...@@ -6580,7 +6580,52 @@
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/dto.OrgTeamPlayerGetPageReq" "$ref": "#/definitions/dto.OrgPlayerRankGetPageReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/mobile/v1/org-player-rank/team": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c手机端\u003e获取球队排名",
"tags": [
"\u003c手机端\u003e比赛排名"
],
"summary": "\u003c手机端\u003e获取球队排名",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
},
{
"description": "data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgPlayerRankGetPageReq"
} }
} }
], ],
...@@ -6744,6 +6789,36 @@ ...@@ -6744,6 +6789,36 @@
} }
} }
}, },
"/mobile/v1/org-player/get-rounds": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c手机端\u003e获取球员精彩时刻",
"tags": [
"\u003c手机端\u003e球员数据"
],
"summary": "\u003c手机端\u003e获取球员精彩时刻",
"parameters": [
{
"type": "string",
"description": "playerId",
"name": "playerId",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/mobile/v1/org-player/info": { "/mobile/v1/org-player/info": {
"get": { "get": {
"security": [ "security": [
...@@ -7712,9 +7787,6 @@ ...@@ -7712,9 +7787,6 @@
"playerName": { "playerName": {
"type": "string" "type": "string"
}, },
"playerUserId": {
"type": "string"
},
"status": { "status": {
"type": "string" "type": "string"
}, },
...@@ -7774,6 +7846,24 @@ ...@@ -7774,6 +7846,24 @@
} }
} }
}, },
"dto.OrgPlayerRankGetPageReq": {
"type": "object",
"properties": {
"leagueId": {
"description": "联赛级别id",
"type": "string"
},
"pageIndex": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"typeName": {
"type": "string"
}
}
},
"dto.OrgPlayerUpdateReq": { "dto.OrgPlayerUpdateReq": {
"type": "object", "type": "object",
"properties": { "properties": {
...@@ -9576,9 +9666,21 @@ ...@@ -9576,9 +9666,21 @@
"action": { "action": {
"type": "string" "type": "string"
}, },
"apis": {
"type": "array",
"items": {
"type": "integer"
}
},
"breadcrumb": { "breadcrumb": {
"type": "string" "type": "string"
}, },
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/models.SysMenu"
}
},
"component": { "component": {
"type": "string" "type": "string"
}, },
...@@ -9588,12 +9690,18 @@ ...@@ -9588,12 +9690,18 @@
"createdAt": { "createdAt": {
"type": "string" "type": "string"
}, },
"dataScope": {
"type": "string"
},
"icon": { "icon": {
"type": "string" "type": "string"
}, },
"isFrame": { "isFrame": {
"type": "string" "type": "string"
}, },
"is_select": {
"type": "boolean"
},
"menuId": { "menuId": {
"type": "integer" "type": "integer"
}, },
...@@ -9606,6 +9714,9 @@ ...@@ -9606,6 +9714,9 @@
"noCache": { "noCache": {
"type": "boolean" "type": "boolean"
}, },
"params": {
"type": "string"
},
"parentId": { "parentId": {
"type": "integer" "type": "integer"
}, },
...@@ -9618,6 +9729,9 @@ ...@@ -9618,6 +9729,9 @@
"permission": { "permission": {
"type": "string" "type": "string"
}, },
"roleId": {
"type": "integer"
},
"sort": { "sort": {
"type": "integer" "type": "integer"
}, },
......
...@@ -601,8 +601,6 @@ definitions: ...@@ -601,8 +601,6 @@ definitions:
type: integer type: integer
playerName: playerName:
type: string type: string
playerUserId:
type: string
status: status:
type: string type: string
teamId: teamId:
...@@ -642,6 +640,18 @@ definitions: ...@@ -642,6 +640,18 @@ definitions:
username: username:
type: string type: string
type: object type: object
dto.OrgPlayerRankGetPageReq:
properties:
leagueId:
description: 联赛级别id
type: string
pageIndex:
type: integer
pageSize:
type: integer
typeName:
type: string
type: object
dto.OrgPlayerUpdateReq: dto.OrgPlayerUpdateReq:
properties: properties:
clubId: clubId:
...@@ -1862,16 +1872,28 @@ definitions: ...@@ -1862,16 +1872,28 @@ definitions:
properties: properties:
action: action:
type: string type: string
apis:
items:
type: integer
type: array
breadcrumb: breadcrumb:
type: string type: string
children:
items:
$ref: '#/definitions/models.SysMenu'
type: array
component: component:
type: string type: string
createBy: createBy:
type: integer type: integer
createdAt: createdAt:
type: string type: string
dataScope:
type: string
icon: icon:
type: string type: string
is_select:
type: boolean
isFrame: isFrame:
type: string type: string
menuId: menuId:
...@@ -1882,6 +1904,8 @@ definitions: ...@@ -1882,6 +1904,8 @@ definitions:
type: string type: string
noCache: noCache:
type: boolean type: boolean
params:
type: string
parentId: parentId:
type: integer type: integer
path: path:
...@@ -1890,6 +1914,8 @@ definitions: ...@@ -1890,6 +1914,8 @@ definitions:
type: string type: string
permission: permission:
type: string type: string
roleId:
type: integer
sort: sort:
type: integer type: integer
sysApi: sysApi:
...@@ -6140,7 +6166,7 @@ paths: ...@@ -6140,7 +6166,7 @@ paths:
name: data name: data
required: true required: true
schema: schema:
$ref: '#/definitions/dto.OrgTeamPlayerGetPageReq' $ref: '#/definitions/dto.OrgPlayerRankGetPageReq'
responses: responses:
"200": "200":
description: '{"code": 200, "data": [...]}' description: '{"code": 200, "data": [...]}'
...@@ -6151,6 +6177,34 @@ paths: ...@@ -6151,6 +6177,34 @@ paths:
summary: <手机端>获取球员排名 summary: <手机端>获取球员排名
tags: tags:
- <手机端>比赛排名 - <手机端>比赛排名
/mobile/v1/org-player-rank/team:
get:
description: <手机端>获取球队排名
parameters:
- description: 页条数
in: query
name: pageSize
type: integer
- description: 页码
in: query
name: pageIndex
type: integer
- description: data
in: body
name: data
required: true
schema:
$ref: '#/definitions/dto.OrgPlayerRankGetPageReq'
responses:
"200":
description: '{"code": 200, "data": [...]}'
schema:
type: string
security:
- Bearer: []
summary: <手机端>获取球队排名
tags:
- <手机端>比赛排名
/mobile/v1/org-player-user/get-msg: /mobile/v1/org-player-user/get-msg:
post: post:
description: <手机端>获取验证码 description: <手机端>获取验证码
...@@ -6261,6 +6315,24 @@ paths: ...@@ -6261,6 +6315,24 @@ paths:
summary: <手机端>获取球员生涯数据 summary: <手机端>获取球员生涯数据
tags: tags:
- <手机端>球员数据 - <手机端>球员数据
/mobile/v1/org-player/get-rounds:
get:
description: <手机端>获取球员精彩时刻
parameters:
- description: playerId
in: path
name: playerId
type: string
responses:
"200":
description: '{"code": 200, "data": [...]}'
schema:
type: string
security:
- Bearer: []
summary: <手机端>获取球员精彩时刻
tags:
- <手机端>球员数据
/mobile/v1/org-player/info: /mobile/v1/org-player/info:
get: get:
description: <手机端>获取球员赛季数据 description: <手机端>获取球员赛季数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment