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<PointsRule> {
|
|
/**
|
* 分页查询积分规则
|
*/
|
PointsRuleResultVO getPointsRuleList(Long ruleId);
|
|
/**
|
* 新增积分规则
|
*/
|
boolean addPointsRule(PointsRuleDTO pointsRuleDTO);
|
|
/**
|
* 修改积分规则
|
*/
|
boolean updatePointsRule(PointsRuleDTO pointsRuleDTO);
|
|
/**
|
* 删除积分规则
|
*/
|
boolean deletePointsRule(Long id);
|
|
/**
|
* 启用/禁用积分规则
|
*/
|
boolean togglePointsRuleStatus(Long id, Boolean isEnabled);
|
|
/**
|
* 根据规则类型查询启用的规则
|
*/
|
List<PointsRule> getEnabledRulesByType(String ruleType);
|
|
/**
|
* 根据触发条件查询适用的规则
|
*/
|
PointsRule getRuleByTriggerCondition(String triggerCondition);
|
}
|