feat 获取OpenId演示界面, 优化认证授权地址配置

This commit is contained in:
DaxPay
2024-06-21 18:02:54 +08:00
parent f56e088bfe
commit 975ceb213d
19 changed files with 109 additions and 28 deletions

View File

@@ -65,7 +65,7 @@ public class AllocationReceiverController {
@InitPaymentContext(value = PaymentApiCode.ALLOCATION_RECEIVER_ADD)
@Operation(summary = "添加")
@PostMapping("add")
@PostMapping("/add")
public ResResult<Void> add(@RequestBody AllocReceiverAddParam param){
ValidationUtil.validateParam(param);
receiverService.addAndSync(param);
@@ -74,7 +74,7 @@ public class AllocationReceiverController {
@InitPaymentContext(value = PaymentApiCode.ALLOCATION_RECEIVER_REMOVE)
@Operation(summary = "删除")
@PostMapping("delete")
@PostMapping("/delete")
public ResResult<Void> delete(@RequestBody AllocReceiverRemoveParam param){
ValidationUtil.validateParam(param);
receiverService.remove(param);

View File

@@ -27,14 +27,12 @@ import org.springframework.web.bind.annotation.RestController;
public class AliPayAuthController {
private final AliPayAuthService aliPayAuthService;
@Operation(summary = "返回获取OpenId授权页面地址和标识码")
@PostMapping("/generateAuthUrl")
public ResResult<AuthUrlResult> generateAuthUrl(){
return Res.ok(aliPayAuthService.generateAuthUrl());
}
@Operation(summary = "根据标识码查询OpenId")
@GetMapping("/queryOpenId")
public ResResult<OpenIdResult> queryOpenId(String code){