fix(forest): 修复参数未生效
This commit is contained in:
@@ -2,6 +2,7 @@ package com.lanyuanxiaoyao.service.forest.service;
|
|||||||
|
|
||||||
import com.dtflys.forest.annotation.BaseRequest;
|
import com.dtflys.forest.annotation.BaseRequest;
|
||||||
import com.dtflys.forest.annotation.Get;
|
import com.dtflys.forest.annotation.Get;
|
||||||
|
import com.dtflys.forest.annotation.Var;
|
||||||
import com.eshore.odcp.hudi.connector.entity.compaction.ScheduleJob;
|
import com.eshore.odcp.hudi.connector.entity.compaction.ScheduleJob;
|
||||||
import com.lanyuanxiaoyao.micro.service.entity.queue.QueueItem;
|
import com.lanyuanxiaoyao.micro.service.entity.queue.QueueItem;
|
||||||
import org.eclipse.collections.api.list.ImmutableList;
|
import org.eclipse.collections.api.list.ImmutableList;
|
||||||
@@ -18,5 +19,5 @@ public interface DequeService {
|
|||||||
ImmutableList<String> names();
|
ImmutableList<String> names();
|
||||||
|
|
||||||
@Get("/all/{name}")
|
@Get("/all/{name}")
|
||||||
ImmutableList<QueueItem<ScheduleJob>> all(String name);
|
ImmutableList<QueueItem<ScheduleJob>> all(@Var("name") String name);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.lanyuanxiaoyao.service.forest.service;
|
|||||||
|
|
||||||
import com.dtflys.forest.annotation.BaseRequest;
|
import com.dtflys.forest.annotation.BaseRequest;
|
||||||
import com.dtflys.forest.annotation.Get;
|
import com.dtflys.forest.annotation.Get;
|
||||||
|
import com.dtflys.forest.annotation.Var;
|
||||||
import com.eshore.odcp.hudi.connector.entity.compaction.ScheduleJob;
|
import com.eshore.odcp.hudi.connector.entity.compaction.ScheduleJob;
|
||||||
import com.lanyuanxiaoyao.micro.service.entity.queue.QueueItem;
|
import com.lanyuanxiaoyao.micro.service.entity.queue.QueueItem;
|
||||||
import org.eclipse.collections.api.list.ImmutableList;
|
import org.eclipse.collections.api.list.ImmutableList;
|
||||||
@@ -18,5 +19,5 @@ public interface QueueService {
|
|||||||
ImmutableList<String> names();
|
ImmutableList<String> names();
|
||||||
|
|
||||||
@Get("/all/{name}")
|
@Get("/all/{name}")
|
||||||
ImmutableList<QueueItem<ScheduleJob>> all(String name);
|
ImmutableList<QueueItem<ScheduleJob>> all(@Var("name") String name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user