using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using WmsLite.Api.Dtos.Common; namespace WmsLite.Api.Dtos.Container; public class ContainerUpdateRequest { [Range(1, long.MaxValue, ErrorMessage = "Id 必须大于 0。")] public long Id { get; set; } [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? Attrs { get; set; } }