@@ -116,7 +116,7 @@ public Mono<ResponseView<DatasourceStructure>> getStructure(@PathVariable String
116
116
* name, type... and the plugin definition of it, excluding the detail configs such as the connection uri, password...
117
117
*/
118
118
@ Override
119
- public Mono <ResponseView <List <Datasource >>> listJsDatasourcePlugins (@ RequestParam ("appId" ) String applicationId , @ RequestParam String name , @ RequestParam String type ) {
119
+ public Mono <ResponseView <List <Datasource >>> listJsDatasourcePlugins (@ RequestParam ("appId" ) String applicationId , @ RequestParam ( required = false ) String name , @ RequestParam ( required = false ) String type ) {
120
120
String objectId = gidService .convertApplicationIdToObjectId (applicationId );
121
121
return datasourceApiService .listJsDatasourcePlugins (objectId , name , type )
122
122
.collectList ()
@@ -139,7 +139,7 @@ public Mono<ResponseView<List<Object>>> getPluginDynamicConfig(
139
139
140
140
@ SneakyThrows
141
141
@ Override
142
- public Mono <ResponseView <List <DatasourceView >>> listOrgDataSources (@ RequestParam (name = "orgId" ) String orgId , @ RequestParam String name , @ RequestParam String type ) {
142
+ public Mono <ResponseView <List <DatasourceView >>> listOrgDataSources (@ RequestParam (name = "orgId" ) String orgId , @ RequestParam ( required = false ) String name , @ RequestParam ( required = false ) String type ) {
143
143
if (StringUtils .isBlank (orgId )) {
144
144
return ofError (BizError .INVALID_PARAMETER , "ORG_ID_EMPTY" );
145
145
}
@@ -150,7 +150,7 @@ public Mono<ResponseView<List<DatasourceView>>> listOrgDataSources(@RequestParam
150
150
}
151
151
152
152
@ Override
153
- public Mono <ResponseView <List <DatasourceView >>> listAppDataSources (@ RequestParam (name = "appId" ) String applicationId , @ RequestParam String name , @ RequestParam String type ) {
153
+ public Mono <ResponseView <List <DatasourceView >>> listAppDataSources (@ RequestParam (name = "appId" ) String applicationId , @ RequestParam ( required = false ) String name , @ RequestParam ( required = false ) String type ) {
154
154
if (StringUtils .isBlank (applicationId )) {
155
155
return ofError (BizError .INVALID_PARAMETER , "INVALID_APP_ID" );
156
156
}
0 commit comments