feat(#4): 后台抽奖记录列表 GET /admin/lottery/draws

- 分页列出 lottery_draw,join 奖品快照 + 用户邮箱 + 发放账本(grant_ledger)
- 支持 activity/user/win/dispatch_state/prize_type/时间窗过滤
- 展示中奖人/奖品/发放状态/发放结果(如"已新建订阅并加 30 天")

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-16 23:36:53 -07:00
parent 58c346abec
commit e8e3a3a72b
5 changed files with 275 additions and 0 deletions
@@ -72,3 +72,14 @@ func LotteryClaimsSummaryHandler(svcCtx *svc.ServiceContext) func(c *gin.Context
result.HttpResult(c, resp, err)
}
}
// ListLotteryDrawsHandler GET /v1/admin/lottery/draws
func ListLotteryDrawsHandler(svcCtx *svc.ServiceContext) func(c *gin.Context) {
return func(c *gin.Context) {
var req types.ListAdminLotteryDrawsRequest
_ = c.ShouldBind(&req)
l := adminlottery.NewListLotteryDrawsLogic(c.Request.Context(), svcCtx)
resp, err := l.ListLotteryDraws(&req)
result.HttpResult(c, resp, err)
}
}