36 lines
742 B
C#
36 lines
742 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Oms.Application.Dtos.System;
|
|
|
|
/// <summary>
|
|
/// 新增字典入参。
|
|
/// </summary>
|
|
public class DictCreateInput
|
|
{
|
|
/// <summary>
|
|
/// 字典类型。
|
|
/// </summary>
|
|
[Required]
|
|
[StringLength(64)]
|
|
public string DictType { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 排序值。
|
|
/// </summary>
|
|
public int DictSort { get; set; }
|
|
|
|
/// <summary>
|
|
/// 字典编码。
|
|
/// </summary>
|
|
[Required]
|
|
[StringLength(64)]
|
|
public string DictCode { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 字典名称。
|
|
/// </summary>
|
|
[Required]
|
|
[StringLength(128)]
|
|
public string DictName { get; set; } = string.Empty;
|
|
}
|