package com.jeesharp.business.modules.mall.service;

import com.jeesharp.business.modules.mall.entity.MallAfterSale;
import com.jeesharp.business.modules.mall.vo.MallAfterSaleQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.math.BigDecimal;
import java.util.List;

/**
 * 售后单 Service 接口
 */
public interface MallAfterSaleService extends BaseInterface<MallAfterSale, MallAfterSaleQueryVO> {

    void createAfterSale(MallAfterSale entity);

    void updateAfterSale(MallAfterSale entity);
void auditAfterSale(String afterSaleId, Integer status, String auditBy, String auditRemark);

    void handleAfterSale(String afterSaleId, String handlerId, String handleRemark);

    void applyAfterSale(String orderId, String orderItemId, String memberId,
                        String skuId, String spuId, String afterSaleType,
                        Integer applyQuantity, BigDecimal refundAmount,
                        String refundReason, String refundReasonDesc, String refundDesc);

    List<MallAfterSale> getMemberAfterSales(String memberId);
}
