mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-06 04:27:55 +00:00
feat 分账相关接口
This commit is contained in:
@@ -3,6 +3,7 @@ package cn.daxpay.single.gateway.controller;
|
||||
import cn.daxpay.single.code.PaymentApiCode;
|
||||
import cn.daxpay.single.param.payment.allocation.AllocationFinishParam;
|
||||
import cn.daxpay.single.param.payment.allocation.AllocationStartParam;
|
||||
import cn.daxpay.single.param.payment.allocation.AllocationSyncParam;
|
||||
import cn.daxpay.single.result.DaxResult;
|
||||
import cn.daxpay.single.result.allocation.AllocationResult;
|
||||
import cn.daxpay.single.service.annotation.PaymentApi;
|
||||
@@ -34,7 +35,7 @@ public class UniAllocationController {
|
||||
private final AllocationReceiverService receiverService;
|
||||
|
||||
@PaymentApi(PaymentApiCode.ALLOCATION)
|
||||
@Operation(summary = "触发分账接口")
|
||||
@Operation(summary = "触发分账")
|
||||
@PostMapping("/open")
|
||||
public DaxResult<AllocationResult> open(@RequestBody AllocationStartParam param){
|
||||
return DaxRes.ok(allocationService.allocation(param));
|
||||
@@ -48,31 +49,42 @@ public class UniAllocationController {
|
||||
return DaxRes.ok();
|
||||
}
|
||||
|
||||
@PaymentApi(PaymentApiCode.ALLOCATION_RECEIVER_QUERY)
|
||||
@Operation(summary = "分账接收方查询接口")
|
||||
@PostMapping("/allocationReceiverQuery")
|
||||
public DaxResult<Void> allocationReceiverQuery(@RequestBody AllocationReceiverParam param){
|
||||
@PaymentApi(PaymentApiCode.SYNC_ALLOCATION)
|
||||
@Operation(summary = "分账同步接口")
|
||||
@PostMapping("/sync")
|
||||
public DaxResult<Void> sync(@RequestBody AllocationSyncParam param){
|
||||
allocationService.sync(param);
|
||||
return DaxRes.ok();
|
||||
}
|
||||
|
||||
@PaymentApi(PaymentApiCode.QUERY_ALLOCATION_ORDER)
|
||||
@Operation(summary = "分账查询接口")
|
||||
@PostMapping("/query")
|
||||
public DaxResult<Void> query(@RequestBody AllocationFinishParam param){
|
||||
// allocationService.query(param);
|
||||
return DaxRes.ok();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@PaymentApi(PaymentApiCode.ALLOCATION_RECEIVER_ADD)
|
||||
@Operation(summary = "添加分账接收方接口")
|
||||
@PostMapping("/allocationReceiverAdd")
|
||||
public DaxResult<Void> allocationReceiverAdd(@RequestBody AllocationReceiverParam param){
|
||||
@PostMapping("/receiver/add")
|
||||
public DaxResult<Void> receiverAdd(@RequestBody AllocationReceiverParam param){
|
||||
return DaxRes.ok();
|
||||
}
|
||||
|
||||
@PaymentApi(PaymentApiCode.ALLOCATION_RECEIVER_REMOVE)
|
||||
@Operation(summary = "删除分账接收方接口")
|
||||
@PostMapping("/allocationReceiverRemove")
|
||||
public DaxResult<Void> allocationReceiverRemove(@RequestBody AllocationReceiverParam param){
|
||||
@PostMapping("/receiver/remove")
|
||||
public DaxResult<Void> receiverRemove(@RequestBody AllocationReceiverParam param){
|
||||
return DaxRes.ok();
|
||||
}
|
||||
|
||||
@PaymentApi(PaymentApiCode.ALLOCATION_RECEIVER_QUERY)
|
||||
@Operation(summary = "查询分账接收方接口")
|
||||
@PostMapping("/allocationReceiverRemoveByGateway")
|
||||
public DaxResult<Void> allocationReceiverRemoveByGateway(@RequestBody AllocationReceiverParam param){
|
||||
@PostMapping("/receiver/query")
|
||||
public DaxResult<Void> receiveQuery(@RequestBody AllocationReceiverParam param){
|
||||
return DaxRes.ok();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user