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

import com.jeesharp.business.modules.mall.entity.MallGiftRule;
import com.jeesharp.business.modules.mall.vo.MallGiftRuleQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.util.Map;
import java.util.List;

/**
 * 赠品规则 Service 接口
 */
public interface MallGiftRuleService extends BaseInterface<MallGiftRule, MallGiftRuleQueryVO> {

    void createRule(MallGiftRule entity);

    void updateRule(MallGiftRule entity);
List<MallGiftRule> getAvailableGiftRules();

    List<MallGiftRule> getGiftRulesBySku(String skuId);

    List<MallGiftRule> checkFullItemGifts(Map<String, Integer> skuQuantities);
}
