using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Sys.Dtos;
///
/// 租户参数类型请求实体
///
public class TenantParamReq
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 名称
///
public string ParamName { get; set; }
///
/// 编码
///
public string ParamCode { get; set; }
///
/// 类型
///
public string Type { get; set; }
///
/// 排序
///
public int? OrderNo { get; set; } = 100;
///
/// 状态 0 启用 1 禁用
///
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
///
/// 备注
///
public string Note { get; set; } = "";
}
///
/// 验证
///
public class TenantParamReqValidator : AbstractValidator
{
///
/// 构造函数
///
public TenantParamReqValidator()
{
this.RuleFor(o => o.ParamName)
.NotEmpty().WithName("租户参数类型名称");
this.RuleFor(o => o.ParamCode)
.NotEmpty().WithName("租户参数类型唯一编码");
}
}