ebike-plus/ebike-user/src/main/java/com/cdzy/user/controller/EbikePaymentController.java
2026-01-06 11:02:12 +08:00

39 lines
1.1 KiB
Java

package com.cdzy.user.controller;
import com.cdzy.common.model.response.JsonResult;
import com.cdzy.user.model.entity.EbikePayment;
import com.cdzy.user.service.EbikePaymentService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* 用户支付 控制层
*
* @author yanglei
* @since 2025-11-13 13:49
*/
@RestController
@RequestMapping("/ebikePayment")
public class EbikePaymentController {
@Resource
private EbikePaymentService ebikePaymentService;
/**
* 根据订单号获取支付订单
*
* @param orderId 用户订单号
* @return 支付订单信息
*/
@GetMapping("/queryPaymentInfo")
public JsonResult<?> queryPaymentInfo(@RequestParam(name = "orderId") Long orderId) {
EbikePayment ebikePayment = ebikePaymentService.queryPaymentInfo(orderId);
return JsonResult.success(ebikePayment);
}
}