feat 微信支付宝流水记录

This commit is contained in:
xxm1995
2024-02-20 17:05:49 +08:00
parent a999392249
commit 66b7341df2
29 changed files with 542 additions and 19 deletions

View File

@@ -0,0 +1,43 @@
package cn.bootx.platform.daxpay.admin.controller.channel;
import cn.bootx.platform.common.core.rest.PageResult;
import cn.bootx.platform.common.core.rest.Res;
import cn.bootx.platform.common.core.rest.ResResult;
import cn.bootx.platform.common.core.rest.param.PageParam;
import cn.bootx.platform.daxpay.service.core.channel.alipay.service.AliPayRecordService;
import cn.bootx.platform.daxpay.service.dto.channel.alipay.AliPayRecordDto;
import cn.bootx.platform.daxpay.service.param.channel.alipay.AliPayRecordQuery;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 支付宝控制器
* @author xxm
* @since 2024/2/20
*/
@Tag(name = "支付宝控制器")
@RestController
@RequestMapping("/alipay")
@RequiredArgsConstructor
public class AlipayController {
private final AliPayRecordService aliPayRecordService;
@Operation(summary = "记录分页")
@GetMapping("/record/page")
public ResResult<PageResult<AliPayRecordDto>> recordPage(PageParam pageParam, AliPayRecordQuery query){
return Res.ok(aliPayRecordService.page(pageParam, query));
}
@Operation(summary = "查询记录详情")
@GetMapping("/record/findById")
public ResResult<AliPayRecordDto> findById(Long id){
return Res.ok(aliPayRecordService.findById(id));
}
}

View File

@@ -39,5 +39,4 @@ public class CashController {
return Res.ok(cashRecordService.findById(id));
}
}

View File

@@ -0,0 +1,43 @@
package cn.bootx.platform.daxpay.admin.controller.channel;
import cn.bootx.platform.common.core.rest.PageResult;
import cn.bootx.platform.common.core.rest.Res;
import cn.bootx.platform.common.core.rest.ResResult;
import cn.bootx.platform.common.core.rest.param.PageParam;
import cn.bootx.platform.daxpay.service.core.channel.wechat.service.WeChatPayRecordService;
import cn.bootx.platform.daxpay.service.dto.channel.wechat.WeChatPayRecordDto;
import cn.bootx.platform.daxpay.service.param.channel.wechat.WeChatPayRecordQuery;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 微信支付控制器
* @author xxm
* @since 2024/2/20
*/
@Tag(name = "微信支付控制器")
@RestController
@RequestMapping("/wechat/pay")
@RequiredArgsConstructor
public class WeChatPayController {
private final WeChatPayRecordService weChatPayRecordService;
@Operation(summary = "记录分页")
@GetMapping("/record/page")
public ResResult<PageResult<WeChatPayRecordDto>> recordPage(PageParam pageParam, WeChatPayRecordQuery query){
return Res.ok(weChatPayRecordService.page(pageParam, query));
}
@Operation(summary = "查询记录详情")
@GetMapping("/record/findById")
public ResResult<WeChatPayRecordDto> findById(Long id){
return Res.ok(weChatPayRecordService.findById(id));
}
}