Commit Graph
2 Commits
Author SHA1 Message Date
DjangoAdmin DevandClaude 9acbf6275e refactor: P4c 最终批次-2 dictionary 模块(dict+dict_item 合并服务)
【修复合并遗留】
- 重命名重名函数(_apply_dict_item_filters/get_dict_item_info/
  _build_dict_item_page_data),修复 get_info 调用点
- router 双 blueprint 合并导入、dict_item 视图函数重命名
- schema/service/models 中部重复 import 行级去重
- 修复 schema typo DictItemItem
- models.py 误改后从 git 恢复(P4c 不需改 models)

【教训】regex 改复杂合并文件易误伤(.*?跨 docstring 匹配删了顶部导入),
已恢复并改用精确行级去重

【验收】flake8 零告警;应用启动;dict/dict_item 分页运行时正常;12 passed

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-07 16:26:33 +08:00
DjangoAdmin DevandClaude d33dc1fc34 refactor: P3d 视图层迁入 src/modules/ → router.py(26 视图)——P3 全部完成
- 17 个单视图 + 4 组合并(login+index→auth、config+config_item→configuration、
  dict+dict_item→dictionary、login_log+operation_log→log)
- 重写:服务引用→src.modules(module 别名保留)、models/forms→src.modules
- 中间件引用保持 application.middleware(P5 迁移)
- application/views/__init__.py 蓝图注册加去重(合并模块 shim 重复导出)
- application/views/ 全部替换为 shim

【修复】index.py 组合导入 menu,user 被单名替换先命中残留 user,已修复

【验收】25 蓝图无重复注册;应用启动;pytest 5 passed;接口冒烟(登录校验、
鉴权 401)正常。P3 四层(models/forms/services/views)全部迁入 src/modules/

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-07 14:23:53 +08:00