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/EditIoTApiModel.cs

37 lines
1.0 KiB

using Infrastructure.Application;
using System;
using System.ComponentModel.DataAnnotations;
namespace IoT.Shared.Application.Models
{
[Display(Name = "接口")]
public class EditIoTApiModel : EditModel
{
[Display(Name = "产品")]
[ReadOnlyForEdit]
[SelectList]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public Guid? ProductId { get; set; }
[Display(Name = "名称")]
[ReadOnlyForEdit]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Name { get; set; }
[Display(Name = "路径")]
[ReadOnlyForEdit]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Path { get; set; }
[Display(Name = "命令")]
[ReadOnlyForEdit]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Command { get; set; }
[Display(Name = "方法")]
[ReadOnlyForEdit]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Method { get; set; }
}
}