WMSlite/WmsLite.Api/Dtos/Common/BasePagedQuery.cs
zhougf fa1b286463 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>
2026-05-24 14:17:47 +08:00

21 lines
698 B
C#

using System.ComponentModel.DataAnnotations;
namespace WmsLite.Api.Dtos.Common;
public class BasePagedQuery
{
[Obsolete("Ignored; tenant is resolved from the authenticated user context.")]
[StringLength(64)]
public string TenantId { get; set; } = string.Empty;
[Obsolete("Ignored; owner is resolved from the authenticated user context.")]
[StringLength(64)]
public string OwnerCode { get; set; } = string.Empty;
[Range(1, int.MaxValue, ErrorMessage = "PageIndex must be greater than or equal to 1.")]
public int PageIndex { get; set; } = 1;
[Range(1, 500, ErrorMessage = "PageSize must be between 1 and 500.")]
public int PageSize { get; set; } = 20;
}