接口名字修改
This commit is contained in:
@ -23,7 +23,7 @@ public class AliPaymentController {
|
||||
* 支付宝统一下单接口
|
||||
*/
|
||||
@PostMapping("/unifiedOrder")
|
||||
public AlipayCreateResponse unifiedOrder(@RequestBody AlipayCreateRequest request) {
|
||||
public AlipayCreateResponse aliPayUnifiedOrder(@RequestBody AlipayCreateRequest request) {
|
||||
log.info("收到支付宝支付请求: {}", request);
|
||||
return alipayService.unifiedOrder(request);
|
||||
}
|
||||
@ -32,7 +32,7 @@ public class AliPaymentController {
|
||||
* 查询订单接口
|
||||
*/
|
||||
@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);
|
||||
return alipayService.orderQuery(companyId, outTradeNo);
|
||||
}
|
||||
@ -41,7 +41,7 @@ public class AliPaymentController {
|
||||
* 关闭订单接口
|
||||
*/
|
||||
@PostMapping("/close")
|
||||
public AlipayResponse closeOrder(@RequestBody AlipayCloseRequest request) {
|
||||
public AlipayResponse alipayCloseOrder(@RequestBody AlipayCloseRequest request) {
|
||||
log.info("收到支付宝关闭订单请求: {}", request);
|
||||
return alipayService.closeOrder(request);
|
||||
}
|
||||
@ -50,7 +50,7 @@ public class AliPaymentController {
|
||||
* 申请退款接口
|
||||
*/
|
||||
@PostMapping("/refund")
|
||||
public AlipayResponse refund(@RequestBody AlipayRefundRequest request) {
|
||||
public AlipayResponse alipayRefund(@RequestBody AlipayRefundRequest request) {
|
||||
log.info("收到支付宝退款请求: {}", request);
|
||||
return alipayService.refund(request);
|
||||
}
|
||||
@ -59,7 +59,7 @@ public class AliPaymentController {
|
||||
* 查询退款接口
|
||||
*/
|
||||
@PostMapping("/refundQuery")
|
||||
public AlipayResponse refundQuery(@RequestBody AlipayRefundRequest request) {
|
||||
public AlipayResponse alipayRefundQuery(@RequestBody AlipayRefundRequest request) {
|
||||
log.info("收到支付宝退款查询请求: {}", request);
|
||||
return alipayService.refundQuery(request);
|
||||
}
|
||||
@ -68,7 +68,7 @@ public class AliPaymentController {
|
||||
* 支付宝支付结果通知
|
||||
*/
|
||||
@PostMapping("/notify")
|
||||
public String notify(HttpServletRequest request) {
|
||||
public String alipayNotify(HttpServletRequest request) {
|
||||
try {
|
||||
// 读取支付宝回调数据
|
||||
Map<String, String> params = new HashMap<>();
|
||||
@ -126,7 +126,7 @@ public class AliPaymentController {
|
||||
* 支付宝退款结果通知
|
||||
*/
|
||||
@PostMapping("/refundNotify")
|
||||
public String refundNotify(HttpServletRequest request) {
|
||||
public String alipayRefundNotify(HttpServletRequest request) {
|
||||
try {
|
||||
// 读取支付宝退款回调数据
|
||||
Map<String, String> params = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user