guhongwei 4 years ago
parent
commit
59b856803e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/model/imgtxtdock.js

+ 4 - 4
app/model/imgtxtdock.js

@@ -5,8 +5,8 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 const images = new Schema({
   url: { type: String, required: true }, // 图片路径
 });
-// 栏目
-const imgtxtdockSchema = {
+// 展会信息
+const ImgtxtdockSchema = {
   dock_id: { type: String, required: true, maxLength: 500 }, // 展会id
   user_name: { type: String, required: false, maxLength: 500 }, // 发言人
   brief: { type: String, required: false, maxLength: 500 }, // 发言文字内容
@@ -14,11 +14,11 @@ const imgtxtdockSchema = {
 };
 
 
-const schema = new Schema(imgtxtdockSchema, { toJSON: { virtuals: true } });
+const schema = new Schema(ImgtxtdockSchema, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });
 schema.plugin(metaPlugin);
 
 module.exports = app => {
   const { mongoose } = app;
-  return mongoose.model('imgtxtdock', schema, 'imgtxt_dock');
+  return mongoose.model('Imgtxtdock', schema, 'imgtxt_dock');
 };