23 lines
602 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
2026-03-03 16:46:02 +08:00
using YD_Event.Core.Enum;
namespace YD_Event.Application.Certificate.Dtos;
public class AddCertificateInput
{
[Required(ErrorMessage = "证书名称不能为空")]
public string Name { get; set; }
2026-03-03 16:46:02 +08:00
[Required(ErrorMessage = "证书编码不能为空")]
public string Code { get; set; }
2026-03-02 21:09:03 +08:00
2026-03-03 16:46:02 +08:00
[Required(ErrorMessage = "模板ID不能为空")]
public long TemplateId { get; set; }
2026-02-07 16:03:52 +08:00
public string Remark { get; set; }
2026-03-03 16:46:02 +08:00
public AvailabilityStatus Status { get; set; } = AvailabilityStatus.Enable;
public int Sort { get; set; }
}