liuyu 5 gadi atpakaļ
vecāks
revīzija
ceca7078b4
2 mainītis faili ar 7 papildinājumiem un 3 dzēšanām
  1. 6 3
      app/controller/.user.js
  2. 1 0
      app/model/user.js

+ 6 - 3
app/controller/.user.js

@@ -27,7 +27,8 @@ module.exports = {
       'deptname',
       'pid',
       'code',
-      "columnid"
+      "columnid",
+      "openid"
     ],
   },
   destroy: {
@@ -63,7 +64,8 @@ module.exports = {
       'deptname',
       'pid',
       'code',
-      "columnid"
+      "columnid",
+      "openid"
     ],
   },
   show: {
@@ -101,7 +103,8 @@ module.exports = {
         deptname: 'deptname',
         pid: 'pid',
         code: 'code',
-        columnidg :"columnid"
+        columnidg :"columnid",
+        openid:"openid"
       },
     },
     service: "query",

+ 1 - 0
app/model/user.js

@@ -32,6 +32,7 @@ const UserSchema = {
   pid: { type: String, required: false }, // 父id
   deptname: { type: String, required: false }, // 机构名称
   code: { type: String, required: false }, // 邀请码
+  openid: { type: String, required: false }, // 微信openid
 };