JooLun Plus 百科 ⬇ 源码下载

15 后台接口与权限索引

102353 于 2026-10-17 14:14:33 +08:00 修改了此页面

微信运营后台接口与权限索引

调用约定

  • 后端控制器路径统一经网关增加 /weixin 前缀。
  • 返回结构使用项目统一 R,业务数据位于 data。
  • 管理接口要求登录、租户上下文和按钮权限。
  • AppID 必须属于当前租户,且账号类型必须符合接口要求。
  • 微信错误通过业务异常返回,页面应展示错误码和错误信息,不要改成统一“操作失败”。

例如:控制器 GET /wxapp/list?appType=1 的前端地址为 GET /weixin/wxapp/list?appType=1。

平台与统一运营接口

功能 控制器前缀 主要权限
微信账号 /wxapp 公众号/小程序账号菜单权限、凭据检测和额度权限
事件中心 /wxevent wx:wxevent:index/get/replay
API 日志 /wxapilog wx:wxapilog:index/get/diagnose/quota
账号健康 /wxhealth wx:wxhealth:index/check/rotate
运维告警 /wxalert wx:wxalert:index/get/handle/notify
授权审计 /wxauthaudit wxma:wxauthaudit:index
第三方平台配置 /wxcomponentconfig wx:wxcomponentconfig:get/edit
统一消息 /wxmessagetask wx:wxmessage:index/get/add/send/retry/sync
推广入口 /wxpromotion wx:wxpromotion:index/get/add/retry/del
代码模板库 /wxcodetemplate wx:wxcodetemplate:index/add/del
授权账号 /wxopenauthorizer wx:wxauthorizer:index/auth/sync/token/openaccount/reconcile
平台域名 /wxopendomain wx:wxopendomain:index/edit/file
快速注册 /wxfastregist 快速注册页面对应查看、新增、编辑、删除权限

公众号接口

功能 控制器前缀 权限前缀
公众号账号 /wxapp wxmp:wxapp:*
自定义菜单 /wxmenu wxmp:wxmenu:*
个性化菜单 /wxmenurule wxmp:wxmenurule:*
自动回复 /wxautoreply wxmp:wxautoreply:*
素材 /wxmaterial wxmp:wxmaterial:*
草稿 /wxdraft wxmp:wxdraft:index/add/edit/del/publish
已发布内容 /freepublish wxmp:wxfreepublish:index/del
群发 /wxmassmsg wxmp:wxmassmsg:*
消息 /wxmsg wxmp:wxmsg:*
用户 /wxuser wxmp:wxuser:*
用户标签 /wxusertags wxmp:wxusertags:*
模板消息 /wxtemplatemsg wxmp:wxtemplatemsg:*
订阅通知 /wxmpsubscribe wxmp:wxsubscribe:index/template/send
图文留言 /wxmpcomment wxmp:wxcomment:index/config/reply/elect/del
黑名单 /wxmpblacklist wxmp:wxblacklist:index/add/remove
客服 /wxmpkefu wxmp:wxkefu:*
数据分析 /wxmpsummary wxmp:wxsummary:index

小程序接口

