feat(queue): 队列接口统一改为query
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user