Add pika hailuo pagination (#173)

This commit is contained in:
HCode authored and GitHub committed 2025-02-10 22:20:12 +08:00
1 parent 14efcf4e55
commit d8fba2afd8
16 files changed
+172 -33

No files matched your search

+12
View File
@@ -30,6 +30,8 @@ class HailuoOperator {
type?: string;
limit?: number;
offset?: number;
createdAtMax?: number;
createdAtMin?: number;
},
options: { token: string }
): Promise<AxiosResponse<IHailuoTasksResponse>> {
@@ -66,6 +68,16 @@ class HailuoOperator {
? {
offset: filter.offset
}
: {}),
...(filter.createdAtMax !== undefined
? {
created_at_max: filter.createdAtMax
}
: {}),
...(filter.createdAtMin !== undefined
? {
created_at_min: filter.createdAtMin
}
: {})
},
{
+12
View File
@@ -30,6 +30,8 @@ class PikaOperator {
type?: string;
limit?: number;
offset?: number;
createdAtMax?: number;
createdAtMin?: number;
},
options: { token: string }
): Promise<AxiosResponse<IPikaTasksResponse>> {
@@ -66,6 +68,16 @@ class PikaOperator {
? {
offset: filter.offset
}
: {}),
...(filter.createdAtMax !== undefined
? {
created_at_max: filter.createdAtMax
}
: {}),
...(filter.createdAtMin !== undefined
? {
created_at_min: filter.createdAtMin
}
: {})
},
{