Skip to content

Commit

Permalink
chore: update type
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed Dec 9, 2020
1 parent ff2546b commit 2c9dfc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ordinary/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ type ContourRectangle struct {
type PolygonCoordinates [][][2]float64

type PolygonGeometry struct {
Type string `json:"type"` // Polygon
Coordinates PolygonCoordinates `json:"coordinates,omitempty"` // coordinates
Type string `json:"type" example:"Polygon"` // Polygon
Coordinates PolygonCoordinates `json:"coordinates" example:"[[[103.614373, 27.00541],[104.174357, 26.635252],[104.356163, 28.018448],[103.614373, 27.00541]]]"` // coordinates
}

type RGBA [4]uint8
Expand All @@ -94,6 +94,6 @@ func (c RGBA) RGBA() (r, g, b, a uint32) {
}

type GridLevelColor struct {
Value [2]float64 `json:"value"` // [0, 5]
Color RGBA `json:"color"` // [255, 255, 255, 255]
Value [2]float64 `json:"value" example:"0, 5"` // [0, 5]
Color RGBA `json:"color" example:"255, 255, 255, 255"` // [255, 255, 255, 255]
}

0 comments on commit 2c9dfc2

Please sign in to comment.