[重大更新] 使用 spring feign 替代 HttpServiceClient (功能太新 支持不完全 使用成本太高)

This commit is contained in:
疯狂的狮子Li
2026-03-23 11:50:48 +08:00
parent b6d2274b53
commit 485c2001ae
63 changed files with 820 additions and 1163 deletions

View File

@@ -1,18 +1,20 @@
package org.dromara.system.api;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.dromara.system.api.domain.vo.RemoteClientVo;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
/**
* 客户端服务
*
* @author Michelle.Chung
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/client")
@FeignClient(contextId = "remoteClientService", name = "ruoyi-system", path = "/remote/client", primary = false)
public interface RemoteClientService {
/**
@@ -21,7 +23,8 @@ public interface RemoteClientService {
* @param clientId 客户端id
* @return 客户端对象
*/
@GetExchange("/query-by-client-id")
@GetMapping("/query-by-client-id")
RemoteClientVo queryByClientId(@RequestParam String clientId);
}

View File

@@ -1,12 +1,15 @@
package org.dromara.system.api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.lang.Dict;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.dromara.common.json.utils.JsonUtils;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import java.math.BigDecimal;
import java.util.List;
@@ -16,15 +19,14 @@ import java.util.List;
*
* @author Michelle.Chung
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/config")
@FeignClient(contextId = "remoteConfigService", name = "ruoyi-system", path = "/remote/config", primary = false)
public interface RemoteConfigService {
/**
* 获取注册开关
* @return true开启false关闭
*/
@GetExchange("/select-register-enabled")
@GetMapping("/select-register-enabled")
boolean selectRegisterEnabled();
/**
@@ -33,7 +35,7 @@ public interface RemoteConfigService {
* @param configKey 参数 key
* @return 参数值
*/
@GetExchange("/get-config-value")
@GetMapping("/get-config-value")
String getConfigValue(@RequestParam String configKey);
/**
@@ -121,3 +123,4 @@ public interface RemoteConfigService {
}
}

View File

@@ -1,17 +1,19 @@
package org.dromara.system.api;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
/**
* 数据权限服务
*
* @author Lion Li
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/data-scope")
@FeignClient(contextId = "remoteDataScopeService", name = "ruoyi-system", path = "/remote/data-scope", primary = false)
public interface RemoteDataScopeService {
/**
@@ -20,7 +22,7 @@ public interface RemoteDataScopeService {
* @param roleId 角色ID
* @return 返回角色的自定义权限语句,如果没有找到则返回 null
*/
@GetExchange("/role-custom")
@GetMapping("/role-custom")
String getRoleCustom(@RequestParam Long roleId);
/**
@@ -29,7 +31,8 @@ public interface RemoteDataScopeService {
* @param deptId 部门ID
* @return 返回部门及其下级的权限语句,如果没有找到则返回 null
*/
@GetExchange("/dept-and-child")
@GetMapping("/dept-and-child")
String getDeptAndChild(@RequestParam Long deptId);
}

View File

@@ -1,12 +1,14 @@
package org.dromara.system.api;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.dromara.system.api.domain.vo.RemoteDeptVo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;
import java.util.Collection;
import java.util.List;
@@ -17,8 +19,7 @@ import java.util.Map;
*
* @author Lion Li
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/dept")
@FeignClient(contextId = "remoteDeptService", name = "ruoyi-system", path = "/remote/dept", primary = false)
public interface RemoteDeptService {
/**
@@ -27,7 +28,7 @@ public interface RemoteDeptService {
* @param deptIds 部门ID串逗号分隔
* @return 部门名称串逗号分隔
*/
@GetExchange("/select-dept-name-by-ids")
@GetMapping("/select-dept-name-by-ids")
String selectDeptNameByIds(@RequestParam String deptIds);
/**
@@ -36,7 +37,7 @@ public interface RemoteDeptService {
* @param deptId 部门ID用于指定需要查询的部门
* @return 返回该部门的负责人ID
*/
@GetExchange("/select-dept-leader-by-id")
@GetMapping("/select-dept-leader-by-id")
Long selectDeptLeaderById(@RequestParam Long deptId);
/**
@@ -44,7 +45,7 @@ public interface RemoteDeptService {
*
* @return 部门列表
*/
@GetExchange("/select-depts-by-list")
@GetMapping("/select-depts-by-list")
List<RemoteDeptVo> selectDeptsByList();
/**
@@ -53,7 +54,8 @@ public interface RemoteDeptService {
* @param deptIds 部门 ID 列表
* @return Map其中 key 为部门 IDvalue 为对应的部门名称
*/
@PostExchange("/select-dept-names-by-ids")
@PostMapping("/select-dept-names-by-ids")
Map<Long, String> selectDeptNamesByIds(@RequestBody Collection<Long> deptIds);
}

