Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NIMEFtsCloudMsgLogsAggWithSessionOptions

云端消息全文检索(按会话进行聚合)的接口入参定义

Hierarchy

  • NIMEFtsCloudMsgLogsAggWithSessionOptions

Index

Properties

fromTime?: number

起始时间。默认0,从最早的时候开始查

keyword: string

关键字

msgSubTypeList?: number[]

消息子类型过滤,此类型开发者在发送消息时可自定义,且格式为大于0的整数。示例:[1, 2]

msgTypeList?: ("text" | "image" | "audio" | "video" | "geo" | "notification" | "file" | "tip" | "robot" | "g2" | "custom")[]

消息类型过滤 示例:[EMsgType.text, EMsgType.image]

msglogsLimit?: number

单个会话返回的消息数量限制。默认 5

orderRule?: "ASC" | "DESC"

查询的时间排序规则。默认 DESC 按消息时间降序。可选 ASC 升序

p2pSessionList?: string[]

P2P 会话过滤的列表,最大长度 20。传入会话(p2p-accid1)的 account 示例:['accid1', 'accid2', 'accid3']

senderList?: string[]

消息发送者过滤的列表,最大长度 20。account 列表 示例:['accid1', 'accid2', 'accid3']

sessionLimit?: number

返回的最大会话数量限制。默认 10

teamSessionList?: string[]

群会话过滤的列表,最大长度 20。传入群号(team-146694936),示例:['146694936', '13897']

toTime?: number

截止时间。默认0,代表不限制。