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>
27 lines
824 B
C#
27 lines
824 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using WmsLite.Api.Dtos.Common;
|
|
|
|
namespace WmsLite.Api.Dtos.Zone;
|
|
|
|
public class ZoneSaveRequest : 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 Code { get; set; } = string.Empty;
|
|
|
|
[Required(ErrorMessage = "分区名称不能为空。")]
|
|
[StringLength(256)]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public Dictionary<string, object>? Attrs { get; set; }
|
|
}
|