package com.zsElectric.boot.business.service;

import com.zsElectric.boot.business.model.entity.UserRefundsOrderInfo;
import com.zsElectric.boot.business.model.form.UserRefundsOrderInfoForm;
import com.zsElectric.boot.business.model.query.UserRefundsOrderInfoQuery;
import com.zsElectric.boot.business.model.vo.UserRefundsOrderInfoVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 退款订单服务类
 *
 * @author zsElectric
 * @since 2025-12-17 16:48
 */
public interface UserRefundsOrderInfoService extends IService<UserRefundsOrderInfo> {

    /**
     *退款订单分页列表
     *
     * @return {@link IPage<UserRefundsOrderInfoVO>} 退款订单分页列表
     */
    IPage<UserRefundsOrderInfoVO> getUserRefundsOrderInfoPage(UserRefundsOrderInfoQuery queryParams);

    /**
     * 获取退款订单表单数据
     *
     * @param id 退款订单ID
     * @return 退款订单表单数据
     */
     UserRefundsOrderInfoForm getUserRefundsOrderInfoFormData(Long id);

    /**
     * 新增退款订单
     *
     * @param formData 退款订单表单对象
     * @return 是否新增成功
     */
    boolean saveUserRefundsOrderInfo(UserRefundsOrderInfoForm formData);

    /**
     * 修改退款订单
     *
     * @param id   退款订单ID
     * @param formData 退款订单表单对象
     * @return 是否修改成功
     */
    boolean updateUserRefundsOrderInfo(Long id, UserRefundsOrderInfoForm formData);

    /**
     * 删除退款订单
     *
     * @param ids 退款订单ID，多个以英文逗号(,)分割
     * @return 是否删除成功
     */
    boolean deleteUserRefundsOrderInfos(String ids);

}
