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

import com.jeesharp.business.modules.food.entity.FoodMealRule;
import com.jeesharp.business.modules.food.vo.FoodMealRuleQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.util.List;
import java.util.Set;

public interface FoodMealRuleService extends BaseInterface<FoodMealRule, FoodMealRuleQueryVO> {

    void createRule(FoodMealRule entity);

    void updateRule(FoodMealRule entity);
    void updateStatus(String id, Integer status);

    List<FoodMealRule> listEnabledByScopeTypes(Set<String> scopeTypes);

    boolean existsSameRule(String id, String serviceAreaId, String mealType, String scopeType);
}
