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.
iot/projects/IoT.Shared/Application/Models/EditParameterModel.cs

30 lines
871 B

using Infrastructure.Application;
using System.ComponentModel.DataAnnotations;
namespace Application.Models
{
[Display(Name = "参数")]
public class EditParameterModel : EditModel
{
[Display(Name = "类型")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Type { get; set; }
[Display(Name = "参数名")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Name { get; set; }
[Display(Name = "描述")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Description { get; set; }
[Display(Name = "必填")]
public bool Required { get; set; }
[Display(Name = "最大值")]
public string Maxinum { get; set; }
[Display(Name = "最小值")]
public string Minimum { get; set; }
}
}