Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { SexDB.Model Street string `json:"street,omitempty"` State string `json:"state,omitempty"` Number string `json:"number,omitempty"` Code string `json:"cep,omitempty"` City string `json:"city,omitempty"` Neigh string `json:"neighborhood,omitempty"` Compl string `json:"complement,omitempty" gorm:"default:NULL"` }
Sex Address Template
func (*Address) FromPostalCode ¶
Function to search location info by CEP
type Event ¶
type Event struct { SexDB.Model Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` AddrId uint `json:"-"` Addr Address `json:"address,omitempty" gorm:"-"` BeginAt time.Time `json:"begin,omitempty"` EndAt time.Time `json:"end,omitempty"` }
Sex Event Template
type Role ¶
type Role struct { SexDB.Model Name string `json:"name,omitempty" gorm:"unique"` Desc string `json:"desc,omitempty" gorm:"unique"` }
Sex Role Template
type Token ¶
type Token struct { SexDB.Model ID string `json:"token,omitempty" gorm:"PrimaryKey, NOT NULL"` UserId uint `json:"-" gorm:"index,NOT NULL"` }
Sex User Token Template
type User ¶
type User struct { SexDB.Model Email string `json:"email,omitempty" gorm:"unique,default:null"` Name string `json:"name,omitempty" gorm:"index"` Born time.Time `json:"born_date,omitempty" gorm:"index"` Genre string `json:"genre,omitempty" gorm:"default:'male'"` PassHash string `json:"-"` }
Sex User Template
Click to show internal directories.
Click to hide internal directories.