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.
23 lines
681 B
23 lines
681 B
using Infrastructure.Application;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Application.Models
|
|
{
|
|
[Display(Name = "分类")]
|
|
public class EditCategoryModel : EditModel
|
|
{
|
|
[Display(Name = "分类名称")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "分类编号")]
|
|
[ReadOnly(true)]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Number { get; set; }
|
|
|
|
[Display(Name = "Icon")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Icon { get; set; }
|
|
}
|
|
} |