model

package
v0.0.0-...-17187de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: MIT Imports: 3 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL