You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
3.4 KiB
86 lines
3.4 KiB
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.GovStaffRoleDTO;
|
|
import com.epmet.dto.UserDTO;
|
|
import com.epmet.dto.UserWechatDTO;
|
|
import com.epmet.dto.form.*;
|
|
import com.epmet.dto.result.GovWebOperLoginResultDTO;
|
|
import com.epmet.dto.result.PasswordLoginUserInfoResultDTO;
|
|
import com.epmet.dto.result.StaffLatestAgencyResultDTO;
|
|
import com.epmet.feign.EpmetUserFeignClient;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @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<List<CustomerStaffDTO>> checkCustomerStaff(String phone) {
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getCustsomerStaffByPhone", phone);
|
|
}
|
|
|
|
@Override
|
|
public Result<List<CustomerStaffDTO>> checkCustomerStaffByAccount(String account) {
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getCustsomerStaffByAccount", account);
|
|
}
|
|
@Override
|
|
public Result saveStaffWechat(StaffWechatFormDTO staffWechatFormDTO) {
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "saveStaffWechat", staffWechatFormDTO);
|
|
}
|
|
|
|
@Override
|
|
public Result<StaffLatestAgencyResultDTO> getLatestStaffWechatLoginRecord(String openId) {
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getLatestStaffWechatLoginRecord", openId);
|
|
}
|
|
|
|
@Override
|
|
public Result<CustomerStaffDTO> getCustomerStaffInfo(CustomerStaffFormDTO customerStaffFormDTO) {
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getCustomerStaffInfo", customerStaffFormDTO);
|
|
}
|
|
|
|
@Override
|
|
public Result<CustomerStaffDTO> getCustomerStaffInfoByAccount(CustomerStaffByAccountFormDTO customerStaffFormDTO) {
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getCustomerStaffInfoByAccount", customerStaffFormDTO);
|
|
}
|
|
|
|
@Override
|
|
public Result saveStaffLoginRecord(StaffLoginAgencyRecordFormDTO staffLoginHistoryFormDTO) {
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "saveStaffLoginRecord", staffLoginHistoryFormDTO);
|
|
}
|
|
|
|
@Override
|
|
public Result<List<GovStaffRoleDTO>> getRolesOfStaff(StaffRoleFormDTO staffRoleFormDTO) {
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getRolesOfStaff", staffRoleFormDTO);
|
|
}
|
|
|
|
@Override
|
|
public Result<GovWebOperLoginResultDTO> getStaffIdAndPwd(GovWebOperLoginFormDTO formDTO) {
|
|
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getStaffIdAndPwd", formDTO);
|
|
}
|
|
|
|
}
|
|
|