Pre Merge pull request !242 from Danlin/expose-system-api-getUserListByNickname
commit
a5bc33bffc
|
|
@ -54,6 +54,11 @@ public interface AdminUserApi extends AutoTransable<AdminUserRespDTO> {
|
||||||
@Parameter(name = "postIds", description = "岗位编号数组", example = "2,3", required = true)
|
@Parameter(name = "postIds", description = "岗位编号数组", example = "2,3", required = true)
|
||||||
CommonResult<List<AdminUserRespDTO>> getUserListByPostIds(@RequestParam("postIds") Collection<Long> postIds);
|
CommonResult<List<AdminUserRespDTO>> getUserListByPostIds(@RequestParam("postIds") Collection<Long> postIds);
|
||||||
|
|
||||||
|
@GetMapping(PREFIX + "/list-by-name")
|
||||||
|
@Operation(summary = "获得指定别名的用户数组")
|
||||||
|
@Parameter(name = "name", description = "用户名/别名", required = true)
|
||||||
|
CommonResult<List<AdminUserRespDTO>> getUserListByNickname(@RequestParam("name") String name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获得用户 Map
|
* 获得用户 Map
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,12 @@ public class AdminUserApiImpl implements AdminUserApi {
|
||||||
return success(BeanUtils.toBean(users, AdminUserRespDTO.class));
|
return success(BeanUtils.toBean(users, AdminUserRespDTO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CommonResult<List<AdminUserRespDTO>> getUserListByNickname(String name) {
|
||||||
|
List<AdminUserDO> users = userService.getUserListByNickname(name);
|
||||||
|
return success(BeanUtils.toBean(users, AdminUserRespDTO.class));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CommonResult<Boolean> validateUserList(Collection<Long> ids) {
|
public CommonResult<Boolean> validateUserList(Collection<Long> ids) {
|
||||||
userService.validateUserList(ids);
|
userService.validateUserList(ids);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue