|
@@ -7,10 +7,6 @@ import com.zanxiang.game.data.serve.service.IActiveDataService;
|
|
|
import com.zanxiang.game.data.serve.service.IGameDataService;
|
|
import com.zanxiang.game.data.serve.service.IGameDataService;
|
|
|
import com.zanxiang.game.data.serve.utils.Page;
|
|
import com.zanxiang.game.data.serve.utils.Page;
|
|
|
import com.zanxiang.module.util.pojo.ResultVO;
|
|
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 lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -27,7 +23,6 @@ import java.util.Map;
|
|
|
* @time 2023/7/12
|
|
* @time 2023/7/12
|
|
|
* @Description 游戏数据控制层接口
|
|
* @Description 游戏数据控制层接口
|
|
|
**/
|
|
**/
|
|
|
-@Api(tags = {"游戏数据"})
|
|
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequestMapping("/gameData")
|
|
@RequestMapping("/gameData")
|
|
|
@Slf4j
|
|
@Slf4j
|
|
@@ -38,142 +33,119 @@ public class GameDataController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IActiveDataService activeDataService;
|
|
private IActiveDataService activeDataService;
|
|
|
|
|
|
|
|
- @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)})
|
|
|
|
|
public ResultVO<Page<GameDataDayVO>> getGameDataDay(@RequestBody GameDataDayDTO dto) {
|
|
public ResultVO<Page<GameDataDayVO>> getGameDataDay(@RequestBody GameDataDayDTO dto) {
|
|
|
return ResultVO.ok(gameDataService.getGameDataDay(dto));
|
|
return ResultVO.ok(gameDataService.getGameDataDay(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "游戏每日数据总计")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:dayTotal")
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:dayTotal")
|
|
|
@PostMapping("/day/total")
|
|
@PostMapping("/day/total")
|
|
|
- @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameDataDayVO.class)})
|
|
|
|
|
public ResultVO<GameDataDayTotalVO> getGameDataDay(@RequestBody GameDataDayTotalDTO dto) {
|
|
public ResultVO<GameDataDayTotalVO> getGameDataDay(@RequestBody GameDataDayTotalDTO dto) {
|
|
|
return ResultVO.ok(gameDataService.getGameDataDayTotal(dto));
|
|
return ResultVO.ok(gameDataService.getGameDataDayTotal(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @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)})
|
|
|
|
|
public ResultVO<Page<GameDataTotalVO>> getGameDataTotal(@RequestBody GameDataTotalDTO dto) {
|
|
public ResultVO<Page<GameDataTotalVO>> getGameDataTotal(@RequestBody GameDataTotalDTO dto) {
|
|
|
return ResultVO.ok(gameDataService.getGameDataTotal(dto));
|
|
return ResultVO.ok(gameDataService.getGameDataTotal(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "游戏总数据总计")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:totalSum")
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:totalSum")
|
|
|
@PostMapping("/total/sum")
|
|
@PostMapping("/total/sum")
|
|
|
public ResultVO<GameDataTotalTotalVO> getGameDataTotalTotal(@RequestBody GameDataTotalTotalDTO dto) {
|
|
public ResultVO<GameDataTotalTotalVO> getGameDataTotalTotal(@RequestBody GameDataTotalTotalDTO dto) {
|
|
|
return ResultVO.ok(gameDataService.getGameDataTotalTotal(dto));
|
|
return ResultVO.ok(gameDataService.getGameDataTotalTotal(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @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 = "每日流水贡献")
|
|
|
|
|
@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 = "游戏每日复充数据")
|
|
|
|
|
@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));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "LTV数据")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:ltv")
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:ltv")
|
|
|
@PostMapping("/ltv")
|
|
@PostMapping("/ltv")
|
|
|
public ResultVO<Page<LtvDataVO>> getLtvData(@RequestBody LtvDataDTO dto) {
|
|
public ResultVO<Page<LtvDataVO>> getLtvData(@RequestBody LtvDataDTO dto) {
|
|
|
return ResultVO.ok(gameDataService.getLtvData(dto));
|
|
return ResultVO.ok(gameDataService.getLtvData(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "LTV数据总计一栏")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:ltvTotal")
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:ltvTotal")
|
|
|
@PostMapping("/ltv/total")
|
|
@PostMapping("/ltv/total")
|
|
|
public ResultVO<LtvDataTotalVO> getLtvDataTotal(@RequestBody LtvDataTotalDTO dto) {
|
|
public ResultVO<LtvDataTotalVO> getLtvDataTotal(@RequestBody LtvDataTotalDTO dto) {
|
|
|
return ResultVO.ok(gameDataService.getLtvTotalData(dto));
|
|
return ResultVO.ok(gameDataService.getLtvTotalData(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "游戏首日复充")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:firstNewUserAgain")
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:firstNewUserAgain")
|
|
|
@PostMapping("/firstNewUser/again")
|
|
@PostMapping("/firstNewUser/again")
|
|
|
public ResultVO<Page<GameDataFirstNewUserAgainVO>> getFirstNewUserAgain(@RequestBody GameDataFirstNewUserAgainDTO dto) {
|
|
public ResultVO<Page<GameDataFirstNewUserAgainVO>> getFirstNewUserAgain(@RequestBody GameDataFirstNewUserAgainDTO dto) {
|
|
|
return ResultVO.ok(gameDataService.getFirstNewUserAgain(dto));
|
|
return ResultVO.ok(gameDataService.getFirstNewUserAgain(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "游戏首日复充总计")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:firstNewUserAgainTotal")
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:firstNewUserAgainTotal")
|
|
|
@PostMapping("/firstNewUser/again/total")
|
|
@PostMapping("/firstNewUser/again/total")
|
|
|
public ResultVO<GameDataFirstNewUserAgainTotalVO> getFirstNewUserAgainTotal(@RequestBody GameDataFirstNewUserAgainTotalDTO dto) {
|
|
public ResultVO<GameDataFirstNewUserAgainTotalVO> getFirstNewUserAgainTotal(@RequestBody GameDataFirstNewUserAgainTotalDTO dto) {
|
|
|
return ResultVO.ok(gameDataService.getFirstNewUserAgainTotal(dto));
|
|
return ResultVO.ok(gameDataService.getFirstNewUserAgainTotal(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "用户详情")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:userDetails")
|
|
@PreAuthorize(permissionKey = "gameData:adsGameDay:userDetails")
|
|
|
@PostMapping("/user/details")
|
|
@PostMapping("/user/details")
|
|
|
public ResultVO<Page<GameDataUserDetailsVO>> getUserDetails(@RequestBody GameDataUserDetailsDTO dto) {
|
|
public ResultVO<Page<GameDataUserDetailsVO>> getUserDetails(@RequestBody GameDataUserDetailsDTO dto) {
|
|
|
return ResultVO.ok(gameDataService.getUserDetails(dto));
|
|
return ResultVO.ok(gameDataService.getUserDetails(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "留存数据")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:activeDay:activeDay")
|
|
@PreAuthorize(permissionKey = "gameData:activeDay:activeDay")
|
|
|
@PostMapping("/activeData/day")
|
|
@PostMapping("/activeData/day")
|
|
|
public ResultVO<Page<ActiveDataDayVO>> getActiveDataDay(@RequestBody ActiveDataDayDTO dto) {
|
|
public ResultVO<Page<ActiveDataDayVO>> getActiveDataDay(@RequestBody ActiveDataDayDTO dto) {
|
|
|
return ResultVO.ok(activeDataService.getActiveDataDay(dto));
|
|
return ResultVO.ok(activeDataService.getActiveDataDay(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "留存数据总计")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:activeDay:activeTotal")
|
|
@PreAuthorize(permissionKey = "gameData:activeDay:activeTotal")
|
|
|
@PostMapping("/activeData/total")
|
|
@PostMapping("/activeData/total")
|
|
|
public ResultVO<ActiveDataTotalVO> getActiveDataTotal(@RequestBody ActiveDataTotalDTO dto) {
|
|
public ResultVO<ActiveDataTotalVO> getActiveDataTotal(@RequestBody ActiveDataTotalDTO dto) {
|
|
|
return ResultVO.ok(activeDataService.getActiveDataTotal(dto));
|
|
return ResultVO.ok(activeDataService.getActiveDataTotal(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "留存数据-月")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:activeData:activeMonth")
|
|
@PreAuthorize(permissionKey = "gameData:activeData:activeMonth")
|
|
|
@PostMapping("/activeData/month")
|
|
@PostMapping("/activeData/month")
|
|
|
public ResultVO<Page<ActiveDataMonthVO>> getActiveDataMonth(@RequestBody ActiveDataDayDTO dto) {
|
|
public ResultVO<Page<ActiveDataMonthVO>> getActiveDataMonth(@RequestBody ActiveDataDayDTO dto) {
|
|
|
return ResultVO.ok(activeDataService.getActiveDataMonth(dto));
|
|
return ResultVO.ok(activeDataService.getActiveDataMonth(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "留存数据-月总计")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:activeData:activeMonthTotal")
|
|
@PreAuthorize(permissionKey = "gameData:activeData:activeMonthTotal")
|
|
|
@PostMapping("/activeData/monthTotal")
|
|
@PostMapping("/activeData/monthTotal")
|
|
|
public ResultVO<ActiveDataMonthTotalVO> getActiveMonthDataTotal(@RequestBody ActiveDataTotalDTO dto) {
|
|
public ResultVO<ActiveDataMonthTotalVO> getActiveMonthDataTotal(@RequestBody ActiveDataTotalDTO dto) {
|
|
|
return ResultVO.ok(activeDataService.getActiveMonthDataTotal(dto));
|
|
return ResultVO.ok(activeDataService.getActiveMonthDataTotal(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "游戏媒体留存数据")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:media:activeDay")
|
|
@PreAuthorize(permissionKey = "gameData:media:activeDay")
|
|
|
@PostMapping("/mediaActiveData/day")
|
|
@PostMapping("/mediaActiveData/day")
|
|
|
public ResultVO<Page<MediaActiveDataDayVO>> getMediaActiveDataDay(@RequestBody MediaActiveDataDayDTO dto) {
|
|
public ResultVO<Page<MediaActiveDataDayVO>> getMediaActiveDataDay(@RequestBody MediaActiveDataDayDTO dto) {
|
|
|
return ResultVO.ok(activeDataService.getMediaActiveDataDay(dto));
|
|
return ResultVO.ok(activeDataService.getMediaActiveDataDay(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "游戏媒体留存数据总计")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:media:activeTotal")
|
|
@PreAuthorize(permissionKey = "gameData:media:activeTotal")
|
|
|
@PostMapping("/mediaActiveData/total")
|
|
@PostMapping("/mediaActiveData/total")
|
|
|
public ResultVO<MediaActiveDataTotalVO> getMediaActiveDataTotal(@RequestBody MediaActiveDataDayDTO dto) {
|
|
public ResultVO<MediaActiveDataTotalVO> getMediaActiveDataTotal(@RequestBody MediaActiveDataDayDTO dto) {
|
|
|
return ResultVO.ok(activeDataService.getMediaActiveDataTotal(dto));
|
|
return ResultVO.ok(activeDataService.getMediaActiveDataTotal(dto));
|
|
|
}
|
|
}
|
|
|
- @ApiOperation(value = "流水监控")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:flow:monitor")
|
|
@PreAuthorize(permissionKey = "gameData:flow:monitor")
|
|
|
@PostMapping("/flow/monitor")
|
|
@PostMapping("/flow/monitor")
|
|
|
public ResultVO<Page<FlowMonitorVO>> getFlowMonitor(@RequestBody FlowMonitorDTO dto) {
|
|
public ResultVO<Page<FlowMonitorVO>> getFlowMonitor(@RequestBody FlowMonitorDTO dto) {
|
|
|
return ResultVO.ok(gameDataService.getFlowMonitor(dto));
|
|
return ResultVO.ok(gameDataService.getFlowMonitor(dto));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "流水监控总计")
|
|
|
|
|
@PreAuthorize(permissionKey = "gameData:flow:monitorCount")
|
|
@PreAuthorize(permissionKey = "gameData:flow:monitorCount")
|
|
|
@PostMapping("/flow/monitorCount")
|
|
@PostMapping("/flow/monitorCount")
|
|
|
public ResultVO<FlowMonitorCountVo> getFlowMonitorCount(@RequestBody FlowMonitorDTO dto) {
|
|
public ResultVO<FlowMonitorCountVo> getFlowMonitorCount(@RequestBody FlowMonitorDTO dto) {
|