19 changed files with 247 additions and 81 deletions
@ -1,12 +1,37 @@ |
|||
package com.ccsens.game.api; |
|||
|
|||
import com.ccsens.game.bean.dto.ClientDto; |
|||
import com.ccsens.game.bean.dto.ScreenDto; |
|||
import com.ccsens.game.bean.vo.ClientVo; |
|||
import com.ccsens.game.service.IClientService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
@Slf4j |
|||
@Api(tags = "客户端相关api" , description = "ClientController") |
|||
@RestController |
|||
@RequestMapping("/client") |
|||
public class ClientController { |
|||
@Autowired |
|||
private IClientService clientService; |
|||
|
|||
@ApiOperation(value = "查看全部排行榜", notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "members", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<ClientVo.RankingAll> startAgain(@ApiParam @Validated @RequestBody QueryDto<ClientDto.GatRanking> params) throws Exception { |
|||
log.info("查看全部排行榜:{}",params); |
|||
ClientVo.RankingAll rankingAll = clientService.getRankingAll(params); |
|||
return JsonResponse.newInstance().ok(rankingAll); |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue