[新增]获取所有用户信息的接口
All checks were successful
CI / Docker-Build (push) Successful in 2m9s

This commit is contained in:
thesai 2024-09-25 10:51:31 +08:00
parent 235f4dce5b
commit 436a07bcf4
3 changed files with 16 additions and 0 deletions

View File

@ -205,4 +205,12 @@ public class SysAccountController {
public List<AccountVO> listByIds(@RequestBody List<Long> ids) { public List<AccountVO> listByIds(@RequestBody List<Long> ids) {
return iSysUserService.listByIds(ids); return iSysUserService.listByIds(ids);
} }
/**
* 查询所有用户
*/
@GetMapping("/list/all")
public List<AccountVO> listAll() {
return iSysUserService.listAll();
}
} }

View File

@ -365,4 +365,6 @@ public interface ISysUserService {
boolean isSameEmailExist(String email); boolean isSameEmailExist(String email);
List<AccountVO> listByIds(List<Long> ids); List<AccountVO> listByIds(List<Long> ids);
List<AccountVO> listAll();
} }

View File

@ -1120,6 +1120,12 @@ public class SysUserService implements ISysUserService {
return AccountVO.convertFromDB(sysAccounts); return AccountVO.convertFromDB(sysAccounts);
} }
@Override
public List<AccountVO> listAll() {
List<SysAccount> sysAccounts = sysAccountDAO.selectByExample(null);
return AccountVO.convertFromDB(sysAccounts);
}
/** /**
* 查询包含组织信息的用户信息 * 查询包含组织信息的用户信息
*/ */