This commit is contained in:
robin
2022-07-07 22:16:39 +08:00
parent 264ab8d979
commit a9a4bd0981
86 changed files with 1198 additions and 310 deletions
+13
View File
@@ -0,0 +1,13 @@
module.exports = {
doc: "分组表",
api: true,//是否需要生成api接口
model: {
gid: {type: "STRING", comment: '分组id'},
name: {type: "STRING", comment: '分组名称'},
to_gid: {type: "STRING", comment: '上级分组id'},
to_oid: {type: "STRING", comment: '所属组织id'},
},
}
+11
View File
@@ -0,0 +1,11 @@
module.exports = {
doc: "组织表",
api: true,//是否需要生成api接口
model: {
oid: {type: "STRING", comment: '组织id'},
name: {type: "STRING", comment: '组织名称'},
general_management: {type: "STRING", comment: '是否为总管理平台(可以管理所有组织)'},
},
}
+13
View File
@@ -0,0 +1,13 @@
module.exports = {
doc: "权限列表",
api: true,//是否需要生成api接口
model: {
pid: {type: "STRING", comment: '权限id'},
to_pccode: {type: "STRING", comment: '所属权限分类码'},
name: {type: "STRING", comment: '权限名称'},
code: {type: "STRING", comment: '权限识别码'},
value: {type: "STRING", comment: '权限值'},
},
}
+10
View File
@@ -0,0 +1,10 @@
module.exports = {
doc: "权限分类表",
api: true,//是否需要生成api接口
model: {
name: {type: "STRING", comment: '权限分类名称'},
pccode: {type: "STRING", comment: '权限分类识别码'},
},
}
+13
View File
@@ -0,0 +1,13 @@
module.exports = {
doc: "角色表",
api: true,//是否需要生成api接口
model: {
rid: {type: "STRING", comment: '角色id'},
name: {type: "STRING", comment: '角色名称'},
to_rid: {type: "STRING", comment: '上级角色id'},
to_oid: {type: "STRING", comment: '所属组织id'},
to_gid: {type: "STRING", comment: '所属分组id'},
},
}
+11
View File
@@ -0,0 +1,11 @@
module.exports = {
doc: "角色拥有的权限",
api: true,//是否需要生成api接口
model: {
rpid: {type: "STRING", comment: '角色权限id'},
to_rid: {type: "STRING", comment: '角色id'},
to_pid: {type: "STRING", comment: '权限id'},
},
}
+16
View File
@@ -0,0 +1,16 @@
module.exports = {
doc: "用户表",
api: true,//是否需要生成api接口
model: {
uid: {type: "STRING", comment: '用户id'},
account: {type: "STRING", comment: '用户账号'},
password: {type: "STRING", comment: '用户加密密码'},
salt: {type: "STRING", comment: '用户加密随机数'},
to_oid: {type: "STRING", comment: '所属组织id'},
to_gid: {type: "STRING", comment: '所属分组id'},
to_rid: {type: "STRING", comment: '所属角色id'},
to_uid: {type: "STRING", comment: '上级用户id'},
},
}
+20
View File
@@ -0,0 +1,20 @@
module.exports = {
doc: "用户资料表",
api: true,//是否需要生成api接口
model: {
uid: {type: "STRING", comment: '用户id'},
account: {type: "STRING", comment: '用户账号'},
name: {type: "STRING", comment: '名称'},
avatar: {type: "STRING", comment: '头像'},
wechat_openid: {type: "STRING", comment: '微信openid'},
phone_number: {type: "STRING", comment: '手机号'},
age: {type: "STRING", comment: '年龄'},
sex: {type: "STRING", comment: '性别'},
province: {type: "STRING", comment: '省份'},
city: {type: "STRING", comment: '城市'},
area: {type: "STRING", comment: '地区'},
address: {type: "STRING", comment: '详细地址'},
},
}