|
@@ -2,6 +2,7 @@ package com.zanxiang.manage.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.zanxiang.common.domain.ResultVo;
|
|
import com.zanxiang.common.domain.ResultVo;
|
|
|
|
+import com.zanxiang.erp.security.annotation.PreAuthorize;
|
|
import com.zanxiang.manage.domain.params.GameAnalogPayParam;
|
|
import com.zanxiang.manage.domain.params.GameAnalogPayParam;
|
|
import com.zanxiang.manage.domain.params.GamePayWayListParam;
|
|
import com.zanxiang.manage.domain.params.GamePayWayListParam;
|
|
import com.zanxiang.manage.domain.params.GamePayWayParam;
|
|
import com.zanxiang.manage.domain.params.GamePayWayParam;
|
|
@@ -23,7 +24,7 @@ import org.springframework.web.bind.annotation.*;
|
|
* @author xufeng
|
|
* @author xufeng
|
|
* @date 2022-06-30 14:22
|
|
* @date 2022-06-30 14:22
|
|
*/
|
|
*/
|
|
-@Api(tags = "游戏支付配置")
|
|
|
|
|
|
+@Api(tags = "游戏支付配置管理")
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/game-pay-way")
|
|
@RequestMapping("/game-pay-way")
|
|
public class GamePayWayController {
|
|
public class GamePayWayController {
|
|
@@ -33,12 +34,14 @@ public class GamePayWayController {
|
|
|
|
|
|
@ApiOperation(value = "新增/编辑/删除")
|
|
@ApiOperation(value = "新增/编辑/删除")
|
|
@PostMapping(value = "/save")
|
|
@PostMapping(value = "/save")
|
|
|
|
+ @PreAuthorize(permissionKey = "sdk:gamePayWay:save")
|
|
public ResultVo<Boolean> save(@Validated @RequestBody GamePayWayParam param) {
|
|
public ResultVo<Boolean> save(@Validated @RequestBody GamePayWayParam param) {
|
|
return ResultVo.ok(gamePayWayService.saveOrUpdate(param));
|
|
return ResultVo.ok(gamePayWayService.saveOrUpdate(param));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "列表")
|
|
@ApiOperation(value = "列表")
|
|
@PostMapping(value = "/list")
|
|
@PostMapping(value = "/list")
|
|
|
|
+ @PreAuthorize(permissionKey = "sdk:gamePayWay:list")
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GamePayWayListVO.class, responseContainer = "list")})
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GamePayWayListVO.class, responseContainer = "list")})
|
|
public ResultVo<IPage<GamePayWayListVO>> list(@Validated @RequestBody GamePayWayListParam param) {
|
|
public ResultVo<IPage<GamePayWayListVO>> list(@Validated @RequestBody GamePayWayListParam param) {
|
|
return ResultVo.ok(gamePayWayService.list(param));
|
|
return ResultVo.ok(gamePayWayService.list(param));
|
|
@@ -46,6 +49,7 @@ public class GamePayWayController {
|
|
|
|
|
|
@ApiOperation(value = "游戏详情支付配置展示")
|
|
@ApiOperation(value = "游戏详情支付配置展示")
|
|
@GetMapping(value = "/allGamePayWayByGameId")
|
|
@GetMapping(value = "/allGamePayWayByGameId")
|
|
|
|
+ @PreAuthorize(permissionKey = "sdk:gamePayWay:allGamePayWayByGameId")
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = AllGamePayWayByGameIdVO.class)})
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = AllGamePayWayByGameIdVO.class)})
|
|
public ResultVo<AllGamePayWayByGameIdVO> getInfo(@RequestParam Long gameId) {
|
|
public ResultVo<AllGamePayWayByGameIdVO> getInfo(@RequestParam Long gameId) {
|
|
return new ResultVo<>(gamePayWayService.getAllGamePayWayByGameId(gameId));
|
|
return new ResultVo<>(gamePayWayService.getAllGamePayWayByGameId(gameId));
|
|
@@ -53,6 +57,7 @@ public class GamePayWayController {
|
|
|
|
|
|
@ApiOperation(value = "获取游戏虚拟支付配置")
|
|
@ApiOperation(value = "获取游戏虚拟支付配置")
|
|
@GetMapping(value = "/analog/pay/info")
|
|
@GetMapping(value = "/analog/pay/info")
|
|
|
|
+ @PreAuthorize(permissionKey = "sdk:gamePayWay:analogPayInfo")
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameAnalogPayVO.class)})
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameAnalogPayVO.class)})
|
|
public ResultVo<GameAnalogPayVO> getGameAnalogPay(@RequestParam Long id) {
|
|
public ResultVo<GameAnalogPayVO> getGameAnalogPay(@RequestParam Long id) {
|
|
return new ResultVo<>(gamePayWayService.getGameAnalogPay(id));
|
|
return new ResultVo<>(gamePayWayService.getGameAnalogPay(id));
|
|
@@ -60,6 +65,7 @@ public class GamePayWayController {
|
|
|
|
|
|
@ApiOperation(value = "游戏虚拟支付配置添加或者更新")
|
|
@ApiOperation(value = "游戏虚拟支付配置添加或者更新")
|
|
@PostMapping(value = "/analog/pay/add/or/update")
|
|
@PostMapping(value = "/analog/pay/add/or/update")
|
|
|
|
+ @PreAuthorize(permissionKey = "sdk:gamePayWay:analogPayAddOrUpdate")
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
|
|
public ResultVo<Boolean> gameAnalogPayAddOrUpdate(@Validated @RequestBody GameAnalogPayParam param) {
|
|
public ResultVo<Boolean> gameAnalogPayAddOrUpdate(@Validated @RequestBody GameAnalogPayParam param) {
|
|
return new ResultVo<>(gamePayWayService.gameAnalogPayAddOrUpdate(param));
|
|
return new ResultVo<>(gamePayWayService.gameAnalogPayAddOrUpdate(param));
|