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.
47 lines
1.3 KiB
47 lines
1.3 KiB
using Infrastructure.Application;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace IoT.Shared.Application.Models
|
|
{
|
|
/// <summary>
|
|
/// Defines the <see cref="EditProductModel" />.
|
|
/// </summary>
|
|
[Display(Name = "产品")]
|
|
public class EditProductModel : EditModel
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the Name.
|
|
/// </summary>
|
|
[Display(Name = "产品名称")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Number.
|
|
/// </summary>
|
|
[Display(Name = "产品型号")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Number { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Image.
|
|
/// </summary>
|
|
[Display(Name = "图片")]
|
|
[DataType(DataType.ImageUrl)]
|
|
public string Image { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Path.
|
|
/// </summary>
|
|
[Display(Name = "路径")]
|
|
public string Path { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the ApiJson.
|
|
/// </summary>
|
|
[Display(Name = "ApiJson")]
|
|
[DataType(DataType.MultilineText)]
|
|
public string ApiJson { get; set; }
|
|
}
|
|
}
|