| | |
| | | */ |
| | | package cn.gistack.system.user.feign; |
| | | |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.tool.api.R; |
| | | import cn.gistack.system.user.entity.User; |
| | | import cn.gistack.system.user.entity.UserInfo; |
| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * User Feign接口类 |
| | | * |
| | |
| | | // value = AppConstant.APPLICATION_USER_NAME |
| | | //) |
| | | @FeignClient( |
| | | value = "skjcmanager-user" |
| | | value = AppConstant.APPLICATION_USER_NAME |
| | | ) |
| | | public interface IUserClient { |
| | | |
| | |
| | | String USER_INFO_BY_TYPE = API_PREFIX + "/user-info-by-type"; |
| | | String USER_INFO_BY_ID = API_PREFIX + "/user-info-by-id"; |
| | | String USER_INFO_BY_ACCOUNT = API_PREFIX + "/user-info-by-account"; |
| | | String USER_INFO_BY_PHONE = API_PREFIX + "/user-info-by-phone"; |
| | | String USER_AUTH_INFO = API_PREFIX + "/user-auth-info"; |
| | | String SAVE_USER = API_PREFIX + "/save-user"; |
| | | String REMOVE_USER = API_PREFIX + "/remove-user"; |
| | |
| | | * 获取用户信息 |
| | | * |
| | | * @param tenantId 租户ID |
| | | * @param phone 手机号 |
| | | * @return |
| | | */ |
| | | @GetMapping(USER_INFO_BY_PHONE) |
| | | R<List<User>> userInfoByPhone(@RequestParam("tenantId") String tenantId, @RequestParam("phone") String phone); |
| | | |
| | | /** |
| | | * 获取用户信息 |
| | | * |
| | | * @param tenantId 租户ID |
| | | * @param account 账号 |
| | | * @param userType 用户平台 |
| | | * @return |