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.
67 lines
2.6 KiB
67 lines
2.6 KiB
package com.epmet.feign;
|
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
|
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.fallback.EpmetUserFeignClientFallback;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
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/user/selecWxLoginUserInfo", consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
Result<UserDTO> selecWxLoginUserInfo(@RequestBody WxLoginUserInfoFormDTO loginUserInfoFormDTO);
|
|
|
|
/**
|
|
* 获取居民微信信息,保存到user_wechat表,返回主键
|
|
*
|
|
* @param userWechatDTO
|
|
* @return java.lang.String
|
|
* @author yinzuomei
|
|
* @date 2020/3/16 14:48
|
|
*/
|
|
@PostMapping(value = "epmetuser/user/saveOrUpdateUserWechatDTO", consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
Result<UserDTO> saveOrUpdateUserWechatDTO(@RequestBody UserWechatDTO userWechatDTO);
|
|
|
|
/**
|
|
* @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/user/selectLoginUserInfoByPassword", consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
Result<PasswordLoginUserInfoResultDTO> selectLoginUserInfoByPassword(@RequestBody PasswordLoginUserInfoFormDTO passwordLoginUserInfoFormDTO);
|
|
|
|
/**
|
|
* @param phone
|
|
* @return com.epmet.commons.tools.utils.Result
|
|
* @Author yinzuomei
|
|
* @Description 根据手机号查询政府端工作人员基本信息,校验用户是否存在
|
|
* @Date 2020/4/18 14:03
|
|
**/
|
|
@GetMapping(value = "epmetuser/customerstaff/getcustsomerstaffbyphone/{phone}")
|
|
Result checkCustomerStaff(@PathVariable("phone") String phone);
|
|
}
|
|
|