连接与鉴权 正在加载 config.yml…
取 GUID:概览页 GET /api/wecom/accounts(会自动取首个填入)。取 Token:改 config.yml 的 token,或上方账号密码登录(仅填入内存)。跨域:后端 Gin 未开 CORS,不同源(file:// / 不同端口)会被浏览器拦截,请用同源反代(概览页有 nginx 片段)或把本目录放到后端同源静态目录。
URL 参数直达调用说明(参数优先于 config.yml,可分享链接)
通用:?base=后端地址&token=xxx&guid=xxx&api=friends|files|convs|msgs|ledger|overview
overview:&op=meta|healthz|adminmeta|accounts
friends: &f_scope=internal|external&f_keyword=张三&f_limit=200
files: &fi_owner=对方userId&fi_room=群ID&fi_kind=image&fi_status=uploaded&fi_limit=100
convs: &c_type=room|private&c_limit=50
msgs: &m_conv=room:群ID|private:对方userId&m_before=游标id&m_limit=50
ledger: &l_member=成员ID&l_source=pending_confirm&l_since=RFC3339&l_until=RFC3339&l_limit=50
示例:
?api=friends&f_keyword=张三&f_limit=100
?api=msgs&m_conv=room:Rxxxx&m_limit=50
?api=ledger&l_source=pending_confirm&l_limit=50
?api=overview&op=healthz
注意:token 放 URL 会留在浏览器历史/代理日志,敏感环境请只用 config.yml。
概览 / 元信息
企微好友
内容文件
聊天会话
会话消息
加分记录
概览 / 元信息
点击按钮发起查询,结果渲染到下方表格 + 原始 JSON。
原始 JSON / 请求信息
—
同源 nginx 反代片段(解决跨域,推荐)
location /api/ { proxy_pass http://127.0.0.1:8088/api/; }
location /ops/ { proxy_pass http://127.0.0.1:8088/ops/; }
企微好友 GET /api/external/wecom/friends?guid&scope&keyword&limit
原始 JSON / cURL
—
内容文件 GET /api/external/wecom/files?guid&owner_user_id&room_id&media_kind&status&limit
原始 JSON / cURL
—
聊天会话 GET /api/external/conversations?guid&chat_type&limit(guid 必填)
原始 JSON / cURL
—
会话消息 GET /api/external/conversations/:id/messages?guid&before_id&limit(:id = room:群ID | private:对方userId)
原始 JSON / cURL
—
加分记录 GET /api/external/points/ledger?member_id&source_type&since&until&limit
原始 JSON / cURL
—
本地运行:cd apps/query-web && python -m http.server 8099 后打开 http://127.0.0.1:8099/(改 config.yml 即改连接)。生产建议 nginx 同源反代 /api/ 与 /ops/ 后再打开本页,可彻底规避跨域。