- 配置AuthService使用OpenIddict reference tokens - 添加fengling-api客户端用于introspection验证 - 配置Console API通过OpenIddict验证reference tokens - 实现Tenant/Users/Roles/OAuthClients CRUD API - 添加GatewayController服务注册API - 重构Repository和Service层支持多租户 BREAKING CHANGE: API认证现在使用OpenIddict reference tokens
30 lines
641 B
C#
30 lines
641 B
C#
namespace Fengling.Console.Models.Dtos;
|
|
|
|
public class PaginationQueryDto
|
|
{
|
|
public int Page { get; set; } = 1;
|
|
|
|
public int PageSize { get; set; } = 10;
|
|
|
|
public string? SortBy { get; set; }
|
|
|
|
public string? SortOrder { get; set; }
|
|
}
|
|
|
|
public class PagedResultDto<T>
|
|
{
|
|
public List<T> Items { get; set; } = new();
|
|
|
|
public int TotalCount { get; set; }
|
|
|
|
public int Page { get; set; }
|
|
|
|
public int PageSize { get; set; }
|
|
|
|
public int TotalPages => PageSize > 0 ? (int)Math.Ceiling((double)TotalCount / PageSize) : 0;
|
|
|
|
public bool HasNextPage => Page < TotalPages;
|
|
|
|
public bool HasPreviousPage => Page > 1;
|
|
}
|