guhongwei 4 gadi atpakaļ
vecāks
revīzija
a4ef25fbea
2 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 3 0
      app/controller/.channel.js
  2. 1 0
      app/model/channel.js

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

@@ -11,6 +11,7 @@ module.exports = {
       "image_path",
       "videodata",
       "orgin",
+      "create_time",
     ],
   },
   destroy: {
@@ -30,6 +31,7 @@ module.exports = {
       "image_path",
       "videodata",
       "orgin",
+      "create_time",
     ],
   },
   show: {
@@ -51,6 +53,7 @@ module.exports = {
         image_path: "image_path",
         videodata: "videodata",
         orgin: "orgin",
+        create_time: "create_time",
       },
     },
     service: "query",

+ 1 - 0
app/model/channel.js

@@ -18,6 +18,7 @@ const Channel = {
   sponsor: { type: String, required: false, maxLength: 200 }, // 主办方
   organizer: { type: String, required: false, maxLength: 200 }, // 承办方
   desc: { type: String, maxLength: 1000 }, // 简介
+  create_time: { type: String, required: true, maxLength: 200 }, // 创建时间
   image_path: { type: String, required: false }, // 图片路径
   videodata: { type: [ videos ], default: [] }, // vip用户
 };