功能 控制器前缀 主要权限
小程序账号 /wxapp wxma:wxapp:add/edit 等
版本发布 /wxmarelease wxma:wxrelease:index/upload/submit/withdraw/release/rollback/speedup
体验成员 /wxmatester wxma:wxtester:index/bind/unbind
分阶段发布 /wxmagrayrelease wxma:wxgrayrelease:index/edit/revert
最低基础库 /wxmasupportversion wxma:wxsupportversion:index/edit
访问/搜索状态 /wxmaonline wxma:wxonline:index/visit/search
插件 /wxmaplugin wxma:wxplugin:index/apply/update/unbind
关联公众号展示 /wxmaofficialdisplay wxma:wxofficialdisplay:index/edit
二维码跳转 /wxmaqrcodejump wxma:wxqrcodejump:index/save/publish/del
服务器域名/DNS /serveraddress wxma:serveraddress:index/prefetch
半屏能力 /wxmaembedded wxma:wxembedded:index/add/del/policy/revoke
隐私设置 /wxmaprivacysetting wxma:privacysetting:index/apply
隐私接口 /wxmaprivacyinterface 隐私接口页面查看和申请权限
内容安全 /wxmasecurity wxma:wxsecurity:index/get/add/retry/del
违规处罚 /wxmaillegalrecord wxma:wxillegalrecord:index
实时日志 /wxmarealtimelog wxma:wxrealtimelog:index
用户反馈 /wxmafeedback wxma:wxfeedback:index
JS 错误 /wxmajserror wxma:wxjserror:index
性能监控 /wxmaperformance wxma:wxperformance:index
用户安全等级 /wxmauserrisk wxma:wxuserrisk:index/query
附近地点 /wxmanearby wxma:wxnearby:index/add/edit/del
发货信息 /wxmaordershipping wxma:wxshipping:index/get/upload/notify/config
交易投诉/退货 /wxmatradeassist wxma:wxtradeassist:index/reply/complete/returnadd/returnunbind
备案 /wxmaicpfiling wxma:wxicpfiling:index/apply/upload/withdraw/cancel
物流助手 /wxmaexpress wxma:wxexpress:index/account/printer/order
客服账号 /wxmakefu wxma:wxkefu:index/add/admin/del
直播间 /wxmalive wxma:wxmalive:*
直播商品 /wxmalivegoods wxma:wxmalivegoods:*
直播成员 /wxmalivemember wxma:wxmalivemember:index/add/del

关键闭环接口

统一消息

  • GET /wxmessagetask/accounts
  • GET /wxmessagetask/page
  • GET /wxmessagetask/{id}
  • POST /wxmessagetask
  • POST /wxmessagetask/{id}/send
  • POST /wxmessagetask/{id}/cancel
  • POST /wxmessagetask/{id}/retry
  • POST /wxmessagetask/templates/sync/{appId}
  • POST /wxmessagetask/test

授权账号与 Open Platform

  • POST /wxopenauthorizer/authorization-url
  • GET /wxopenauthorizer/page
  • GET /wxopenauthorizer/{appId}
  • POST /wxopenauthorizer/{appId}/sync
  • POST /wxopenauthorizer/sync-all
  • POST /wxopenauthorizer/reconcile
  • POST /wxopenauthorizer/{appId}/access-token/refresh
  • GET/POST /wxopenauthorizer/{appId}/open-account
  • POST /wxopenauthorizer/{appId}/open-account/bind
  • DELETE /wxopenauthorizer/{appId}/open-account/{openAppId}

第三方平台模板与域名

  • GET /wxcodetemplate/drafts
  • GET /wxcodetemplate/templates
  • POST /wxcodetemplate/templates
  • DELETE /wxcodetemplate/templates/{templateId}
  • GET/POST /wxopendomain/server
  • GET/POST /wxopendomain/business
  • GET /wxopendomain/confirm-file

物流助手

  • GET /wxmaexpress/apps
  • GET /wxmaexpress/{appId}/deliveries
  • GET /wxmaexpress/{appId}/accounts
  • POST /wxmaexpress/{appId}/accounts/bind|unbind|quota
  • GET /wxmaexpress/{appId}/printers
  • POST /wxmaexpress/{appId}/printers/bind|unbind
  • POST /wxmaexpress/{appId}/orders
  • POST /wxmaexpress/{appId}/orders/query|batch-query|cancel
  • POST /wxmaexpress/{appId}/paths/query

直播成员

  • GET /wxapp/list?appType=1
  • GET /wxmalivemember/page
  • POST /wxmalivemember/roles
  • DELETE /wxmalivemember/roles

接口联调建议

  1. 先调用账号列表,使用接口返回的 AppID。
  2. 再调用只读查询确认租户和账号能力。
  3. 写接口使用最小测试数据。
  4. 同时查看 API 日志和微信错误码。
  5. 写成功后再次调用查询接口确认微信最终状态。