21 lines
519 B
C#
21 lines
519 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using WmsLite.Api.Dtos.Common;
|
|
|
|
namespace WmsLite.Api.Dtos.Container;
|
|
|
|
public class ContainerSaveRequest
|
|
{
|
|
[Required(ErrorMessage = "容器编码不能为空。")]
|
|
[StringLength(64)]
|
|
public string Code { get; set; } = string.Empty;
|
|
|
|
[StringLength(256)]
|
|
public string? Name { get; set; }
|
|
|
|
[StringLength(64)]
|
|
public string? ContainerType { get; set; }
|
|
|
|
public Dictionary<string, object>? Attrs { get; set; }
|
|
}
|