Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Automigrate ¶
Types ¶
type User ¶
type User struct { gorm.Model ID uint `gorm:"primaryKey"` Name string `gorm:"not null"` Email string `gorm:"unique;not null"` Username string `gorm:"unique;not null"` PasswordHash string `gorm:"not null"` }
func (*User) GetAPIResponseObject ¶
func (user *User) GetAPIResponseObject() *UserResponse
type UserCreateRequest ¶
type UserCreateRequest struct { Name string `json:"name"` Email string `json:"email"` Username string `json:"user_name"` Password string `json:"password"` }
func (*UserCreateRequest) GetDBObject ¶
func (ucr *UserCreateRequest) GetDBObject() *User
type UserResponse ¶
type UserUpdateRequest ¶
type UserUpdateRequest struct { ID uint `json:"user_id"` Name string `json:"name"` Email string `json:"email"` Username string `json:"user_name"` Password string `json:"password"` }
func (*UserUpdateRequest) GetDBObject ¶
func (uur *UserUpdateRequest) GetDBObject() *User
Click to show internal directories.
Click to hide internal directories.