View File

@@ -1,11 +1,14 @@
package org.dromara.system.api;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.dromara.system.api.domain.vo.RemoteDictDataVo;
import org.dromara.system.api.domain.vo.RemoteDictTypeVo;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import java.util.List;
@@ -14,8 +17,7 @@ import java.util.List;
*
* @author Lion Li
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/dict")
@FeignClient(contextId = "remoteDictService", name = "ruoyi-system", path = "/remote/dict", primary = false)
public interface RemoteDictService {
/**
@@ -24,7 +26,7 @@ public interface RemoteDictService {
* @param dictType 字典类型
* @return 字典类型
*/
@GetExchange("/select-dict-type-by-type")
@GetMapping("/select-dict-type-by-type")
RemoteDictTypeVo selectDictTypeByType(@RequestParam String dictType);
/**
@@ -33,7 +35,8 @@ public interface RemoteDictService {
* @param dictType 字典类型
* @return 字典数据集合信息
*/
@GetExchange("/select-dict-data-by-type")
@GetMapping("/select-dict-data-by-type")
List<RemoteDictDataVo> selectDictDataByType(@RequestParam String dictType);
}

View File

@@ -1,19 +1,21 @@
package org.dromara.system.api;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.dromara.system.api.domain.bo.RemoteLoginInfoBo;
import org.dromara.system.api.domain.bo.RemoteOperLogBo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;
/**
* 日志服务
*
* @author Lion Li
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/log")
@FeignClient(contextId = "remoteLogService", name = "ruoyi-system", path = "/remote/log", primary = false)
public interface RemoteLogService {
/**
@@ -21,7 +23,7 @@ public interface RemoteLogService {
*
* @param sysOperLog 日志实体
*/
@PostExchange("/save-log")
@PostMapping("/save-log")
void saveLog(@RequestBody RemoteOperLogBo sysOperLog);
/**
@@ -29,7 +31,8 @@ public interface RemoteLogService {
*
* @param sysLoginInfo 访问实体
*/
@PostExchange("/save-login-info")
@PostMapping("/save-login-info")
void saveLoginInfo(@RequestBody RemoteLoginInfoBo sysLoginInfo);
}

View File

@@ -1,9 +1,12 @@
package org.dromara.system.api;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import java.util.Set;
@@ -12,8 +15,7 @@ import java.util.Set;
*
* @author Lion Li
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/permission")
@FeignClient(contextId = "remotePermissionService", name = "ruoyi-system", path = "/remote/permission", primary = false)
public interface RemotePermissionService {
/**
@@ -22,7 +24,7 @@ public interface RemotePermissionService {
* @param userId 用户id
* @return 角色权限信息
*/
@GetExchange("/role-permission")
@GetMapping("/role-permission")
Set<String> getRolePermission(@RequestParam Long userId);
/**
@@ -31,7 +33,8 @@ public interface RemotePermissionService {
* @param userId 用户id
* @return 菜单权限信息
*/
@GetExchange("/menu-permission")
@GetMapping("/menu-permission")
Set<String> getMenuPermission(@RequestParam Long userId);
}

View File

