File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/query Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ public class LibraryQueryController implements LibraryQueryEndpoints
3535 private GidService gidService ;
3636
3737 @ Override
38- public Mono <ResponseView <List <LibraryQueryAggregateView >>> dropDownList (@ RequestParam (required = false ) String name ) {
38+ public Mono <ResponseView <List <LibraryQueryAggregateView >>> dropDownList (@ RequestParam (required = false , defaultValue = "" ) String name ) {
3939 return libraryQueryApiService .dropDownList (name )
4040 .map (ResponseView ::success );
4141 }
4242
4343 @ Override
44- public Mono <ResponseView <List <LibraryQueryView >>> list (@ RequestParam (required = false ) String name ) {
44+ public Mono <ResponseView <List <LibraryQueryView >>> list (@ RequestParam (required = false , defaultValue = "" ) String name ) {
4545 return libraryQueryApiService .listLibraryQueries (name )
4646 .map (ResponseView ::success );
4747 }
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public interface LibraryQueryEndpoints
2929 description = "Retrieve Library Queries in a dropdown format within Lowcoder, suitable for selection in user interfaces."
3030 )
3131 @ GetMapping ("/dropDownList" )
32- public Mono <ResponseView <List <LibraryQueryAggregateView >>> dropDownList (@ RequestParam (required = false ) String name );
32+ public Mono <ResponseView <List <LibraryQueryAggregateView >>> dropDownList (@ RequestParam (required = false , defaultValue = "" ) String name );
3333
3434 @ Operation (
3535 tags = TAG_LIBRARY_QUERY_MANAGEMENT ,
@@ -38,7 +38,7 @@ public interface LibraryQueryEndpoints
3838 description = "Retrieve a list of Library Queries for a specific Organization within Lowcoder."
3939 )
4040 @ GetMapping ("/listByOrg" )
41- public Mono <ResponseView <List <LibraryQueryView >>> list (@ RequestParam (required = false ) String name );
41+ public Mono <ResponseView <List <LibraryQueryView >>> list (@ RequestParam (required = false , defaultValue = "" ) String name );
4242
4343 @ Operation (
4444 tags = TAG_LIBRARY_QUERY_MANAGEMENT ,
You can’t perform that action at this time.
0 commit comments