package com.webmanage.service; import com.baomidou.mybatisplus.extension.service.IService; import com.webmanage.common.PageResult; import com.webmanage.dto.PointsRuleDTO; import com.webmanage.entity.PointsRule; import com.webmanage.vo.PointsRuleResultVO; import com.webmanage.vo.PointsRuleVO; import java.util.List; /** * 积分规则Service接口 */ public interface PointsRuleService extends IService { /** * 分页查询积分规则 */ PointsRuleResultVO getPointsRuleList(Long ruleId); /** * 新增积分规则 */ boolean addPointsRule(PointsRuleDTO pointsRuleDTO); /** * 修改积分规则 */ boolean updatePointsRule(List pointsRuleDetailsVOS); /** * 删除积分规则 */ boolean deletePointsRule(Long id); /** * 启用/禁用积分规则 */ boolean togglePointsRuleStatus(Long id, Boolean isEnabled); /** * 根据规则类型查询启用的规则 */ List getEnabledRulesByType(String ruleType); /** * 根据触发条件查询适用的规则 */ PointsRule getRuleByTriggerCondition(String triggerCondition); }