Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct { gorm.Model Name string `gorm:"type:varchar(20);not null"` Telephone string `gorm:"type:varchar(11);not null;unique"` Password string `gorm:"size:255;not null"` }
User Model
func GetAUserById ¶
GetAUserById get a user by userId
func GetAUserByTelephone ¶
GetAUserByTelephone get a user by telephone
Click to show internal directories.
Click to hide internal directories.