Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #45] Implement methods from storage-plugin.admin(rocketmq) #66

Merged
merged 14 commits into from
Mar 29, 2024
Merged
5 changes: 0 additions & 5 deletions eventmesh-dashboard-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
<artifactId>nacos-client</artifactId>
<version>${nacos.version}</version>
</dependency>
<!-- Unit Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public class RocketmqProperties {

private String brokerUrl;

private String endPoint;

private int writeQueueNums = 8;

private int readQueueNums = 8;
Expand Down
8 changes: 7 additions & 1 deletion eventmesh-dashboard-console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
<artifactId>spring-aspects</artifactId>
</dependency>

<!-- Unit Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<!-- Swagger -->
<dependency>
<groupId>org.springdoc</groupId>
Expand Down Expand Up @@ -87,7 +94,6 @@
<!-- </exclusions>-->
<!-- </dependency>-->


<!-- health check client end -->
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,22 @@ public ResponseEntity<Object> preflight() {
}

@CrossOrigin
@GetMapping("/getList")
@GetMapping()
public Result<List<TopicProperties>> getList() {
scwlkq marked this conversation as resolved.
Show resolved Hide resolved
List<TopicProperties> topicList = topicCore.getTopics();
return Result.success(topicList);
}

@CrossOrigin
@PostMapping("/create")
@PostMapping()
public Result<Object> create(@RequestBody CreateTopicRequest createTopicRequest) {
String topicName = createTopicRequest.getName();
topicCore.createTopic(topicName);
return Result.success();
}

@CrossOrigin
@DeleteMapping("delete")
@DeleteMapping()
public Result<Object> delete(@RequestBody DeleteTopicRequest deleteTopicRequest) {
String topicName = deleteTopicRequest.getName();
topicCore.deleteTopic(topicName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,4 @@ public class TopicProperties {

private int offset;

private int readQueueNums;

private int writeQueueNums;

}