user_repository

package
v0.0.0-...-3439342 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type UserModel

type UserModel struct {
	Id        int        `gorm:"column:id"`
	Email     string     `gorm:"column:email"`
	Password  string     `gorm:"column:password"`
	UserType  string     `gorm:"column:usertype"`
	Name      string     `gorm:"column:name"`
	Token     string     `gorm:"column:token"`
	Status    bool       `gorm:"column:status"`
	CreatedAt *time.Time `gorm:"column:created_at"`
	UpdatedAt *time.Time `gorm:"column:updated_at"`
}

func (UserModel) FromUserEntity

func (UserModel) FromUserEntity(u entity.User) *UserModel

func (*UserModel) ToUserEntity

func (um *UserModel) ToUserEntity() *entity.User

Jump to

Keyboard shortcuts

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