user_repository_impl

package
v0.0.0-...-01f7578 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type UserModel

type UserModel struct {
	// table_name = "tbl_user"
	Id         int    `json:"id"`
	Name       string `json:"name"`
	ProvinceId int    `json:"province_id"`

	CreatedAt *time.Time `gorm:"column:created_at"`
	UpdatedAt *time.Time `gorm:"column:updated_at"`
}

func (UserModel) FromUserEntity

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

func (*UserModel) ToUserEntity

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

Jump to

Keyboard shortcuts

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