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>
This commit is contained in:
commit
fa1b286463
241 files changed
+31188
No files matched your search
@@ -0,0 +1,53 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using WmsLite.Api.Dtos.Common;
|
||||
using WmsLite.Api.Enums;
|
||||
|
||||
namespace WmsLite.Api.Dtos.Location;
|
||||
|
||||
public class LocationUpdateRequest : TenantOwnerRequest
|
||||
{
|
||||
[Range(1, long.MaxValue, ErrorMessage = "Id 必须大于 0。")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[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; }
|
||||
}
|
||||
Reference in new issue
Block a user