You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
886 B
31 lines
886 B
using System.ComponentModel.DataAnnotations;
|
|
using Application.Domain.Entities;
|
|
using Infrastructure.Application;
|
|
|
|
namespace Application.Models
|
|
{
|
|
[Display(Name = "数据")]
|
|
public class EditDataModel : EditModel
|
|
{
|
|
[Display(Name = "类型")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public DeviceDataType Type { get; set; }
|
|
|
|
[Display(Name = "键")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Key { get; set; }
|
|
|
|
[Display(Name = "名称")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "值")]
|
|
public string Value { get; set; }
|
|
|
|
[Display(Name = "单位")]
|
|
public string Unit { get; set; }
|
|
|
|
[Display(Name = "描述")]
|
|
public string Description { get; set; }
|
|
}
|
|
} |