refactor(api): move 6 group-album methods to GroupAlbumApi (#6 commit 5/13)
Inlines `actions/group-album.ts` (OIDB sendRawPacket via QunAlbum.trpc.*) and `web-actions/group-album.ts` (HTTP cookie-based) into `apis/group-album.ts::GroupAlbumApi`. Both action files deleted. Pure HTTP helpers in `web/group-album.ts` stay where they are — they're transport-layer code. Method renaming follows the now-standard "drop the redundant suffix" rule (the Api namespace already says `groupAlbum`): getGroupAlbumList → list (HTTP) uploadImageToGroupAlbum → upload (HTTP slice-upload) getGroupAlbumMediaList → getMediaList commentGroupAlbumMedia → comment likeGroupAlbumMedia → like deleteGroupAlbumMedia → delete Callers updated: `instance-context.ts`. `web-actions/index.ts` no longer re-exports the deleted album functions. No tests existed for this surface area, so no test churn. 587/587 tests pass.
This commit is contained in:
1 parent
dad501ebc0
commit
c92daa56df
8 files changed
+302
-358
No files matched your search
@@ -62,13 +62,8 @@ export interface BridgeInterface {
|
||||
rememberUploadedFile(meta: UploadedFileMeta): void;
|
||||
recallUploadedFile(fileId: string): UploadedFileMeta | undefined;
|
||||
|
||||
// ─── Group Album ───
|
||||
getGroupAlbumList(groupId: number): Promise<any>;
|
||||
uploadImageToGroupAlbum(groupId: number, albumId: string, albumName: string, filePath: string): Promise<void>;
|
||||
getGroupAlbumMediaList(groupId: number, albumId: string, attachInfo?: string): Promise<any>;
|
||||
commentGroupAlbumMedia(groupId: number, albumId: string, lloc: string, content: string): Promise<any>;
|
||||
deleteGroupAlbumMedia(groupId: number, albumId: string, lloc: string): Promise<any>;
|
||||
likeGroupAlbumMedia(groupId: number, albumId: string, batchId: string, lloc: string | undefined, isLike: boolean): Promise<any>;
|
||||
// ─── Group Album (moved to apis.groupAlbum) ───
|
||||
// - list / upload / getMediaList / comment / like / delete
|
||||
|
||||
// ─── Forward ───
|
||||
uploadForwardNodes(nodes: ForwardNodePayload[], groupId?: number, userId?: number): Promise<string>;
|
||||
|
||||
Reference in new issue
Block a user