设备类添加产品字段、添加物模型类,新增产品CRUD方法

This commit is contained in:
2026-09-03 17:16:28 +08:00
parent cfa8e78d33
commit bcd6484f45
29 changed files with 1611 additions and 23 deletions
@@ -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>
/// 新增告警规则(前端传 DTOId 为 string
/// </summary>