2020-02-14 06:11:16 +00:00
|
|
|
module.exports = exports = {
|
|
|
|
page: {
|
|
|
|
fields: {
|
|
|
|
PageId: {
|
|
|
|
required: true,
|
|
|
|
coerce: String,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
page_level: {
|
|
|
|
fields: {
|
|
|
|
PageId: {
|
|
|
|
required: true,
|
|
|
|
coerce: String,
|
|
|
|
},
|
|
|
|
user_id: {
|
|
|
|
required: true,
|
|
|
|
coerce: String,
|
|
|
|
},
|
|
|
|
level: {
|
|
|
|
required: true,
|
|
|
|
coerce: String,
|
|
|
|
in_set: ['view', 'update', 'manage'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
page_link: {
|
|
|
|
fields: {
|
|
|
|
PageId: {
|
|
|
|
required: true,
|
|
|
|
coerce: String,
|
|
|
|
},
|
|
|
|
level: {
|
|
|
|
required: true,
|
|
|
|
coerce: String,
|
|
|
|
in_set: ['view', 'update', 'manage'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
page_user: {
|
|
|
|
fields: {
|
|
|
|
PageId: {
|
|
|
|
required: true,
|
|
|
|
coerce: String,
|
|
|
|
},
|
|
|
|
user_id: {
|
|
|
|
required: true,
|
|
|
|
coerce: String,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-03-04 17:26:14 +00:00
|
|
|
|
|
|
|
permission_check: {
|
|
|
|
fields: {
|
|
|
|
permission: {
|
|
|
|
required: true,
|
|
|
|
coerce: String,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-02-14 06:11:16 +00:00
|
|
|
}
|