update: wechat

This commit is contained in:
ctwj
2025-10-31 13:36:07 +08:00
parent 005aa71cc2
commit 8baf5c6c3d
14 changed files with 1403 additions and 9 deletions

View File

@@ -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
}
}