mirror of
https://github.com/ctwj/urldb.git
synced 2025-11-25 11:29:37 +08:00
update: wechat
This commit is contained in:
@@ -354,4 +354,18 @@ export const useSystemLogApi = () => {
|
||||
getSystemLogSummary,
|
||||
clearSystemLogs
|
||||
}
|
||||
}
|
||||
|
||||
// 微信机器人管理API
|
||||
export const useWechatApi = () => {
|
||||
const getBotConfig = () => useApiFetch('/wechat/bot-config').then(parseApiResponse)
|
||||
const updateBotConfig = (data: any) => useApiFetch('/wechat/bot-config', { method: 'PUT', body: data }).then(parseApiResponse)
|
||||
const getBotStatus = () => useApiFetch('/wechat/bot-status').then(parseApiResponse)
|
||||
const uploadVerifyFile = (formData: FormData) => useApiFetch('/wechat/verify-file', { method: 'POST', body: formData }).then(parseApiResponse)
|
||||
return {
|
||||
getBotConfig,
|
||||
updateBotConfig,
|
||||
getBotStatus,
|
||||
uploadVerifyFile
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user