package com.ruoyi.web.modules.freight.facade;

import java.math.BigDecimal;
import java.util.List;
import com.ruoyi.web.modules.freight.vo.FreightTemplateDetailVO;
import com.ruoyi.web.modules.freight.vo.FreightTemplateOptionVO;

/**
 * 运费模版 Facade（商品、确认订单消费）
 */
public interface IFreightTemplateFacade
{
    List<FreightTemplateOptionVO> listOptionsByShopId(Long shopId);

    FreightTemplateOptionVO getDefaultTemplate(Long shopId);

    FreightTemplateDetailVO getDetailForGoods(Long templateId, Long shopId);

    String buildFreightDesc(Long templateId, Long shopId);

    BigDecimal calcFreight(Long templateId, Long shopId, Integer provinceId, BigDecimal pieceCount,
            BigDecimal totalWeightKg, BigDecimal goodsAmount);
}
