Parcourir la source

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

lrf402788946 il y a 5 ans
Parent
commit
a07c5b6be2
2 fichiers modifiés avec 4 ajouts et 0 suppressions
  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 }, // 图片路径
 };