Topic消息查询支持Timestamp排序,支持查询最新消息或最早消息 #534

This commit is contained in:
superspeedone
2022-09-07 11:17:59 +08:00
parent 0f35427645
commit 8e50d145d5
6 changed files with 18 additions and 32 deletions

View File

@@ -3,6 +3,7 @@ package com.xiaojukeji.know.streaming.km.rest.api.v3.topic;
import com.xiaojukeji.know.streaming.km.biz.topic.TopicStateManager;
import com.xiaojukeji.know.streaming.km.common.bean.dto.metrices.MetricDTO;
import com.xiaojukeji.know.streaming.km.common.bean.dto.pagination.PaginationBaseDTO;
import com.xiaojukeji.know.streaming.km.common.bean.dto.pagination.PaginationSortDTO;
import com.xiaojukeji.know.streaming.km.common.bean.dto.topic.TopicRecordDTO;
import com.xiaojukeji.know.streaming.km.common.bean.entity.metrics.BaseMetrics;
import com.xiaojukeji.know.streaming.km.common.bean.entity.result.PaginationResult;
@@ -91,8 +92,9 @@ public class TopicStateController {
@ResponseBody
public Result<List<TopicRecordVO>> getTopicMessages(@PathVariable Long clusterPhyId,
@PathVariable String topicName,
@Validated @RequestBody TopicRecordDTO dto) throws Exception {
return topicStateManager.getTopicMessages(clusterPhyId, topicName, dto);
@Validated @RequestBody TopicRecordDTO dto,
@Validated PaginationSortDTO sortDto) throws Exception {
return topicStateManager.getTopicMessages(clusterPhyId, topicName, dto, sortDto);
}
@ApiOperation(value = "Topic-ACL信息", notes = "")