package com.ylx.massage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ylx.massage.domain.CancelOrderApplication;

/**
 * 退单申请服务接口
 *
 * @author claude
 * @date 2025-01-14
 */
public interface CancelOrderApplicationService extends IService<CancelOrderApplication> {

    /**
     * 创建退单申请
     *
     * @param orderId 订单ID
     * @param cancelReason 退单原因
     * @return 申请记录ID
     */
    String createApplication(String orderId, String cancelReason);

    /**
     * 根据订单ID查询退单申请记录
     *
     * @param orderId 订单ID
     * @return CancelOrderApplication 退单申请记录
     */
    CancelOrderApplication getInfoByOrderId(String orderId);

    /**
     * 取消退单申请
     *
     * @param orderId 订单ID
     * @return Boolean 操作结果
     */
    Boolean cancelApplication(String orderId);
}
