Initial commit

This commit is contained in:
shiyu
2025-05-18 20:48:20 +08:00
commit cde2c7b997
79 changed files with 5713 additions and 0 deletions

13
Models/PaginatedResult.cs Normal file
View File

@@ -0,0 +1,13 @@
namespace Foxel.Models;
public class PaginatedResult<T> : BaseResult<List<T>>
{
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 10;
public int TotalCount { get; set; }
public int TotalPages => (int)Math.Ceiling(TotalCount / (double)PageSize);
public bool HasPreviousPage => Page > 1;
public bool HasNextPage => Page < TotalPages;
}