64 lines
1.3 KiB
C#
64 lines
1.3 KiB
C#
using Cowain.Base.DBContext;
|
|
using Cowain.Base.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Plugin.Cowain.Driver.Models.Enum;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Plugin.Cowain.Driver.Models.Dto;
|
|
|
|
[Table("var_action")]
|
|
public class VarActionDto : BaseModel
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
/// <summary>
|
|
/// 设备ID
|
|
/// </summary>
|
|
[Required]
|
|
public int DeviceId { get; set; }
|
|
/// <summary>
|
|
/// 变量Id
|
|
/// </summary>
|
|
[Required]
|
|
public int TagId { get; set; }
|
|
/// <summary>
|
|
/// 方法名称
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(200)]
|
|
public string ActionName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 方法参数
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(1000)]
|
|
public string Param { get; set; } = string.Empty;
|
|
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(500)]
|
|
public string Desc { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 触发参数
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(200)]
|
|
public string ActionValue { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 条件
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(200)]
|
|
public string Condition { get; set; } = string.Empty;
|
|
|
|
}
|
|
|