chore: 保存笔记本本地未提交改动(源码+新增文件,排除构建缓存/大文件)

This commit is contained in:
renjianbo
2026-07-11 08:58:10 +08:00
parent ad2b899c17
commit 541a08628c
832 changed files with 102878 additions and 1517 deletions

4
.demo_memory/MEMORY.md Normal file
View File

@@ -0,0 +1,4 @@
- [user_preferences](user_preferences.md) — 用户有8年Python后端经验,偏好简洁的函数式风格,不喜欢过度抽象的类层次
- [feedback_testing](feedback_testing.md) — 集成测试必须使用真实数据库而非 mock,因为 mock 与生产环境不一致曾导致故障
- [project_release](project_release.md) — 当前版本v2.1计划于2026-06-25发布,冻结日前需优先完成安全审计和API文档
- [reference_monitoring](reference_monitoring.md) — Grafana监控面板和Sentry错误追踪的外部地址

View File

@@ -0,0 +1,9 @@
---
description: 集成测试必须使用真实数据库而非 mock,因为 mock 与生产环境不一致曾导致故障
name: '测试规范: 集成测试用真实数据库'
type: feedback
---
集成测试必须使用真实数据库,不要 mock。
Why: 2026年3月有一次生产迁移失败,因为mock测试通过但真实schema不兼容。
How to apply: 所有涉及 SQLAlchemy session 的测试用例必须使用测试数据库。

View File

@@ -0,0 +1,9 @@
---
description: 当前版本v2.1计划于2026-06-25发布,冻结日前需优先完成安全审计和API文档
name: '项目: v2.1 6月25日发布'
type: project
---
v2.1 发布日期: 2026年6月25日。
Why: 客户合同中约定的交付日期,延期每天有违约金。
How to apply: 优先完成P0 Security Audit和API Documentation,非关键UI调整推迟到v2.2。

View File

@@ -0,0 +1,9 @@
---
description: Grafana监控面板和Sentry错误追踪的外部地址
name: '参考: 生产监控面板地址'
type: reference
---
Grafana: http://grafana.internal:3000/d/api-latency
Sentry: https://sentry.internal/organizations/myorg/projects/api
Kibana: http://kibana.internal:5601/app/logs

View File

@@ -0,0 +1,10 @@
---
description: 用户有8年Python后端经验,偏好简洁的函数式风格,不喜欢过度抽象的类层次
name: '用户: Python全栈开发者'
type: user
---
用户是一位资深Python全栈开发者,习惯使用 FastAPI + SQLAlchemy 技术栈。
代码风格偏好:偏好简洁、扁平、显式的代码,不喜欢深层继承和过度抽象。
Why: 用户在代码评审中多次提到'不要为未来设计'和'三行重复比一个错误抽象好'。
How to apply: 新功能直接用函数实现,除非有明确的3+处复用才提取类。