diff --git a/backend/core/conf.py b/backend/core/conf.py index 8a2e0087..f8aeb99c 100644 --- a/backend/core/conf.py +++ b/backend/core/conf.py @@ -45,7 +45,7 @@ class Settings(BaseSettings): # FastAPI FASTAPI_API_V1_PATH: str = '/api/v1' FASTAPI_TITLE: str = 'FastAPI' - FASTAPI_VERSION: str = '0.0.1' + FASTAPI_VERSION: str = '1.5.0' FASTAPI_DESCRIPTION: str = 'FastAPI Best Architecture' FASTAPI_DOCS_URL: str = '/docs' FASTAPI_REDOC_URL: str = '/redoc' diff --git a/backend/sql/mysql/init_test_data.sql b/backend/sql/mysql/init_test_data.sql index f5385f47..267c0e0a 100644 --- a/backend/sql/mysql/init_test_data.sql +++ b/backend/sql/mysql/init_test_data.sql @@ -102,7 +102,7 @@ insert into sys_data_scope (id, name, status, created_time, updated_time) values (1, '测试部门数据权限', 1, '2025-06-09 16:53:29', null), (2, '测试部门及以下数据权限', 1, '2025-06-09 16:53:40', null); -insert into sys_data_rule (id, name, model, column, operator, expression, value, created_time, updated_time) +insert into sys_data_rule (id, name, model, `column`, operator, expression, `value`, created_time, updated_time) values (1, '部门名称等于测试', '部门', 'name', 1, 0, '测试', '2025-06-09 16:56:06', null), (2, '父部门 ID 等于 1', '部门', 'parent_id', 0, 0, '1', '2025-06-09 17:16:14', null); diff --git a/backend/sql/postgresql/init_test_data.sql b/backend/sql/postgresql/init_test_data.sql index c8e787d2..fc7aff37 100644 --- a/backend/sql/postgresql/init_test_data.sql +++ b/backend/sql/postgresql/init_test_data.sql @@ -102,7 +102,7 @@ insert into sys_data_scope (id, name, status, created_time, updated_time) values (1, '测试部门数据权限', 1, '2025-06-09 16:53:29', null), (2, '测试部门及以下数据权限', 1, '2025-06-09 16:53:40', null); -insert into sys_data_rule (id, name, model, column, operator, expression, value, created_time, updated_time) +insert into sys_data_rule (id, name, model, `column`, operator, expression, `value`, created_time, updated_time) values (1, '部门名称等于测试', '部门', 'name', 1, 0, '测试', '2025-06-09 16:56:06', null), (2, '父部门 ID 等于 1', '部门', 'parent_id', 0, 0, '1', '2025-06-09 17:16:14', null);