接口名字修改

This commit is contained in:
2025-09-02 00:22:24 +08:00
parent 22dedefa03
commit aeb41bcefe

View File

@ -23,7 +23,7 @@ public class AliPaymentController {
* 支付宝统一下单接口 * 支付宝统一下单接口
*/ */
@PostMapping("/unifiedOrder") @PostMapping("/unifiedOrder")
public AlipayCreateResponse unifiedOrder(@RequestBody AlipayCreateRequest request) { public AlipayCreateResponse aliPayUnifiedOrder(@RequestBody AlipayCreateRequest request) {
log.info("收到支付宝支付请求: {}", request); log.info("收到支付宝支付请求: {}", request);
return alipayService.unifiedOrder(request); return alipayService.unifiedOrder(request);
} }
@ -32,7 +32,7 @@ public class AliPaymentController {
* 查询订单接口 * 查询订单接口
*/ */
@GetMapping("/query/{companyId}/{outTradeNo}") @GetMapping("/query/{companyId}/{outTradeNo}")
public AlipayQueryResponse orderQuery(@PathVariable Long companyId, @PathVariable String outTradeNo) { public AlipayQueryResponse alipayOrderQuery(@PathVariable Long companyId, @PathVariable String outTradeNo) {
log.info("收到支付宝订单查询请求公司ID: {}, 订单号: {}", companyId, outTradeNo); log.info("收到支付宝订单查询请求公司ID: {}, 订单号: {}", companyId, outTradeNo);
return alipayService.orderQuery(companyId, outTradeNo); return alipayService.orderQuery(companyId, outTradeNo);
} }
@ -41,7 +41,7 @@ public class AliPaymentController {
* 关闭订单接口 * 关闭订单接口
*/ */
@PostMapping("/close") @PostMapping("/close")
public AlipayResponse closeOrder(@RequestBody AlipayCloseRequest request) { public AlipayResponse alipayCloseOrder(@RequestBody AlipayCloseRequest request) {
log.info("收到支付宝关闭订单请求: {}", request); log.info("收到支付宝关闭订单请求: {}", request);
return alipayService.closeOrder(request); return alipayService.closeOrder(request);
} }
@ -50,7 +50,7 @@ public class AliPaymentController {
* 申请退款接口 * 申请退款接口
*/ */
@PostMapping("/refund") @PostMapping("/refund")
public AlipayResponse refund(@RequestBody AlipayRefundRequest request) { public AlipayResponse alipayRefund(@RequestBody AlipayRefundRequest request) {
log.info("收到支付宝退款请求: {}", request); log.info("收到支付宝退款请求: {}", request);
return alipayService.refund(request); return alipayService.refund(request);
} }
@ -59,7 +59,7 @@ public class AliPaymentController {
* 查询退款接口 * 查询退款接口
*/ */
@PostMapping("/refundQuery") @PostMapping("/refundQuery")
public AlipayResponse refundQuery(@RequestBody AlipayRefundRequest request) { public AlipayResponse alipayRefundQuery(@RequestBody AlipayRefundRequest request) {
log.info("收到支付宝退款查询请求: {}", request); log.info("收到支付宝退款查询请求: {}", request);
return alipayService.refundQuery(request); return alipayService.refundQuery(request);
} }
@ -68,7 +68,7 @@ public class AliPaymentController {
* 支付宝支付结果通知 * 支付宝支付结果通知
*/ */
@PostMapping("/notify") @PostMapping("/notify")
public String notify(HttpServletRequest request) { public String alipayNotify(HttpServletRequest request) {
try { try {
// 读取支付宝回调数据 // 读取支付宝回调数据
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
@ -126,7 +126,7 @@ public class AliPaymentController {
* 支付宝退款结果通知 * 支付宝退款结果通知
*/ */
@PostMapping("/refundNotify") @PostMapping("/refundNotify")
public String refundNotify(HttpServletRequest request) { public String alipayRefundNotify(HttpServletRequest request) {
try { try {
// 读取支付宝退款回调数据 // 读取支付宝退款回调数据
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();