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>
29 lines
843 B
C#
29 lines
843 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using WmsLite.Api.Dtos.Common;
|
|
|
|
namespace WmsLite.Api.Dtos.Material;
|
|
|
|
public class MaterialUpdateRequest : TenantOwnerRequest
|
|
{
|
|
[Range(1, long.MaxValue, ErrorMessage = "Id 必须大于 0。")]
|
|
public long Id { get; set; }
|
|
|
|
[Required(ErrorMessage = "物料编码不能为空。")]
|
|
[StringLength(64)]
|
|
public string Code { get; set; } = string.Empty;
|
|
|
|
[Required(ErrorMessage = "物料名称不能为空。")]
|
|
[StringLength(256)]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[StringLength(512)]
|
|
public string? Spec { get; set; }
|
|
|
|
[Required(ErrorMessage = "单位不能为空。")]
|
|
[StringLength(32)]
|
|
public string Unit { get; set; } = string.Empty;
|
|
|
|
public Dictionary<string, object>? Attrs { get; set; }
|
|
}
|