Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
Details
Activity
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
吴迪
gs1-office-web-sit
Commits
7ac928b8
Commit
7ac928b8
authored
Dec 06, 2021
by
rongkailun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】官网接口统一返回数据格式
parent
f76eb802
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
NewsController.java
...a/io/office/modules/manage/controller/NewsController.java
+1
-1
PolicyController.java
...io/office/modules/manage/controller/PolicyController.java
+1
-1
TopicnewsController.java
...office/modules/manage/controller/TopicnewsController.java
+1
-1
No files found.
src/main/java/io/office/modules/manage/controller/NewsController.java
View file @
7ac928b8
...
@@ -148,7 +148,7 @@ public class NewsController extends AbstractController {
...
@@ -148,7 +148,7 @@ public class NewsController extends AbstractController {
Page
<
NewsEntity
>
page
=
this
.
newsService
.
selectRealTimeInfo
(
newsParams
,
Page
<
NewsEntity
>
page
=
this
.
newsService
.
selectRealTimeInfo
(
newsParams
,
new
Page
(
newsParams
.
getPage
(),
newsParams
.
getLimit
()));
new
Page
(
newsParams
.
getPage
(),
newsParams
.
getLimit
()));
PageUtils
pageUtils
=
new
PageUtils
(
page
);
PageUtils
pageUtils
=
new
PageUtils
(
page
);
return
R
.
ok
().
put
(
"
page
"
,
pageUtils
);
return
R
.
ok
().
put
(
"
data
"
,
pageUtils
);
}
}
/**
/**
...
...
src/main/java/io/office/modules/manage/controller/PolicyController.java
View file @
7ac928b8
...
@@ -53,7 +53,7 @@ public class PolicyController extends AbstractController {
...
@@ -53,7 +53,7 @@ public class PolicyController extends AbstractController {
public
R
info
(
@PathVariable
(
"id"
)
Integer
id
){
public
R
info
(
@PathVariable
(
"id"
)
Integer
id
){
PolicyEntity
policy
=
policyService
.
getById
(
id
);
PolicyEntity
policy
=
policyService
.
getById
(
id
);
return
R
.
ok
().
put
(
"
data
"
,
policy
);
return
R
.
ok
().
put
(
"
policy
"
,
policy
);
}
}
/**
/**
...
...
src/main/java/io/office/modules/manage/controller/TopicnewsController.java
View file @
7ac928b8
...
@@ -137,7 +137,7 @@ public class TopicnewsController extends AbstractController {
...
@@ -137,7 +137,7 @@ public class TopicnewsController extends AbstractController {
Page
<
NewsEntity
>
page
=
this
.
topicnewsService
.
getHdbdList
(
newsParams
,
Page
<
NewsEntity
>
page
=
this
.
topicnewsService
.
getHdbdList
(
newsParams
,
new
Page
(
newsParams
.
getPage
(),
newsParams
.
getLimit
()));
new
Page
(
newsParams
.
getPage
(),
newsParams
.
getLimit
()));
PageUtils
pageUtils
=
new
PageUtils
(
page
);
PageUtils
pageUtils
=
new
PageUtils
(
page
);
return
R
.
ok
().
put
(
"
page
"
,
pageUtils
);
return
R
.
ok
().
put
(
"
data
"
,
pageUtils
);
}
}
...
...
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