You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/Myshipping.Core/Service/Enum/Dto/EnumDataInput.cs

32 lines
720 B
C#

2 years ago
using System.ComponentModel.DataAnnotations;
namespace Myshipping.Core.Service;
2 years ago
/// <summary>
/// 枚举输入参数
/// </summary>
public class EnumDataInput
{
/// <summary>
/// 枚举类型名称
/// </summary>
/// <example>Gender</example>
[Required(ErrorMessage = "枚举类型不能为空")]
public string EnumName { get; set; }
}
public class QueryEnumDataInput
{
/// <summary>
/// 实体名称
/// </summary>
[Required(ErrorMessage = "实体名称不能为空")]
public string EntityName { get; set; }
/// <summary>
/// 字段名称
/// </summary>
[Required(ErrorMessage = "字段名称不能为空")]
public string FieldName { get; set; }
}