feat: implement some group album actions
This commit is contained in:
1 parent
b176e929b9
commit
0401ac4afb
9 files changed
+516
-1
No files matched your search
@@ -111,7 +111,10 @@ import {
|
||||
getCookiesStr as getCookiesStr_,
|
||||
getCsrfToken as getCsrfToken_,
|
||||
getCredentials as getCredentials_,
|
||||
getGroupAlbumListWeb as getGroupAlbumListWeb_,
|
||||
uploadImageToGroupAlbumWeb as uploadImageToGroupAlbumWeb_,
|
||||
} from './web-actions';
|
||||
import { getGroupAlbumMediaList as getGroupAlbumMediaList_ } from './actions/group-album';
|
||||
import type { GroupFilesResult } from './actions/group-file';
|
||||
import type { MediaIndexNode } from './actions/shared';
|
||||
import { BridgeEventBus } from './event-bus';
|
||||
@@ -645,6 +648,18 @@ export class Bridge {
|
||||
return getGroupEssenceAll_(this, groupId);
|
||||
}
|
||||
|
||||
async getGroupAlbumList(groupId: number): Promise<any> {
|
||||
return getGroupAlbumListWeb_(this, groupId);
|
||||
}
|
||||
|
||||
async uploadImageToGroupAlbum(groupId: number, albumId: string, albumName: string, filePath: string): Promise<void> {
|
||||
return uploadImageToGroupAlbumWeb_(this, groupId, albumId, albumName, filePath);
|
||||
}
|
||||
|
||||
async getGroupAlbumMediaList(groupId: number, albumId: string): Promise<any> {
|
||||
return getGroupAlbumMediaList_(this, groupId, albumId);
|
||||
}
|
||||
|
||||
async sendGroupNotice(groupId: number, content: string, options?: any) {
|
||||
return sendGroupNotice_(this, groupId, content, options);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user