2025-01-20 16:20:21 +08:00
|
|
|
// Package network define struct of network operation
|
|
|
|
|
package network
|
|
|
|
|
|
|
|
|
|
// RealTimeDataReceiveRequest defines request params of real time data receive api
|
|
|
|
|
type RealTimeDataReceiveRequest struct {
|
|
|
|
|
PayLoad RealTimeDataReceivePayload `json:"payload"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RealTimeDataReceivePayload defines request payload of real time data receive api
|
|
|
|
|
type RealTimeDataReceivePayload struct {
|
2025-08-15 16:25:48 +08:00
|
|
|
ComponentUUID string `json:"component_uuid"`
|
|
|
|
|
Point string `json:"point"`
|
|
|
|
|
Values []RealTimeDataReceiveParam `json:"values"`
|
2025-01-20 16:20:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RealTimeDataReceiveParam defines request param of real time data receive api
|
|
|
|
|
type RealTimeDataReceiveParam struct {
|
|
|
|
|
Time int64 `json:"time"`
|
|
|
|
|
Value float64 `json:"value"`
|
|
|
|
|
}
|