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.
ds8-solution-pro/ds-wms-service/DS.WMS.Core/Op/Dtos/BookingGoodsStatusConfigReq.cs

67 lines
1.6 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.Code.Dtos;
using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 订舱货物状态管理
/// </summary>
public class BookingGoodsStatusConfigReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 系统编码
/// </summary>
public string SystemCode { get; set; }
/// <summary>
/// 状态名称
/// </summary>
public string StatusName { get; set; }
/// <summary>
/// 状态颜色
/// </summary>
public string StatusColor { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? OrderNo { get; set; } = 100;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 状态 0启用 1禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
}
/// <summary>
/// 验证
/// </summary>
public class BookingStatusConfigReqValidator : AbstractValidator<BookingGoodsStatusConfigReq>
{
/// <summary>
/// 构造函数
/// </summary>
public BookingStatusConfigReqValidator()
{
this.RuleFor(o => o.SystemCode)
.NotEmpty().WithName("系统编码");
this.RuleFor(o => o.StatusName)
.NotEmpty().WithName("状态名称");
}
}
}