Commit dc1b9ed8 authored by haoyanbin's avatar haoyanbin

WonderfulId

parent 0363e892
......@@ -229,8 +229,8 @@ func (e OrgMatchEvaluate) Update(c *gin.Context) {
}
delIds := make([]int, 0)
for _, v := range req.MatchImg {
if v.Id != "" {
upId, _ := strconv.Atoi(v.Id)
if v.WonderfulId != "" {
upId, _ := strconv.Atoi(v.WonderfulId)
reqWonderfulUpdate.Id = upId
reqWonderfulUpdate.WonderfulUrl = v.WonderfulUrl
reqWonderfulUpdate.WonderfulTitle = v.WonderfulTitle
......@@ -250,8 +250,8 @@ func (e OrgMatchEvaluate) Update(c *gin.Context) {
}
}
for _, vMv := range req.MatchMv {
if vMv.Id != "" {
upId, _ := strconv.Atoi(vMv.Id)
if vMv.WonderfulId != "" {
upId, _ := strconv.Atoi(vMv.WonderfulId)
reqWonderfulUpdate.Id = upId
reqWonderfulUpdate.WonderfulUrl = vMv.WonderfulUrl
reqWonderfulUpdate.WonderfulTitle = vMv.WonderfulTitle
......
......@@ -82,7 +82,7 @@ func (e *OrgMatchEvaluate) GetPageWonderful(evaluateId string, list *[]cDto.Wond
var err error
err = e.Orm.Table("org_match_evaluate_wonderful as omew").
Select("omew.id, omew.wonderful_url, omew.wonderful_title").
Select("omew.id as wonderful_id, omew.wonderful_url, omew.wonderful_title").
Scopes(
cDto.PassDel("omew"),
).
......
......@@ -24,7 +24,7 @@ type PageMatchInfo struct {
}
type Wonderful struct {
Id string `json:"id" comment:"精彩时刻id"`
WonderfulId string `json:"wonderfulId" comment:"精彩时刻id"`
WonderfulUrl string `json:"wonderfulUrl" comment:"精彩时刻url"`
WonderfulTitle string `json:"wonderfulTitle" comment:"精彩时刻标题"`
}
......
......@@ -7248,8 +7248,19 @@ var doc = `{
"dto.OrgLeagueGetPageReq": {
"type": "object",
"properties": {
"createBy": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"deletedAt": {
"type": "string"
},
"id": {
"type": "integer"
},
"leagueName": {
"description": "联赛级别",
"type": "string"
},
"pageIndex": {
......@@ -7257,6 +7268,15 @@ var doc = `{
},
"pageSize": {
"type": "integer"
},
"status": {
"type": "string"
},
"updateBy": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
},
......@@ -7709,27 +7729,11 @@ var doc = `{
"dto.OrgNewsGetPageReq": {
"type": "object",
"properties": {
"endTime": {
"description": "结束时间",
"type": "string"
},
"newsName": {
"description": "新闻名称",
"type": "string"
},
"pageIndex": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"startTime": {
"description": "开始时间",
"type": "string"
},
"status": {
"description": "新闻状态",
"type": "string"
}
}
},
......@@ -8514,6 +8518,9 @@ var doc = `{
"nickNameEn": {
"type": "string"
},
"password": {
"type": "string"
},
"roleId": {
"type": "string"
},
......@@ -8524,6 +8531,9 @@ var doc = `{
"updateBy": {
"type": "integer"
},
"userId": {
"type": "integer"
},
"username": {
"type": "string"
}
......@@ -9552,13 +9562,13 @@ var doc = `{
"dto.Wonderful": {
"type": "object",
"properties": {
"wonderfulTitle": {
"wonderfulId": {
"type": "string"
},
"wonderfulUrl": {
"wonderfulTitle": {
"type": "string"
},
"精彩时刻id": {
"wonderfulUrl": {
"type": "string"
}
}
......
......@@ -7231,8 +7231,19 @@
"dto.OrgLeagueGetPageReq": {
"type": "object",
"properties": {
"createBy": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"deletedAt": {
"type": "string"
},
"id": {
"type": "integer"
},
"leagueName": {
"description": "联赛级别",
"type": "string"
},
"pageIndex": {
......@@ -7240,6 +7251,15 @@
},
"pageSize": {
"type": "integer"
},
"status": {
"type": "string"
},
"updateBy": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
},
......@@ -7692,27 +7712,11 @@
"dto.OrgNewsGetPageReq": {
"type": "object",
"properties": {
"endTime": {
"description": "结束时间",
"type": "string"
},
"newsName": {
"description": "新闻名称",
"type": "string"
},
"pageIndex": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"startTime": {
"description": "开始时间",
"type": "string"
},
"status": {
"description": "新闻状态",
"type": "string"
}
}
},
......@@ -8497,6 +8501,9 @@
"nickNameEn": {
"type": "string"
},
"password": {
"type": "string"
},
"roleId": {
"type": "string"
},
......@@ -8507,6 +8514,9 @@
"updateBy": {
"type": "integer"
},
"userId": {
"type": "integer"
},
"username": {
"type": "string"
}
......@@ -9535,13 +9545,13 @@
"dto.Wonderful": {
"type": "object",
"properties": {
"wonderfulTitle": {
"wonderfulId": {
"type": "string"
},
"wonderfulUrl": {
"wonderfulTitle": {
"type": "string"
},
"精彩时刻id": {
"wonderfulUrl": {
"type": "string"
}
}
......
......@@ -232,13 +232,26 @@ definitions:
type: object
dto.OrgLeagueGetPageReq:
properties:
createBy:
type: string
createdAt:
type: string
deletedAt:
type: string
id:
type: integer
leagueName:
description: 联赛级别
type: string
pageIndex:
type: integer
pageSize:
type: integer
status:
type: string
updateBy:
type: string
updatedAt:
type: string
type: object
dto.OrgLeagueInsertReq:
properties:
......@@ -539,22 +552,10 @@ definitions:
type: object
dto.OrgNewsGetPageReq:
properties:
endTime:
description: 结束时间
type: string
newsName:
description: 新闻名称
type: string
pageIndex:
type: integer
pageSize:
type: integer
startTime:
description: 开始时间
type: string
status:
description: 新闻状态
type: string
type: object
dto.OrgNewsInsertReq:
properties:
......@@ -1077,6 +1078,8 @@ definitions:
type: string
nickNameEn:
type: string
password:
type: string
roleId:
type: string
status:
......@@ -1084,6 +1087,8 @@ definitions:
type: string
updateBy:
type: integer
userId:
type: integer
username:
type: string
type: object
......@@ -1784,12 +1789,12 @@ definitions:
type: object
dto.Wonderful:
properties:
wonderfulId:
type: string
wonderfulTitle:
type: string
wonderfulUrl:
type: string
精彩时刻id:
type: string
type: object
handler.Login:
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