Search by userNotes, notes in playerList and friendsList

This commit is contained in:
Natsumi
2025-06-09 09:07:52 +12:00
parent 98c3e43561
commit 5b7da6a91f
8 changed files with 209 additions and 15 deletions

View File

@@ -155,6 +155,24 @@ const userReq = {
window.API.$emit('USER:CURRENT:SAVE', args);
return args;
});
},
/**
* @param params {{ offset: number, n: number }}
* @returns {Promise<{json: any, params}>}
*/
getUserNotes(params) {
return window.API.call(`userNotes`, {
method: 'GET',
params
}).then((json) => {
const args = {
json,
params
};
// window.API.$emit('USER:NOTES', args);
return args;
});
}
};
// #endregion