Files
jiang13-forum/docs/rebuild-spec/plans/admin-badges.md
freefire 0c5fe8a1b4 feat: Admin 徽章定义 CRUD 与限定颁发收回
SSR /admin/badges 复用 UpsertDef/AwardLimited/Revoke,并新增 DeleteDef;指针指向 media。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 03:42:41 +08:00

23 lines
775 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.
# Admin 徽章管理SSR— 实现计划
> 状态已完成SSR `/admin/badges`
> 分支:`rebuild/gitea-ssr`
## 范围
| 能力 | 服务 | 路由 |
|------|------|------|
| 列表(含停用) | `BadgeService.ListDefs(true)` | `GET /admin/badges` |
| 创建/更新定义 | `UpsertDef` | `POST /admin/badges``POST /admin/badges/:id` |
| 删除定义 | `DeleteDef`(清 `user_badges` | `POST /admin/badges/:id/delete` |
| 颁发限定 | `AwardLimited` | `POST /admin/badges/award` |
| 收回 | `Revoke` | `POST /admin/badges/revoke` |
## 不做
自动徽章规则引擎调度 UIP2服务层 `EvaluateAuto` 仍可被触发)、等级设定。
## 验证
`build.bat`;冒烟:创建限定徽章 → 颁发给用户 → 收回 → 删除。