(svc service.LotteryDrawService)
| 15 | } |
| 16 | |
| 17 | func NewLotteryDrawHandler(svc service.LotteryDrawService) *LotteryDrawHandler { |
| 18 | return &LotteryDrawHandler{ |
| 19 | svc: svc, |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | // RegisterRoutes 注册抽奖和秒杀的路由 |
| 24 | func (lh *LotteryDrawHandler) RegisterRoutes(server *gin.Engine) { |