@@ -1,9 +1,12 @@
package org.dromara.system.api;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;
import java.util.Collection;
import java.util.Map;
@@ -13,8 +16,7 @@ import java.util.Map;
*
* @author Lion Li
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/post")
@FeignClient(contextId = "remotePostService", name = "ruoyi-system", path = "/remote/post", primary = false)
public interface RemotePostService {
/**
@@ -23,7 +25,8 @@ public interface RemotePostService {
* @param postIds 岗位 ID 列表
* @return Map其中 key 为岗位 IDvalue 为对应的岗位名称
*/
@PostExchange("/select-post-names-by-ids")
@PostMapping("/select-post-names-by-ids")
Map<Long, String> selectPostNamesByIds(@RequestBody Collection<Long> postIds);
}

View File

@@ -1,9 +1,12 @@
package org.dromara.system.api;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;
import java.util.Collection;
import java.util.Map;
@@ -13,8 +16,7 @@ import java.util.Map;
*
* @author Lion Li
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/role")
@FeignClient(contextId = "remoteRoleService", name = "ruoyi-system", path = "/remote/role", primary = false)
public interface RemoteRoleService {
/**
@@ -23,7 +25,8 @@ public interface RemoteRoleService {
* @param roleIds 角色 ID 列表
* @return Map其中 key 为角色 IDvalue 为对应的角色名称
*/
@PostExchange("/select-role-names-by-ids")
@PostMapping("/select-role-names-by-ids")
Map<Long, String> selectRoleNamesByIds(@RequestBody Collection<Long> roleIds);
}

View File

@@ -1,13 +1,15 @@
package org.dromara.system.api;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.dromara.system.api.domain.bo.RemoteSocialBo;
import org.dromara.system.api.domain.vo.RemoteSocialVo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;
import java.util.List;
@@ -16,8 +18,7 @@ import java.util.List;
*
* @author Michelle.Chung
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/social")
@FeignClient(contextId = "remoteSocialService", name = "ruoyi-system", path = "/remote/social", primary = false)
public interface RemoteSocialService {
/**
@@ -26,7 +27,7 @@ public interface RemoteSocialService {
* @param authId 认证id
* @return 授权信息
*/
@GetExchange("/select-by-auth-id")
@GetMapping("/select-by-auth-id")
List<RemoteSocialVo> selectByAuthId(@RequestParam String authId);
/**
@@ -34,7 +35,7 @@ public interface RemoteSocialService {
*
* @param bo 社会化关系业务对象
*/
@PostExchange("/query-list")
@PostMapping("/query-list")
List<RemoteSocialVo> queryList(@RequestBody RemoteSocialBo bo);
/**
@@ -42,7 +43,7 @@ public interface RemoteSocialService {
*
* @param bo 社会化关系业务对象
*/
@PostExchange("/insert-by-bo")
@PostMapping("/insert-by-bo")
void insertByBo(@RequestBody RemoteSocialBo bo);
/**
@@ -50,7 +51,7 @@ public interface RemoteSocialService {
*
* @param bo 社会化关系业务对象
*/
@PostExchange("/update-by-bo")
@PostMapping("/update-by-bo")
void updateByBo(@RequestBody RemoteSocialBo bo);
/**
@@ -59,7 +60,8 @@ public interface RemoteSocialService {
* @param socialId 社会化关系ID
* @return 结果
*/
@PostExchange("/delete-with-valid-by-id")
@PostMapping("/delete-with-valid-by-id")
Boolean deleteWithValidById(@RequestParam Long socialId);
}

View File

