Przeglądaj źródła

专利资讯服务表

guhongwei 3 lat temu
rodzic
commit
bb2bbef663

+ 1 - 1
app/controller/patent/patent_room.js

@@ -7,7 +7,7 @@ const { CrudController } = require('naf-framework-mongoose/lib/controller');
 class PatentroomController extends Controller {
   constructor(ctx) {
     super(ctx);
-    this.service = this.ctx.service.patent.patent_room;
+    this.service = this.ctx.service.patent.patentRoom;
   }
 }
 module.exports = CrudController(PatentroomController, meta);

+ 1 - 1
app/router/patent/patent_room.js

@@ -6,7 +6,7 @@ module.exports = app => {
   const profix = '/api/live/';
   const vision = 'v0';
   const index = 'patent';
-  const target = 'patent_room';
+  const target = 'patentRoom';
   const metaTime = app.middleware.createTime();
   router.resources(target, `${profix}${vision}/${index}/${target}`, metaTime, controller[index][target]); // index、create、show、destroy
   router.post(target, `${profix}${vision}/${index}/${target}/update/:id`, controller[index][target].update);

+ 1 - 1
app/service/patent/patent_room.js

@@ -8,7 +8,7 @@ const assert = require('assert');
 class PatentroomService extends CrudService {
   constructor(ctx) {
     super(ctx, 'patent_room');
-    this.model = this.ctx.model.Patent.Patent_room;
+    this.model = this.ctx.model.Patent.patentRoom;
   }
 }