|
@ -1,6 +1,9 @@ |
|
|
package common_models |
|
|
package common_models |
|
|
|
|
|
|
|
|
import "time" |
|
|
import ( |
|
|
|
|
|
"encoding/json" |
|
|
|
|
|
"time" |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
// EsGroupTheme 分组主题数据结构体
|
|
|
// EsGroupTheme 分组主题数据结构体
|
|
|
type EsGroupTheme struct { |
|
|
type EsGroupTheme struct { |
|
@ -15,6 +18,19 @@ type EsGroupTheme struct { |
|
|
CreateTime time.Time `json:"create_time"` |
|
|
CreateTime time.Time `json:"create_time"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (the EsGroupTheme) MarshalJSON() ([]byte, error) { |
|
|
|
|
|
type Alias EsGroupTheme |
|
|
|
|
|
return json.Marshal(&struct { |
|
|
|
|
|
CollectTime string `json:"collect_time"` |
|
|
|
|
|
CreateTime string `json:"create_time"` |
|
|
|
|
|
*Alias |
|
|
|
|
|
}{ |
|
|
|
|
|
CollectTime: the.CollectTime.Format("2006-01-02T15:04:05.000+08:00"), |
|
|
|
|
|
CreateTime: the.CreateTime.Format("2006-01-02T15:04:05.000+08:00"), |
|
|
|
|
|
Alias: (*Alias)(&the), |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 级联测点数据
|
|
|
// 级联测点数据
|
|
|
type CorrItemData struct { |
|
|
type CorrItemData struct { |
|
|
StationId int `json:"station_id"` |
|
|
StationId int `json:"station_id"` |
|
|