Skip to content

Commit

Permalink
✅ pass closest geopoint test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alban Rahier committed Nov 6, 2022
1 parent 1fbcdf1 commit ac036a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controller/geopoint/geopoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ type BindGeoPoint struct {
}

type ClosestGeoPoint struct {
Latitude float64 `uri:"latitude" example:"18.16255" validate:"latitude"`
Longitude float64 `uri:"longitude" example:"40.35735" validate:"longitude"`
SRID *int32 `form:"srid" example:"4326" validate:"omitempty"`
IdExcluded pq.Int32Array `form:"not[]" example:"1,2,3,4" validate:"lt=10"`
Latitude float64 `uri:"latitude" example:"18.16255" binding:"required,latitude"`
Longitude float64 `uri:"longitude" example:"40.35735" binding:"required,longitude"`
SRID *int32 `form:"srid" example:"4326" binding:"omitempty"`
IdExcluded pq.Int32Array `form:"not[]" example:"1,2,3,4" binding:"lt=10"`
}

type ClosestGeoId struct {
Expand Down

0 comments on commit ac036a8

Please sign in to comment.