|
@@ -48,6 +48,10 @@ public class AdapterController {
|
|
|
public Map<String, PointData> getLatest(@RequestBody List<String> keys) {
|
|
|
return tsDataService.getLatest(keys);
|
|
|
}
|
|
|
+ @PostMapping("/latestp")
|
|
|
+ public Map<String, PointData> getLatestp(@RequestBody String keys) {
|
|
|
+ return tsDataService.getLatest(keys);
|
|
|
+ }
|
|
|
|
|
|
@GetMapping("/history/raw")
|
|
|
public List<PointData> getHistoryRaw(@RequestParam("tagName") String tagName,
|
|
@@ -127,6 +131,10 @@ public class AdapterController {
|
|
|
public Map<String, PointData> getHistorySection(@RequestParam("tagNames") String tagNames, @RequestParam("ts") Long ts) {
|
|
|
return tsDataService.getHistorySection(ts, tagNames);
|
|
|
}
|
|
|
+ @PostMapping("/history/section")
|
|
|
+ public Map<String, PointData> getHistorySectionp(@RequestBody String tagNames, @RequestParam("ts") Long ts) {
|
|
|
+ return tsDataService.getHistorySection(ts, tagNames);
|
|
|
+ }
|
|
|
|
|
|
@PostMapping("/save/batch")
|
|
|
public boolean writeLatestBatch(@RequestBody List<PointData> pointDataList) {
|