diff --git a/rition-center/api/pom.xml b/rition-center/api/pom.xml
index 1fb24f8..d581c1a 100644
--- a/rition-center/api/pom.xml
+++ b/rition-center/api/pom.xml
@@ -43,6 +43,11 @@
notify
${revision}
+
+ net.rition
+ panel
+ ${revision}
+
org.springframework.boot
diff --git a/rition-center/api/src/main/java/rition/backend/api/v1/collector/DataCollectingController.java b/rition-center/api/src/main/java/rition/backend/api/v1/collector/DataCollectingController.java
index 8610894..e6f1a47 100644
--- a/rition-center/api/src/main/java/rition/backend/api/v1/collector/DataCollectingController.java
+++ b/rition-center/api/src/main/java/rition/backend/api/v1/collector/DataCollectingController.java
@@ -9,7 +9,7 @@ import rition.backend.annotation.paramter.RequestId;
import rition.backend.api.v1.dto.request.MetricDataUploadRequest;
import rition.backend.api.v1.dto.response.Response;
import rition.backend.service.MetricDataCollectingService;
-import rition.common.data.dto.MetricDataDto;
+import rition.common.data.dto.service.MetricDataDto;
import java.util.HashMap;
import java.util.List;
diff --git a/rition-center/api/src/main/java/rition/backend/api/v1/panel/MetricsViewController.java b/rition-center/api/src/main/java/rition/backend/api/v1/panel/MetricsViewController.java
index 1138f54..60c5fb5 100644
--- a/rition-center/api/src/main/java/rition/backend/api/v1/panel/MetricsViewController.java
+++ b/rition-center/api/src/main/java/rition/backend/api/v1/panel/MetricsViewController.java
@@ -5,14 +5,44 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import rition.backend.api.v1.dto.request.MetricDataRequest;
+import rition.backend.api.v1.dto.response.MetricDataResponse;
import rition.backend.api.v1.dto.response.Response;
+import rition.common.data.entity.MetricRecordEntity;
+import rition.service.panel.MetricService;
+
+import java.time.Instant;
+import java.util.ArrayList;
+import java.util.List;
@RestController
@RequestMapping("/panel/metrics")
public class MetricsViewController {
+ private final MetricService metricService;
+
+ public MetricsViewController(MetricService metricService) {
+ this.metricService = metricService;
+ }
+
@GetMapping("/list")
- public Response