Commit cd313f83 authored by haoyanbin's avatar haoyanbin

Player

parent 75f1a3c9
......@@ -377,9 +377,11 @@ func (e OrgMatch) GetPlayer(c *gin.Context) {
// @Summary <赛事>获取比赛已设置球员
// @Description <赛事>获取比赛已设置球员
// @Tags <赛事>比赛
// @Param id path string false "id"
// @Param teamId path string false "teamId"
// @Param matchId path string false "matchId"
// @Param rounds path string false "rounds"
// @Success 200 {string} string {data=models.OrgMatch} "{"code": 200, "data": [...]}"
// @Router /api/v1/org-match/get-player-is-set/{id} [get]
// @Router /api/v1/org-match/get-player-is-set [get]
// @Security Bearer
func (e OrgMatch) GetPlayerIsSet(c *gin.Context) {
req := dto.OrgMatchTeamPlayerGetPageReq{}
......@@ -525,7 +527,7 @@ func (e OrgMatch) UpdatePlayer(c *gin.Context) {
// @Product application/json
// @Param data body dto.OrgMatchTeamPlayerUpdateReq true "body"
// @Success 200 {string} string "{"code": 200, "message": "修改成功"}"
// @Router /api/v1/org-match/update-player-data/{id} [put]
// @Router /api/v1/org-match/update-player-data [put]
// @Security Bearer
func (e OrgMatch) UpdatePlayerData(c *gin.Context) {
req := dto.OrgMatchTeamPlayerUpdateReq{}
......
......@@ -23,6 +23,7 @@ type OrgMatchEvaluate struct {
// @Summary <赛事>赛后评价列表
// @Description <赛事>赛后评价列表
// @Tags <赛事>赛后评价
// @Param data body dto.OrgMatchEvaluateGetPageReq true "body"
// @Param pageSize query int false "页条数"
// @Param pageIndex query int false "页码"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
......@@ -59,8 +60,7 @@ func (e OrgMatchEvaluate) GetPage(c *gin.Context) {
// @Summary <赛事>赛后评价比赛列表
// @Description <赛事>赛后评价比赛列表
// @Tags <赛事>赛后评价
// @Param pageSize query int false "页条数"
// @Param pageIndex query int false "页码"
// @Param id path string false "id"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-match-evaluate/get-match [get]
// @Security Bearer
......
......@@ -96,7 +96,7 @@ func (e OrgTeamMatchEvaluate) GetPageMatch(c *gin.Context) {
// @Tags <球队>教练评价
// @Param id path string false "id"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /api/v1/org-match-evaluate/{id} [get]
// @Router /api/v1/org-team-match-evaluate/{id} [get]
// @Security Bearer
func (e OrgTeamMatchEvaluate) Get(c *gin.Context) {
req := dto.OrgMatchEvaluateGetReq{}
......@@ -131,7 +131,7 @@ func (e OrgTeamMatchEvaluate) Get(c *gin.Context) {
// @Product application/json
// @Param data body dto.OrgMatchEvaluateUpdateReq true "body"
// @Success 200 {string} string "{"code": 200, "message": "修改成功"}"
// @Router /api/v1/org-match-evaluate/{id} [put]
// @Router /api/v1/org-team-match-evaluate/{id} [put]
// @Security Bearer
func (e OrgTeamMatchEvaluate) Update(c *gin.Context) {
req := dto.OrgMatchEvaluateUpdateReq{}
......
......@@ -24,8 +24,8 @@ func registerOrgMatchRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddl
r.PUT("/:id", api.Update)
r.DELETE("", api.Delete)
r.GET("/get-player", api.GetPlayer)
r.GET("/get-player-is-set/:id", api.GetPlayerIsSet)
r.PUT("/update-player/:id", api.UpdatePlayer)
r.PUT("/update-player-data/:id", api.UpdatePlayerData)
r.GET("/get-player-is-set", api.GetPlayerIsSet)
r.PUT("/update-player", api.UpdatePlayer)
r.PUT("/update-player-data", api.UpdatePlayerData)
}
}
......@@ -9,14 +9,13 @@ import (
type OrgMatchEvaluateGetPageReq struct {
dto.Pagination `search:"-"`
LeagueId string `form:"leagueId" search:"type:exact;column:league_id;table:om" comment:""`
DivisionId string `form:"divisionId" search:"type:exact;column:division_id;table:om" comment:""`
SeasonId string `form:"seasonId" search:"type:exact;column:season_id;table:om" comment:""`
Rounds string `form:"rounds" search:"type:exact;column:rounds;table:omtp" comment:""`
PlayerName string `form:"playerName" search:"type:exact;column:player_name;table:omtp" comment:""`
MvStatus string `form:"mvStatus" search:"type:exact;column:mv_status;table:ome" comment:"视频维护状态 1 待维护 2 维护完成 3 驳回 4 维护完成"`
Status string `form:"status" search:"type:exact;column:status;table:ome" comment:"发布状态 1 待审核 3 驳回 4 发布完成"`
OrgMatchEvaluateOrder
LeagueId string `form:"leagueId" search:"type:exact;column:league_id;table:om" comment:"联赛级别id"` //联赛级别id
DivisionId string `form:"divisionId" search:"type:exact;column:division_id;table:om" comment:"赛区id"` //赛区id
SeasonId string `form:"seasonId" search:"type:exact;column:season_id;table:om" comment:"赛季id"` //赛季id
Rounds string `form:"rounds" search:"type:exact;column:rounds;table:omtp" comment:"轮次"` //轮次
PlayerName string `form:"playerName" search:"type:contains;column:player_name;table:omtp" comment:"球员名称"` //球员名称
MvStatus string `form:"mvStatus" search:"type:exact;column:mv_status;table:ome" comment:"视频维护状态 1 待维护 2 维护完成 3 驳回 4 维护完成"` //视频维护状态 1 待维护 2 维护完成 3 驳回 4 维护完成
Status string `form:"status" search:"type:exact;column:status;table:ome" comment:"发布状态 0 保存 1 待审核 3 驳回 4 发布完成"` //发布状态 0 保存 1 待审核 3 驳回 4 发布完成
}
type OrgMatchEvaluateGetPageReply struct {
......
......@@ -9,7 +9,9 @@ import (
type OrgMatchTeamPlayerGetPageReq struct {
dto.Pagination `search:"-"`
OrgMatchTeamPlayerOrder
TeamId string `form:"teamId" search:"type:exact;column:team_id;table:org_match_team_player" comment:""`
MatchId string `form:"matchId" search:"type:exact;column:match_id;table:org_match_team_player" comment:""`
Rounds string `form:"rounds" search:"type:exact;column:rounds;table:org_match_team_player" comment:""`
}
type UpdateOrgMatchTeamPlayerReq struct {
MatchId string `json:"matchId"`
......
......@@ -10,7 +10,6 @@ import (
type OrgPlayerGetPageReq struct {
dto.Pagination `search:"-"`
TeamId string `form:"teamId" search:"type:exact;column:team_id;table:org_player" comment:""`
OrgPlayerOrder
}
type OrgPlayerOrder struct {
......
......@@ -28,6 +28,7 @@ func (e *OrgMatchTeamPlayer) GetPage(c *dto.OrgMatchTeamPlayerGetPageReq, p *act
actions.Permission(data.TableName(), p),
cDto.SetWhere("", "team_id", c.TeamId),
cDto.SetWhere("", "match_id", c.MatchId),
cDto.SetWhere("", "rounds", c.Rounds),
).
Find(list).Limit(-1).Offset(-1).
Count(count).Error
......
......@@ -1807,11 +1807,11 @@ var doc = `{
"Bearer": []
}
],
"description": "获取联赛列表",
"description": "\u003c赛事\u003e获取联赛列表",
"tags": [
"联赛"
"\u003c赛事\u003e联赛"
],
"summary": "获取联赛列表",
"summary": "\u003c赛事\u003e获取联赛列表",
"parameters": [
{
"type": "integer",
......@@ -1841,14 +1841,14 @@ var doc = `{
"Bearer": []
}
],
"description": "创建联赛",
"description": "\u003c赛事\u003e创建联赛",
"consumes": [
"application/json"
],
"tags": [
"联赛"
"\u003c赛事\u003e联赛"
],
"summary": "创建联赛",
"summary": "\u003c赛事\u003e创建联赛",
"parameters": [
{
"description": "data",
......@@ -1875,11 +1875,11 @@ var doc = `{
"Bearer": []
}
],
"description": "删除联赛",
"description": "\u003c赛事\u003e删除联赛",
"tags": [
"联赛"
"\u003c赛事\u003e联赛"
],
"summary": "删除联赛",
"summary": "\u003c赛事\u003e删除联赛",
"parameters": [
{
"description": "ids",
......@@ -1910,11 +1910,11 @@ var doc = `{
"Bearer": []
}
],
"description": "获取联赛",
"description": "\u003c赛事\u003e获取联赛",
"tags": [
"联赛"
"\u003c赛事\u003e联赛"
],
"summary": "获取联赛",
"summary": "\u003c赛事\u003e获取联赛",
"parameters": [
{
"type": "string",
......@@ -1938,14 +1938,14 @@ var doc = `{
"Bearer": []
}
],
"description": "修改联赛",
"description": "\u003c赛事\u003e修改联赛",
"consumes": [
"application/json"
],
"tags": [
"联赛"
"\u003c赛事\u003e联赛"
],
"summary": "修改联赛",
"summary": "\u003c赛事\u003e修改联赛",
"parameters": [
{
"description": "body",
......@@ -2083,6 +2083,15 @@ var doc = `{
],
"summary": "\u003c赛事\u003e赛后评价列表",
"parameters": [
{
"description": "body",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchEvaluateGetPageReq"
}
},
{
"type": "integer",
"description": "页条数",
......@@ -2120,16 +2129,10 @@ var doc = `{
"summary": "\u003c赛事\u003e赛后评价比赛列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
......@@ -2142,42 +2145,6 @@ var doc = `{
}
}
},
"/api/v1/org-match-evaluate/status/{id}": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e赛后评价影像维护",
"consumes": [
"application/json"
],
"tags": [
"\u003c赛事\u003e赛后评价"
],
"summary": "\u003c赛事\u003e赛后评价影像维护",
"parameters": [
{
"description": "body",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchEvaluateUpdateReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-match-evaluate/{id}": {
"get": {
"security": [
......@@ -2185,11 +2152,11 @@ var doc = `{
"Bearer": []
}
],
"description": "\u003c球队\u003e教练评价比赛详情",
"description": "\u003c赛事\u003e赛后评价比赛详情",
"tags": [
"\u003c球队\u003e教练评价"
"\u003c赛事\u003e赛后评价"
],
"summary": "\u003c球队\u003e教练评价比赛详情",
"summary": "\u003c赛事\u003e赛后评价比赛详情",
"parameters": [
{
"type": "string",
......@@ -2213,14 +2180,14 @@ var doc = `{
"Bearer": []
}
],
"description": "\u003c球队\u003e修改评价",
"description": "\u003c赛事\u003e赛后评价影像维护",
"consumes": [
"application/json"
],
"tags": [
"\u003c球队\u003e教练评价"
"\u003c赛事\u003e赛后评价"
],
"summary": "\u003c球队\u003e修改评价",
"summary": "\u003c赛事\u003e赛后评价影像维护",
"parameters": [
{
"description": "body",
......@@ -2409,18 +2376,18 @@ var doc = `{
}
}
},
"/api/v1/org-match/get-players-is-set/{id}": {
"/api/v1/org-match/get-player": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e获取比赛已设置球员",
"description": "\u003c赛事\u003e获取比赛所有球员",
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e获取比赛已设置球员",
"summary": "\u003c赛事\u003e获取比赛所有球员",
"parameters": [
{
"type": "string",
......@@ -2439,18 +2406,60 @@ var doc = `{
}
}
},
"/api/v1/org-match/get-players/{id}": {
"/api/v1/org-match/get-player-is-set": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e获取比赛所有球员",
"description": "\u003c赛事\u003e获取比赛已设置球员",
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e获取比赛所有球员",
"summary": "\u003c赛事\u003e获取比赛已设置球员",
"parameters": [
{
"type": "string",
"description": "teamId",
"name": "teamId",
"in": "path"
},
{
"type": "string",
"description": "matchId",
"name": "matchId",
"in": "path"
},
{
"type": "string",
"description": "rounds",
"name": "rounds",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-match/info/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)",
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)",
"parameters": [
{
"type": "string",
......@@ -2469,21 +2478,21 @@ var doc = `{
}
}
},
"/api/v1/org-match/update-players-data/{id}": {
"/api/v1/org-match/update-player": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e修改比赛球员数据",
"description": "\u003c赛事\u003e修改比赛球员",
"consumes": [
"application/json"
],
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e修改比赛球员数据",
"summary": "\u003c赛事\u003e修改比赛球员",
"parameters": [
{
"description": "body",
......@@ -2491,7 +2500,7 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchUpdateReq"
"$ref": "#/definitions/dto.UpdateOrgMatchTeamPlayerReq"
}
}
],
......@@ -2505,21 +2514,21 @@ var doc = `{
}
}
},
"/api/v1/org-match/update-players/{id}": {
"/api/v1/org-match/update-player-data": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e修改比赛球员",
"description": "\u003c赛事\u003e修改比赛球员数据",
"consumes": [
"application/json"
],
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e修改比赛球员",
"summary": "\u003c赛事\u003e修改比赛球员数据",
"parameters": [
{
"description": "body",
......@@ -2527,7 +2536,7 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchUpdateReq"
"$ref": "#/definitions/dto.OrgMatchTeamPlayerUpdateReq"
}
}
],
......@@ -2548,11 +2557,11 @@ var doc = `{
"Bearer": []
}
],
"description": "\u003c赛事\u003e获取比赛",
"description": "\u003c赛事\u003e获取比赛比分维护数据",
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e获取比赛",
"summary": "\u003c赛事\u003e获取比赛比分维护数据",
"parameters": [
{
"type": "string",
......@@ -3584,6 +3593,70 @@ var doc = `{
}
}
},
"/api/v1/org-team-match-evaluate/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e教练评价比赛详情",
"tags": [
"\u003c球队\u003e教练评价"
],
"summary": "\u003c球队\u003e教练评价比赛详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
},
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e修改评价",
"consumes": [
"application/json"
],
"tags": [
"\u003c球队\u003e教练评价"
],
"summary": "\u003c球队\u003e修改评价",
"parameters": [
{
"description": "body",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchEvaluateUpdateReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-match/get-players-is-set/{id}": {
"get": {
"security": [
......@@ -6338,6 +6411,45 @@ var doc = `{
}
}
},
"dto.OrgMatchEvaluateGetPageReq": {
"type": "object",
"properties": {
"divisionId": {
"description": "赛区id",
"type": "string"
},
"leagueId": {
"description": "联赛级别id",
"type": "string"
},
"mvStatus": {
"description": "视频维护状态 1 待维护 2 维护完成 3 驳回 4 维护完成",
"type": "string"
},
"pageIndex": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"playerName": {
"description": "球员名称",
"type": "string"
},
"rounds": {
"description": "轮次",
"type": "string"
},
"seasonId": {
"description": "赛季id",
"type": "string"
},
"status": {
"description": "发布状态 0 保存 1 待审核 3 驳回 4 发布完成",
"type": "string"
}
}
},
"dto.OrgMatchEvaluateUpdateReq": {
"type": "object",
"properties": {
......@@ -6350,9 +6462,24 @@ var doc = `{
"id": {
"type": "integer"
},
"matchId": {
"type": "string"
},
"mvStatus": {
"type": "string"
},
"playerId": {
"type": "string"
},
"remark": {
"type": "string"
},
"rounds": {
"type": "string"
},
"status": {
"type": "string"
},
"teamUserId": {
"type": "string"
},
......@@ -6456,6 +6583,12 @@ var doc = `{
"matchId": {
"type": "string"
},
"otherTeamId": {
"type": "string"
},
"playerId": {
"type": "string"
},
"playerName": {
"type": "string"
},
......@@ -6468,6 +6601,9 @@ var doc = `{
"rebound": {
"type": "string"
},
"rounds": {
"type": "string"
},
"scoring": {
"type": "string"
},
......@@ -6515,6 +6651,12 @@ var doc = `{
"matchId": {
"type": "string"
},
"otherTeamId": {
"type": "string"
},
"playerId": {
"type": "string"
},
"playerName": {
"type": "string"
},
......@@ -6527,6 +6669,9 @@ var doc = `{
"rebound": {
"type": "string"
},
"rounds": {
"type": "string"
},
"scoring": {
"type": "string"
},
......@@ -7913,6 +8058,23 @@ var doc = `{
}
}
},
"dto.UpdateOrgMatchTeamPlayerReq": {
"type": "object",
"properties": {
"matchId": {
"type": "string"
},
"otherTeamId": {
"type": "string"
},
"playersIds": {
"type": "string"
},
"rounds": {
"type": "string"
}
}
},
"dto.UpdateStatusReq": {
"type": "object",
"properties": {
......
......@@ -1790,11 +1790,11 @@
"Bearer": []
}
],
"description": "获取联赛列表",
"description": "\u003c赛事\u003e获取联赛列表",
"tags": [
"联赛"
"\u003c赛事\u003e联赛"
],
"summary": "获取联赛列表",
"summary": "\u003c赛事\u003e获取联赛列表",
"parameters": [
{
"type": "integer",
......@@ -1824,14 +1824,14 @@
"Bearer": []
}
],
"description": "创建联赛",
"description": "\u003c赛事\u003e创建联赛",
"consumes": [
"application/json"
],
"tags": [
"联赛"
"\u003c赛事\u003e联赛"
],
"summary": "创建联赛",
"summary": "\u003c赛事\u003e创建联赛",
"parameters": [
{
"description": "data",
......@@ -1858,11 +1858,11 @@
"Bearer": []
}
],
"description": "删除联赛",
"description": "\u003c赛事\u003e删除联赛",
"tags": [
"联赛"
"\u003c赛事\u003e联赛"
],
"summary": "删除联赛",
"summary": "\u003c赛事\u003e删除联赛",
"parameters": [
{
"description": "ids",
......@@ -1893,11 +1893,11 @@
"Bearer": []
}
],
"description": "获取联赛",
"description": "\u003c赛事\u003e获取联赛",
"tags": [
"联赛"
"\u003c赛事\u003e联赛"
],
"summary": "获取联赛",
"summary": "\u003c赛事\u003e获取联赛",
"parameters": [
{
"type": "string",
......@@ -1921,14 +1921,14 @@
"Bearer": []
}
],
"description": "修改联赛",
"description": "\u003c赛事\u003e修改联赛",
"consumes": [
"application/json"
],
"tags": [
"联赛"
"\u003c赛事\u003e联赛"
],
"summary": "修改联赛",
"summary": "\u003c赛事\u003e修改联赛",
"parameters": [
{
"description": "body",
......@@ -2066,6 +2066,15 @@
],
"summary": "\u003c赛事\u003e赛后评价列表",
"parameters": [
{
"description": "body",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchEvaluateGetPageReq"
}
},
{
"type": "integer",
"description": "页条数",
......@@ -2103,16 +2112,10 @@
"summary": "\u003c赛事\u003e赛后评价比赛列表",
"parameters": [
{
"type": "integer",
"description": "页条数",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "pageIndex",
"in": "query"
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
......@@ -2125,42 +2128,6 @@
}
}
},
"/api/v1/org-match-evaluate/status/{id}": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e赛后评价影像维护",
"consumes": [
"application/json"
],
"tags": [
"\u003c赛事\u003e赛后评价"
],
"summary": "\u003c赛事\u003e赛后评价影像维护",
"parameters": [
{
"description": "body",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchEvaluateUpdateReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-match-evaluate/{id}": {
"get": {
"security": [
......@@ -2168,11 +2135,11 @@
"Bearer": []
}
],
"description": "\u003c球队\u003e教练评价比赛详情",
"description": "\u003c赛事\u003e赛后评价比赛详情",
"tags": [
"\u003c球队\u003e教练评价"
"\u003c赛事\u003e赛后评价"
],
"summary": "\u003c球队\u003e教练评价比赛详情",
"summary": "\u003c赛事\u003e赛后评价比赛详情",
"parameters": [
{
"type": "string",
......@@ -2196,14 +2163,14 @@
"Bearer": []
}
],
"description": "\u003c球队\u003e修改评价",
"description": "\u003c赛事\u003e赛后评价影像维护",
"consumes": [
"application/json"
],
"tags": [
"\u003c球队\u003e教练评价"
"\u003c赛事\u003e赛后评价"
],
"summary": "\u003c球队\u003e修改评价",
"summary": "\u003c赛事\u003e赛后评价影像维护",
"parameters": [
{
"description": "body",
......@@ -2392,18 +2359,18 @@
}
}
},
"/api/v1/org-match/get-players-is-set/{id}": {
"/api/v1/org-match/get-player": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e获取比赛已设置球员",
"description": "\u003c赛事\u003e获取比赛所有球员",
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e获取比赛已设置球员",
"summary": "\u003c赛事\u003e获取比赛所有球员",
"parameters": [
{
"type": "string",
......@@ -2422,18 +2389,60 @@
}
}
},
"/api/v1/org-match/get-players/{id}": {
"/api/v1/org-match/get-player-is-set": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e获取比赛所有球员",
"description": "\u003c赛事\u003e获取比赛已设置球员",
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e获取比赛所有球员",
"summary": "\u003c赛事\u003e获取比赛已设置球员",
"parameters": [
{
"type": "string",
"description": "teamId",
"name": "teamId",
"in": "path"
},
{
"type": "string",
"description": "matchId",
"name": "matchId",
"in": "path"
},
{
"type": "string",
"description": "rounds",
"name": "rounds",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-match/info/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)",
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e获取比赛附加数据(比赛详情,联赛,赛区,赛季,球队)",
"parameters": [
{
"type": "string",
......@@ -2452,21 +2461,21 @@
}
}
},
"/api/v1/org-match/update-players-data/{id}": {
"/api/v1/org-match/update-player": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e修改比赛球员数据",
"description": "\u003c赛事\u003e修改比赛球员",
"consumes": [
"application/json"
],
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e修改比赛球员数据",
"summary": "\u003c赛事\u003e修改比赛球员",
"parameters": [
{
"description": "body",
......@@ -2474,7 +2483,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchUpdateReq"
"$ref": "#/definitions/dto.UpdateOrgMatchTeamPlayerReq"
}
}
],
......@@ -2488,21 +2497,21 @@
}
}
},
"/api/v1/org-match/update-players/{id}": {
"/api/v1/org-match/update-player-data": {
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c赛事\u003e修改比赛球员",
"description": "\u003c赛事\u003e修改比赛球员数据",
"consumes": [
"application/json"
],
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e修改比赛球员",
"summary": "\u003c赛事\u003e修改比赛球员数据",
"parameters": [
{
"description": "body",
......@@ -2510,7 +2519,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchUpdateReq"
"$ref": "#/definitions/dto.OrgMatchTeamPlayerUpdateReq"
}
}
],
......@@ -2531,11 +2540,11 @@
"Bearer": []
}
],
"description": "\u003c赛事\u003e获取比赛",
"description": "\u003c赛事\u003e获取比赛比分维护数据",
"tags": [
"\u003c赛事\u003e比赛"
],
"summary": "\u003c赛事\u003e获取比赛",
"summary": "\u003c赛事\u003e获取比赛比分维护数据",
"parameters": [
{
"type": "string",
......@@ -3567,6 +3576,70 @@
}
}
},
"/api/v1/org-team-match-evaluate/{id}": {
"get": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e教练评价比赛详情",
"tags": [
"\u003c球队\u003e教练评价"
],
"summary": "\u003c球队\u003e教练评价比赛详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path"
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"type": "string"
}
}
}
},
"put": {
"security": [
{
"Bearer": []
}
],
"description": "\u003c球队\u003e修改评价",
"consumes": [
"application/json"
],
"tags": [
"\u003c球队\u003e教练评价"
],
"summary": "\u003c球队\u003e修改评价",
"parameters": [
{
"description": "body",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.OrgMatchEvaluateUpdateReq"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"message\": \"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/org-team-match/get-players-is-set/{id}": {
"get": {
"security": [
......@@ -6321,6 +6394,45 @@
}
}
},
"dto.OrgMatchEvaluateGetPageReq": {
"type": "object",
"properties": {
"divisionId": {
"description": "赛区id",
"type": "string"
},
"leagueId": {
"description": "联赛级别id",
"type": "string"
},
"mvStatus": {
"description": "视频维护状态 1 待维护 2 维护完成 3 驳回 4 维护完成",
"type": "string"
},
"pageIndex": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"playerName": {
"description": "球员名称",
"type": "string"
},
"rounds": {
"description": "轮次",
"type": "string"
},
"seasonId": {
"description": "赛季id",
"type": "string"
},
"status": {
"description": "发布状态 0 保存 1 待审核 3 驳回 4 发布完成",
"type": "string"
}
}
},
"dto.OrgMatchEvaluateUpdateReq": {
"type": "object",
"properties": {
......@@ -6333,9 +6445,24 @@
"id": {
"type": "integer"
},
"matchId": {
"type": "string"
},
"mvStatus": {
"type": "string"
},
"playerId": {
"type": "string"
},
"remark": {
"type": "string"
},
"rounds": {
"type": "string"
},
"status": {
"type": "string"
},
"teamUserId": {
"type": "string"
},
......@@ -6439,6 +6566,12 @@
"matchId": {
"type": "string"
},
"otherTeamId": {
"type": "string"
},
"playerId": {
"type": "string"
},
"playerName": {
"type": "string"
},
......@@ -6451,6 +6584,9 @@
"rebound": {
"type": "string"
},
"rounds": {
"type": "string"
},
"scoring": {
"type": "string"
},
......@@ -6498,6 +6634,12 @@
"matchId": {
"type": "string"
},
"otherTeamId": {
"type": "string"
},
"playerId": {
"type": "string"
},
"playerName": {
"type": "string"
},
......@@ -6510,6 +6652,9 @@
"rebound": {
"type": "string"
},
"rounds": {
"type": "string"
},
"scoring": {
"type": "string"
},
......@@ -7896,6 +8041,23 @@
}
}
},
"dto.UpdateOrgMatchTeamPlayerReq": {
"type": "object",
"properties": {
"matchId": {
"type": "string"
},
"otherTeamId": {
"type": "string"
},
"playersIds": {
"type": "string"
},
"rounds": {
"type": "string"
}
}
},
"dto.UpdateStatusReq": {
"type": "object",
"properties": {
......
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