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.
93 lines
1.9 KiB
C#
93 lines
1.9 KiB
C#
using DS.Module.Core;
|
|
using FluentValidation;
|
|
|
|
namespace DS.WMS.Core.Code.Dtos;
|
|
|
|
/// <summary>
|
|
/// 船公司信息请求实体
|
|
/// </summary>
|
|
public class CodeCarrierReq
|
|
{
|
|
/// <summary>
|
|
/// 主键Id
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 英文简称
|
|
/// </summary>
|
|
public string Code { get; set; }
|
|
/// <summary>
|
|
/// 中文名称
|
|
/// </summary>
|
|
public string CnName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 中文简称
|
|
/// </summary>
|
|
public string CnShortName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 英文名称
|
|
/// </summary>
|
|
public string EnName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 船公司代码别名
|
|
/// </summary>
|
|
public string OtherCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 国家Id
|
|
/// </summary>
|
|
public long CountryId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 国家名称
|
|
/// </summary>
|
|
public string CountryName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 船公司Logo
|
|
/// </summary>
|
|
public string Logo { get; set; }
|
|
/// <summary>
|
|
/// 描述
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public string Remark { get; set; }
|
|
/// <summary>
|
|
/// EDI代码
|
|
/// </summary>
|
|
public string EdiCode { get; set; }
|
|
/// <summary>
|
|
/// 状态 0 启用 1 禁用
|
|
/// </summary>
|
|
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public string Note { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 是否冻结
|
|
/// </summary>
|
|
public bool IsFrozen { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 验证
|
|
/// </summary>
|
|
public class CodeCarrierReqValidator : AbstractValidator<CodeCarrierReq>
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public CodeCarrierReqValidator()
|
|
{
|
|
|
|
}
|
|
} |