设备类添加产品字段、添加物模型类,新增产品CRUD方法
This commit is contained in:
@@ -8,6 +8,24 @@ namespace Model.Entity.Inspection
|
||||
/// </summary>
|
||||
public class AlertRuleEntity : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 归属类型(0=全局/旧数据;1=产品 2=设备)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "归属类型", DefaultValue = "0")]
|
||||
public byte OwnerType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 归属对象Id(ProductEntity.Id / IotDeviceEntity.Id,0 表示全局)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "归属对象Id", DefaultValue = "0")]
|
||||
public long OwnerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 绑定点编码(关联物模型点 Code;为空表示整产品/设备级规则)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "绑定点编码", Length = 64, IsNullable = true)]
|
||||
public string? PointCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 规则名称
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user