设备类添加产品字段、添加物模型类,新增产品CRUD方法
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using Model;
|
||||
using Model.Dto.Inspection;
|
||||
using Model.Entity.Inspection;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -12,10 +11,15 @@ namespace Service.Interface
|
||||
public interface IAlertRuleService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取全部告警规则列表
|
||||
/// 获取全局告警规则列表(OwnerType=0,不含产品/设备归属规则)
|
||||
/// </summary>
|
||||
Task<Result<List<AlertRuleDto>>> GetListAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 获取某归属对象下的规则列表(OwnerType=产品/设备,可选按点过滤)
|
||||
/// </summary>
|
||||
Task<Result<List<AlertRuleDto>>> GetOwnerRulesAsync(int ownerType, long ownerId, string? pointCode);
|
||||
|
||||
/// <summary>
|
||||
/// 新增告警规则(前端传 DTO,Id 为 string)
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user