Files
digital-psychology/docs/BACKEND_DESIGN/BD-2026-012-input-compliance.md
T
jackyu66gitandCursor 89756f65b4 feat(ECR-012–016): 合规、题库、时辰刷新、头像、MBTI OEJTS 与埋点
落地输入合规、探索题库、报告日/时辰刷新、账号头像、OEJTS 量表,并补齐 H5 埋点与 Admin 漏斗;同步 ESS 工件、切至自建 Git、清理 GitHub Actions。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 01:27:58 +08:00

36 lines
750 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# BD-2026-012 — Input text compliance
Status: Approved
**ECR:** ECR-012
**Date:** 2026-08-12
**Change Level:** L2
**Risk:** Low
## Backend Change Boundary
### In
- Package `internal/textsafe`(纯函数,无 DB
- Service/Handler 在写库前 `Check(Kind, s)`
- 失败 → `response.Fail(..., 40060, err.Error())`
### Out
- 新表 · Redis 限流 · Admin CMS 全量
## Module
| Module | Change |
|--------|--------|
| textsafe | Check / Normalize / Kind |
| auth · profile · ask · companion · growth · synastry | 调用 Check |
## Test
- 单测:禁止词 · XSS · 刷屏 · 长度 · 合法样本
- 可选 integration 抽一条 PATCH nickname
## Rollback
- 去掉 Check 调用即可;无 migration