feat: reimplement geometry module with database schema, repository, service layer, and API documentation
All checks were successful
Build and Release / release (push) Successful in 1m36s

This commit is contained in:
2026-05-24 17:31:32 +07:00
parent 8d3b02f312
commit 3cdecdccec
16 changed files with 130 additions and 101 deletions

View File

@@ -16,7 +16,7 @@ type GeometryResponse struct {
ID string `json:"id"`
GeoType int16 `json:"geo_type"`
DrawGeometry json.RawMessage `json:"draw_geometry"`
Binding json.RawMessage `json:"binding,omitempty"`
BoundWith *string `json:"bound_with,omitempty"`
TimeStart int32 `json:"time_start,omitempty"`
TimeEnd int32 `json:"time_end,omitempty"`
Bbox *Bbox `json:"bbox,omitempty"`

View File

@@ -2,24 +2,23 @@ package response
import "encoding/json"
type SearchGeometriesByEntityNameResponse struct {
Items []*EntityGeometriesSearchItem `json:"items"`
NextCursor string `json:"next_cursor,omitempty"`
NextCursor string `json:"next_cursor,omitempty"`
}
type EntityGeometriesSearchItem struct {
EntityID string `json:"entity_id"`
Name string `json:"name"`
Description string `json:"description"`
EntityID string `json:"entity_id"`
Name string `json:"name"`
Description string `json:"description"`
Geometries []*EntityGeometrySearchGeo `json:"geometries"`
}
type EntityGeometrySearchGeo struct {
ID string `json:"id"`
GeoType int16 `json:"geo_type"`
ID string `json:"id"`
GeoType int16 `json:"geo_type"`
DrawGeometry json.RawMessage `json:"draw_geometry"`
Binding json.RawMessage `json:"binding,omitempty"`
TimeStart *int32 `json:"time_start,omitempty"`
TimeEnd *int32 `json:"time_end,omitempty"`
BoundWith *string `json:"bound_with,omitempty"`
TimeStart *int32 `json:"time_start,omitempty"`
TimeEnd *int32 `json:"time_end,omitempty"`
}