Perf: 优化RBAC权限树 (#7782)

* fix: 优化权限树(1)

* fix: 优化权限树(2)

* fix: 优化权限树(3)

* fix: 优化权限树(4)

* fix: 优化权限树(5)

* fix: 优化权限树(添加迁移文件)

* fix: 优化权限树(6)

* fix: 优化权限树(7)

* fix: 优化权限树(8)

* fix: 优化权限树(9)
This commit is contained in:
Jiangjie.Bai
2022-03-10 11:25:33 +08:00
committed by GitHub
parent 9ca0eaf7ce
commit b017e68a56
28 changed files with 1672 additions and 341 deletions

View File

@@ -0,0 +1,49 @@
# Generated by Django 3.1.14 on 2022-03-09 22:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('applications', '0018_auto_20220223_1539'),
]
operations = [
migrations.CreateModel(
name='DatabaseApp',
fields=[
],
options={
'verbose_name': 'Database application',
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('applications.application',),
),
migrations.CreateModel(
name='KubernetesApp',
fields=[
],
options={
'verbose_name': 'Kubernetes',
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('applications.application',),
),
migrations.CreateModel(
name='RemoteApp',
fields=[
],
options={
'verbose_name': 'Remote application',
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('applications.application',),
),
]

View File

@@ -266,3 +266,21 @@ class ApplicationUser(SystemUser):
class Meta:
proxy = True
verbose_name = _('Application user')
class RemoteApp(Application):
class Meta:
proxy = True
verbose_name = _('Remote application')
class DatabaseApp(Application):
class Meta:
proxy = True
verbose_name = _('Database application')
class KubernetesApp(Application):
class Meta:
proxy = True
verbose_name = _('Kubernetes')