抽奖 获取抽奖次数
This commit is contained in:
parent
436c2afcd7
commit
5ea41773c7
|
|
@ -124,12 +124,10 @@ public class DiscSpinningController {
|
|||
|
||||
@Login
|
||||
@GetMapping("/app/discSpinning/drawCount")
|
||||
@ApiOperation("获取大转盘抽奖机会")
|
||||
@ApiResponse(code = 200, message = "" +
|
||||
"{\n" +
|
||||
"\t\"sum\":总抽奖次数,\n" +
|
||||
"\t\"count\":可抽奖次数\n" +
|
||||
"}", response = Map.class)
|
||||
@ApiOperation("获取大转盘抽奖次数")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = 200, message = "{\"sum\":\"总抽奖次数\",\"count\":\"剩余抽奖次数\"}"),
|
||||
})
|
||||
public Result drawCount(@RequestAttribute("userId") Long userId) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
int drawCount = Integer.parseInt(commonRepository.findOne(901).getValue());
|
||||
|
|
|
|||
Loading…
Reference in New Issue