|
|
@ -3,7 +3,6 @@ package com.elink.esua.epdc.feign; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.config.FeignRequestInterceptor; |
|
|
|
import com.elink.esua.epdc.dto.conflict.form.ConflictMediateDetailFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.conflict.form.ConflictMediateFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.conflict.form.ConflictMediateHistoryFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.conflict.result.ConflictMediateDetailResultDTO; |
|
|
@ -17,8 +16,8 @@ import com.elink.esua.epdc.feign.fallback.WorkPropertyFeignClientFallback; |
|
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
|
import org.springframework.http.MediaType; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -28,7 +27,7 @@ import java.util.List; |
|
|
|
* @Author zhangyuan |
|
|
|
* @Date 2020/6/9 16:39 |
|
|
|
*/ |
|
|
|
@FeignClient(name = ServiceConstant.EPDC_EVENTS_SERVER, fallback = WorkPropertyFeignClientFallback.class, configuration = FeignRequestInterceptor.class) |
|
|
|
@FeignClient(name = ServiceConstant.EPDC_PROPERTY_SERVER, fallback = WorkPropertyFeignClientFallback.class, configuration = FeignRequestInterceptor.class) |
|
|
|
public interface WorkPropertyFeignClient { |
|
|
|
|
|
|
|
/*** |
|
|
@ -38,8 +37,8 @@ public interface WorkPropertyFeignClient { |
|
|
|
* @author zhangyuan |
|
|
|
* @date 2020/6/8 9:25 |
|
|
|
*/ |
|
|
|
@GetMapping(value = "news/epdc-app/psychology/listUnansweredQuestion", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result<List<PsychologyUnansweredResultDTO>> listUnansweredQuestion(@RequestBody PsychologyUnansweredFormDTO fromDTO); |
|
|
|
@GetMapping(value = "property/epdc-app/psychology/listUnansweredQuestion", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result<List<PsychologyUnansweredResultDTO>> listUnansweredQuestion(PsychologyUnansweredFormDTO fromDTO); |
|
|
|
|
|
|
|
/*** |
|
|
|
* 工作端--待解答的心理咨询问题列表 |
|
|
@ -48,8 +47,8 @@ public interface WorkPropertyFeignClient { |
|
|
|
* @author zhangyuan |
|
|
|
* @date 2020/6/8 9:25 |
|
|
|
*/ |
|
|
|
@GetMapping(value = "news/epdc-app/psychology/listMyQuestion", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result<List<PsychologyAnswerOfMineResultDTO>> listMyQuestion(@RequestBody PsychologyAnswerFormDTO fromDTO); |
|
|
|
@GetMapping(value = "property/epdc-app/psychology/listMyQuestion", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result<List<PsychologyAnswerOfMineResultDTO>> listMyQuestion(PsychologyAnswerFormDTO fromDTO); |
|
|
|
|
|
|
|
/*** |
|
|
|
* 工作端--待解答的心理咨询问题列表 |
|
|
@ -58,8 +57,8 @@ public interface WorkPropertyFeignClient { |
|
|
|
* @author zhangyuan |
|
|
|
* @date 2020/6/8 9:25 |
|
|
|
*/ |
|
|
|
@PostMapping(value = "news/epdc-app/psychology/submitAnswer", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result submitAnswer(@RequestBody PsychologySubmitAnswerFormDTO fromDTO); |
|
|
|
@PostMapping(value = "property/epdc-app/psychology/submitAnswer", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result submitAnswer(PsychologySubmitAnswerFormDTO fromDTO); |
|
|
|
|
|
|
|
/*** |
|
|
|
* 工作端--矛盾纠纷历史上报列表 |
|
|
@ -68,18 +67,18 @@ public interface WorkPropertyFeignClient { |
|
|
|
* @author zhangyuan |
|
|
|
* @date 2020/6/8 9:25 |
|
|
|
*/ |
|
|
|
@GetMapping(value = "news/epdc-app/conflict/listHistory", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result<List<ConflictMediateHistoryResultDTO>> listHistory(@RequestBody ConflictMediateHistoryFormDTO fromDTO); |
|
|
|
@GetMapping(value = "property/epdc-app/conflict/listHistory", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result<List<ConflictMediateHistoryResultDTO>> listHistory(ConflictMediateHistoryFormDTO fromDTO); |
|
|
|
|
|
|
|
/*** |
|
|
|
* 工作端--矛盾调解 详情 |
|
|
|
* @param fromDTO |
|
|
|
* @param conflictId |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result < ConflictMediateDetailResultDTO > |
|
|
|
* @author zhangyuan |
|
|
|
* @date 2020/6/8 9:25 |
|
|
|
*/ |
|
|
|
@GetMapping(value = "news/epdc-app/conflict/getById", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result<ConflictMediateDetailResultDTO> getById(@RequestBody ConflictMediateDetailFormDTO fromDTO); |
|
|
|
@GetMapping(value = "property/epdc-app/conflict/getById/{conflictId}", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result<ConflictMediateDetailResultDTO> getById(@PathVariable("conflictId") String conflictId); |
|
|
|
|
|
|
|
/*** |
|
|
|
* 工作端--矛盾纠纷提交 |
|
|
@ -88,6 +87,6 @@ public interface WorkPropertyFeignClient { |
|
|
|
* @author zhangyuan |
|
|
|
* @date 2020/6/8 9:25 |
|
|
|
*/ |
|
|
|
@PostMapping(value = "news/epdc-app/conflict/submit", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result submit(@RequestBody ConflictMediateFormDTO fromDTO); |
|
|
|
@PostMapping(value = "property/epdc-app/conflict/submit", consumes = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
Result submit(ConflictMediateFormDTO fromDTO); |
|
|
|
} |
|
|
|