lib/app/coordinate.go

75 lines
1.6 KiB
Go
Raw Normal View History

2021-01-10 23:44:39 +00:00
package app
2021-01-10 18:40:46 +00:00
import (
"database/sql"
2021-01-12 05:46:24 +00:00
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
2021-01-10 18:40:46 +00:00
)
2021-01-14 06:36:35 +00:00
// CoordinateBasicChannelWrapper wraps the object with workflow params
2021-01-12 05:46:24 +00:00
type CoordinateBasicChannelWrapper struct {
Obj geo_models.CoordinateBasic
Principal User
2021-01-13 05:30:35 +00:00
SagaID string
SagaType string
2021-01-12 05:46:24 +00:00
}
2021-01-10 18:40:46 +00:00
// 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
}
2021-01-14 06:36:35 +00:00
// CoordinateChannelWrapper wraps the object with workflow params
2021-01-12 05:46:24 +00:00
type CoordinateChannelWrapper struct {
Obj geo_models.Coordinate
Principal User
2021-01-13 05:30:35 +00:00
SagaID string
SagaType string
2021-01-12 05:46:24 +00:00
}
2021-01-10 18:40:46 +00:00
// 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
}