fix: 修正数据库初始化中的字段错误
parent
9f26f33bf0
commit
945aab0635
|
|
@ -52,22 +52,19 @@ async def init_roles():
|
||||||
role_name="超级管理员",
|
role_name="超级管理员",
|
||||||
role_code="super_admin",
|
role_code="super_admin",
|
||||||
description="系统超级管理员,拥有所有权限",
|
description="系统超级管理员,拥有所有权限",
|
||||||
status=1,
|
status=1
|
||||||
sort_order=1
|
|
||||||
),
|
),
|
||||||
Role(
|
Role(
|
||||||
role_name="管理员",
|
role_name="管理员",
|
||||||
role_code="admin",
|
role_code="admin",
|
||||||
description="系统管理员",
|
description="系统管理员",
|
||||||
status=1,
|
status=1
|
||||||
sort_order=2
|
|
||||||
),
|
),
|
||||||
Role(
|
Role(
|
||||||
role_name="普通用户",
|
role_name="普通用户",
|
||||||
role_code="user",
|
role_code="user",
|
||||||
description="普通用户",
|
description="普通用户",
|
||||||
status=1,
|
status=1
|
||||||
sort_order=3
|
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue