reloaded 5 yıl önce
ebeveyn
işleme
a6fef86b51
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 2 2
      app/controller/.column.js
  2. 1 1
      app/model/column.js

+ 2 - 2
app/controller/.column.js

@@ -2,7 +2,7 @@ module.exports = {
   create: {
     requestBody: [
       '!name',
-      '!site'
+      'site'
     ]
   },
   destroy: {
@@ -13,7 +13,7 @@ module.exports = {
     params: ['!id'],
     requestBody: [
       '!name',
-      '!site'
+      'site'
     ]
   },
   show: {

+ 1 - 1
app/model/column.js

@@ -5,7 +5,7 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 // 栏目表
 const ColumnSchema = {
   name: { type: String, required: true, maxLength: 500 }, // 栏目名称
-  site: { type: String, required: true, maxLength: 500 }, // 栏目位置
+  site: { type: String, required: false, maxLength: 500 }, // 栏目位置
 };