package com.seer.teach.pay.service;

import com.seer.teach.pay.entity.PayOrderEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 支付订单 服务类
 * </p>
 *
 * @author Wang
 * @since 2025-09-11 14:04:02
 */
public interface IPayOrderService extends IService<PayOrderEntity> {

    /**
     * 创建支付订单
     * @param payOrderEntity 订单信息
     * @return 订单id
     */
    Integer createOrder(PayOrderEntity payOrderEntity);

    /**
     * 获取支付订单
     * @param merchantOrderSn 订单号
     * @return 订单信息
     */
    PayOrderEntity getOrderByMerchantOrderSn(String merchantOrderSn);

    /**
     * 获取支付订单
     * @param orderSn 订单号
     * @return 订单信息
     */
    PayOrderEntity getOrderByOrderSn(String orderSn);

}
