feat(pets): add admin pet health records query and paginated pet list endpoint [TASK-26.17]
This commit is contained in:
1 parent
d94b33f96d
commit
cbcff26e63
4 files changed
+119
-1
No files matched your search
@@ -254,6 +254,21 @@ export class AdminController {
|
||||
return { success: true, data: settings };
|
||||
}
|
||||
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@Get('pets')
|
||||
@ApiOperation({ summary: 'لیست پتها (مدیریت)' })
|
||||
@ApiQuery({ name: 'page', required: false })
|
||||
@ApiQuery({ name: 'limit', required: false })
|
||||
@ApiQuery({ name: 'search', required: false })
|
||||
async getPets(
|
||||
@Query('page') page?: string,
|
||||
@Query('limit') limit?: string,
|
||||
@Query('search') search?: string,
|
||||
) {
|
||||
const data = await this.adminService.getPets({ page, limit, search });
|
||||
return { success: true, ...data };
|
||||
}
|
||||
|
||||
// --- Doctors / Vets ---
|
||||
@Get('doctors')
|
||||
@ApiOperation({ summary: 'لیست پزشکان و متخصصان' })
|
||||
|
||||
Reference in new issue
Block a user