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
902 B
34 lines
902 B
using Infrastructure.Application;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Application.Models
|
|
{
|
|
[Display(Name = "产品")]
|
|
public class EditProductModel : EditModel
|
|
{
|
|
[Display(Name = "产品分类")]
|
|
[DataType("SelectList")]
|
|
public Guid? CategoryId { get; set; }
|
|
|
|
[Display(Name = "产品名称")]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "产品型号")]
|
|
public string Number { get; set; }
|
|
|
|
[Display(Name = "图片")]
|
|
[DataType(DataType.ImageUrl)]
|
|
public string Image { get; set; }
|
|
|
|
[Display(Name = "路径")]
|
|
public string Path { get; set; }
|
|
|
|
[Display(Name = "序号")]
|
|
public int DisplayOrder { get; set; }
|
|
|
|
[Display(Name = "ApiJson")]
|
|
[DataType(DataType.MultilineText)]
|
|
public string ApiJson { get; set; }
|
|
}
|
|
} |