@@ -1,19 +1,21 @@
package org.dromara.system.api;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.dromara.system.api.domain.bo.RemoteTaskAssigneeBo;
import org.dromara.system.api.domain.vo.RemoteTaskAssigneeVo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;
/**
* 工作流设计器获取任务执行人
*
* @author Lion Li
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/task-assignee")
@FeignClient(contextId = "remoteTaskAssigneeService", name = "ruoyi-system", path = "/remote/task-assignee", primary = false)
public interface RemoteTaskAssigneeService {
/**
@@ -22,7 +24,7 @@ public interface RemoteTaskAssigneeService {
* @param taskQuery 查询条件
* @return 办理人
*/
@PostExchange("/select-roles")
@PostMapping("/select-roles")
RemoteTaskAssigneeVo selectRolesByTaskAssigneeList(@RequestBody RemoteTaskAssigneeBo taskQuery);
/**
@@ -31,7 +33,7 @@ public interface RemoteTaskAssigneeService {
* @param taskQuery 查询条件
* @return 办理人
*/
@PostExchange("/select-posts")
@PostMapping("/select-posts")
RemoteTaskAssigneeVo selectPostsByTaskAssigneeList(@RequestBody RemoteTaskAssigneeBo taskQuery);
/**
@@ -40,7 +42,7 @@ public interface RemoteTaskAssigneeService {
* @param taskQuery 查询条件
* @return 办理人
*/
@PostExchange("/select-depts")
@PostMapping("/select-depts")
RemoteTaskAssigneeVo selectDeptsByTaskAssigneeList(@RequestBody RemoteTaskAssigneeBo taskQuery);
/**
@@ -49,7 +51,8 @@ public interface RemoteTaskAssigneeService {
* @param taskQuery 查询条件
* @return 办理人
*/
@PostExchange("/select-users")
@PostMapping("/select-users")
RemoteTaskAssigneeVo selectUsersByTaskAssigneeList(@RequestBody RemoteTaskAssigneeBo taskQuery);
}

View File

