浏览代码

feat : sdk对接修改

bilingfeng 2 年之前
父节点
当前提交
4d1ec48950

+ 7 - 0
game-module/game-manage/src/main/java/com/zanxiang/manage/controller/ChoiceController.java

@@ -237,4 +237,11 @@ public class ChoiceController {
         return ResultVO.ok(payBoxService.payBoxChoiceList());
     }
 
+    @ApiOperation(value = "策略类型选择列表")
+    @GetMapping(value = "/game/pay/strategy/list")
+    @PreAuthorize(permissionKey = "sdk:gamePayStrategyChoice:list")
+    @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GamePayStrategyChoiceVO.class, responseContainer = "list")})
+    public ResultVO<List<GamePayStrategyChoiceVO>> gamePayStrategyChoiceList() {
+        return ResultVO.ok(BeanUtils.copyList(Arrays.asList(GameStrategyTypeEnum.values()), GamePayStrategyChoiceVO.class));
+    }
 }

+ 25 - 0
game-module/game-manage/src/main/java/com/zanxiang/manage/domain/vo/GamePayStrategyChoiceVO.java

@@ -0,0 +1,25 @@
+package com.zanxiang.manage.domain.vo;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-02-16
+ * @description : 策略类型
+ */
+@Data
+public class GamePayStrategyChoiceVO {
+
+    /**
+     * 游戏支付策略类型
+     */
+    @ApiModelProperty(notes = "游戏支付策略类型")
+    private Integer type;
+
+    /**
+     * 游戏支付策略类型名称
+     */
+    @ApiModelProperty(notes = "游戏支付策略类型名称")
+    private String name;
+}