1 changed files with 28 additions and 0 deletions
@ -0,0 +1,28 @@ |
|||||
|
package com.epmet.feign.fallback; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.ServiceConstant; |
||||
|
import com.epmet.commons.tools.utils.ModuleUtils; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.dto.CustomerStaffDTO; |
||||
|
import com.epmet.dto.CustomerStaffGridDTO; |
||||
|
import com.epmet.dto.StaffGridListDTO; |
||||
|
import com.epmet.feign.EpmetUserFeignClient; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Auther zxc |
||||
|
* @Create 2020-04-23 14:10 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class EpmetUserFeignClientFallBack implements EpmetUserFeignClient { |
||||
|
@Override |
||||
|
public Result<CustomerStaffDTO> getCustomerStaffInfoByUserId(CustomerStaffDTO formDTO) { |
||||
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getCustomerStaffInfoByUserId", formDTO); |
||||
|
} |
||||
|
@Override |
||||
|
public Result<List<StaffGridListDTO>> getStaffGridList(List<CustomerStaffGridDTO> customerStaffGridDTOS) { |
||||
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getStaffGridList", customerStaffGridDTOS); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue