123
This commit is contained in:
@@ -48,6 +48,14 @@ public class DrawController {
|
|||||||
return R.ok(resp);
|
return R.ok(resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/prize/up")
|
||||||
|
@Operation(summary = "获取奖品列表")
|
||||||
|
public R<List<PrizeOnlineResp>> prizeUp(){
|
||||||
|
List<PrizeOnline> prizeOnlines = prizeOnlineService.prizeUp();
|
||||||
|
List<PrizeOnlineResp> resp = BeanConvertUtil.convertListTo(prizeOnlines, PrizeOnlineResp::new);
|
||||||
|
return R.ok(resp);
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/winning/record")
|
@GetMapping("/winning/record")
|
||||||
@Operation(summary = "获取自己的中奖记录")
|
@Operation(summary = "获取自己的中奖记录")
|
||||||
public R<List<UserWinningRecordResp>> winningRecord(PageQuery page){
|
public R<List<UserWinningRecordResp>> winningRecord(PageQuery page){
|
||||||
@@ -59,14 +67,6 @@ public class DrawController {
|
|||||||
return R.ok(resps);
|
return R.ok(resps);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/prize/up")
|
|
||||||
@Operation(summary = "获取奖品列表")
|
|
||||||
public R<List<PrizeOnlineResp>> prizeUp(){
|
|
||||||
List<PrizeOnline> prizeOnlines = prizeOnlineService.prizeUp();
|
|
||||||
List<PrizeOnlineResp> resp = BeanConvertUtil.convertListTo(prizeOnlines, PrizeOnlineResp::new);
|
|
||||||
return R.ok(resp);
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/winning/center")
|
@GetMapping("/winning/center")
|
||||||
@Operation(summary = "全局中奖记录")
|
@Operation(summary = "全局中奖记录")
|
||||||
public R<List<CenterWinningRecordResp>> winningCenter(){
|
public R<List<CenterWinningRecordResp>> winningCenter(){
|
||||||
|
|||||||
Reference in New Issue
Block a user