mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: add Pagination interface and integrate it into User type
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export interface Pagination {
|
||||
page: number;
|
||||
pageSize: number;
|
||||
totalCount: number;
|
||||
totalPages: number;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { Paste } from './paste';
|
||||
import type { Pagination } from './pagination';
|
||||
|
||||
export interface User {
|
||||
uid: number;
|
||||
@@ -10,4 +11,5 @@ export interface User {
|
||||
roles: number[];
|
||||
visibility: 0 | 1 | 2;
|
||||
pastes: Paste[] | null;
|
||||
pagination: Pagination | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user