Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarshallUser ¶
type User ¶
type User struct { gorm.Model ID uint64 `json:"id" gorm:"primaryKey"` Username string `json:"username" gorm:"unique"` Email *string `json:"email" gorm:"unique"` Password string `json:"password"` Avatar *string `json:"avatar"` Phonenumber *string `json:"phone_number" gorm:"unique"` IsSpecial bool `json:"is_special"` }
func (User) Marshall ¶
func (u User) Marshall() MarshallUser
Click to show internal directories.
Click to hide internal directories.