feat(#4): 删除抽奖活动接口 DELETE /admin/lottery/activities/:id

- 软删活动 + 硬删其奖品(同事务)+ 审计日志
- 运行中的活动禁止删除(需先暂停)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-17 00:16:34 -07:00
parent e8e3a3a72b
commit 13bafd5847
4 changed files with 71 additions and 0 deletions
+4
View File
@@ -43,6 +43,10 @@ service ppanel {
@handler UpdateLotteryRules
put /activities/rules (UpdateAdminLotteryRulesRequest)
@doc "Delete activity (soft-delete; running must be paused first)"
@handler DeleteLotteryActivity
delete /activities/:id (AdminActivityIdRequest)
@doc "Create prize"
@handler CreateLotteryPrize
post /prizes (CreateAdminLotteryPrizeRequest) returns (AdminLotteryPrize)