2 changed files with 5 additions and 28 deletions
@ -1,28 +0,0 @@ |
|||||
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