feat(queue): 队列接口统一改为query

This commit is contained in:
2024-01-31 14:55:29 +08:00
parent 41827c02c0
commit ee22986d6f
3 changed files with 125 additions and 125 deletions

View File

@@ -2,7 +2,7 @@ package com.lanyuanxiaoyao.service.forest.service;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Var;
import com.dtflys.forest.annotation.Query;
import com.eshore.odcp.hudi.connector.entity.compaction.ScheduleJob;
import com.lanyuanxiaoyao.service.configuration.entity.queue.QueueItem;
import org.eclipse.collections.api.list.ImmutableList;
@@ -18,9 +18,9 @@ public interface QueueService {
@Get("/names")
ImmutableList<String> names();
@Get("/all/{name}")
ImmutableList<QueueItem<ScheduleJob>> all(@Var("name") String name);
@Get("/all")
ImmutableList<QueueItem<ScheduleJob>> all(@Query("name") String name);
@Get("/size/{name}")
Integer size(@Var("name") String name);
@Get("/size")
Integer size(@Query("name") String name);
}