更新框架

This commit is contained in:
chfei committed 2026-10-27 14:35:03 +08:00
1 parent ef50fa0620
commit 84b28f9672
72 files changed
+2222 -282

No files matched your search

@@ -0,0 +1,19 @@
namespace Store.Management.Api.Models;
public sealed class ApiResult<T>
{
public required int Code { get; init; }
public string? Msg { get; init; }
public string? TraceId { get; init; }
public T? Data { get; init; }
}
public sealed record PageResult<T>(long Total, IReadOnlyList<T> Items);
public class PageRequest
{
[System.ComponentModel.DataAnnotations.Range(1, 1000000)]
public int Page { get; set; } = 1;
[System.ComponentModel.DataAnnotations.Range(1, 200)]
public int PageSize { get; set; } = 50;
}