@RestController(value="dev-user-thirdpart-wxpub") @RequestMapping(value="/dev/user/wxpub") public class UserThirdpartWxPubController extends BaseController
request, response| 构造器和说明 |
|---|
UserThirdpartWxPubController() |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiResult<String> |
getWxgzhCode()
获取微信公众号带参数二维码的 ticket,并进行 URL 编码后返回
|
void |
getWxgzhManage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
处理微信公众号回调请求(GET 和 POST)
GET 请求用于验证服务器有效性
POST 请求处理用户扫码、关注等事件推送
|
ApiResult<String> |
sendWxPub(Map<String,Object> paramMap)
向指定用户发送微信公众号模板消息
|
ApiResult<String> |
wxPublicUnbind()
解除当前登录用户的微信公众号绑定关系
|
error, error, fail, fail, fail, getLoginID, getLoginName, getLoginOrgID, getLoginOrgName, getLoginUser, getNickname, getTenantId, getUserName, getUserNo, i18n, i18n, isAdministrator, isDeveloper, limit, offset, ok, ok, response, success, success, success, success, validateToken@PostMapping(value="/getWxgzhCode") @Permission(value="ADMIN") public ApiResult<String> getWxgzhCode() throws TokenAuthenticationException, UnsupportedEncodingException, SQLException, BusiException
TokenAuthenticationException - token 认证异常UnsupportedEncodingException - 不支持的编码格式异常SQLException - SQL 执行异常BusiException - 业务逻辑异常@RequestMapping(value="/wx/callback",
method={GET,POST})
public void getWxgzhManage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
request - HTTP 请求对象response - HTTP 响应对象Exception - 异常信息@PostMapping(value="/sendWxPub") @Permission(value="ADMIN") @Transactional(rollbackFor=java.lang.Exception.class) public ApiResult<String> sendWxPub(@RequestBody Map<String,Object> paramMap) throws Exception
paramMap - 包含 to_user_id 和 message 的参数映射Exception - 数据库操作或其他服务调用异常@PostMapping(value="/unbind") @Permission(value="ADMIN") public ApiResult<String> wxPublicUnbind() throws TokenAuthenticationException
TokenAuthenticationException - token 认证失败时抛出Copyright © 2026. All rights reserved.