using System.ComponentModel.DataAnnotations; namespace Dlhis.Basic.WorkGrids.Request; public class WorkGridSaveRequest { public long? Id { get; set; } [Required(ErrorMessage = "名称不可为空")] public string Name { get; set; } /// /// 负责人 /// [Required(ErrorMessage = "负责人不可为空")] public string LeaderUserCode { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 排班用户数提醒 /// [Range(1, int.MaxValue, ErrorMessage = "请设置排班用户数提醒")] public int MaxUserTipCount { get; set; } /// /// 连续排班数提醒 /// [Range(1, int.MaxValue, ErrorMessage = "请设置连续排班数提醒")] public int MaxConsecutiveTipCount { get; set; } /// /// 请设置连续排班限制 /// [Range(1, int.MaxValue, ErrorMessage = "请设置连续排班限制")] public int MaxConsecutiveLimitCount { get; set; } /// /// 别名 /// [Required(ErrorMessage = "别名不可为空")] public string Alias { get; set; } /// /// 编制人数 /// [Range(1, int.MaxValue, ErrorMessage = "编制人数")] public int Count { get; set; } }