Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormRepository ¶
func NewGormDBRepository ¶
func NewGormDBRepository(db *gorm.DB) *GormRepository
func (*GormRepository) RepoFuncForUser ¶
func (repo *GormRepository) RepoFuncForUser() error
InsertUser Insert new User into storage
type User ¶
type User struct { ID uint CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time Name string `json:"name" validate:"required"` Email string `json:"email" validate:"required,email" gorm:"type:varchar(20)"` Phone_number string `json:"phone_number" validate:"required,number"` Password string `json:"password" validate:"required"` Address string `json:"address" validate:"required"` Role int Token_hash string }
Click to show internal directories.
Click to hide internal directories.