@@ -2,7 +2,7 @@ module.exports = {
create: {
requestBody: [
'!name',
- '!site'
+ 'site'
]
},
destroy: {
@@ -13,7 +13,7 @@ module.exports = {
params: ['!id'],
show: {
@@ -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 }, // 栏目位置
};