diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts index 092f390..c1d222f 100644 --- a/frontend/src/api/index.ts +++ b/frontend/src/api/index.ts @@ -804,3 +804,12 @@ export const evolutionAPI = { }, getReportDetail: (reportId: string) => get(`/evolution/reports/${reportId}`), }; + +// ===== iLink 个人微信(前台用户) ===== +export const imUserAPI = { + getStatus: () => get('/im/wechat/status'), + qrcode: () => post('/im/wechat/qrcode'), + qrcodeStatus: (qrcode: string) => post(`/im/wechat/qrcode/status?qrcode=${encodeURIComponent(qrcode)}`), + disconnect: () => post('/im/wechat/disconnect'), + history: () => get('/im/wechat/history'), +};