guhongwei 3 years ago
parent
commit
82c846e2d8
3 changed files with 7 additions and 7 deletions
  1. 3 3
      app/controller/patent/patent_room.js
  2. 1 1
      app/router.js
  3. 3 3
      app/service/patent/patent_room.js

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

@@ -4,10 +4,10 @@ const Controller = require('egg').Controller;
 const { CrudController } = require('naf-framework-mongoose/lib/controller');
 
 // 房间表
-class PatentroomController extends Controller {
+class Patent_roomController extends Controller {
   constructor(ctx) {
     super(ctx);
-    this.service = this.ctx.service.patent.patentRoom;
+    this.service = this.ctx.service.Patent.PatentRoom;
   }
 }
-module.exports = CrudController(PatentroomController, meta);
+module.exports = CrudController(Patent_roomController, meta);

+ 1 - 1
app/router.js

@@ -77,6 +77,6 @@ module.exports = app => {
   require('./router/patent/purchase')(app); // 求购
   require('./router/patent/tradeorder')(app); // 交易订单
   // 2021-08-20-重定义
-  require('./router/patent/patentRoom')(app); // 房间表
+  require('./router/patent/patent_room')(app); // 房间表
 
 };

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

@@ -5,11 +5,11 @@ const _ = require('lodash');
 const assert = require('assert');
 
 // 房间表
-class PatentroomService extends CrudService {
+class Patent_roomService extends CrudService {
   constructor(ctx) {
     super(ctx, 'patent_room');
-    this.model = this.ctx.model.Patent.patentRoom;
+    this.model = this.ctx.model.Patent.PatentRoom;
   }
 }
 
-module.exports = PatentroomService;
+module.exports = Patent_roomService;