|
@@ -14,101 +14,44 @@ import org.springframework.web.bind.annotation.*;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
-@RequestMapping("/game/back")
|
|
|
|
|
|
+@RequestMapping("/policy")
|
|
@Api("回传策略")
|
|
@Api("回传策略")
|
|
public class BackPolicyController {
|
|
public class BackPolicyController {
|
|
@Autowired
|
|
@Autowired
|
|
private IGameBackPolicyService gameBackPolicyService;
|
|
private IGameBackPolicyService gameBackPolicyService;
|
|
- @Autowired
|
|
|
|
- private IGameTencentUserService tencentUserService;
|
|
|
|
- @Autowired
|
|
|
|
- private IGameTencentOrderService tencentOrderService;
|
|
|
|
- @Autowired
|
|
|
|
- private IGameOceanengineOrderLogService oceanengineOrderLogService;
|
|
|
|
- @Autowired
|
|
|
|
- private IGameOceanengineUserLogService oceanengineUserLogService;
|
|
|
|
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:policy:create")
|
|
|
|
- @PostMapping("/policy/create")
|
|
|
|
|
|
+ @ApiOperation(value = "创建回传策略")
|
|
|
|
+ @PreAuthorize(permissionKey = "gameBack:policy:allOfUser")
|
|
|
|
+ @GetMapping("/allOfUser")
|
|
|
|
+ public ResultVO<List<GameBackPolicyVO>> allOfUser() {
|
|
|
|
+ return ResultVO.ok(gameBackPolicyService.allOfUser());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // @PreAuthorize(permissionKey = "gameBack:policy:list")
|
|
|
|
+ @PostMapping("/list")
|
|
|
|
+ @ApiOperation(value = "回传策略列表")
|
|
|
|
+ public ResultVO<IPage<GameBackPolicyVO>> policyList(@RequestBody GameBackPolicyListDTO dto) {
|
|
|
|
+ return ResultVO.ok(gameBackPolicyService.policyList(dto));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // @PreAuthorize(permissionKey = "gameBack:policy:create")
|
|
|
|
+ @PostMapping("/create")
|
|
@ApiOperation(value = "创建回传策略")
|
|
@ApiOperation(value = "创建回传策略")
|
|
public ResultVO<Boolean> createPolicy(@RequestBody GameBackPolicyDTO dto) {
|
|
public ResultVO<Boolean> createPolicy(@RequestBody GameBackPolicyDTO dto) {
|
|
return ResultVO.ok(gameBackPolicyService.createPolicy(dto));
|
|
return ResultVO.ok(gameBackPolicyService.createPolicy(dto));
|
|
}
|
|
}
|
|
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:policy:update")
|
|
|
|
- @PostMapping("/policy/update")
|
|
|
|
|
|
+ // @PreAuthorize(permissionKey = "gameBack:policy:update")
|
|
|
|
+ @PostMapping("/update")
|
|
@ApiOperation(value = "修改回传策略")
|
|
@ApiOperation(value = "修改回传策略")
|
|
public ResultVO<Boolean> updatePolicy(@RequestBody GameBackPolicyDTO dto) {
|
|
public ResultVO<Boolean> updatePolicy(@RequestBody GameBackPolicyDTO dto) {
|
|
return ResultVO.ok(gameBackPolicyService.updatePolicy(dto));
|
|
return ResultVO.ok(gameBackPolicyService.updatePolicy(dto));
|
|
}
|
|
}
|
|
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:policy:delete")
|
|
|
|
- @PostMapping("/policy/delete/{ids}")
|
|
|
|
|
|
+ // @PreAuthorize(permissionKey = "gameBack:policy:delete")
|
|
|
|
+ @PostMapping("/delete/{ids}")
|
|
@ApiOperation(value = "删除回传策略")
|
|
@ApiOperation(value = "删除回传策略")
|
|
public ResultVO<Boolean> deletePolicy(@PathVariable("ids") List<Long> ids) {
|
|
public ResultVO<Boolean> deletePolicy(@PathVariable("ids") List<Long> ids) {
|
|
return ResultVO.ok(gameBackPolicyService.deletePolicy(ids));
|
|
return ResultVO.ok(gameBackPolicyService.deletePolicy(ids));
|
|
}
|
|
}
|
|
-
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:policy:list")
|
|
|
|
- @PostMapping("/policy/list")
|
|
|
|
- @ApiOperation(value = "回传策略列表")
|
|
|
|
- public ResultVO<IPage<GameBackPolicyVO>> policyList(@RequestBody GameBackPolicyListDTO dto) {
|
|
|
|
- return ResultVO.ok(gameBackPolicyService.policyList(dto));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:tencent:orderLogs")
|
|
|
|
- @PostMapping("/tencent/orderLogs")
|
|
|
|
- @ApiOperation(value = "腾讯订单回传日志列表")
|
|
|
|
- public ResultVO<IPage<GameTencentOrderVO>> tencentOrderLogList(@RequestBody GameTencentOrderDTO dto) {
|
|
|
|
- return ResultVO.ok(tencentOrderService.tencentOrderLogList(dto));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:tencent:orderReport")
|
|
|
|
- @PostMapping("/tencent/orderReport/{ids}")
|
|
|
|
- @ApiOperation(value = "腾讯订单手动上报")
|
|
|
|
- public ResultVO<Boolean> tencentOrderReport(@PathVariable("ids") List<Long> ids) {
|
|
|
|
- return ResultVO.ok(tencentOrderService.tencentOrderReport(ids));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:tencent:userLogs")
|
|
|
|
- @PostMapping("/tencent/userLogs")
|
|
|
|
- @ApiOperation(value = "腾讯用户回传日志列表")
|
|
|
|
- public ResultVO<IPage<GameTencentUserVO>> tencentUserLogList(@RequestBody GameTencentUserDTO dto) {
|
|
|
|
- return ResultVO.ok(tencentUserService.tencentUserLogList(dto));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:tencent:userReport")
|
|
|
|
- @PostMapping("/tencent/userReport/{ids}")
|
|
|
|
- @ApiOperation(value = "腾讯用户手动上报")
|
|
|
|
- public ResultVO<Boolean> tencentUserReport(@PathVariable("ids") List<Long> ids) {
|
|
|
|
- return ResultVO.ok(tencentUserService.tencentUserReport(ids));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:oceanengine:orderLogs")
|
|
|
|
- @PostMapping("/oceanengine/orderLogs")
|
|
|
|
- @ApiOperation(value = "头条订单回传日志列表")
|
|
|
|
- public ResultVO<IPage<GameOceanengineOrderLogVO>> oceanengineOrderLogList(@RequestBody GameOceanengineOrderLogDTO dto) {
|
|
|
|
- return ResultVO.ok(oceanengineOrderLogService.oceanengineOrderLogList(dto));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:oceanengine:orderReport")
|
|
|
|
- @PostMapping("/oceanengine/orderReport/{ids}")
|
|
|
|
- @ApiOperation(value = "头条订单手动上报")
|
|
|
|
- public ResultVO<Boolean> oceanengineOrderReport(@PathVariable("ids") List<Long> ids) {
|
|
|
|
- return ResultVO.ok(oceanengineOrderLogService.oceanengineOrderReport(ids));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:oceanengine:userLogs")
|
|
|
|
- @PostMapping("/oceanengine/userLogs")
|
|
|
|
- @ApiOperation(value = "头条用户回传日志列表")
|
|
|
|
- public ResultVO<IPage<GameOceanengineUserLogVO>> oceanengineUserLogList(@RequestBody GameOceanengineUserLogDTO dto) {
|
|
|
|
- return ResultVO.ok(oceanengineUserLogService.oceanengineUserLogList(dto));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-// @PreAuthorize(permissionKey = "gameBack:oceanengine:userReport")
|
|
|
|
- @PostMapping("/oceanengine/userReport/{ids}")
|
|
|
|
- @ApiOperation(value = "头条用户手动上报")
|
|
|
|
- public ResultVO<Boolean> oceanengineUserReport(@PathVariable("ids") List<Long> ids) {
|
|
|
|
- return ResultVO.ok(oceanengineUserLogService.oceanengineUserReport(ids));
|
|
|
|
- }
|
|
|
|
}
|
|
}
|