24 lines
823 B
Go
24 lines
823 B
Go
package photomange10
|
|
|
|
// 获取照片
|
|
type ResponseData struct {
|
|
Status bool `json:"status"`
|
|
Message string `json:"msg"`
|
|
Data []ImageInfo `json:"data"`
|
|
MsgCode string `json:"msg_code"`
|
|
}
|
|
|
|
type ImageInfo struct {
|
|
ID string `json:"i_id"`
|
|
UserID string `json:"user_id" dc:""`
|
|
ImageURL string `json:"image_url"`
|
|
XCoordinate string `json:"x_point"` // 将经纬度转换为浮点数类型
|
|
YCoordinate string `json:"y_point"`
|
|
Timestamp string `json:"time" ` // 需要使用time.Unix()反序列化时间戳
|
|
Extra string `json:"extra"`
|
|
TaskID string `json:"task_id"`
|
|
Content string `json:"content"`
|
|
FaceName string `json:"face_name"`
|
|
Temperature string `json:"temperature"` // 温度可能是字符串类型,如果需要转为数值类型请相应调整
|
|
}
|