|  | @ -26,39 +26,39 @@ const APIv2 = {
 | 
	
		
			
				|  |  |     Sessions: {
 | 
	
		
			
				|  |  |         Base: '/api/v2/sessions',
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         Session: '/:session_id/session',
 | 
	
		
			
				|  |  |         Session: '/:session_id/session',                                //获取会话
 | 
	
		
			
				|  |  |         SessionSticky: '/:session_id/sticky',                           // 会话置顶,置顶使用PUT,取消置顶使用DELETE
 | 
	
		
			
				|  |  |         SessionStatus: '/:session_id/status',//更新状态
 | 
	
		
			
				|  |  |         SessionStatus: '/:session_id/status',                           //更新状态
 | 
	
		
			
				|  |  |         RecentSessions: '/recent',                                      // 最近会话,使用类型过滤出'患者'或'医生'会话
 | 
	
		
			
				|  |  |         IsExist: '/isExist',                                      // 判断会话是否存在(i健康发送muc的im消息会话前会先调用创建会话的方法,这个方法会更新redis中每个成员的最后获取时间,导致未读消息不准)
 | 
	
		
			
				|  |  |         IsExist: '/isExist',                                            // 判断会话是否存在(i健康发送muc的im消息会话前会先调用创建会话的方法,这个方法会更新redis中每个成员的最后获取时间,导致未读消息不准)
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         Topics: '/:topic_id/topics',
 | 
	
		
			
				|  |  |         Topic: '/topics/:topic_id',                          // 议题,指定ID的议题将返回其信息
 | 
	
		
			
				|  |  |         Topics: '/:topic_id/topics',                                    //获取单个议题
 | 
	
		
			
				|  |  |         Topic: '/topics/:topic_id',                                     // 议题,指定ID的议题将返回其信息
 | 
	
		
			
				|  |  |         TopicEnded: '/:session_id/topics/:topic_id/ended',              // 议题是否已结束,若top_id为current,则检查最后一个议题的状态
 | 
	
		
			
				|  |  |         TopicInto: '/:session_id/topics/:topic_id/into',              // 居民进入议题
 | 
	
		
			
				|  |  |         TopicList:'/topics',
 | 
	
		
			
				|  |  |         HealthTopicList:'/healthTopics', //健康咨询
 | 
	
		
			
				|  |  |         TopicListByType:'/topicListByType', //按类型查找咨询(未回复,进行中,已回复)
 | 
	
		
			
				|  |  |         topicListCountByType:'/topicListCountByType', //按类型查找咨询(未回复,进行中,已回复)的数量
 | 
	
		
			
				|  |  |         HealthTeamTopicList:'/healthTeamTopics', //健康咨询(区分团队)
 | 
	
		
			
				|  |  |         TopicReplyCount:"/topics/count/reply",
 | 
	
		
			
				|  |  |         TopicMessages:'/topic/:topic_id/messages',
 | 
	
		
			
				|  |  |         Messages: '/:session_id/messages',                             // 会话消息
 | 
	
		
			
				|  |  |         TopicInto: '/:session_id/topics/:topic_id/into',                // 居民进入议题
 | 
	
		
			
				|  |  |         TopicList:'/topics',                                            //获取议题列表
 | 
	
		
			
				|  |  |         HealthTopicList:'/healthTopics',                                //健康咨询
 | 
	
		
			
				|  |  |         TopicListByType:'/topicListByType',                             //按类型查找咨询(未回复,进行中,已回复)
 | 
	
		
			
				|  |  |         topicListCountByType:'/topicListCountByType',                   //按类型查找咨询(未回复,进行中,已回复)的数量
 | 
	
		
			
				|  |  |         HealthTeamTopicList:'/healthTeamTopics',                        //健康咨询(区分团队)
 | 
	
		
			
				|  |  |         TopicReplyCount:"/topics/count/reply",                          //议题回复数统计
 | 
	
		
			
				|  |  |         TopicMessages:'/topic/:topic_id/messages',                      //议题消息
 | 
	
		
			
				|  |  |         Messages: '/:session_id/messages',                              // 会话消息
 | 
	
		
			
				|  |  |         MessagesByTopic: '/:session_id/topics/:topic_id/messages',      // 议题消息
 | 
	
		
			
				|  |  |         Message: '/:session_id/messages/:message_id',                   // 单条消息
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         SessionsUnreadMessageCount: '/unread_message_count',            // 所有会话的未读消息数
 | 
	
		
			
				|  |  |         SessionUnreadMessageCount: '/:session_id/unread_message_count', // 指定会话的未读消息数
 | 
	
		
			
				|  |  |         SessionUnreadMessages: '/:session_id/messages/unread',           // 会话未读消息
 | 
	
		
			
				|  |  |         SessionUnreadMessages: '/:session_id/messages/unread',          // 会话未读消息
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         ParticipantUpdate:'/:session_id/participant/update',//更新成员=删除旧成员,新增新成员
 | 
	
		
			
				|  |  |         ParticipantUpdate:'/:session_id/participant/update',            //更新成员=删除旧成员,新增新成员
 | 
	
		
			
				|  |  |         Participants: '/:session_id/participants',                      // 会话所有成员
 | 
	
		
			
				|  |  |         ParticipantsAvatar: '/:session_id/participants/avatars',        // 会话所有成员头像
 | 
	
		
			
				|  |  |         Participant: '/:session_id/participants/:participant_id',       // 会话单个成员
 | 
	
		
			
				|  |  |         ParticipantAvatar: '/:session_id/participants/:participant_id/avatars'  // 会话单个成员头像
 | 
	
		
			
				|  |  |     },
 | 
	
		
			
				|  |  |     Search: {
 | 
	
		
			
				|  |  |         Base: '/api/v2/search'                                         // 搜索,下一版本的语法使用ElasticSearch
 | 
	
		
			
				|  |  |         Base: '/api/v2/search'                                          // 搜索,下一版本的语法使用ElasticSearch
 | 
	
		
			
				|  |  |     },
 | 
	
		
			
				|  |  |     Demo:{
 | 
	
		
			
				|  |  |         Base:'/api/v2/demo'
 |