Skip to content

Commit 8bf9788

Browse files
committed
optimize
1 parent cc9165c commit 8bf9788

File tree

1 file changed

+1
-93
lines changed

1 file changed

+1
-93
lines changed

docs/restapi/contentDescription.mdx

Lines changed: 1 addition & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ toc_max_heading_level: 4
2121
| 106 | @消息 |
2222
| 109 | 位置消息 |
2323
| 110 | 自定义消息 |
24-
| 1400 | 系统通知类型消息 |
2524

2625
### **content 具体内容**
2726
- `content` 内部为json对象,不同的消息类型对应不同的json对象
@@ -34,7 +33,7 @@ toc_max_heading_level: 4
3433
{
3534
...,
3635
"content": {
37-
"content": "nihao"
36+
"content": "hello"
3837
},
3938
....
4039
}
@@ -283,94 +282,3 @@ toc_max_heading_level: 4
283282
| description || string | 扩展的描述信息 |
284283
| extension || string | 扩展字段 |
285284

286-
#### **系统通知消息** 📢
287-
288-
> 系统通知消息作为一种特别的自定义通知消息,客户端会产生一个独立的会话,固定的会话类型为 4,其中发送者 ID 为通知号 userID。
289-
290-
```json
291-
{
292-
...,
293-
"content": {
294-
"notificationName": "notification",
295-
"notificationFaceURL": "http://www.head1.com",
296-
"notificationType": 1,
297-
"text": "hello!",
298-
"externalUrl":"",
299-
"mixType": 0,
300-
"pictureElem": {
301-
"sourcePath": "",
302-
"sourcePicture": {
303-
"uuid": "",
304-
"type": "",
305-
"size": 0,
306-
"width": 0,
307-
"height": 0,
308-
"url": ""
309-
},
310-
"bigPicture": {
311-
"uuid": "",
312-
"type": "",
313-
"size": 0,
314-
"width": 0,
315-
"height": 0,
316-
"url": ""
317-
},
318-
"snapshotPicture": {
319-
"uuid": "",
320-
"type": "",
321-
"size": 0,
322-
"width": 0,
323-
"height": 0,
324-
"url": ""
325-
}
326-
},
327-
"soundElem": {
328-
"uuid": "",
329-
"soundPath": "",
330-
"sourceUrl": "",
331-
"dataSize": 0,
332-
"duration": 0
333-
},
334-
"videoElem": {
335-
"videoPath": "",
336-
"videoUUID": "",
337-
"videoUrl": "",
338-
"videoType": "",
339-
"videoSize": 0,
340-
"duration": 0,
341-
"snapshotPath": "",
342-
"snapshotUUID": "",
343-
"snapshotSize": 0,
344-
"snapshotUrl": "",
345-
"snapshotWidth": 0,
346-
"snapshotHeight": 0
347-
},
348-
"fileElem": {
349-
"filePath": "",
350-
"uuid": "",
351-
"sourceUrl": "",
352-
"fileName": "",
353-
"fileSize": 0
354-
},
355-
"ex": ""
356-
},
357-
....
358-
}
359-
```
360-
361-
| 参数名 | 必选 | 类型 | 说明 |
362-
| :-----------------: | :--: | :----: | :------------------------------------------------------------------------------------------------------------------------------------------------ |
363-
| notificationName || string | 通知标题 |
364-
| notificationFaceURL || string | 通知头像 |
365-
| notificationType || int | 通知类型,如:1 代表入职通知;2 代表离职通知... |
366-
| text || string | 通知正文 |
367-
| externalUrl || string | 通知点击后需要跳转到的地址链接(不填则无需跳转) |
368-
| mixType || int | 通知混合类型<br/>0:纯文字通知<br/>1:文字+图片通知<br/>2:文字+视频通知<br/>3:文字+文件通知<br/>4: 文字+语音通知<br/>5: 文字+语音+图片通知<br/> |
369-
| pictureElem || object | 图片元素对象 |
370-
| sourcePicture || object | 原图 |
371-
| bigPicture || object | 大图 |
372-
| snapshotPicture || object | 缩略图 |
373-
| soundElem || object | 声音元素 |
374-
| videoElem || object | 视频元素 |
375-
| fileElem || object | 文件元素 |
376-
| ex || string | 扩展字段 |

0 commit comments

Comments
 (0)