Files
WMSlite/WmsLite.Api/Dtos/Location/LocationSaveRequest.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

51 lines
1.4 KiB
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using WmsLite.Api.Dtos.Common;
using WmsLite.Api.Enums;
namespace WmsLite.Api.Dtos.Location;
public class LocationSaveRequest : TenantOwnerRequest
{
[Required(ErrorMessage = "仓库编码不能为空。")]
[StringLength(64)]
public string WarehouseCode { get; set; } = string.Empty;
[Required(ErrorMessage = "库区编码不能为空。")]
[StringLength(64)]
public string AreaCode { get; set; } = string.Empty;
[Required(ErrorMessage = "分区编码不能为空。")]
[StringLength(64)]
public string ZoneCode { get; set; } = string.Empty;
[StringLength(64)]
public string? AisleCode { get; set; }
[Required(ErrorMessage = "储位编码不能为空。")]
[StringLength(64)]
public string Code { get; set; } = string.Empty;
[StringLength(256)]
public string? Name { get; set; }
public int? RowNo { get; set; }
public int? ColumnNo { get; set; }
public int? LayerNo { get; set; }
public decimal? Height { get; set; }
[Required]
[EnumDataType(typeof(LocationStatus), ErrorMessage = "LocationStatus 无效。")]
public LocationStatus LocationStatus { get; set; } = LocationStatus.Empty;
public bool IsOuter { get; set; }
[StringLength(64)]
public string? ContainerCode { get; set; }
public Dictionary<string, object>? Attrs { get; set; }
}