refactor(rbac): 删除 userapp/userdepartment 两张废弃表(无业务读写,预留未启用)
- 删 models/json 的 userapp/userdepartment 定义 + xlsx - script/init.py rbac_tables 移除两表 - scripts/load_path.py 移除路径注册 - .gitignore 移除对应条目
This commit is contained in:
parent
2a020e17e9
commit
77c17f6374
2
.gitignore
vendored
2
.gitignore
vendored
@ -31,8 +31,6 @@ wwwroot/provider/
|
||||
wwwroot/reseller/
|
||||
wwwroot/role/
|
||||
wwwroot/rolepermission/
|
||||
wwwroot/userapp/
|
||||
wwwroot/userdepartment/
|
||||
wwwroot/userrole/
|
||||
wwwroot/users/
|
||||
mysql.ddl.sql
|
||||
@ -1,16 +0,0 @@
|
||||
{
|
||||
"tblname": "userapp",
|
||||
"title":"用户",
|
||||
"params": {
|
||||
"confidential_fields":["apikey"],
|
||||
"sortby":"appname",
|
||||
"browserfields": {
|
||||
"exclouded": ["id", "userid"],
|
||||
"alters": {}
|
||||
},
|
||||
"editexclouded": [
|
||||
"id", "userid"
|
||||
],
|
||||
"record_toolbar": null
|
||||
}
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
{
|
||||
"tblname": "userdepartment",
|
||||
"title":"用户",
|
||||
"params": {
|
||||
"browserfields": {
|
||||
"exclouded": ["id", "userid"],
|
||||
"cwidth": {}
|
||||
},
|
||||
"editexclouded": [
|
||||
"id", "userid"
|
||||
],
|
||||
"record_toolbar": null
|
||||
}
|
||||
}
|
||||
@ -1,55 +0,0 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "userapp",
|
||||
"title": "用户应用",
|
||||
"primary": [
|
||||
"id"
|
||||
],
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "userid",
|
||||
"title": "用户id",
|
||||
"type": "str",
|
||||
"length": 32,
|
||||
"default": "0"
|
||||
},
|
||||
{
|
||||
"name": "appname",
|
||||
"title": "应用名称",
|
||||
"type": "str",
|
||||
"length": 99
|
||||
},
|
||||
{
|
||||
"name": "apikey",
|
||||
"title": "apikey",
|
||||
"type": "str",
|
||||
"length": 400
|
||||
},
|
||||
{
|
||||
"name": "enabled_date",
|
||||
"title": "启用日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "expired_date",
|
||||
"title": "失效日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "allowed_ips",
|
||||
"title": "允许IP集",
|
||||
"type": "str",
|
||||
"length": 200
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@ -1,31 +0,0 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "userdepartment",
|
||||
"title": "用户部门表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "userid",
|
||||
"title": "用户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "depid",
|
||||
"title": "部门id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@ -70,8 +70,7 @@ type_roles = {
|
||||
}
|
||||
|
||||
rbac_tables = [
|
||||
"organization", "orgtypes", "role", "users", "userrole", "rolepermission", "permission",
|
||||
"userapp", "userdepartment" ]
|
||||
"organization", "orgtypes", "role", "users", "userrole", "rolepermission", "permission" ]
|
||||
|
||||
role_perms = {
|
||||
'superuser': [
|
||||
|
||||
@ -71,8 +71,6 @@ PATHS_LOGINED = [
|
||||
f"/{MOD}/user/edit_profile.dspy",
|
||||
f"/{MOD}/user/save_profile.dspy",
|
||||
f"/{MOD}/user/wechat_login.ui",
|
||||
f"/{MOD}/userapp",
|
||||
f"/{MOD}/userdepartment",
|
||||
f"/{MOD}/userrole",
|
||||
f"/{MOD}/users",
|
||||
f"/{MOD}/usersync",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user