Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
enterprise-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
enterprise-platform
Commits
657e5327
Commit
657e5327
authored
Dec 16, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改测试bug
parent
f3597a18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
enterprise-manager/src/main/java/com/mortals/xhx/busiz/applets/web/NewsApiController.java
.../com/mortals/xhx/busiz/applets/web/NewsApiController.java
+5
-0
No files found.
enterprise-manager/src/main/java/com/mortals/xhx/busiz/applets/web/NewsApiController.java
View file @
657e5327
package
com.mortals.xhx.busiz.applets.web
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
...
...
@@ -74,6 +75,7 @@ public class NewsApiController extends AbstractBaseController<NewsReq> {
* 新闻频道分类
*/
@PostMapping
(
value
=
"categoryList"
)
@UnAuth
public
Rest
<
Object
>
categoryList
(){
String
busiDesc
=
"新闻频道"
;
Rest
<
Object
>
rest
=
Rest
.
ok
();
...
...
@@ -91,6 +93,7 @@ public class NewsApiController extends AbstractBaseController<NewsReq> {
* 新闻列表
*/
@PostMapping
(
value
=
"newsList"
)
@UnAuth
public
Rest
<
Object
>
newsList
(
@RequestBody
NewsReq
newsReq
)
{
String
busiDesc
=
"新闻列表"
;
log
.
info
(
"【{}】【请求体】--> {}"
,
busiDesc
,
JSONObject
.
toJSONString
(
newsReq
));
...
...
@@ -135,6 +138,7 @@ public class NewsApiController extends AbstractBaseController<NewsReq> {
* 新闻详细
*/
@PostMapping
(
value
=
"newsInfo"
)
@UnAuth
public
Rest
<
NewsEntity
>
appealInfo
(
@RequestBody
NewsReq
newsReq
)
{
String
busiDesc
=
"新闻详细"
;
log
.
info
(
"【{}】【请求体】--> {}"
,
busiDesc
,
JSONObject
.
toJSONString
(
newsReq
));
...
...
@@ -161,6 +165,7 @@ public class NewsApiController extends AbstractBaseController<NewsReq> {
* 新闻点赞
*/
@PostMapping
(
value
=
"up"
)
@UnAuth
public
Rest
<
NewsEntity
>
upNews
(
@RequestBody
NewsReq
newsReq
)
{
String
busiDesc
=
"新闻点赞"
;
log
.
info
(
"【{}】【请求体】--> {}"
,
busiDesc
,
JSONObject
.
toJSONString
(
newsReq
));
...
...
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