infra_model

package
v0.0.0-...-d222c98 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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 {
	ID        uint64    `json:"id" gorm:"column:id;primaryKey"`
	FullName  string    `json:"fullName" gorm:"column:full_name"`
	UserName  string    `json:"userName" gorm:"column:user_name"`
	Password  string    `json:"password" gorm:"column:password"`
	CreatedAt time.Time `json:"created_at" gorm:"column:created_at"`
	UpdatedAt time.Time `json:"updated_at" gorm:"column:updated_at"`
}

func ToUserModel

func ToUserModel(user entities.User) *User

func (User) GetColumnName

func (pm User) GetColumnName() []string

func (User) ToEntity

func (u User) ToEntity() *entities.User

Jump to

Keyboard shortcuts

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