mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-07 13:10:44 +00:00
feat 转账接口功能完善, 上下文对象进行优化精简
This commit is contained in:
@@ -53,4 +53,16 @@ public class AlipayConfigController {
|
||||
public ResResult<String> readPem(MultipartFile file){
|
||||
return Res.ok(new String(file.getBytes(), StandardCharsets.UTF_8));
|
||||
}
|
||||
|
||||
@Operation(summary = "生成异步通知地址")
|
||||
@GetMapping("/generateNotifyUrl")
|
||||
public ResResult<String> generateNotifyUrl() {
|
||||
return Res.ok(alipayConfigService.generateNotifyUrl());
|
||||
}
|
||||
|
||||
@Operation(summary = "生成同步通知地址")
|
||||
@GetMapping("/generateReturnUrl")
|
||||
public ResResult<String> generateReturnUrl() {
|
||||
return Res.ok(alipayConfigService.generateReturnUrl());
|
||||
}
|
||||
}
|
||||
|
@@ -54,4 +54,16 @@ public class UnionPayConfigController {
|
||||
public ResResult<String> toBase64(MultipartFile file){
|
||||
return Res.ok(Base64.encode(file.getBytes()));
|
||||
}
|
||||
|
||||
@Operation(summary = "生成异步通知地址")
|
||||
@GetMapping("/generateNotifyUrl")
|
||||
public ResResult<String> generateNotifyUrl() {
|
||||
return Res.ok(unionPayConfigService.generateNotifyUrl());
|
||||
}
|
||||
|
||||
@Operation(summary = "生成同步通知地址")
|
||||
@GetMapping("/generateReturnUrl")
|
||||
public ResResult<String> generateReturnUrl() {
|
||||
return Res.ok(unionPayConfigService.generateReturnUrl());
|
||||
}
|
||||
}
|
||||
|
@@ -39,9 +39,10 @@ public class WalletConfigController {
|
||||
return Res.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "支付宝支持支付方式")
|
||||
@Operation(summary = "钱包支持支付方式")
|
||||
@GetMapping("/findPayWays")
|
||||
public ResResult<List<LabelValue>> findPayWays() {
|
||||
return Res.ok(service.findPayWays());
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -52,4 +52,16 @@ public class WeChatPayConfigController {
|
||||
public ResResult<String> toBase64(MultipartFile file){
|
||||
return Res.ok(Base64.encode(file.getBytes()));
|
||||
}
|
||||
|
||||
@Operation(summary = "生成异步通知地址")
|
||||
@GetMapping("/generateNotifyUrl")
|
||||
public ResResult<String> generateNotifyUrl() {
|
||||
return Res.ok(weChatPayConfigService.generateNotifyUrl());
|
||||
}
|
||||
|
||||
@Operation(summary = "生成同步通知地址")
|
||||
@GetMapping("/generateReturnUrl")
|
||||
public ResResult<String> generateReturnUrl() {
|
||||
return Res.ok(weChatPayConfigService.generateReturnUrl());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user