Browse Source

答题文件

guhongwei 3 years ago
parent
commit
0d94c56470
1 changed files with 2 additions and 3 deletions
  1. 2 3
      app/model/patent/problem_service.js

+ 2 - 3
app/model/patent/problem_service.js

@@ -14,8 +14,7 @@ const problem_service = {
   answer_name: { type: String, required: false }, // 答题人
   answer_name: { type: String, required: false }, // 答题人
   answer_date: { type: String, required: false }, // 答题时间
   answer_date: { type: String, required: false }, // 答题时间
   answer_explain: { type: String, required: false }, // 答题说明
   answer_explain: { type: String, required: false }, // 答题说明
-  answer_file: { type: String, required: false }, // 答题说明
-  ask_file: { type: Array, required: false }, // 答题文件
+  answer_file: { type: Array, required: false }, // 答题文件
   status: { type: String, required: false }, // 状态:【0:待受理,1:已分配,2:已回答,3:已发送答案,4:已阅读】
   status: { type: String, required: false }, // 状态:【0:待受理,1:已分配,2:已回答,3:已发送答案,4:已阅读】
 };
 };
 const schema = new Schema(problem_service, { toJSON: { virtuals: true } });
 const schema = new Schema(problem_service, { toJSON: { virtuals: true } });
@@ -28,7 +27,7 @@ schema.index({ ask_date: 1 });
 schema.index({ answer_id: 1 });
 schema.index({ answer_id: 1 });
 
 
 schema.plugin(metaPlugin);
 schema.plugin(metaPlugin);
-module.exports = (app) => {
+module.exports = app => {
   const { mongoose } = app;
   const { mongoose } = app;
   return mongoose.model('Problem_Service', schema, 'problem_service');
   return mongoose.model('Problem_Service', schema, 'problem_service');
 };
 };