initial commit 2

This commit is contained in:
Senad Uka
2018-04-25 13:16:36 +02:00
parent c1520d169c
commit 99c10b75fb
167 changed files with 25057 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
package viewmodel
import "time"
// User model for API binding
type User struct {
ID string `json:"useruuid"`
Name string `json:"name,omitempty"`
First string `json:"first,omitempty"`
Last string `json:"last,omitempty"`
Gender *string `json:"gender,omitempty"`
Member *string `json:"member,omitempty"`
BirthDate *time.Time `json:"birthdate,omitempty"`
Email *string `json:"email,omitempty"`
PhoneNumber *string `json:"phonenumber,omitempty"`
Pass string `json:"pass,omitempty"`
Active bool `json:"active,omitempty"`
Created time.Time `json:"created,omitempty"`
Updated time.Time `json:"updated,omitempty"`
Contacts []Contact `json:"contacts,omitempty"`
Rides []Ride `json:"rides,omitempty"`
Addresses []Address `json:"addresses,omitempty"`
Profiles []Profile `json:"profiles,omitempty"`
Types []OrganizationType `json:"types,omitempty"`
Organizations []Organization `json:"organizations,omitempty"`
}
type Contact struct {
Type ContactType `json:"type,omitempty"`
Value string `json:"contact,omitempty"`
}
type ContactType struct {
Key string `json:"key,omitempty"`
Value string `json:"value,omitempty"`
}