perf: 完善订单管理

This commit is contained in:
richarjiang
2026-04-05 21:03:18 +08:00
parent fdb13c32c2
commit 4633ceea8c
29 changed files with 1000 additions and 261 deletions

View File

@@ -9,7 +9,7 @@ import {
UseGuards,
ValidationPipe,
} from '@nestjs/common'
import { UserRole } from '@mp-pilates/shared'
import { UserRole, OrderStatus } from '@mp-pilates/shared'
import { JwtAuthGuard } from '../auth/jwt-auth.guard'
import { RolesGuard } from '../auth/roles.guard'
import { Roles } from '../auth/roles.decorator'
@@ -85,7 +85,7 @@ export class PaymentController {
return this.paymentService.getAllOrders(
page ? parseInt(page, 10) : 1,
limit ? parseInt(limit, 10) : 10,
status as any,
status ? (status as OrderStatus) : undefined,
)
}
}