|
|
@ -35,9 +35,10 @@ public class ClientController { |
|
|
|
@ApiImplicitParams({ |
|
|
|
}) |
|
|
|
@RequestMapping(value = "groupMembers", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse<ClientVo.RankingAll> groupMembers(@ApiParam @Validated @RequestBody QueryDto<ClientDto.GroupRanking> params) throws Exception { |
|
|
|
public JsonResponse<PageInfo<ClientVo.MemberInfo>> groupMembers(@ApiParam @Validated @RequestBody QueryDto<ClientDto.GroupRanking> params) throws Exception { |
|
|
|
log.info("查看组内排行榜:{}",params); |
|
|
|
PageInfo<ClientVo.MemberInfo> rankingAll = clientService.groupMembers(params.getParam()); |
|
|
|
log.info("查询组内排行榜结束"); |
|
|
|
return JsonResponse.newInstance().ok(rankingAll); |
|
|
|
} |
|
|
|
|
|
|
@ -48,6 +49,7 @@ public class ClientController { |
|
|
|
public JsonResponse<ClientVo.RankingAll> members(@ApiParam @Validated @RequestBody QueryDto<ClientDto.GatRanking> params) throws Exception { |
|
|
|
log.info("查看全部排行榜:{}",params); |
|
|
|
ClientVo.RankingAll rankingAll = clientService.getRankingAll(params); |
|
|
|
log.info("查询排行榜结束"); |
|
|
|
return JsonResponse.newInstance().ok(rankingAll); |
|
|
|
} |
|
|
|
|
|
|
@ -59,6 +61,7 @@ public class ClientController { |
|
|
|
public JsonResponse<ClientVo.Join> joinGame(@ApiParam @Validated @RequestBody QueryDto<ClientDto.Join> params) throws Exception { |
|
|
|
log.info("参加游戏:{}",params); |
|
|
|
ClientVo.Join join = clientService.join(params.getParam(), params.getUserId()); |
|
|
|
log.info("参加游戏结果:{}", join); |
|
|
|
return JsonResponse.newInstance().ok(join); |
|
|
|
} |
|
|
|
|
|
|
@ -68,7 +71,6 @@ public class ClientController { |
|
|
|
@RequestMapping(value = "activityRule", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse<List<String>> getGameActivityRule(@ApiParam @RequestParam Long recordId) throws Exception { |
|
|
|
log.info("获取游戏规则:{}",recordId); |
|
|
|
|
|
|
|
List<String> gameActivityRule = screenService.getGameActivityRule(screenService.getGameTypeId(recordId)); |
|
|
|
return JsonResponse.newInstance().ok(gameActivityRule); |
|
|
|
} |
|
|
@ -100,6 +102,7 @@ public class ClientController { |
|
|
|
public JsonResponse<List<ScreenVo.Group>> getGroupByRecordId(@ApiParam @RequestParam Long recordId) throws Exception { |
|
|
|
log.info("根据游戏id获取分组信息:{}",recordId); |
|
|
|
List<ScreenVo.Group> groupList = screenService.getGroupByRecordId(recordId); |
|
|
|
log.info("分组查询结束"); |
|
|
|
return JsonResponse.newInstance().ok(groupList); |
|
|
|
} |
|
|
|
|
|
|
@ -108,8 +111,9 @@ public class ClientController { |
|
|
|
}) |
|
|
|
@RequestMapping(value = "task", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse<ScreenVo.RecordInfo> getRecordByTaskId(@ApiParam @RequestParam Long taskId,String gameType) throws Exception { |
|
|
|
log.info("根据游戏id获取分组信息:{}",taskId); |
|
|
|
log.info("根据任务id获取游戏记录id:{}",taskId); |
|
|
|
ScreenVo.RecordInfo recordInfo = screenService.getRecordByTaskId(taskId,gameType); |
|
|
|
log.info("游戏信息:{}", recordInfo); |
|
|
|
return JsonResponse.newInstance().ok(recordInfo); |
|
|
|
} |
|
|
|
} |
|
|
|