| | |
| | | @ApiImplicitParam(name = "code", value = "扫码结果", required = true, dataType = "String"), |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil<Map<String, String>> getDeviceInformation(String code){ |
| | | public ResultUtil<Map<String, String>> getDeviceInformation(@RequestBody String code){ |
| | | /** |
| | | * { |
| | | * "scan_type": 0, // 扫码类型:1000:游戏,1001:课程,1002:场地 |
| | |
| | | return worldCupCompetitorService.count(new QueryWrapper<WorldCupCompetitor>() |
| | | .eq("participantId", studentId).eq("participantType", 1).eq("matchResult", 1)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加社区世界杯 |
| | | * @param worldCup |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/worldCup/addWorldCup") |
| | | public Integer addWorldCup(@RequestBody WorldCup worldCup){ |
| | | worldCupService.save(worldCup); |
| | | return worldCup.getId(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加社区世界杯和门店关系数据 |
| | | * @param worldCupStore |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/worldCup/addWorldCupStore") |
| | | public void addWorldCupStore(@RequestBody WorldCupStore worldCupStore){ |
| | | worldCupStoreService.save(worldCupStore); |
| | | } |
| | | } |