guhongwei 4 jaren geleden
bovenliggende
commit
f53c55a8c4
3 gewijzigde bestanden met toevoegingen van 3 en 4 verwijderingen
  1. 2 3
      app/controller/.carorder.js
  2. 1 0
      app/controller/.repair.js
  3. 0 1
      app/model/carorder.js

+ 2 - 3
app/controller/.carorder.js

@@ -1,6 +1,6 @@
 module.exports = {
   create: {
-    requestBody: ["!name", "!license","!mobile","model","carcolor","mileage","vin","insurance","drive","travel"],
+    requestBody: ["!name", "!license","!mobile","model","carcolor","vin","insurance","drive","travel"],
   },
   destroy: {
     params: ["!id"],
@@ -8,7 +8,7 @@ module.exports = {
   },
   update: {
     params: ["!id"],
-    requestBody: ["!name", "!license","!mobile","model","carcolor","mileage","vin","insurance","drive","travel"],
+    requestBody: ["!name", "!license","!mobile","model","carcolor","vin","insurance","drive","travel"],
   },
   show: {
     parameters: {
@@ -24,7 +24,6 @@ module.exports = {
         mobile: "mobile",
         model: "model",
         carcolor: "carcolor",
-        mileage: "mileage",
         vin: "vin",
         insurance: "insurance",
         drive: "drive",

+ 1 - 0
app/controller/.repair.js

@@ -26,6 +26,7 @@ module.exports = {
         totalmoney: "totalmoney",
         create_data: "create_data",
         finish_date: "finish_date",
+        uid: "uid",
       },
     },
     service: "query",

+ 0 - 1
app/model/carorder.js

@@ -8,7 +8,6 @@ const CarorderSchema = {
   mobile: { type: Number, required: true, maxLength: 200 }, // 电话
   model: { type: String, required: false, maxLength: 200 }, // 车型
   carcolor: { type: String, required: false, maxLength: 200 }, // 车辆颜色
-  mileage: { type: String, required: false, maxLength: 200 }, // 行驶里程
   vin: { type: String, required: false, maxLength: 200 }, // vin号
   insurance: { type: String, required: false, maxLength: 200 }, // 保险日期
   drive: { type: String, required: false, maxLength: 200 }, // 驾驶证日期