refactor: P4c 最终批次-1 log 模块(login_log+operation_log 合并服务)

【关键修复】根 .gitignore 模板规则 log/ 误忽略 src/modules/log/,
log 模块自 P3c 起未入库 → 加 !src/modules/log/ 特例排除并补入

【修复合并遗留 bug】
- 两个 get_info/_apply_filters/_build_page_data 重名互相覆盖 → 重命名
- log router 误导入 src.modules.auth 为 login_log → 改 log service
- 双 blueprint 视图函数重名 → 重命名 operation 版本
- 双 import 块合并(OPERATION_LOG_TYPE_LIST 并入顶部)

【改造】page 函数 params 化返回 dict;get_info 委托 Repository
【验收】flake8 零告警;应用启动;log 分页运行时正常;12 passed

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DjangoAdmin Dev
2026-08-07 16:11:26 +08:00
co-authored by Claude
parent 3dbce04eb1
commit a054b14485
7 changed files with 1158 additions and 0 deletions
+2
View File
@@ -8,7 +8,9 @@
.settings/
.vscode/
vender/
# 业务模块 log 目录(src/modules/log)须入库,特例排除
log/
!src/modules/log/
composer.lock
gitpush.sh
pkg/