瀏覽代碼

fix: type

IlhamTahir 1 年之前
父節點
當前提交
db11c729ec
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/article/controller/carousal.controller.ts

+ 4 - 1
src/article/controller/carousal.controller.ts

@@ -64,7 +64,10 @@ export class CarousalController {
   @Get('active-list')
   @ApiBearerAuth()
   @ApiOkResponse({
-    type: Array<CarousalVo>,
+    schema: {
+      type: 'array',
+      items: { $ref: getSchemaPath(CarousalVo) },
+    },
   })
   async activeList() {
     return CarousalMapper.toVos(await this.carousalService.activeList());