完成admin-user-get

This commit is contained in:
2025-05-12 10:45:56 +08:00
parent 53a0f4456b
commit 0d9ff2bfa6
6 changed files with 61 additions and 18 deletions

View File

@@ -21,6 +21,13 @@ export class AdminUserController {
return this.adminUserService.getUser(listDto.page, listDto.pageSize);
}
@Get(':userId')
async get(
@Param('userId', new ParseUUIDPipe({ version: '4' })) userId: string,
) {
return this.userService.findOne({ userId });
}
@Post()
async create(
@Body() createDto: CreateDto