lrf402788946 4 years ago
parent
commit
0c41b5d782
4 changed files with 3 additions and 3 deletions
  1. 1 1
      app/controller/.trainlive.js
  2. 1 0
      app/controller/trainlive.js
  3. 1 1
      app/model/trainlive.js
  4. 0 1
      app/router.js

+ 1 - 1
app/controller/.trainlive.js

@@ -14,7 +14,7 @@ module.exports = {
       "create_date",
     ],
   },
-  destory: {
+  destroy: {
     params: ["!id"],
     service: "delete",
   },

+ 1 - 0
app/controller/trainlive.js

@@ -9,5 +9,6 @@ class TrainliveController extends Controller {
     super(ctx);
     this.service = this.ctx.service.trainlive;
   }
+
 }
 module.exports = CrudController(TrainliveController, meta);

+ 1 - 1
app/model/trainlive.js

@@ -10,7 +10,7 @@ const video = new Schema({
 });
 const user = new Schema({
   user_title: { type: String, maxLength: 500 }, // 用户名
-  user_phone: { type: String, maxLength: 500, unique: true }, // 账号
+  user_phone: { type: String, maxLength: 500 }, // 账号
   user_password: { type: String, required: true, maxLength: 500 }, // 密码
 });
 // 培训问诊表

+ 0 - 1
app/router.js

@@ -122,5 +122,4 @@ module.exports = app => {
   router.post('trainlive', '/api/live/trainlive/user/update/:id', controller.trainlive.updateUser);
   router.post('trainlive', '/api/live/trainlive/update/:id', controller.trainlive.update);
   router.resources('trainlive', '/api/live/trainlive', controller.trainlive); // index、create、show、destroy
-
 };