|
|
|
@ -3,7 +3,9 @@ package com.elink.esua.epdc.feign.fallback; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.ModuleUtils; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.dto.psychology.form.PsychologyAnswerFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.psychology.form.PsychologyUnansweredFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.psychology.result.PsychologyAnswerOfMineResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.psychology.result.PsychologyUnansweredResultDTO; |
|
|
|
import com.elink.esua.epdc.feign.WorkPropertyFeignClient; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
@ -11,8 +13,8 @@ import org.springframework.stereotype.Component; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Author LPF |
|
|
|
* @Date 2019/11/18 16:39 |
|
|
|
* @Author zhangyuan |
|
|
|
* @Date 2020/6/9 16:39 |
|
|
|
*/ |
|
|
|
@Component |
|
|
|
public class WorkPropertyFeignClientFallback implements WorkPropertyFeignClient { |
|
|
|
@ -21,4 +23,9 @@ public class WorkPropertyFeignClientFallback implements WorkPropertyFeignClient |
|
|
|
public Result<List<PsychologyUnansweredResultDTO>> listUnansweredQuestion(PsychologyUnansweredFormDTO formDto) { |
|
|
|
return ModuleUtils.feignConError(ServiceConstant.EPDC_PROPERTY_SERVER, "listUnansweredQuestion", formDto); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<List<PsychologyAnswerOfMineResultDTO>> listMyQuestion(PsychologyAnswerFormDTO formDto) { |
|
|
|
return ModuleUtils.feignConError(ServiceConstant.EPDC_PROPERTY_SERVER, "listMyQuestion", formDto); |
|
|
|
} |
|
|
|
} |
|
|
|
|