using DS.Module.Core; using DS.WMS.Core.Code.Dtos; using FluentValidation; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.WMS.Core.Op.Dtos { /// /// /// public class BookingGoodsStatusConfigReq { /// /// 主键Id /// public long Id { get; set; } /// /// 系统编码 /// public string SystemCode { get; set; } /// /// 状态名称 /// public string StatusName { get; set; } /// /// 排序 /// public int? OrderNo { get; set; } = 100; /// /// 备注 /// public string Note { get; set; } = ""; /// /// 状态 0启用 1禁用 /// public StatusEnum? Status { get; set; } = StatusEnum.Enable; } /// /// 验证 /// public class BookingStatusConfigReqValidator : AbstractValidator { /// /// 构造函数 /// public BookingStatusConfigReqValidator() { this.RuleFor(o => o.SystemCode) .NotEmpty().WithName("系统编码"); this.RuleFor(o => o.StatusName) .NotEmpty().WithName("状态名称"); } } }