[alerter] 工程初始化与告警定义相关接口

This commit is contained in:
tomsun28
2021-12-09 11:56:20 +08:00
parent 08bd342001
commit 29b3e23d02
12 changed files with 599 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
package com.usthe.alert.dao;
import com.usthe.alert.pojo.entity.AlertDefine;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import java.util.Set;
/**
* AlertDefine 数据库操作
* @author tom
* @date 2021/12/9 10:03
*/
public interface AlertDefineDao extends JpaRepository<AlertDefine, Long>, JpaSpecificationExecutor<AlertDefine> {
/**
* 根据ID列表删除告警定义
* @param alertDefineIds 告警定义ID列表
*/
void deleteAllByIdIn(Set<Long> alertDefineIds);
}