|
@@ -1,5 +1,6 @@
|
|
package com.zanxiang.game.data.serve.controller;
|
|
package com.zanxiang.game.data.serve.controller;
|
|
|
|
|
|
|
|
+import com.zanxiang.erp.security.annotation.PreAuthorize;
|
|
import com.zanxiang.game.data.serve.pojo.dto.*;
|
|
import com.zanxiang.game.data.serve.pojo.dto.*;
|
|
import com.zanxiang.game.data.serve.pojo.vo.*;
|
|
import com.zanxiang.game.data.serve.pojo.vo.*;
|
|
import com.zanxiang.game.data.serve.service.IGameDataService;
|
|
import com.zanxiang.game.data.serve.service.IGameDataService;
|
|
@@ -35,7 +36,7 @@ public class GameDataController {
|
|
private IGameDataService gameDataService;
|
|
private IGameDataService gameDataService;
|
|
|
|
|
|
@ApiOperation(value = "游戏每日数据")
|
|
@ApiOperation(value = "游戏每日数据")
|
|
- //@PreAuthorize(permissionKey = "gameData:adsGameDay:day")
|
|
|
|
|
|
+ @PreAuthorize(permissionKey = "gameData:adsGameDay:day")
|
|
@PostMapping("/day")
|
|
@PostMapping("/day")
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameDataDayVO.class)})
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameDataDayVO.class)})
|
|
public ResultVO<Page<GameDataDayVO>> getGameDataDay(@RequestBody GameDataDayDTO dto) {
|
|
public ResultVO<Page<GameDataDayVO>> getGameDataDay(@RequestBody GameDataDayDTO dto) {
|
|
@@ -43,13 +44,13 @@ public class GameDataController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "h5游戏充值")
|
|
@ApiOperation(value = "h5游戏充值")
|
|
- //@PreAuthorize(permissionKey = "gameData:adsGameDay:h5")
|
|
|
|
|
|
+ @PreAuthorize(permissionKey = "gameData:adsGameDay:h5")
|
|
@PostMapping("/h5")
|
|
@PostMapping("/h5")
|
|
public ResultVO<Page<GameDataH5VO>> getH5Recharge(@RequestBody GameDataH5DTO dto) {
|
|
public ResultVO<Page<GameDataH5VO>> getH5Recharge(@RequestBody GameDataH5DTO dto) {
|
|
return ResultVO.ok(gameDataService.getH5Recharge(dto));
|
|
return ResultVO.ok(gameDataService.getH5Recharge(dto));
|
|
}
|
|
}
|
|
@ApiOperation(value = "游戏总数据")
|
|
@ApiOperation(value = "游戏总数据")
|
|
- //@PreAuthorize(permissionKey = "gameData:adsGameDay:total")
|
|
|
|
|
|
+ @PreAuthorize(permissionKey = "gameData:adsGameDay:total")
|
|
@PostMapping("/total")
|
|
@PostMapping("/total")
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameDataTotalVO.class)})
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameDataTotalVO.class)})
|
|
public ResultVO<Page<GameDataTotalVO>> getGameDataTotal(@RequestBody GameDataTotalDTO dto) {
|
|
public ResultVO<Page<GameDataTotalVO>> getGameDataTotal(@RequestBody GameDataTotalDTO dto) {
|
|
@@ -57,14 +58,14 @@ public class GameDataController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "每日流水贡献")
|
|
@ApiOperation(value = "每日流水贡献")
|
|
-// @PreAuthorize(permissionKey = "gameData:adsGameDay:water")
|
|
|
|
|
|
+ @PreAuthorize(permissionKey = "gameData:adsGameDay:water")
|
|
@PostMapping("/water")
|
|
@PostMapping("/water")
|
|
public ResultVO<Page<GameDataWaterVO>> getGameDataWater(@RequestBody GameDataWaterDTO dto) {
|
|
public ResultVO<Page<GameDataWaterVO>> getGameDataWater(@RequestBody GameDataWaterDTO dto) {
|
|
return ResultVO.ok(gameDataService.getGameDataWater(dto));
|
|
return ResultVO.ok(gameDataService.getGameDataWater(dto));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "游戏每日复充数据")
|
|
@ApiOperation(value = "游戏每日复充数据")
|
|
- //@PreAuthorize(permissionKey = "gameData:adsGameDay:again")
|
|
|
|
|
|
+ @PreAuthorize(permissionKey = "gameData:adsGameDay:again")
|
|
@PostMapping("/again")
|
|
@PostMapping("/again")
|
|
public ResultVO<Map<LocalDate, List<GameDataAgainDayVO>>> getGameDataAgainDay(@RequestBody GameDataAgainDayDTO dto) throws Exception {
|
|
public ResultVO<Map<LocalDate, List<GameDataAgainDayVO>>> getGameDataAgainDay(@RequestBody GameDataAgainDayDTO dto) throws Exception {
|
|
return ResultVO.ok(gameDataService.getGameDataAgainDay(dto));
|
|
return ResultVO.ok(gameDataService.getGameDataAgainDay(dto));
|