23 lines
661 B
C#
23 lines
661 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using WmsLite.Api.Dtos.Common;
|
|
|
|
namespace WmsLite.Api.Dtos.Area;
|
|
|
|
public class AreaSaveRequest
|
|
{
|
|
[Required(ErrorMessage = "仓库编码不能为空。")]
|
|
[StringLength(64)]
|
|
public string WarehouseCode { get; set; } = string.Empty;
|
|
|
|
[Required(ErrorMessage = "库区编码不能为空。")]
|
|
[StringLength(64)]
|
|
public string Code { get; set; } = string.Empty;
|
|
|
|
[Required(ErrorMessage = "库区名称不能为空。")]
|
|
[StringLength(256)]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public Dictionary<string, object>? Attrs { get; set; }
|
|
}
|