计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
nestjs-api-standards【效率与协作】Create standardized API response envelopes, paginated endpoints, and error interceptors in NestJS. Use when implementing response wrappers, pagination DTOs, or global error formats.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
plainToInstance(UserResponseDto, user) in service or controller.{ statusCode, data, meta }.@ValidateNested() + @Type().@ApiResponse({ status, type }) with exact types per endpoint.@ValidateNested() + @Type(() => TargetDto) from class-transformer.PageOptionsDto (page/take/order) and PageDto<T> (data/meta).ApiExtraModels and schema path resolution.ApiPaginatedResponse decorator code.ApiErrorResponse with statusCode, message, error, timestamp, path. See Error Response Class.@ApiBadRequestResponse({ type: ApiErrorResponse }) globally or per controller.@ValidateNested() + @Type() for all nested object properties.@ApiResponse({ status, type }) with exact types per endpoint.