Files
auto-solution/auto-solution-rule/src/main/java/com/solution/rule/mapper/RuleMapper.java

38 lines
662 B
Java
Raw Normal View History

package com.solution.rule.mapper;
2026-03-14 14:30:52 +08:00
import com.solution.rule.domain.Rule;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface RuleMapper {
2026-03-14 14:30:52 +08:00
/**
* 根据ID查询规则
*/
Rule selectRuleById(Integer id);
/**
2026-03-14 14:30:52 +08:00
* 查询规则列表支持分页
*/
2026-03-14 14:30:52 +08:00
List<Rule> selectRuleList(Rule rule);
2026-03-14 14:30:52 +08:00
/**
* 新增规则
*/
int insertRule(Rule rule);
/**
* 修改规则
*/
int updateRule(Rule rule);
/**
2026-03-14 14:30:52 +08:00
* 删除规则
*/
2026-03-14 14:30:52 +08:00
int deleteRuleById(Integer id);
/**
2026-03-14 14:30:52 +08:00
* 批量删除规则
*/
2026-03-14 14:30:52 +08:00
int deleteRuleByIds(@Param("ids")Integer[] ids);
}