You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.4 KiB
C#
70 lines
1.4 KiB
C#
using DS.Module.Core;
|
|
using FluentValidation;
|
|
|
|
namespace DS.WMS.Core.Fee.Dtos;
|
|
|
|
/// <summary>
|
|
/// 币别信息请求实体
|
|
/// </summary>
|
|
public class FeeCurrencyReq
|
|
{
|
|
/// <summary>
|
|
/// 主键Id
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 币别代码
|
|
/// </summary>
|
|
public string CodeName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 币别名称
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
/// <summary>
|
|
/// 财务软件代码
|
|
/// </summary>
|
|
public string FinanceSoftCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 默认对人民币汇率
|
|
/// </summary>
|
|
public decimal? DefaultRate { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 状态 0 启用 1 禁用
|
|
/// </summary>
|
|
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public string Note { get; set; } = "";
|
|
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 验证
|
|
/// </summary>
|
|
public class FeeCurrencyReqValidator : AbstractValidator<FeeCurrencyReq>
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public FeeCurrencyReqValidator()
|
|
{
|
|
this.RuleFor(o => o.CodeName)
|
|
.NotEmpty().WithName("币别代码");
|
|
this.RuleFor(o => o.Name)
|
|
.NotEmpty().WithName("币别名称");
|
|
}
|
|
} |