seatonwan9
2025-08-19 79111317e126d0ee92b7125dc41d71bb4038bd21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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(List<PointsRuleDTO> pointsRuleDetailsVOS);
 
    /**
     * 删除积分规则
     */
    boolean deletePointsRule(Long id);
 
    /**
     * 启用/禁用积分规则
     */
    boolean togglePointsRuleStatus(Long id, Boolean isEnabled);
 
    /**
     * 根据规则类型查询启用的规则
     */
    List<PointsRule> getEnabledRulesByType(String ruleType);
 
    /**
     * 根据触发条件查询适用的规则
     */
    PointsRule getRuleByTriggerCondition(String triggerCondition);
}