Skip to content

Commit

Permalink
Merge pull request #1042 from haoxiuwen/doc-v2
Browse files Browse the repository at this point in the history
Add Favorite APIs
  • Loading branch information
haoxiuwen authored Nov 20, 2024
2 parents 322186b + eca3ee1 commit f3c4b65
Show file tree
Hide file tree
Showing 6 changed files with 579 additions and 19 deletions.
16 changes: 11 additions & 5 deletions docs/.vuepress/sidebar/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ const documentSidebar = [
text: '服务端 REST API',
children: [
{ text: '即时通讯 REST API 概览', link: 'overview.html' },
{ text: '用户体系管理', link: 'account_system.html' },
{
text: '消息管理',
children: [
Expand All @@ -341,15 +340,14 @@ const documentSidebar = [
{ text: '上传和下载文件', link: 'message_download.html' },
{ text: '获取历史消息记录', link: 'message_historical.html' },
{ text: '设置指定消息附件的存储方式', link: 'message_attachment_storage.html' },
{ text: '消息表情回复', link: 'reaction.html' },
{ text: '撤回消息和单向删除会话', link: 'message_recall.html' },
{ text: '单向删除漫游消息', link: 'message_delete.html' },
{ text: '修改文本或自定义消息', link: 'message_modify_text_custom.html' },
{ text: '获取离线消息数据', link: 'message_offline.html' },
{ text: '导入消息', link: 'message_import.html' }
]
},
{ text: '用户属性', link: 'userprofile.html' },
{ text: '用户关系管理', link: 'user_relationship.html' },
{
text: '群组',
children: [
Expand All @@ -368,8 +366,16 @@ const documentSidebar = [
{ text: '管理聊天室成员', link: 'chatroom_member.html' }
]
},
{ text: '在线状态订阅', link: 'presence.html' },
{ text: '消息表情回复', link: 'reaction.html' },
{
text: '用户相关',
children: [
{ text: '用户体系管理', link: 'account_system.html' },
{ text: '用户属性', link: 'userprofile.html' },
{ text: '用户状态订阅', link: 'presence.html' },
{ text: '用户收藏', link: 'favorite.html'},
{ text: '用户关系管理', link: 'user_relationship.html' }
]
},
{
text: '离线推送',
children: [
Expand Down
4 changes: 3 additions & 1 deletion docs/document/flutter/group_manage.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ try {
用户申请加入群组的步骤如下:

1. 调用 `EMGroupManager#fetchPublicGroupsFromServer` 方法从服务器获取公开群列表,查询到想要加入的群组 ID。
2. 调用 `EMGroupManager#joinPublicGroup` 方法传入群组 ID,申请加入对应群组。
2. 根据加群是否需要验证,调用不同的方法:
- 若无需验证,调用 `EMGroupManager#joinPublicGroup` 方法传入群组 ID,申请加入对应群组。
- 若需要验证,调用 `requestToJoinPublicGroup` 方法传入群组 ID,申请加入对应群组。

示例代码如下:

Expand Down
Loading

0 comments on commit f3c4b65

Please sign in to comment.