using System.ComponentModel.DataAnnotations; namespace Oms.Application.Dtos.System; /// /// 新增通知入参。 /// public class NoticeCreateInput { /// /// 通知类型:notice/message。 /// [Required] [StringLength(16)] public string NoticeType { get; set; } = string.Empty; /// /// 标题(公告必填;站内信可空)。 /// [StringLength(128)] public string? Title { get; set; } /// /// 正文内容。 /// [Required] public string Content { get; set; } = string.Empty; /// /// 是否弹窗:0-否,1-是。 /// public byte IsPopup { get; set; } /// /// 接收对象类型:user/customer。 /// [Required] [StringLength(16)] public string ReceiverType { get; set; } = string.Empty; /// /// 接收主体 ID 列表。 /// public List ReceiverIds { get; set; } = []; }