cheny 4 lat temu
rodzic
commit
98c05e8276
2 zmienionych plików z 4 dodań i 2 usunięć
  1. 2 0
      app/controller/.dock.js
  2. 2 2
      app/model/dock.js

+ 2 - 0
app/controller/.dock.js

@@ -10,6 +10,7 @@ module.exports = {
       "end_time",
       "end_time",
       "join_end",
       "join_end",
       "user_id",
       "user_id",
+      "apply",
       "province",
       "province",
       "file_path",
       "file_path",
       "place",
       "place",
@@ -31,6 +32,7 @@ module.exports = {
       "title",
       "title",
       "desc",
       "desc",
       "status",
       "status",
+      "apply",
       "start_time",
       "start_time",
       "end_time",
       "end_time",
       "join_end",
       "join_end",

+ 2 - 2
app/model/dock.js

@@ -29,7 +29,7 @@ const goods = new Schema({
   other: { type: String, maxLength: 200 }, // 其他需求
   other: { type: String, maxLength: 200 }, // 其他需求
   contact_user: { type: String, maxLength: 200 }, // 联系人
   contact_user: { type: String, maxLength: 200 }, // 联系人
   contact_tel: { type: String, maxLength: 200 }, // 联系电话
   contact_tel: { type: String, maxLength: 200 }, // 联系电话
-  status: { type: String, default: 0, maxLength: 5 }, // 0未审核,1已通过,2已拒绝
+  dockStatus: { type: String, default: '0', maxLength: 5 }, // 0未审核,1已通过,2已拒绝
 });
 });
 goods.index({ id: 1 });
 goods.index({ id: 1 });
 // 申请用户
 // 申请用户
@@ -44,7 +44,7 @@ const apply = new Schema({
   // company: { type: String, maxLength: 200 }, // 单位名称
   // company: { type: String, maxLength: 200 }, // 单位名称
   apply_time: { type: String, maxLength: 200 }, // 申请时间
   apply_time: { type: String, maxLength: 200 }, // 申请时间
   role: { type: String, maxLength: 200 }, // 申请人类型
   role: { type: String, maxLength: 200 }, // 申请人类型
-  status: { type: String, default: 0, maxLength: 1 }, // 申请状态 (0未审核;1已通过;2已拒绝)
+  status: { type: String, default: '0', maxLength: 1 }, // 申请状态 (0未审核;1已通过;2已拒绝)
 });
 });
 apply.index({ id: 1 });
 apply.index({ id: 1 });
 apply.index({ userid: 1 });
 apply.index({ userid: 1 });