Pre Merge pull request !242 from Danlin/expose-system-api-getUserListByNickname

pull/242/MERGE
Danlin 2026-02-14 08:36:00 +00:00 committed by Gitee
commit a5bc33bffc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 11 additions and 0 deletions

View File

@ -54,6 +54,11 @@ public interface AdminUserApi extends AutoTransable<AdminUserRespDTO> {
@Parameter(name = "postIds", description = "岗位编号数组", example = "2,3", required = true)
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
*

View File

@ -87,6 +87,12 @@ public class AdminUserApiImpl implements AdminUserApi {
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
public CommonResult<Boolean> validateUserList(Collection<Long> ids) {
userService.validateUserList(ids);