lib/app/coordinate.go

71 lines
1.6 KiB
Go

package app
import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
)
// CoordinateBasicChannelWrapper wraps the object with the security principal
type CoordinateBasicChannelWrapper struct {
Obj geo_models.CoordinateBasic
Principal User
}
// CoordinateBasic is a first class object type
type CoordinateBasic struct {
ID string
CountryID string
CountyID string
Focus string
Geocode string
IsDistrict bool
Name string
PlaceID string
Ref string
StateID string
TaxTypes []*string
}
// CoordinateChannelWrapper wraps the object with the security principal
type CoordinateChannelWrapper struct {
Obj geo_models.Coordinate
Principal User
}
// Coordinate is a first class object type
type Coordinate struct {
ID string
Country string
CountryID string
County string
CountyID string
CreatedByID string
CreatedDate sql.NullTime
Focus string
FormattedAddress string
Geocode string
IsDistrict bool
LastModifiedByID string
LastModifiedDate sql.NullTime
Latitude float64
Longitude float64
Name string
Neighborhood string
Map []byte
OwnerID string
Place string
PlaceID string
PostalCode string
Ref string
State string
StateID string
Status string
Street string
StreetNumber string
StreetView []byte
TaxRate *TaxRate
TaxTypes []*TaxType
TaxTypeIDs []*string
}