model

package
v0.0.0-...-12df42a Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pair

type Pair struct {
	UserIdOne string `xorm:"pk" json:"userIdOne"`
	UserIdTwo string `xorm:"pk" json:"userIdTwo"`
}

func (*Pair) TableName

func (p *Pair) TableName() string

type User

type User struct {
	Id             string    `xorm:"pk" json:"id" update:"fixed"`
	Email          string    `json:"email" binding:"required,email"`
	PasswordDigest string    `json:"-"`
	Name           string    `json:"name" binding:"required"`
	CreateTime     time.Time `json:"create_time" xorm:"created utc"`
	UpdateTime     time.Time `json:"update_time" xorm:"updated utc"`
}

func (*User) TableName

func (u *User) TableName() string

Jump to

Keyboard shortcuts

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