feat(onebot): add structured Qzone feeds and cursor pagination

Expose readable feed content, media and available statistics while preserving existing result fields and callers. Carry continuation state across pages and report invalid or stalled pagination explicitly.
This commit is contained in:
DrSmoothl committed 2026-10-24 22:16:06 +08:00
1 parent d95d3bf761
commit 9bf4b9107b
19 files changed
+1287 -120

No files matched your search

+3 -1
View File
@@ -570,9 +570,11 @@ export interface GetQzoneMsgListParams extends JsonObject {
}
export interface GetQzoneFeedsParams extends JsonObject {
/** Page number starts at 1; only the first page is reliable upstream. */
/** Starts at 1. Without a cursor, earlier pages are traversed to reach this page. */
page_num?: ActionNumberInput;
count?: ActionNumberInput;
/** Pass next_cursor unchanged for the same account; omit page_num when continuing. */
cursor?: string;
}
export interface QzoneMsgIdParams extends JsonObject {
+11
View File
@@ -403,11 +403,22 @@ export interface QzoneFeed extends JsonObject {
appid: number;
key: string;
html: string;
/** Newer servers return these fields; null means the source could not establish the value. */
tid?: string | null;
content?: string | null;
/** False for a collapsed excerpt; null when content is unavailable. */
content_complete?: boolean | null;
/** Images visible in the post body, excluding avatars, comment images and video covers. */
images?: string[] | null;
like_count?: number | null;
comment_count?: number | null;
}
export interface QzoneFeedsResult extends JsonObject {
feeds: QzoneFeed[];
has_more: boolean;
/** Opaque account-bound continuation; null at the end, absent on older servers. */
next_cursor?: string | null;
}
export interface QzonePublishResult extends JsonObject {