lrf 2 ヶ月 前
コミット
553e6a9637
1 ファイル変更5 行追加4 行削除
  1. 5 4
      src/controller/xxgk.controller.ts

+ 5 - 4
src/controller/xxgk.controller.ts

@@ -3,6 +3,7 @@ import { PartsService } from "../service/parts.service";
 import { RF } from "../response/CustomerResponse";
 import { get } from "lodash";
 import { PageViewService } from "../service/v2/pageView.service";
+import { Page } from "../decorator/page.decorator";
 
 @Controller('/xxgk', { tagName: '信息公开' })
 export class XxgkController {
@@ -90,17 +91,17 @@ export class XxgkController {
   }
 
   @Get('/yscsz', { routerName: '用水常识' })
-  async yscsz() {
+  async yscsz(@Page() page: object) {
     const channel_id = await this.service.searchChannelIdByCode('yscsz')
-    const { data, total } = await this.service.contentList(channel_id)
+    const { data, total } = await this.service.contentList(channel_id, {}, page)
     const newList = this.getViewListContent(data)
     return RF.success({ data: newList, total })
   }
 
   @Get('/xqyshj', { routerName: '新区营商环境' })
-  async xqyshj() {
+  async xqyshj(@Page() page: object) {
     const channel_id = await this.service.searchChannelIdByCode('xqyshj')
-    const { data, total } = await this.service.contentList(channel_id)
+    const { data, total } = await this.service.contentList(channel_id, {}, page)
     const newList = this.getViewListContent(data)
     return RF.success({ data: newList, total })
   }