guhongwei 4 years ago
parent
commit
acb1e0a66f
2 changed files with 5 additions and 1 deletions
  1. 3 0
      app/controller/.channel.js
  2. 2 1
      app/model/channel.js

+ 3 - 0
app/controller/.channel.js

@@ -10,6 +10,7 @@ module.exports = {
       "organizer",
       "image_path",
       "videodata",
+      "orgin",
     ],
   },
   destroy: {
@@ -28,6 +29,7 @@ module.exports = {
       "organizer",
       "image_path",
       "videodata",
+      "orgin",
     ],
   },
   show: {
@@ -48,6 +50,7 @@ module.exports = {
         organizer: "organizer",
         image_path: "image_path",
         videodata: "videodata",
+        orgin: "orgin",
       },
     },
     service: "query",

+ 2 - 1
app/model/channel.js

@@ -12,11 +12,12 @@ const videos = new Schema({
 const Channel = {
   user_id: { type: String, required: false, maxLength: 200 }, // 创建人id
   title: { type: String, required: false, maxLength: 200 }, // 标题
-  desc: { type: String, maxLength: 1000 }, // 简介
   province: { type: String, required: false }, // 省
   place: { type: String, required: false }, // 市
+  orgin: { type: String, required: false, maxLength: 200 }, // 来源
   sponsor: { type: String, required: false, maxLength: 200 }, // 主办方
   organizer: { type: String, required: false, maxLength: 200 }, // 承办方
+  desc: { type: String, maxLength: 1000 }, // 简介
   image_path: { type: String, required: false }, // 图片路径
   videodata: { type: [ videos ], default: [] }, // vip用户
 };