Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUserById ¶
func GetAllUsers ¶
func GetAllUsers() map[string]interface{}
Types ¶
type User ¶
type User struct { gorm.Model ID string `gorm:"type:uuid;default:gen_random_uuid()" json:"id"` Name string `gorm:"not null;type:varchar(150)" json:"name"` Email string `gorm:"unique;not null;type:varchar(100);default:null" json:"email"` Password string `gorm:"not null" json:"password"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt }
func GetUserByEmail ¶
func GetUserByID ¶
Click to show internal directories.
Click to hide internal directories.