|
@ -2,8 +2,9 @@ package com.elink.esua.epdc.feign; |
|
|
|
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant; |
|
|
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant; |
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcNoticeBrowseFormDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.*; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcNoticeFormDTO; |
|
|
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.EpdcNoticeDetailResultDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcNoticeDetailResultDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcNoticeResultDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcNoticeResultDTO; |
|
|
import com.elink.esua.epdc.feign.fallback.NewsFeignClientFallback; |
|
|
import com.elink.esua.epdc.feign.fallback.NewsFeignClientFallback; |
|
@ -20,7 +21,7 @@ import java.util.List; |
|
|
* @email yujintao@elink-cn.com |
|
|
* @email yujintao@elink-cn.com |
|
|
* @date 2019/9/5 19:20 |
|
|
* @date 2019/9/5 19:20 |
|
|
*/ |
|
|
*/ |
|
|
@FeignClient(name = ServiceConstant.EPDC_NEWS_SERVER, fallback = NewsFeignClientFallback.class) |
|
|
@FeignClient(name = ServiceConstant.EPDC_NEWS_SERVER, fallback = NewsFeignClientFallback.class,url = "http://localhost:9064") |
|
|
public interface NewsFeignClient { |
|
|
public interface NewsFeignClient { |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -55,4 +56,54 @@ public interface NewsFeignClient { |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping(value = "news/epdc-app/notice/browse", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
@PostMapping(value = "news/epdc-app/notice/browse", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
Result browseNotice(@RequestBody EpdcNoticeBrowseFormDTO formDto); |
|
|
Result browseNotice(@RequestBody EpdcNoticeBrowseFormDTO formDto); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
|
* @Description 移动端新闻列表 |
|
|
|
|
|
* @Author qushutong |
|
|
|
|
|
* @Date 2019/9/9 9:17 |
|
|
|
|
|
* @Param [formDto] |
|
|
|
|
|
* @Return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.epdc.result.EpdcNewsResultDTO>> |
|
|
|
|
|
* @Exception |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
@GetMapping("news/epdc-app/news/listNews") |
|
|
|
|
|
Result<List<EpdcNewsResultDTO>> listNews(@RequestBody EpdcNewsFromDTO formDto); |
|
|
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
|
* @Description 获取详情 |
|
|
|
|
|
* @Author qushutong |
|
|
|
|
|
* @Date 2019/9/9 10:20 |
|
|
|
|
|
* @Param [id] |
|
|
|
|
|
* @Return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcNewsDetailResultDTO> |
|
|
|
|
|
* @Exception |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
@GetMapping("news/epdc-app/news/detail/{newsId}") |
|
|
|
|
|
Result<EpdcNewsDetailResultDTO> getNewsDetail(@PathVariable("id") String id); |
|
|
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
|
* @Description 点赞和踩 |
|
|
|
|
|
* @Author qushutong |
|
|
|
|
|
* @Date 2019/9/9 10:24 |
|
|
|
|
|
* @Param [newsStatementFromDTO] |
|
|
|
|
|
* @Return com.elink.esua.epdc.commons.tools.utils.Result |
|
|
|
|
|
* @Exception |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("news/epdc-app/news/statement") |
|
|
|
|
|
Result upDateStatement(@RequestBody EpdcNewsStatementFromDTO newsStatementFromDTO); |
|
|
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
|
* @Description |
|
|
|
|
|
* @Author qushutong |
|
|
|
|
|
* @Date 2019/9/9 10:36 |
|
|
|
|
|
* @Param [newsBrowseFromDTO] |
|
|
|
|
|
* @Return com.elink.esua.epdc.commons.tools.utils.Result |
|
|
|
|
|
* @Exception |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("news/epdc-app/news/browse") |
|
|
|
|
|
Result modifyNewsBrowse(@RequestBody EpdcNewsBrowseFromDTO newsBrowseFromDTO); |
|
|
} |
|
|
} |
|
|