mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-06 04:27:55 +00:00
feat 获取OpenId演示界面, 优化认证授权地址配置
This commit is contained in:
@@ -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);
|
||||
|
@@ -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){
|
||||
|
Reference in New Issue
Block a user