reloaded 5 years ago
parent
commit
57ab44c07e
2 changed files with 3 additions and 3 deletions
  1. 2 2
      app/controller/.department.js
  2. 1 1
      app/controller/.user.js

+ 2 - 2
app/controller/.department.js

@@ -1,6 +1,6 @@
 module.exports = {
   create: {
-    requestBody: ["!name", "unit", "!duty", "phone"],
+    requestBody: ["!name", "unit", "duty", "phone"],
   },
   destroy: {
     params: ["!id"],
@@ -8,7 +8,7 @@ module.exports = {
   },
   update: {
     params: ["!id"],
-    requestBody: ["name", "unit", "!duty", "phone"],
+    requestBody: ["name", "unit", "duty", "phone"],
   },
   show: {
     parameters: {

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

@@ -6,7 +6,7 @@ module.exports = {
       "!passwd",
       "role_id",
       "name",
-      "phone",
+      "!phone",
       "type",
     ],
   },