refactor: use cursors instead of pages

This commit is contained in:
izzy
2026-01-06 15:49:36 +00:00
parent 06ee275202
commit d189722bbf
12 changed files with 100 additions and 115 deletions

View File

@@ -16928,11 +16928,11 @@
},
"IntegrityGetReportDto": {
"properties": {
"page": {
"minimum": 1,
"type": "number"
"cursor": {
"format": "uuid",
"type": "string"
},
"size": {
"limit": {
"minimum": 1,
"type": "number"
},
@@ -16974,18 +16974,17 @@
},
"IntegrityReportResponseDto": {
"properties": {
"hasNextPage": {
"type": "boolean"
},
"items": {
"items": {
"$ref": "#/components/schemas/IntegrityReportDto"
},
"type": "array"
},
"nextCursor": {
"type": "string"
}
},
"required": [
"hasNextPage",
"items"
],
"type": "object"

View File

@@ -41,8 +41,8 @@ export type ActivityStatisticsResponseDto = {
likes: number;
};
export type IntegrityGetReportDto = {
page?: number;
size?: number;
cursor?: string;
limit?: number;
"type": IntegrityReportType;
};
export type IntegrityReportDto = {
@@ -51,8 +51,8 @@ export type IntegrityReportDto = {
"type": IntegrityReportType;
};
export type IntegrityReportResponseDto = {
hasNextPage: boolean;
items: IntegrityReportDto[];
nextCursor?: string;
};
export type IntegrityReportSummaryResponseDto = {
checksum_mismatch: number;