@@ -1,17 +1,19 @@
package org.dromara.system.api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.exception.user.UserException;
import org.dromara.common.core.annotation.RemoteHttpService;
import org.dromara.system.api.domain.bo.RemoteUserBo;
import org.dromara.system.api.domain.vo.RemoteUserVo;
import org.dromara.system.api.model.LoginUser;
import org.dromara.system.api.model.XcxLoginUser;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;
import java.util.Collection;
import java.util.List;
@@ -22,8 +24,7 @@ import java.util.Map;
*
* @author Lion Li
*/
@RemoteHttpService("ruoyi-system")
@HttpExchange("/remote/user")
@FeignClient(contextId = "remoteUserService", name = "ruoyi-system", path = "/remote/user", primary = false)
public interface RemoteUserService {
/**
@@ -32,7 +33,7 @@ public interface RemoteUserService {
* @param username 用户名
* @return 结果
*/
@GetExchange("/get-by-username")
@GetMapping("/get-by-username")
LoginUser getUserInfo(@RequestParam String username) throws UserException;
/**
@@ -41,7 +42,7 @@ public interface RemoteUserService {
* @param userId 用户id
* @return 结果
*/
@GetExchange("/get-by-id")
@GetMapping("/get-by-id")
LoginUser getUserInfo(@RequestParam Long userId) throws UserException;
/**
@@ -50,7 +51,7 @@ public interface RemoteUserService {
* @param phonenumber 手机号
* @return 结果
*/
@GetExchange("/get-by-phonenumber")
@GetMapping("/get-by-phonenumber")
LoginUser getUserInfoByPhonenumber(@RequestParam String phonenumber) throws UserException;
/**
@@ -59,7 +60,7 @@ public interface RemoteUserService {
* @param email 邮箱
* @return 结果
*/
@GetExchange("/get-by-email")
@GetMapping("/get-by-email")
LoginUser getUserInfoByEmail(@RequestParam String email) throws UserException;
/**
@@ -68,7 +69,7 @@ public interface RemoteUserService {
* @param openid openid
* @return 结果
*/
@GetExchange("/get-by-openid")
@GetMapping("/get-by-openid")
XcxLoginUser getUserInfoByOpenid(@RequestParam String openid) throws UserException;
/**
@@ -77,7 +78,7 @@ public interface RemoteUserService {
* @param remoteUserBo 用户信息
* @return 结果
*/
@PostExchange("/register-user-info")
@PostMapping("/register-user-info")
Boolean registerUserInfo(@RequestBody RemoteUserBo remoteUserBo) throws UserException, ServiceException;
/**
@@ -86,7 +87,7 @@ public interface RemoteUserService {
* @param userId 用户id
* @return 结果
*/
@GetExchange("/select-username-by-id")
@GetMapping("/select-username-by-id")
String selectUserNameById(@RequestParam Long userId);
/**
@@ -95,7 +96,7 @@ public interface RemoteUserService {
* @param userId 用户ID
* @return 用户昵称
*/
@GetExchange("/select-nickname-by-id")
@GetMapping("/select-nickname-by-id")
String selectNicknameById(@RequestParam Long userId);
/**
@@ -104,7 +105,7 @@ public interface RemoteUserService {
* @param userIds 用户ID 多个用逗号隔开
* @return 用户昵称
*/
@GetExchange("/select-nickname-by-ids")
@GetMapping("/select-nickname-by-ids")
String selectNicknameByIds(@RequestParam String userIds);
/**
@@ -113,7 +114,7 @@ public interface RemoteUserService {
* @param userId 用户id
* @return 用户手机号
*/
@GetExchange("/select-phonenumber-by-id")
@GetMapping("/select-phonenumber-by-id")
String selectPhonenumberById(@RequestParam Long userId);
/**
@@ -122,7 +123,7 @@ public interface RemoteUserService {
* @param userId 用户id
* @return 用户邮箱
*/
@GetExchange("/select-email-by-id")
@GetMapping("/select-email-by-id")
String selectEmailById(@RequestParam Long userId);
/**
@@ -131,7 +132,7 @@ public interface RemoteUserService {
* @param userId 用户ID
* @param ip IP地址
*/
@PostExchange("/record-login-info")
@PostMapping("/record-login-info")
void recordLoginInfo(@RequestParam Long userId, @RequestParam String ip);
/**
@@ -140,7 +141,7 @@ public interface RemoteUserService {
* @param userIds 用户ids
* @return 用户列表
*/
@PostExchange("/select-list-by-ids")
@PostMapping("/select-list-by-ids")
List<RemoteUserVo> selectListByIds(@RequestBody Collection<Long> userIds);
/**
@@ -149,7 +150,7 @@ public interface RemoteUserService {
* @param roleIds 角色ids
* @return 用户ids
*/
@PostExchange("/select-user-ids-by-role-ids")
@PostMapping("/select-user-ids-by-role-ids")
List<Long> selectUserIdsByRoleIds(@RequestBody Collection<Long> roleIds);
/**
@@ -158,7 +159,7 @@ public interface RemoteUserService {
* @param roleIds 角色ids
* @return 用户
*/
@PostExchange("/select-users-by-role-ids")
@PostMapping("/select-users-by-role-ids")
List<RemoteUserVo> selectUsersByRoleIds(@RequestBody Collection<Long> roleIds);
/**
@@ -167,7 +168,7 @@ public interface RemoteUserService {
* @param deptIds 部门ids
* @return 用户
*/
@PostExchange("/select-users-by-dept-ids")
@PostMapping("/select-users-by-dept-ids")
List<RemoteUserVo> selectUsersByDeptIds(@RequestBody Collection<Long> deptIds);
/**
@@ -176,7 +177,7 @@ public interface RemoteUserService {
* @param postIds 岗位ids
* @return 用户
*/
@PostExchange("/select-users-by-post-ids")
@PostMapping("/select-users-by-post-ids")
List<RemoteUserVo> selectUsersByPostIds(@RequestBody Collection<Long> postIds);
/**
@@ -185,7 +186,8 @@ public interface RemoteUserService {
* @param userIds 用户 ID 列表
* @return Map其中 key 为用户 IDvalue 为对应的用户昵称
*/
@PostExchange("/select-user-nicks-by-ids")
@PostMapping("/select-user-nicks-by-ids")
Map<Long, String> selectUserNicksByIds(@RequestBody Collection<Long> userIds);
}