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