|
|
|
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.UserDTO;
|
|
|
|
import com.epmet.dto.UserWechatDTO;
|
|
|
|
import com.epmet.dto.form.PasswordLoginUserInfoFormDTO;
|
|
|
|
import com.epmet.dto.form.WxLoginUserInfoFormDTO;
|
|
|
|
import com.epmet.dto.result.PasswordLoginUserInfoResultDTO;
|
|
|
|
import com.epmet.feign.EpmetUserFeignClient;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description
|
|
|
|
* @Author yinzuomei
|
|
|
|
* @Date 2020/3/16 14:53
|
|
|
|
*/
|
|
|
|
@Component
|
|
|
|
public class EpmetUserFeignClientFallback implements EpmetUserFeignClient {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Result<UserDTO> selecWxLoginUserInfo(WxLoginUserInfoFormDTO loginUserInfoFormDTO) {
|
|
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "selecWxLoginUserInfo", loginUserInfoFormDTO);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Result<UserDTO> saveOrUpdateUserWechatDTO(UserWechatDTO userWechatDTO) {
|
|
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "saveOrUpdateUserWechatDTO", userWechatDTO);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Result<PasswordLoginUserInfoResultDTO> selectLoginUserInfoByPassword(PasswordLoginUserInfoFormDTO passwordLoginUserInfoFormDTO) {
|
|
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "selectLoginUserInfoByPassword", passwordLoginUserInfoFormDTO);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Result checkCustomerStaff(String phone) {
|
|
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getCustsomerStaffByPhone", phone);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|