Commit 3805a415 by dliangx

添加处理分类

parent 5bc027b9
...@@ -33,6 +33,7 @@ type OptArea struct { ...@@ -33,6 +33,7 @@ type OptArea struct {
type GeoJson struct { type GeoJson struct {
ID int `json:"id"` ID int `json:"id"`
Opt int `json:"opt"`
Type string `json:"type"` Type string `json:"type"`
Properties map[string]interface{} `json:"properties"` Properties map[string]interface{} `json:"properties"`
Geometry *geojson.Geometry `json:"geometry"` Geometry *geojson.Geometry `json:"geometry"`
......
...@@ -11,5 +11,5 @@ func Register(r *server.Hertz) { ...@@ -11,5 +11,5 @@ func Register(r *server.Hertz) {
r.POST("/geometry", handler.UpdateGeometry) r.POST("/geometry", handler.UpdateGeometry)
r.DELETE("/geometry", handler.DeleteGeometry) r.DELETE("/geometry", handler.DeleteGeometry)
r.POST("/geometry/related", handler.FindRelatedGeometry) r.POST("/geometry/related", handler.FindRelatedGeometry)
r.POST("/geometry/check", handler.CheckTwoGeometryIsCross) r.POST("/geometry/check", handler.CheckTwoOptAreaIsCross)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment