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>
49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using WmsLite.Api.Dtos.Common;
|
|
|
|
namespace WmsLite.Api.Dtos.Template;
|
|
|
|
public class SysTemplatePagedQuery : BasePagedQuery
|
|
{
|
|
[StringLength(64)]
|
|
public string? BizType { get; set; }
|
|
|
|
[StringLength(128)]
|
|
public string? BizName { get; set; }
|
|
}
|
|
|
|
public class SysTemplateSaveRequest : TenantOwnerRequest
|
|
{
|
|
[Required]
|
|
[StringLength(64)]
|
|
public string BizType { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[StringLength(128)]
|
|
public string BizName { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string ConfigJson { get; set; } = "[]";
|
|
}
|
|
|
|
public class SysTemplateUpdateRequest : SysTemplateSaveRequest
|
|
{
|
|
[Range(1, long.MaxValue)]
|
|
public long Id { get; set; }
|
|
}
|
|
|
|
public class SysTemplateViewDto
|
|
{
|
|
public long Id { get; set; }
|
|
|
|
public string TenantId { get; set; } = string.Empty;
|
|
|
|
public string OwnerCode { get; set; } = string.Empty;
|
|
|
|
public string BizType { get; set; } = string.Empty;
|
|
|
|
public string BizName { get; set; } = string.Empty;
|
|
|
|
public string? ConfigJson { get; set; }
|
|
}
|