package com.gxwebsoft.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.shop.entity.PaymentTrade;
import com.gxwebsoft.shop.param.PaymentTradeParam;

import java.util.List;

/**
 * 第三方支付交易记录表Service
 *
 * @author 科技小王子
 * @since 2022-12-09 13:59:38
 */
public interface PaymentTradeService extends IService<PaymentTrade> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<PaymentTrade>
     */
    PageResult<PaymentTrade> pageRel(PaymentTradeParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<PaymentTrade>
     */
    List<PaymentTrade> listRel(PaymentTradeParam param);

    /**
     * 根据id查询
     *
     * @param tradeId 交易记录ID
     * @return PaymentTrade
     */
    PaymentTrade getByIdRel(Integer tradeId);

}
