明树Git Lab

Commit 17403af0 authored by zengfanpei's avatar zengfanpei

update

parent c324d6bd
......@@ -3,7 +3,7 @@ const Schema = mongoose.Schema;
const moment = require('moment');
/**
* 菜单表
* 菜单表---按钮表 放一颗树里面
*/
const menuSchema = new Schema({
......@@ -37,10 +37,16 @@ const menuSchema = new Schema({
buttons: {
type: [mongoose.Types.ObjectId],
ref: 'Button',
ref: 'Menu',
default: [],
},
type: {
type: Number,
comment: "类型: 1. 菜单, 2. 按钮",
default: 1
},
enable: {
type: Boolean,
default: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment