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.
34 lines
952 B
34 lines
952 B
using Infrastructure.Application;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace IoT.Shared.Application.Models
|
|
{
|
|
[Display(Name = "产品")]
|
|
public class EditIoTProductModel : EditModel
|
|
{
|
|
[Display(Name = "产品名称")]
|
|
[ReadOnlyForEdit]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "产品型号")]
|
|
[ReadOnlyForEdit]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Number { get; set; }
|
|
|
|
[Display(Name = "图片")]
|
|
[ReadOnlyForEdit]
|
|
[DataType(DataType.ImageUrl)]
|
|
public string Image { get; set; }
|
|
|
|
[Display(Name = "路径")]
|
|
[ReadOnlyForEdit]
|
|
public string Path { get; set; }
|
|
|
|
[Display(Name = "ApiJson")]
|
|
[DataType(DataType.MultilineText)]
|
|
[ReadOnlyForEdit]
|
|
public string ApiJson { get; set; }
|
|
}
|
|
}
|