using DS.Module.Core; using FluentValidation; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.WMS.Core.Code.Dtos { /// /// 自定义列表字段设置请求 /// public class CustomColumnSetReq { /// /// 主键Id /// public long Id { get; set; } /// /// 自定义列表Code /// public string CustomTableCode { get; set; } /// /// 模板名称 /// public string TemplateName { get; set; } /// /// 列表设置 /// public string Content { get; set; } /// /// 排序 /// public int? OrderNo { get; set; } = 100; /// /// 状态 0 启用 1 禁用 /// public StatusEnum? Status { get; set; } = StatusEnum.Enable; /// /// 备注 /// public string Note { get; set; } = ""; } /// /// 验证 /// public class CustomColumnSetReqValidator : AbstractValidator { /// /// 构造函数 /// public CustomColumnSetReqValidator() { this.RuleFor(o => o.CustomTableCode) .NotEmpty().WithName("自定义列表Code"); this.RuleFor(o => o.Content) .NotEmpty().WithName("列表设置"); } } }