Commit 657e5327 authored by 廖旭伟's avatar 廖旭伟

修改测试bug

parent f3597a18
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));
......
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