Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTinu ¶
func CreateUser ¶
func DeleteTinu ¶
func DeleteUser ¶
func UpdateTinu ¶
func UpdateUser ¶
Types ¶
type Tinu ¶
type Tinu struct { ID string `gorm:"primaryKey" json:"id"` URL string `gorm:"not null" json:"url"` Clicked uint64 `json:"clicked"` UserID string `gorm:"foreignKey:UserID" json:"user_id"` CreatedAt time.Time UpdatedAt time.Time }
func GetAllTinus ¶
func GetOneTinu ¶
type User ¶
type User struct { ID string `gorm:"primaryKey" json:"id"` Email string `gorm:"not null;unique_index" json:"email"` PassWord string `gorm:"not null" json:"password"` Tinus []Tinu `json:"tinus"` }
func GetAllUsers ¶
func GetOneUser ¶
Click to show internal directories.
Click to hide internal directories.