文档
测试

统一消息/待办接口

POST
http://113.204.181.78:18081/apin/message/msg/sendMesage

请求头

参数名
类型
描述
必填
Authorization
Bearer token
必填
Content-Type
application/json
必填

请求参数

参数名
类型
描述
必填
body
object
消息对像
必填
id
int
示例:1
必填
module
string
消息模块:INFOMSG->资讯消息;NOTICEMSG->通知消息;TODOMSG->待办消息;SYSMSG->系统消息
必填
msgType
string
消息类型 link|text|image|file|voice|video|cmd 示例:text
必填
msgContent
string
示例:消息主体内容
必填
msgTitle
string
示例:消息标题
必填
msgSource
string
示例:消息来源
必填
paramUrl
string
示例:http://www.baidu.com 注明:此Url跳转时与平台跳转第三方规则相同
必填
topic
string
示例:订阅主题也是群组的名
必填
device
string
示例:设备类型 ios|android+pad|phone|h5
必填
sendTime
string
示例:2021-02-23 17:22:22
必填
expireTime
string
示例:2021-03-23 17:22:22 过期时间
必填
sendType
string
示例:ALL
必填
creatorName
string
示例:发送者
必填
userIds
array
接收者用户id数组 数据列表
必填
groupIds
array
订阅组数组 数据列表
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
result
string
示例:success
必填

说明 / 示例

请求参数 {"body":{ "id":1, "module":"TODOMSG", "msgType":"text", "msgContent":"消息主体内容", "msgTitle":"消息标题", "msgSource":"消息来源", "paramUrl":"跳转地址", "topic":"订阅主题也是群组的名", "device":"设备类型", "sendTime":"2021-02-23 17:22:22", "expireTime":"2021-03-23 17:22:22", "sendType":"ALL", "creatorName":"发送者" }, "userIds":["2","23"], "groupIds":["2","23"] } 返回参数 { "code": 1, "result": "success" }