refactor: 重构权限管理

1.更新字段管理
This commit is contained in:
猿小天
2023-11-21 17:51:19 +08:00
parent 54e4d23cf7
commit c04b33ed31
2 changed files with 1 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ class RoleInitSerializer(CustomModelSerializer):
class Meta: class Meta:
model = Role model = Role
fields = ['name', 'key', 'sort', 'status', 'admin', fields = ['name', 'key', 'sort', 'status',
'creator', 'dept_belong_id'] 'creator', 'dept_belong_id']
read_only_fields = ["id"] read_only_fields = ["id"]
extra_kwargs = { extra_kwargs = {

View File

@@ -4,7 +4,6 @@
"key": "admin", "key": "admin",
"sort": 1, "sort": 1,
"status": true, "status": true,
"admin": true,
"remark": null "remark": null
}, },
{ {
@@ -12,7 +11,6 @@
"key": "public", "key": "public",
"sort": 2, "sort": 2,
"status": true, "status": true,
"admin": true,
"remark": null "remark": null
} }
] ]