using DS.Module.Core; using FluentValidation; namespace DS.WMS.Core.Code.Dtos; /// /// 付费方式请求实体 /// public class CodeFrtReq { /// /// 主键Id /// public long Id { get; set; } /// /// 付费方式-英文名称 /// public string FrtName { get; set; }= ""; /// /// 中文名称 /// public string CnName { get; set; }= ""; /// /// EDI代码 /// public string EdiCode { get; set; } = ""; /// /// 状态 0 启用 1 禁用 /// public StatusEnum? Status { get; set; } = StatusEnum.Enable; /// /// 备注 /// public string Note { get; set; } = ""; } /// /// 验证 /// public class CodeFrtReqValidator : AbstractValidator { /// /// 构造函数 /// public CodeFrtReqValidator() { this.RuleFor(o => o.FrtName) .NotEmpty().WithName("付费方式-英文名称"); } }