21 lines
938 B
JavaScript
21 lines
938 B
JavaScript
module.exports = {
|
|
doc : "数据库模型映射到前端目录表",
|
|
api : true,//是否需要生成api接口
|
|
model: {
|
|
// id : {type: "INTEGER", comment: '导航id', primaryKey: true},
|
|
name: {type: "STRING", comment: '导航名称'},
|
|
path: {type: "STRING", comment: '导航路径'},
|
|
index: {type: "INTEGER", comment: '权重,越大越靠前'},
|
|
icon : {type: "STRING", comment: '图标'},
|
|
group: {type: "STRING", comment: '导航分组'},
|
|
table: {type: "STRING", comment: '绑定的表名'},
|
|
table_key: {type: "STRING", comment: '表的主键名称,一般是id'},
|
|
search: {type: "STRING", comment: '模糊查询的字段用/分割'},
|
|
table_field: {type: "JSON", comment: '表格字段'},
|
|
table_field_key: {type: "JSON", comment: '已选择的字段'},
|
|
user: {type: "JSON", comment: '查询表字段的时候,默认带上的用户数据,比如["oid"],这样用户就只能看到自己机构的数据'},
|
|
},
|
|
}
|
|
|
|
|