|
@@ -1,5 +1,6 @@
|
|
|
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.vo.*;
|
|
|
import com.zanxiang.game.data.serve.service.IPitcherDataService;
|
|
@@ -29,56 +30,56 @@ public class PitcherDataController {
|
|
|
private IPitcherDataService pitcherDataService;
|
|
|
|
|
|
@ApiOperation(value = "投手每日数据")
|
|
|
- //@PreAuthorize(permissionKey = "pitcherData:pitcher:day")
|
|
|
+ @PreAuthorize(permissionKey = "pitcherData:pitcher:day")
|
|
|
@PostMapping("/pitcher/day")
|
|
|
public ResultVO<Page<PitcherDataDayVO>> getPitcherDataDay(@RequestBody PitcherDataDayDTO dto) {
|
|
|
return ResultVO.ok(pitcherDataService.getPitcherDataDay(dto));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "投手每日数据总计")
|
|
|
- //@PreAuthorize(permissionKey = "pitcherData:pitcher:dayTotal")
|
|
|
+ @PreAuthorize(permissionKey = "pitcherData:pitcher:dayTotal")
|
|
|
@PostMapping("/pitcher/day/total")
|
|
|
public ResultVO<PitcherDataDayTotalVO> getPitcherDataDayTotal(@RequestBody PitcherDataDayTotalDTO dto) {
|
|
|
return ResultVO.ok(pitcherDataService.getPitcherDataDayTotal(dto));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "投手总数据")
|
|
|
- //@PreAuthorize(permissionKey = "pitcherData:pitcher:total")
|
|
|
+ @PreAuthorize(permissionKey = "pitcherData:pitcher:total")
|
|
|
@PostMapping("/pitcher/total")
|
|
|
public ResultVO<Page<PitcherDataTotalVO>> getPitcherDataTotal(@RequestBody PitcherDataTotalDTO dto) {
|
|
|
return ResultVO.ok(pitcherDataService.getPitcherDataTotal(dto));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "投手总数据总计")
|
|
|
- //@PreAuthorize(permissionKey = "pitcherData:pitcher:totalSum")
|
|
|
+ @PreAuthorize(permissionKey = "pitcherData:pitcher:totalSum")
|
|
|
@PostMapping("/pitcher/total/sum")
|
|
|
public ResultVO<PitcherDataTotalSumVO> getPitcherDataTotalSum(@RequestBody PitcherDataTotalSumDTO dto) {
|
|
|
return ResultVO.ok(pitcherDataService.getPitcherDataTotalSum(dto));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "投手游戏每日数据")
|
|
|
- //@PreAuthorize(permissionKey = "pitcherData:pitcherGame:day")
|
|
|
+ @PreAuthorize(permissionKey = "pitcherData:pitcherGame:day")
|
|
|
@PostMapping("/pitcherGame/day")
|
|
|
public ResultVO<Page<PitcherGameDataDayVO>> getPitcherGameDataDay(@RequestBody PitcherGameDataDayDTO dto) {
|
|
|
return ResultVO.ok(pitcherDataService.getPitcherGameDataDay(dto));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "投手游戏每日数据总计")
|
|
|
- //@PreAuthorize(permissionKey = "pitcherData:pitcherGame:dayTotal")
|
|
|
+ @PreAuthorize(permissionKey = "pitcherData:pitcherGame:dayTotal")
|
|
|
@PostMapping("/pitcherGame/day/total")
|
|
|
public ResultVO<PitcherGameDataDayTotalVO> getPitcherGameDataDayTotal(@RequestBody PitcherGameDataDayTotalDTO dto) {
|
|
|
return ResultVO.ok(pitcherDataService.getPitcherGameDataDayTotal(dto));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "投手游戏总数据")
|
|
|
- //@PreAuthorize(permissionKey = "pitcherData:pitcherGame:total")
|
|
|
+ @PreAuthorize(permissionKey = "pitcherData:pitcherGame:total")
|
|
|
@PostMapping("/pitcherGame/total")
|
|
|
public ResultVO<Page<PitcherGameDataTotalVO>> getPitcherGameDataTotal(@RequestBody PitcherGameDataTotalDTO dto) {
|
|
|
return ResultVO.ok(pitcherDataService.getPitcherGameDataTotal(dto));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "投手游戏总数据总计")
|
|
|
- //@PreAuthorize(permissionKey = "pitcherData:pitcherGame:totalSum")
|
|
|
+ @PreAuthorize(permissionKey = "pitcherData:pitcherGame:totalSum")
|
|
|
@PostMapping("/pitcherGame/total/sum")
|
|
|
public ResultVO<PitcherGameDataTotalSumVO> getPitcherGameDataTotalSum(@RequestBody PitcherGameDataTotalSumDTO dto) {
|
|
|
return ResultVO.ok(pitcherDataService.getPitcherGameDataTotalSum(dto));
|