package vo
|
|
|
type CameraPolygonVo struct {
|
CameraId string `json:"camera_id"` //摄像机id
|
CameraName string `json:"camera_name"` //摄像机名称
|
SnapshotUrl string `json:"snapshot_url"` //摄像机底图
|
Line []PolygonS `json:"line"` //画的所有线
|
Rect []PolygonS `json:"rect"` //矩形
|
Arrow []PolygonS `json:"arrow"` //箭头
|
Polygon []PolygonS `json:"polygon"` //多边形
|
}
|
|
type PolygonS struct {
|
Id string `json:"id"`//形状id
|
Name string `json:"name"`//形状名称
|
Location []Point `json:"location"`//形状坐标
|
DefenceState int `json:"defence_state"`//默认为0,不启用
|
}
|
|
//坐标定义
|
type Point struct {
|
X float64 `json:"x"`
|
Y float64 `json:"y"`
|
}
|