using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Code.Dtos;
///
/// 结算方式请求实体
///
public class CodeStlModeReq
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 结算方式唯一代码
///
public string StlCode { get; set; } = "";
///
/// 结算方式名称
///
public string StlName { get; set; } = "";
///
/// 英文名称
///
public string EnName { get; set; } = "";
///
/// 财务软件代码
///
public string FinanceSoftCode { get; set; } = "";
///
/// 状态 0 启用 1 禁用
///
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
///
/// 备注
///
public string Note { get; set; } = "";
}
///
/// 验证
///
public class CodeStlModeReqValidator : AbstractValidator
{
///
/// 构造函数
///
public CodeStlModeReqValidator()
{
this.RuleFor(o => o.StlCode)
.NotEmpty().WithName("结算方式唯一代码");
this.RuleFor(o => o.StlName)
.NotEmpty().WithName("结算方式名称");
}
}