-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrew.go
32 lines (30 loc) · 1.01 KB
/
crew.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package vcapool
import "github.com/Viva-con-Agua/vcago/vmod"
type (
Crew struct {
ID string `json:"id,omitempty" bson:"_id"`
Name string `json:"name" bson:"name"`
Email string `json:"email" bson:"email"`
Cities []City `json:"cities" bson:"cities"`
Modified vmod.Modified `json:"modified" bson:"modified"`
}
City struct {
City string `json:"city" bson:"city"`
Country string `json:"country" bson:"country"`
CountryCode string `json:"country_code" bson:"country_code"`
PlaceID string `json:"place_id" bson:"place_id"`
Position Position `json:"position" bson:"position"`
}
CrewList []Crew
CrewQuery struct {
ID string `query:"id,omitempty" qs:"id"`
Name string `query:"name" qs:"name"`
Email string `query:"email" qs:"email"`
Cities []string `query:"cities" qs:"cities"`
}
CrewSimple struct {
ID string `json:"id" bson:"id"`
Name string `json:"name" bson:"name"`
Email string `json:"email" bson:"email"`
}
)