mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
Add excludedRID param to collection search api.
This commit is contained in:
@@ -730,7 +730,10 @@ class Network {
|
||||
);
|
||||
}
|
||||
|
||||
async listUserCollections(username: string, page: number = 1): Promise<PageResponse<Collection>> {
|
||||
async listUserCollections(
|
||||
username: string,
|
||||
page: number = 1,
|
||||
): Promise<PageResponse<Collection>> {
|
||||
return this._callApi(() =>
|
||||
axios.get(`${this.apiBaseUrl}/collection/list`, {
|
||||
params: { username, page },
|
||||
@@ -776,10 +779,11 @@ class Network {
|
||||
async searchUserCollections(
|
||||
username: string,
|
||||
keyword: string,
|
||||
excludedRID?: number,
|
||||
): Promise<Response<Collection[]>> {
|
||||
return this._callApi(() =>
|
||||
axios.get(`${this.apiBaseUrl}/collection/search`, {
|
||||
params: { username, keyword },
|
||||
params: { username, keyword, excludedRID },
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user