|
@@ -1,16 +1,25 @@
|
|
|
package com.zanxiang.game.data.serve.controller;
|
|
|
|
|
|
import com.zanxiang.erp.security.annotation.PreAuthorize;
|
|
|
+import com.zanxiang.game.data.serve.pojo.dto.AdsAccountRechargeRankingListDTO;
|
|
|
+import com.zanxiang.game.data.serve.pojo.dto.AdsAgentRechargeRankingListDTO;
|
|
|
import com.zanxiang.game.data.serve.pojo.dto.GamePromoteDayDTO;
|
|
|
import com.zanxiang.game.data.serve.pojo.dto.RechargeRankingDTO;
|
|
|
+import com.zanxiang.game.data.serve.pojo.vo.AdsAccountRechargeRankingVO;
|
|
|
+import com.zanxiang.game.data.serve.pojo.vo.AdsAgentRechargeRankingVO;
|
|
|
import com.zanxiang.game.data.serve.pojo.vo.GameRechargeRankingVO;
|
|
|
import com.zanxiang.game.data.serve.pojo.vo.PlayerRechargeRankingVO;
|
|
|
+import com.zanxiang.game.data.serve.service.IAdsAccountRechargeRankingService;
|
|
|
+import com.zanxiang.game.data.serve.service.IAdsAgentRechargeRankingService;
|
|
|
import com.zanxiang.game.data.serve.service.IRankingService;
|
|
|
import com.zanxiang.game.data.serve.utils.Page;
|
|
|
import com.zanxiang.module.util.pojo.ResultVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiResponse;
|
|
|
+import io.swagger.annotations.ApiResponses;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -23,6 +32,11 @@ public class RankingController {
|
|
|
@Autowired
|
|
|
private IRankingService rankingService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IAdsAccountRechargeRankingService adsAccountRechargeRankingService;
|
|
|
+ @Autowired
|
|
|
+ private IAdsAgentRechargeRankingService adsAgentRechargeRankingService;
|
|
|
+
|
|
|
@ApiOperation(value = "游戏充值排行榜")
|
|
|
@PreAuthorize(permissionKey = "gameData:ranking:game")
|
|
|
@PostMapping("/game")
|
|
@@ -36,4 +50,20 @@ public class RankingController {
|
|
|
public ResultVO<Page<PlayerRechargeRankingVO>> playerRanking(@RequestBody RechargeRankingDTO dto) {
|
|
|
return ResultVO.ok(rankingService.playerRanking(dto));
|
|
|
}
|
|
|
+
|
|
|
+ @PreAuthorize(permissionKey = "gameData:ranking:agent")
|
|
|
+ @ApiOperation(value = "推广渠道充值排行榜")
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = AdsAgentRechargeRankingVO.class)})
|
|
|
+ @PostMapping("/agent")
|
|
|
+ public ResultVO<Page<AdsAgentRechargeRankingVO>> list(@Validated @RequestBody AdsAgentRechargeRankingListDTO dto) {
|
|
|
+ return ResultVO.ok(adsAgentRechargeRankingService.listOfPage(dto));
|
|
|
+ }
|
|
|
+
|
|
|
+ @PreAuthorize(permissionKey = "gameData:ranking:account")
|
|
|
+ @ApiOperation(value = "推广账号充值排行榜")
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = AdsAccountRechargeRankingVO.class)})
|
|
|
+ @PostMapping("/account")
|
|
|
+ public ResultVO<Page<AdsAccountRechargeRankingVO>> list(@Validated @RequestBody AdsAccountRechargeRankingListDTO dto) {
|
|
|
+ return ResultVO.ok(adsAccountRechargeRankingService.listOfPage(dto));
|
|
|
+ }
|
|
|
}
|