|
|
@ -41,6 +41,7 @@ public interface IUserSearchClient { |
|
|
|
String LIST_BY_DEPT = API_PREFIX + "/user/list-by-dept"; |
|
|
|
String LIST_BY_DEPT = API_PREFIX + "/user/list-by-dept"; |
|
|
|
String LIST_BY_POST = API_PREFIX + "/user/list-by-post"; |
|
|
|
String LIST_BY_POST = API_PREFIX + "/user/list-by-post"; |
|
|
|
String LIST_BY_ROLE = API_PREFIX + "/user/list-by-role"; |
|
|
|
String LIST_BY_ROLE = API_PREFIX + "/user/list-by-role"; |
|
|
|
|
|
|
|
String LIST_BY_NAME = API_PREFIX + "/user/list-by-name"; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 根据用户ID查询用户列表 |
|
|
|
* 根据用户ID查询用户列表 |
|
|
@ -78,4 +79,13 @@ public interface IUserSearchClient { |
|
|
|
@GetMapping(LIST_BY_ROLE) |
|
|
|
@GetMapping(LIST_BY_ROLE) |
|
|
|
R<List<User>> listByRole(@RequestParam("roleId") String roleId); |
|
|
|
R<List<User>> listByRole(@RequestParam("roleId") String roleId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 根据用户名称查询用户列表 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param name 名称 |
|
|
|
|
|
|
|
* @return 用户列表 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@GetMapping(LIST_BY_NAME) |
|
|
|
|
|
|
|
R<List<User>> listByName(@RequestParam("name") String name); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|