|
@@ -15,6 +15,7 @@ import io.swagger.annotations.ApiResponses;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -47,6 +48,12 @@ public class ChoiceController {
|
|
|
@Autowired
|
|
|
private PromoAccountService promoAccountService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private PayWayService payWayService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PayMerchantService payMerchantService;
|
|
|
+
|
|
|
@ApiOperation(value = "vip等级选择列表")
|
|
|
@GetMapping(value = "/vip/level/list")
|
|
|
@PreAuthorize(permissionKey = "sdk:choiceVipLevel:list")
|
|
@@ -119,4 +126,20 @@ public class ChoiceController {
|
|
|
return new ResultVO<>(promoAccountService.promoPitcherChoiceList());
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "支付方式选择列表")
|
|
|
+ @GetMapping(value = "/pay/way/list")
|
|
|
+ @PreAuthorize(permissionKey = "sdk:payWayChoice:list")
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = PayWayChoiceVO.class, responseContainer = "list")})
|
|
|
+ public ResultVO<List<PayWayChoiceVO>> payWayChoiceList() {
|
|
|
+ return new ResultVO<>(payWayService.payWayChoiceList());
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "商户选择列表")
|
|
|
+ @PostMapping(value = "/pay/merchant/list")
|
|
|
+ @PreAuthorize(permissionKey = "sdk:payMerchantChoice:list")
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = PayMerchantChoiceVO.class, responseContainer = "list")})
|
|
|
+ public ResultVO<List<PayMerchantChoiceVO>> payMerchantChoiceList() {
|
|
|
+ return ResultVO.ok(payMerchantService.payMerchantChoiceList());
|
|
|
+ }
|
|
|
+
|
|
|
}
|