using Infrastructure.Application;
using System.ComponentModel.DataAnnotations;
namespace IoT.Shared.Application.Models
{
///
/// Defines the .
///
[Display(Name = "产品")]
public class EditProductModel : EditModel
{
///
/// Gets or sets the Name.
///
[Display(Name = "产品名称")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Name { get; set; }
///
/// Gets or sets the Number.
///
[Display(Name = "产品型号")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Number { get; set; }
///
/// Gets or sets the Image.
///
[Display(Name = "图片")]
[DataType(DataType.ImageUrl)]
public string Image { get; set; }
///
/// Gets or sets the Path.
///
[Display(Name = "路径")]
public string Path { get; set; }
///
/// Gets or sets the ApiJson.
///
[Display(Name = "ApiJson")]
[DataType(DataType.MultilineText)]
public string ApiJson { get; set; }
}
}