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.
25 lines
750 B
25 lines
750 B
using Infrastructure.Application;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Application.Models
|
|
{
|
|
[Display(Name = "Api")]
|
|
public class EditApiModel : EditModel
|
|
{
|
|
[Display(Name = "名称")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "路径")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Path { get; set; }
|
|
|
|
[Display(Name = "命令")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Command { get; set; }
|
|
|
|
[Display(Name = "方法")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Method { get; set; }
|
|
}
|
|
} |