feat(pets): add admin pet health records query and paginated pet list endpoint [TASK-26.17]

This commit is contained in:
parsa aghaei committed 2026-08-05 14:41:26 +03:30
1 parent d94b33f96d
commit cbcff26e63
4 files changed
+119 -1

No files matched your search

+15
View File
@@ -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: 'لیست پزشکان و متخصصان' })