add keys
This commit is contained in:
@@ -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 });
|
||||
|
Reference in New Issue
Block a user