前后端一些接口的重命名

This commit is contained in:
CrescentLeaf
2025-12-28 00:18:25 +08:00
parent ef84cc30c0
commit aa8a205e5f
5 changed files with 24 additions and 77 deletions

View File

@@ -123,7 +123,7 @@ export default class UserMySelf extends User {
}
}
async addFavouriteChatsOrThrow(chat_ids: string[]) {
const re = await this.client.invoke("User.addContacts", {
const re = await this.client.invoke("User.addFavouriteChats", {
token: this.client.access_token,
targets: chat_ids,
})
@@ -138,7 +138,7 @@ export default class UserMySelf extends User {
}
}
async removeFavouriteChatsOrThrow(chat_ids: string[]) {
const re = await this.client.invoke("User.removeContacts", {
const re = await this.client.invoke("User.removeFavouriteChats", {
token: this.client.access_token,
targets: chat_ids,
})
@@ -152,7 +152,7 @@ export default class UserMySelf extends User {
}
}
async getMyFavouriteChatBeansOrThrow() {
const re = await this.client.invoke("User.getMyContacts", {
const re = await this.client.invoke("User.getMyFavouriteChats", {
token: this.client.access_token
})
if (re.code == 200)