Files
quyun-v2/docs/plan.md

91 lines
2.2 KiB
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.
# Implementation Plan: Staging Seed Full Coverage
**Branch**: `main` | **Date**: 2026-01-26 | **Spec**: `docs/staging_smoke_test.md`
**Input**: 全覆盖冒烟测试需要补齐 seed 数据。
**Note**: 本计划遵循 `docs/templates/plan-template.md`
## Summary
扩展 seed 数据覆盖冒烟测试未覆盖项:上传素材、交互记录、创作者流程完成态、财务账本/异常、退款/对账样例,并复核冒烟清单是否仍有缺口。
## Technical Context
**Language/Version**: Go 1.22
**Primary Dependencies**: Fiber, GORM-Gen
**Storage**: PostgreSQL + Redis
**Testing**: `go test ./...`
**Target Platform**: staging
**Project Type**: Web application
**Performance Goals**: N/A
**Constraints**: 不改生成文件seed 逻辑仅在 `backend/app/commands/seed/seed.go`
**Scale/Scope**: 覆盖冒烟清单全场景
## Constitution Check
- 遵循 `backend/llm.txt`
- 只改非生成文件。
## Project Structure
### Documentation (this feature)
```text
docs/
└── plan.md
```
### Source Code (repository root)
```text
backend/
└── app/commands/seed/seed.go
```
**Structure Decision**: 继续扩展 seed 命令。
## Plan Phases
### Phase 1: 缺口确认
- 对照冒烟清单明确缺失数据类型。
### Phase 2: Seed 扩展
- 添加交互记录、退款/对账样例、财务账本、异常/风控数据、创作者完成态、上传素材。
### Phase 3: 复核
- 深度复查冒烟清单覆盖率并记录残余缺口。
## Tasks
**Format**: `[ID] [P?] [Story] Description`
### Phase 1
- [x] T001 [US0] 标记冒烟缺口(上传/交互/财务/退款/创作者)
### Phase 2
- [x] T010 [US1] 创建交互记录(点赞/收藏)
- [x] T011 [US1] 创建退款/对账样例订单
- [x] T012 [US1] 创建租户账本/异常数据
- [x] T013 [US1] 创建创作者审核通过与成员角色
- [x] T014 [US1] 创建上传素材示例数据
### Phase 3
- [x] T020 [US2] 深度 review 冒烟清单覆盖率
## Dependencies
- Phase 1 → Phase 2 → Phase 3。
## Acceptance Criteria
- seed 后冒烟清单所有场景具备至少一条数据支撑。
- 记录残余缺口(如必须手动步骤)。
## Risks
- staging 数据冲突导致重复创建失败。
## Complexity Tracking
无。