@Controller @RequestMapping(value="wecom/message") public class WecomMessageController extends WecomContollerBase
限定符和类型 | 类和说明 |
---|---|
static class |
WecomMessageController.sendMessageParam |
WecomContollerBase.WecomParamBase
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) WecomService |
wecomService |
DOWNLOAD_ID_COOKIE_EXPIRY, DOWNLOAD_ID_NAME
构造器和说明 |
---|
WecomMessageController() |
限定符和类型 | 方法和说明 |
---|---|
RetVo |
sendMessage(WecomMessageController.sendMessageParam param)
发送消息
详情请见: https://work.weixin.qq.com/api/doc/90000/90135/90236
|
saveOrgIdAgendId
commonsDownloadEx, commonsUploadEx, getUploadNewFileName, setResponseContentType, setResponseContentTypeAndStatus, setResponseHttpStatus, writeJsonToResponse
@Autowired WecomService wecomService
@ResponseBody @RequestMapping(value="send", method=POST) public RetVo sendMessage(@RequestBody WecomMessageController.sendMessageParam param) throws java.lang.Exception
发送消息 详情请见: https://work.weixin.qq.com/api/doc/90000/90135/90236
param
- 要发送的消息对象java.lang.Exception
- 出错抛出异常