Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Business ¶
type Business struct { ID primitive.ObjectID `json:"_id"` Name string `json:"name"` City string `json:"city"` Country string `json:"country"` Type constant.BusinessType `json:"type"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` H3IndexResolution9 uint64 `json:"h3IndexResolution9"` H3IndexResolution12 uint64 `json:"h3IndexResolution12"` }
func (Business) ToBusinessResponse ¶
func (business Business) ToBusinessResponse() *BusinessResponse
type BusinessRequest ¶
type BusinessRequest struct { Name string `json:"name"` City string `json:"city"` Country string `json:"country"` Type string `json:"type"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` }
func (BusinessRequest) ToBusiness ¶
func (businessRequest BusinessRequest) ToBusiness() (*Business, error)
type BusinessResponse ¶
type BusinessResponse struct { Name string `json:"name"` City string `json:"city"` Country string `json:"country"` Type constant.BusinessType `json:"type"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` H3IndexResolution9 uint64 `json:"h3IndexResolution9"` H3IndexResolution12 uint64 `json:"h3IndexResolution12"` }
Click to show internal directories.
Click to hide internal directories.