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

@@ -10,7 +10,7 @@ const defaultParams: any = {
maxRecords: 100,
pullTimeoutUnitMs: 5000,
// filterPartitionId: 1,
filterOffsetReset: 'latest'
filterOffsetReset: 0
};
const defaultpaPagination = {
current: 1,
@@ -32,8 +32,8 @@ const TopicMessages = (props: any) => {
// 获取消息开始位置
const offsetResetList = [
{ 'label': 'latest', value: 'latest' },
{ 'label': 'earliest', value: 'earliest' }
{ 'label': 'latest', value: '0' },
{ 'label': 'earliest', value: '1' }
];
// 默认排序