|
@ -18,33 +18,23 @@ |
|
|
package com.elink.esua.epdc.controller; |
|
|
package com.elink.esua.epdc.controller; |
|
|
|
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.constant.Constant; |
|
|
import com.elink.esua.epdc.commons.tools.constant.Constant; |
|
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.commons.tools.validator.AssertUtils; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
|
|
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
|
|
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; |
|
|
|
|
|
import com.elink.esua.epdc.dto.NewsDTO; |
|
|
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcNewsBrowseFromDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcNewsBrowseFromDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcNewsFromDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcNewsFromDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcNewsStatementFromDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcNewsStatementFromDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcNewsDetailResultDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcNewsDetailResultDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcNewsResultDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcNewsResultDTO; |
|
|
import com.elink.esua.epdc.excel.NewsExcel; |
|
|
|
|
|
import com.elink.esua.epdc.service.NewsService; |
|
|
import com.elink.esua.epdc.service.NewsService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 新闻相关APP接口 |
|
|
* 新闻相关APP接口 |
|
|
|
|
|
* |
|
|
* @author: qushutong |
|
|
* @author: qushutong |
|
|
* @Date: 2019/9/7 11:15 |
|
|
* @Date: 2019/9/7 11:15 |
|
|
* @Description: |
|
|
* @Description: |
|
@ -55,6 +45,7 @@ public class EpdcAppNewsController { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private NewsService newsService; |
|
|
private NewsService newsService; |
|
|
|
|
|
|
|
|
/*** |
|
|
/*** |
|
|
* @Description 新闻列表 |
|
|
* @Description 新闻列表 |
|
|
* @Author qushutong |
|
|
* @Author qushutong |
|
@ -70,6 +61,7 @@ public class EpdcAppNewsController { |
|
|
Result<List<EpdcNewsResultDTO>> listNews = newsService.listNews(epdcNewsFromDTO); |
|
|
Result<List<EpdcNewsResultDTO>> listNews = newsService.listNews(epdcNewsFromDTO); |
|
|
return listNews; |
|
|
return listNews; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/*** |
|
|
/*** |
|
|
* @Description 新闻详情 |
|
|
* @Description 新闻详情 |
|
|
* @Author qushutong |
|
|
* @Author qushutong |
|
@ -84,6 +76,7 @@ public class EpdcAppNewsController { |
|
|
Result<EpdcNewsDetailResultDTO> newsDetail = newsService.getNewsDetail(id); |
|
|
Result<EpdcNewsDetailResultDTO> newsDetail = newsService.getNewsDetail(id); |
|
|
return newsDetail; |
|
|
return newsDetail; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/*** |
|
|
/*** |
|
|
* @Description 点赞或踩 |
|
|
* @Description 点赞或踩 |
|
|
* @Author qushutong |
|
|
* @Author qushutong |
|
|