forked from apache/eventmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: get nacos config list with OpenAPI
- Loading branch information
Showing
10 changed files
with
187 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...tmesh-admin-kotlin/src/main/java/com/apache/eventmesh/adminkotlin/dto/CommonResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.apache.eventmesh.adminkotlin.dto; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class CommonResponse { | ||
|
||
private String data; | ||
|
||
private String message; | ||
|
||
public CommonResponse(String data) { | ||
this.data = data; | ||
} | ||
|
||
public CommonResponse(String message, Exception e) { | ||
this.message = message; | ||
if (e != null) { | ||
this.message += ": " + e.getMessage(); | ||
} | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
...h-admin-kotlin/src/main/java/com/apache/eventmesh/adminkotlin/model/SubscriptionInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,4 @@ | ||
package com.apache.eventmesh.adminkotlin.model; | ||
|
||
public class SubscriptionInfo { | ||
// TODO | ||
private String configData; | ||
private String errorMessage; | ||
|
||
public SubscriptionInfo(String configData) { | ||
this.configData = configData; | ||
} | ||
|
||
public SubscriptionInfo(String errorMessage, Exception exception) { | ||
this.errorMessage = errorMessage; | ||
if (exception != null) { | ||
this.errorMessage += ": " + exception.getMessage(); | ||
} | ||
} | ||
|
||
} |
6 changes: 5 additions & 1 deletion
6
...in-kotlin/src/main/java/com/apache/eventmesh/adminkotlin/service/SubscriptionService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package com.apache.eventmesh.adminkotlin.service; | ||
|
||
import com.apache.eventmesh.adminkotlin.dto.CommonResponse; | ||
|
||
public interface SubscriptionService { | ||
|
||
String retrieveConfig(String dataId, String group); | ||
CommonResponse retrieveConfig(String dataId, String group); | ||
|
||
String retrieveConfigs(Integer page, Integer size, String dataId, String group); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters