chore: record journal
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
<!-- @@@auto:current-status -->
|
||||
- **Active File**: `journal-1.md`
|
||||
- **Total Sessions**: 4
|
||||
- **Total Sessions**: 5
|
||||
- **Last Active**: 2026-04-13
|
||||
<!-- @@@/auto:current-status -->
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<!-- @@@auto:active-documents -->
|
||||
| File | Lines | Status |
|
||||
|------|-------|--------|
|
||||
| `journal-1.md` | ~221 | Active |
|
||||
| `journal-1.md` | ~276 | Active |
|
||||
<!-- @@@/auto:active-documents -->
|
||||
|
||||
---
|
||||
@@ -29,6 +29,7 @@
|
||||
<!-- @@@auto:session-history -->
|
||||
| # | Date | Title | Commits |
|
||||
|---|------|-------|---------|
|
||||
| 5 | 2026-04-13 | feat: 邀请码显示功能 - 后端API + 前端对接 | - |
|
||||
| 4 | 2026-04-13 | 绑定积分重注册余额恢复提交 | `c55be6d` |
|
||||
| 3 | 2026-04-13 | 积分重注册余额恢复验证 | - |
|
||||
| 2 | 2026-04-10 | 静态通知同步 + 积分审计 bug 修复 | `3f3d613` |
|
||||
|
||||
@@ -219,3 +219,58 @@
|
||||
### Next Steps
|
||||
|
||||
- None - task complete
|
||||
|
||||
|
||||
## Session 5: feat: 邀请码显示功能 - 后端API + 前端对接
|
||||
|
||||
**Date**: 2026-04-13
|
||||
**Task**: feat: 邀请码显示功能 - 后端API + 前端对接
|
||||
|
||||
### Summary
|
||||
|
||||
(Add summary)
|
||||
|
||||
### Main Changes
|
||||
|
||||
## Backend 新增 (src/v1/invite/)
|
||||
|
||||
| 文件 | 描述 |
|
||||
|------|------|
|
||||
| schemas.py | `MyInviteCodeResponse` (code, used_count) |
|
||||
| repository.py | `InviteCodeRepository.get_by_owner_id()` |
|
||||
| service.py | `InviteCodeService.get_my_invite_code()` |
|
||||
| dependencies.py | 依赖注入 |
|
||||
| router.py | `GET /api/v1/invite/me` |
|
||||
|
||||
修改: `src/v1/router.py` - 注册 invite_router
|
||||
|
||||
## Frontend 新增/修改 (apps/lib/features/settings/)
|
||||
|
||||
新增:
|
||||
- `data/models/my_invite_code.dart` - `MyInviteCode` 数据模型
|
||||
- `data/apis/invite_api.dart` - API 调用
|
||||
- `data/repositories/invite_repository.dart` - Repository 封装
|
||||
|
||||
修改:
|
||||
- `invite_screen.dart` - 移除 mock 数据,改为调用真实 API,增加 loading/error 状态
|
||||
- `settings_screen.dart` - 接收 `InviteRepository` 参数
|
||||
- `home_screen.dart` - 创建并传递 `InviteRepository` 实例
|
||||
|
||||
**验证**: ruff check ✅ / flutter analyze ✅
|
||||
|
||||
|
||||
### Git Commits
|
||||
|
||||
(No commits - planning session)
|
||||
|
||||
### Testing
|
||||
|
||||
- [OK] (Add test results)
|
||||
|
||||
### Status
|
||||
|
||||
[OK] **Completed**
|
||||
|
||||
### Next Steps
|
||||
|
||||
- None - task complete
|
||||
|
||||
Reference in New Issue
Block a user