|
|
@@ -46,7 +46,7 @@ public class AdminNewsApiController extends BaseApiController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
|
|
public Result list(Integer type, String title, String author, String startCreateTime, String endCreateTime,
|
|
|
- String source, Integer hot, String pageSize, String pageNo) {
|
|
|
+ String source, Integer hot, String pageSize, String pageNo,String auditStatus,String releaseStatus) {
|
|
|
Result res = new Result();
|
|
|
if (null == type) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "新闻类型"));
|
|
|
@@ -60,7 +60,7 @@ public class AdminNewsApiController extends BaseApiController {
|
|
|
if (StringUtils.isNumeric(pageNo)) {
|
|
|
pNo = Integer.parseInt(pageNo);
|
|
|
}
|
|
|
- res.setData(newsService.listNews(type, title, author, startCreateTime, endCreateTime, source, hot, pNo, pSize));
|
|
|
+ res.setData(newsService.listNews(type, title, author, startCreateTime, endCreateTime, source, hot, pNo, pSize,auditStatus,releaseStatus));
|
|
|
return res;
|
|
|
}
|
|
|
|