30 lines
776 B
C#
Raw Permalink Normal View History

2025-06-04 09:42:48 +08:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Syc.Basic.Web.Dtos.Dict
{
public class DictItemDto:Input
{
public int Id { get; set; }
[Required(ErrorMessage = "字典编号必填")]
public string dictCode { get; set; }
[Required(ErrorMessage = "字段名必填"),MaxLength(50,ErrorMessage = "字段名长度不超过50")]
public string key { get; set; }
[Required(ErrorMessage = "字典项值必填")]
public string value { get; set; }
public string subValue { get; set; }
public bool status { get; set; }
public DateTime createdAt { get; set; }
}
}