lrf 2 months ago
parent
commit
13f5b37beb
2 changed files with 15 additions and 2 deletions
  1. 15 1
      src/controller/jtjs.controller.ts
  2. 0 1
      src/entityV2/question.entity.ts

+ 15 - 1
src/controller/jtjs.controller.ts

@@ -45,7 +45,7 @@ export class JtjsController {
       if (data) {
         const newData = {
           channel_id,
-          title: get(data, 'title'), 
+          title: get(data, 'title'),
           txt: get(data, 'txt.txt')
         }
         returnData.push(newData);
@@ -53,6 +53,20 @@ export class JtjsController {
     }
     return RF.success(returnData)
   }
+  @Get('/gsjs/:channel_id', { routerName: '公司介绍-单数据' })
+  async gsjsDetail(@Param('channel_id') channel_id: string) {
+    const data = await this.service.channelDetail(channel_id)
+    let returnData = {};
+    if (data) {
+      const newData = {
+        channel_id,
+        title: get(data, 'title'),
+        txt: get(data, 'txt.txt')
+      }
+      returnData = newData
+    }
+    return RF.success(returnData)
+  }
 
   @Get('/scfm', { routerName: '三产风貌' })
   async scfm() {

+ 0 - 1
src/entityV2/question.entity.ts

@@ -1,4 +1,3 @@
-
 import dayjs = require('dayjs');
 import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn, VersionColumn } from 'typeorm';