新增 system_prompts 目录、admin.ai_config.read 与 admin-h5「AI」页;本切片不改运行时 Prompt、禁写发布/UGC/真支付。 Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
582 B
Markdown
25 lines
582 B
Markdown
# Backend Design: ECR-021 AICoreConfig
|
|
|
|
| ID | BD-2026-021 |
|
|
| Status | Approved |
|
|
| Coding | Loop authorized |
|
|
| Level | L2 |
|
|
| Migration | YES 000022 |
|
|
|
|
## Backend Change Boundary
|
|
|
|
```text
|
|
Domain: SystemPrompt (read catalog)
|
|
App: AdminHandler → admin.Service → AdminRepo
|
|
API: GET /admin/ai/system-prompts[+/:id]
|
|
Permission: admin.ai_config.read
|
|
Migration: 000022 table + seed ask_default + perm
|
|
UI: admin-h5 /ai
|
|
```
|
|
|
|
## Out of boundary
|
|
|
|
Prompt write/publish · Knowledge* · ToolDefinition · runtime engine swap · UGC · Payment
|
|
|
|
Rollback: down migration + remove routes/UI
|