Procházet zdrojové kódy

Merge branch 'master' of http://git.cc-lotus.info/service-platform/service-live

lrf402788946 před 5 roky
rodič
revize
a07c5b6be2
2 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 3 0
      app/controller/.news.js
  2. 1 0
      app/model/news.js

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

@@ -6,6 +6,7 @@ module.exports = {
       '!title',
       'orgin',
       'publish',
+      'publish_time',
       'content',
       'picture'
     ]
@@ -22,6 +23,7 @@ module.exports = {
       '!title',
       'orgin',
       'publish',
+      'publish_time',
       'content',
       'picture'
     ]
@@ -40,6 +42,7 @@ module.exports = {
         title : 'title',
         orgin : 'orgin',
         publish: 'publish',
+        publish_time: 'publish_time',
         content : 'content',
         picture : 'picture'
       }

+ 1 - 0
app/model/news.js

@@ -9,6 +9,7 @@ const NewsSchema = {
   title: { type: String, required: false, maxLength: 500 }, // 标题
   orgin: { type: String, required: false, maxLength: 500 }, // 来源
   publish: { type: String, required: false, maxLength: 500 }, // 发布者
+  publish_time: { type: String, required: false, maxLength: 500 }, // 发布时间
   content: { type: String, required: false }, // 正文
   picture: { type: String, required: false }, // 图片路径
 };