From 945aab0635eb6d49a885fb13bda0fccf0503381a Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Tue, 23 Dec 2025 17:45:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=AD=E7=9A=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/scripts/init_db.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/backend/scripts/init_db.py b/backend/scripts/init_db.py index 6b5c878..54f05a1 100644 --- a/backend/scripts/init_db.py +++ b/backend/scripts/init_db.py @@ -52,22 +52,19 @@ async def init_roles(): role_name="超级管理员", role_code="super_admin", description="系统超级管理员,拥有所有权限", - status=1, - sort_order=1 + status=1 ), Role( role_name="管理员", role_code="admin", description="系统管理员", - status=1, - sort_order=2 + status=1 ), Role( role_name="普通用户", role_code="user", description="普通用户", - status=1, - sort_order=3 + status=1 ), ]