Commit cd313f83 authored by haoyanbin's avatar haoyanbin

Player

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