123
This commit is contained in:
@@ -82,8 +82,10 @@ public class DrawController {
|
||||
|
||||
@GetMapping("/lottery")
|
||||
@Operation(summary = "抽奖接口")
|
||||
public R<Void> lottery(){
|
||||
return R.ok();
|
||||
public R<PrizeOnlineResp> lottery(){
|
||||
PrizeOnline draw = lotteryService.draw(LoginHelper.getUserId());
|
||||
PrizeOnlineResp resp = BeanConvertUtil.convertTo(draw, PrizeOnlineResp::new);
|
||||
return R.ok(resp);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user