|
|
|
package com.epmet.feign;
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
|
|
|
import com.epmet.commons.tools.utils.Result;
|
|
|
|
import com.epmet.dto.CustomerUserDTO;
|
|
|
|
import com.epmet.dto.form.PasswordLoginUserInfoFormDTO;
|
|
|
|
import com.epmet.dto.form.WxLoginUserInfoFormDTO;
|
|
|
|
import com.epmet.dto.result.PasswordLoginUserInfoResultDTO;
|
|
|
|
import com.epmet.feign.fallback.EpmetUserFeignClientFallback;
|
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description
|
|
|
|
* @Author yinzuomei
|
|
|
|
* @Date 2020/3/16 14:48
|
|
|
|
*/
|
|
|
|
@FeignClient(name = ServiceConstant.EPMET_USER_SERVER, fallback = EpmetUserFeignClientFallback.class ,url="http://localhost:8087")
|
|
|
|
public interface EpmetUserFeignClient {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取用户信息
|
|
|
|
*
|
|
|
|
* @param loginUserInfoFormDTO
|
|
|
|
* @return java.lang.String
|
|
|
|
* @author yinzuomei
|
|
|
|
* @date 2020/3/16 14:48
|
|
|
|
*/
|
|
|
|
@PostMapping(value = "epmetuser/customeruser/selecWxLoginUserInfo", consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
Result selecWxLoginUserInfo(WxLoginUserInfoFormDTO loginUserInfoFormDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取居民微信信息,保存到customer_user表,返回主键
|
|
|
|
*
|
|
|
|
* @param customerUserDTO
|
|
|
|
* @return java.lang.String
|
|
|
|
* @author yinzuomei
|
|
|
|
* @date 2020/3/16 14:48
|
|
|
|
*/
|
|
|
|
@PostMapping(value = "epmetuser/customeruser/saveOrUpdateCustomerUser", consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
Result saveOrUpdateCustomerUser(CustomerUserDTO customerUserDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param passwordLoginUserInfoFormDTO
|
|
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dto.result.PasswordLoginUserInfoResultDTO>
|
|
|
|
* @Author yinzuomei
|
|
|
|
* @Description 根据手机号查询用户信息
|
|
|
|
* @Date 2020/3/16 16:14
|
|
|
|
**/
|
|
|
|
@PostMapping(value = "epmetuser/customeruser/selectLoginUserInfoByPassword", consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
Result<PasswordLoginUserInfoResultDTO> selectLoginUserInfoByPassword(@RequestBody PasswordLoginUserInfoFormDTO passwordLoginUserInfoFormDTO);
|
|
|
|
}
|