package com.starry.admin.modules.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.starry.admin.modules.order.module.entity.PlayOrderRefundInfoEntity;
import com.starry.admin.modules.order.module.vo.PlayOrderRefundQueryVo;
import com.starry.admin.modules.order.module.vo.PlayOrderRefundReturnVo;

/**
 * 订单退款信息Service接口
 *
 * @author admin
 * @since 2024-05-09
 */
public interface IPlayOrderRefundInfoService extends IService<PlayOrderRefundInfoEntity> {
    /**
     * 查询订单退款信息
     *
     * @param id 订单退款信息主键
     * @return 订单退款信息
     */
    PlayOrderRefundInfoEntity selectPlayOrderRefundInfoById(String id);

    /**
     * 根据订单ID查询订单退款信息
     *
     * @param orderId 订单ID
     * @return 订单退款信息
     */
    PlayOrderRefundInfoEntity selectPlayOrderRefundInfoByOrderId(String orderId);


    /**
     * 分页查询订单退款信息
     *
     * @param vo 订单退款信息
     * @return 订单退款信息集合
     */
    IPage<PlayOrderRefundReturnVo> selectByPage(PlayOrderRefundQueryVo vo);

    /**
     * 查询订单退款信息列表
     *
     * @param playOrderRefundInfo 订单退款信息
     * @return 订单退款信息集合
     */
    IPage<PlayOrderRefundInfoEntity> selectPlayOrderRefundInfoByPage(PlayOrderRefundInfoEntity playOrderRefundInfo);

    /**
     * 新增订单退款信息
     *
     * @param playOrderRefundInfo 订单退款信息
     * @return 结果
     */
    boolean create(PlayOrderRefundInfoEntity playOrderRefundInfo);

    /**
     * 修改订单退款信息
     *
     * @param playOrderRefundInfo 订单退款信息
     * @return 结果
     */
    boolean update(PlayOrderRefundInfoEntity playOrderRefundInfo);

    /**
     * 批量删除订单退款信息
     *
     * @param ids 需要删除的订单退款信息主键集合
     * @return 结果
     */
    int deletePlayOrderRefundInfoByIds(String[] ids);

    /**
     * 删除订单退款信息信息
     *
     * @param id 订单退款信息主键
     * @return 结果
     */
    int deletePlayOrderRefundInfoById(String id);
}
