Files
WMSlite/WmsLite.Api/Dtos/Container/ContainerUpdateRequest.cs
T
zhougfandCursor fa1b286463 Add WmsLite monorepo with JWT auth, tenant context, and project READMEs.
Implement API security baseline (sys_user, JWT, audit fields, transactions,
unique constraints) and Web real login with 401 handling. Document setup
and development workflows in root, WmsLite.Api, and WmsLite.Web README files.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-24 14:17:47 +08:00

24 lines
645 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using WmsLite.Api.Dtos.Common;
namespace WmsLite.Api.Dtos.Container;
public class ContainerUpdateRequest : TenantOwnerRequest
{
[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<string, object>? Attrs { get; set; }
}