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
dc1b9ed8
Commit
dc1b9ed8
authored
3 years ago
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WonderfulId
parent
0363e892
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
86 additions
and
61 deletions
+86
-61
org_match_evaluate.go
app/operate/apis/org_match_evaluate.go
+4
-4
org_match_evaluate.go
app/operate/service/org_match_evaluate.go
+1
-1
match.go
common/dto/match.go
+1
-1
docs.go
docs/docs.go
+30
-20
swagger.json
docs/swagger.json
+30
-20
swagger.yaml
docs/swagger.yaml
+20
-15
No files found.
app/operate/apis/org_match_evaluate.go
View file @
dc1b9ed8
...
...
@@ -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
.
Wonderful
Id
!=
""
{
upId
,
_
:=
strconv
.
Atoi
(
v
.
Wonderful
Id
)
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
.
Wonderful
Id
!=
""
{
upId
,
_
:=
strconv
.
Atoi
(
vMv
.
Wonderful
Id
)
reqWonderfulUpdate
.
Id
=
upId
reqWonderfulUpdate
.
WonderfulUrl
=
vMv
.
WonderfulUrl
reqWonderfulUpdate
.
WonderfulTitle
=
vMv
.
WonderfulTitle
...
...
This diff is collapsed.
Click to expand it.
app/operate/service/org_match_evaluate.go
View file @
dc1b9ed8
...
...
@@ -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"
),
)
.
...
...
This diff is collapsed.
Click to expand it.
common/dto/match.go
View file @
dc1b9ed8
...
...
@@ -24,7 +24,7 @@ type PageMatchInfo struct {
}
type
Wonderful
struct
{
Id
string
`json:"i
d" comment:"精彩时刻id"`
WonderfulId
string
`json:"wonderfulI
d" comment:"精彩时刻id"`
WonderfulUrl
string
`json:"wonderfulUrl" comment:"精彩时刻url"`
WonderfulTitle
string
`json:"wonderfulTitle" comment:"精彩时刻标题"`
}
...
...
This diff is collapsed.
Click to expand it.
docs/docs.go
View file @
dc1b9ed8
...
...
@@ -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": {
"wonderful
Title
": {
"wonderful
Id
": {
"type": "string"
},
"wonderful
Url
": {
"wonderful
Title
": {
"type": "string"
},
"
精彩时刻id
": {
"
wonderfulUrl
": {
"type": "string"
}
}
...
...
This diff is collapsed.
Click to expand it.
docs/swagger.json
View file @
dc1b9ed8
...
...
@@ -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"
:
{
"wonderful
Title
"
:
{
"wonderful
Id
"
:
{
"type"
:
"string"
},
"wonderful
Url
"
:
{
"wonderful
Title
"
:
{
"type"
:
"string"
},
"
精彩时刻id
"
:
{
"
wonderfulUrl
"
:
{
"type"
:
"string"
}
}
...
...
This diff is collapsed.
Click to expand it.
docs/swagger.yaml
View file @
dc1b9ed8
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
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