model

package
v0.0.0-...-9d05754 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserModel

type UserModel struct {
	ID          int64     `gorm:"column:id"`
	UserID      string    `gorm:"column:user_id"`
	OpenID      string    `gorm:"column:open_id"`
	UnionID     string    `gorm:"column:union_id"`
	SessionKey  string    `gorm:"column:session_key"`
	Name        string    `gorm:"column:name"`
	IdentityNo  string    `gorm:"column:identity_no"`
	Age         uint32    `gorm:"column:age"`
	Gender      uint8     `gorm:"column:gender"`
	PhoneNumber string    `gorm:"column:phone_number"`
	Email       string    `gorm:"column:email"`
	Remark      string    `gorm:"column:remark"`
	CreateTime  time.Time `gorm:"column:create_time;-"`
	UpdateTime  time.Time `gorm:"column:update_time;-"`
	IsDelete    uint8     `gorm:"column:is_delete"`
}

func GetUserByName

func GetUserByName(db *gorm.DB, name string) ([]*UserModel, error)

func (UserModel) TableName

func (u UserModel) TableName() string

Jump to

Keyboard shortcuts

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