repository

package
v0.0.0-...-1561af3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	gorm.Model
	FullName       string
	Username       string `gorm:"index:idx_login_search,uniqueIndex,"`
	Email          string `gorm:"index:idx_login_search,uniqueIndex"`
	Password       string
	PhoneNumber    int32
	BirthDayDate   time.Time
	ProfilePicture string
	Status         int
}

func TransformToUser

func TransformToUser(req *entity.CreateUser) *User

func (*User) TransformToEntity

func (u *User) TransformToEntity() *entity.User

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL