feat(api-sync): implement sync pull endpoint with cursor

This commit is contained in:
2026-04-06 01:03:12 +08:00
parent ecf0d9ff03
commit 661788ae75
4 changed files with 416 additions and 41 deletions
+16
View File
@@ -0,0 +1,16 @@
import { Type } from "class-transformer";
import { IsInt, IsOptional, IsString, Max, MaxLength, Min } from "class-validator";
export class SyncPullQueryDto {
@IsOptional()
@IsString()
@MaxLength(512)
cursor?: string;
@Type(() => Number)
@IsOptional()
@IsInt()
@Min(1)
@Max(200)
limit?: number;
}