package cn.pluss.platform.postageConfig;

import cn.pluss.platform.entity.PostageConfig;
import cn.pluss.platform.entity.UserAddress;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 邮费信息配置表 服务类
 * </p>
 *
 * @author crystal
 * @since 2022-03-29
 */
public interface PostageConfigService extends IService<PostageConfig> {

    /**
     * 根据地址id获取
     * @param address
     * @param weight
     * @return
     */
    BigDecimal getGoodPostageInfo(UserAddress address, BigDecimal weight);
}
