This commit is contained in:
hptangxi
2025-07-06 19:42:24 +08:00
parent 633645724c
commit ac4ac0e753
5 changed files with 242 additions and 44 deletions

View File

@@ -82,10 +82,16 @@ export const keysApi = {
error: string;
}[]
> {
const res = await http.post("/keys/test-multiple", {
group_id,
keys_text,
});
const res = await http.post(
"/keys/test-multiple",
{
group_id,
keys_text,
},
{
hideMessage: true,
}
);
return res.data;
},
@@ -97,6 +103,14 @@ export const keysApi = {
});
},
// 测试密钥
restoreKeys(group_id: number, keys_text: string): Promise<null> {
return http.post("/keys/restore-multiple", {
group_id,
keys_text,
});
},
// 恢复所有无效密钥
restoreAllInvalidKeys(group_id: number): Promise<void> {
return http.post("/keys/restore-all-invalid", { group_id });