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