up
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
doc : "mysql模型文件的m5记录",
|
||||
model: {
|
||||
fileName: {type: "STRING", comment: '文件名称'},
|
||||
md5 : {type: "TEXT", comment: 'md5记录'},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
module.exports = {
|
||||
doc : "数据权限表(只在默认api生效)",
|
||||
model: {
|
||||
code : {type: "STRING", comment: '角色代码'},
|
||||
table: {type: "STRING", comment: '表名'},
|
||||
key : {type: "STRING", comment: '表字段'},
|
||||
crud: {
|
||||
type : "ENUM", comment: 'crud权限',
|
||||
values: [
|
||||
"C", // 创建
|
||||
"R", // 读取
|
||||
"U", // 更新
|
||||
"D", // 删除
|
||||
]
|
||||
},
|
||||
value: {
|
||||
type : "ENUM", comment: '状态',
|
||||
values: [
|
||||
0, // 禁止
|
||||
1, //通行
|
||||
],
|
||||
defaultValue: 0,
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
doc : "页面元素是否显示权限表",
|
||||
model: {
|
||||
code : {type: "STRING", comment: '角色代码'},
|
||||
key : {type: "STRING", comment: '元素id', unique: true},
|
||||
value: {
|
||||
type : "ENUM", comment: '状态',
|
||||
values : [
|
||||
//注意,一般页面元素会很多,默认是显示状态
|
||||
0, // 通行
|
||||
1, //禁止
|
||||
],
|
||||
defaultValue: 0,
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
doc : "页面权限表",
|
||||
model: {
|
||||
code : {type: "STRING", comment: '角色代码'},
|
||||
key : {type: "STRING", comment: '页面标识,一般是页面url',unique: true},
|
||||
value: {
|
||||
type : "ENUM", comment: '状态',
|
||||
values: [
|
||||
0, // 禁止
|
||||
1, //通行
|
||||
],
|
||||
defaultValue: 0,
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
doc : "角色",
|
||||
model: {
|
||||
cname: {type: "STRING", comment: '角色别名'},
|
||||
code : {type: "STRING", comment: '角色代码'},
|
||||
super: {
|
||||
type : "ENUM", comment: '是否为超级管理员(不校验权限)',
|
||||
values : [
|
||||
0, // api地址
|
||||
1, //url地址
|
||||
],
|
||||
defaultValue: 0,
|
||||
},
|
||||
doc : {type: "TEXT", comment: '说明'},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
doc : "路由表表",
|
||||
model: {
|
||||
name: {type: "STRING", comment: '路由名称'},
|
||||
key : {type: "STRING", comment: '路由标识,一般是路由url或页面url'},
|
||||
type: {
|
||||
type : "ENUM", comment: '字段类型',
|
||||
values: [
|
||||
'api', // api地址
|
||||
'url', //url地址
|
||||
]
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
doc : "系统设置",
|
||||
model: {
|
||||
title: {type: "STRING", comment: '字段标题'},
|
||||
doc : {type: "TEXT", comment: '字段说明'},
|
||||
type : {
|
||||
type : "ENUM", comment: '字段类型',
|
||||
values: [
|
||||
'int', // 整数
|
||||
'string', //字符串
|
||||
'json', // json
|
||||
'rich' // 富文本
|
||||
],
|
||||
defaultValue: 'string',
|
||||
},
|
||||
code : {type: "STRING", comment: '字段code'},
|
||||
value: {type: "TEXT", comment: '值'},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user