Add tag alias management functionality

This commit is contained in:
2025-06-09 19:47:46 +08:00
parent f46678b8db
commit 3aac8faad7
5 changed files with 297 additions and 2 deletions

View File

@@ -435,6 +435,24 @@ class Network {
}
}
async setTagAlias(tagID: number, aliases: string[]): Promise<Response<Tag>> {
try {
const response = await axios.put(
`${this.apiBaseUrl}/tag/${tagID}/alias`,
{
aliases,
},
);
return response.data;
} catch (e: any) {
console.error(e);
return {
success: false,
message: e.toString(),
};
}
}
/**
* Upload image and return the image id
*/