using DS.Module.Core; using FluentValidation; namespace DS.WMS.Core.Code.Dtos; /// /// 业务来源请求实体 /// public class CodeSourceDetailReq { /// /// 主键Id /// public long Id { get; set; } /// /// 业务来源Id /// public long SourceId { get; set; } /// /// 来源明细名称 /// public string DetailName { get; set; }= ""; /// /// 英文名称 /// public string EnName { get; set; } = ""; /// /// 状态 0 启用 1 禁用 /// public StatusEnum? Status { get; set; } = StatusEnum.Enable; /// /// 备注 /// public string Note { get; set; } = ""; } /// /// 验证 /// public class CodeSourceDetailReqValidator : AbstractValidator { /// /// 构造函数 /// public CodeSourceDetailReqValidator() { this.RuleFor(o => o.DetailName) .NotEmpty().WithName("来源明细名称"); } }