Forráskód Böngészése

适配query参数

zhou-hao 4 éve
szülő
commit
e322c28fa9

+ 6 - 0
jetlinks-manager/device-manager/src/main/java/org/jetlinks/community/device/service/data/DeviceDataService.java

@@ -1,5 +1,6 @@
 package org.jetlinks.community.device.service.data;
 
+import io.swagger.v3.oas.annotations.Hidden;
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.*;
 import org.hswebframework.web.api.crud.entity.PagerResult;
@@ -277,5 +278,10 @@ public interface DeviceDataService {
         public AggregationRequest copy() {
             return new AggregationRequest(interval, format, from, to, limit, filter.clone());
         }
+
+        @Hidden
+        public void setQuery(QueryParamEntity filter) {
+            setFilter(filter);
+        }
     }
 }