forked from luyan/epmet-cloud-lingshan
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.
55 lines
2.0 KiB
55 lines
2.0 KiB
6 years ago
|
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)
|
||
|
public interface EpmetUserFeignClient {
|
||
|
|
||
|
/**
|
||
|
* 获取用户信息
|
||
|
*
|
||
|
* @param loginUserInfoFormDTO
|
||
|
* @return java.lang.String
|
||
|
* @author yinzuomei
|
||
|
* @date 2020/3/16 14:48
|
||
|
*/
|
||
|
@PostMapping(value = "/epmetuser/customeruser/selecLoginUserInfo", 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/saveCustomerUser", consumes = MediaType.APPLICATION_JSON_VALUE)
|
||
|
Result saveCustomerUser(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(PasswordLoginUserInfoFormDTO passwordLoginUserInfoFormDTO);
|
||
|
}
|