跳转到主要内容
GET
/
channel
/
max_message_seq
curl -X GET "http://localhost:5001/channel/max_message_seq?channel_id=group123&channel_type=2"
{
  "max_message_seq": 1500
}

概述

获取指定频道的最大消息序号,用于消息同步和状态检查。

查询参数

channel_id
string
required
频道 ID
channel_type
integer
required
频道类型 (1=个人频道, 2=群组频道)
curl -X GET "http://localhost:5001/channel/max_message_seq?channel_id=group123&channel_type=2"
{
  "max_message_seq": 1500
}

响应字段

message_seq
integer
required
频道的最大消息序号,如果频道不存在或没有消息则返回 0

状态码

状态码说明
200成功获取最大消息序号
400请求参数错误
500服务器内部错误