|
|
@ -4,6 +4,7 @@ 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.result.CustomerGridByUserIdResultDTO; |
|
|
|
import com.epmet.dto.result.LatestCustomerResultDTO; |
|
|
|
import com.epmet.feign.GovOrgFeignClient; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
@ -20,4 +21,9 @@ public class GovOrgFeignClientFallBack implements GovOrgFeignClient { |
|
|
|
public Result<List<CustomerGridByUserIdResultDTO>> getMyGrids(String userId) { |
|
|
|
return ModuleUtils.feignConError(ServiceConstant.GOV_ORG_SERVER, "getMyGrids", userId); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<LatestCustomerResultDTO> getLatestCustomer(String userId) { |
|
|
|
return ModuleUtils.feignConError(ServiceConstant.GOV_ORG_SERVER, "getLatestCustomer", userId); |
|
|
|
} |
|
|
|
} |