mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-10 02:37:56 +08:00
finish first admin frontend
This commit is contained in:
@@ -31,3 +31,8 @@ export async function delSubscribe(groupNumber: string, platformName: string, ta
|
||||
const res = await axios.delete(`${baseUrl}subs`, {params: {groupNumber, platformName, target}});
|
||||
return res.data;
|
||||
}
|
||||
|
||||
export async function updateSubscribe(groupNumber: string, req: SubscribeConfig) {
|
||||
return axios.patch(`${baseUrl}subs`, req, {params: {groupNumber}})
|
||||
.then(res => res.data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user