Model

package
v0.0.0-...-d3383a9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StaffLog

type StaffLog struct {
	Id           uint64
	ResultType   string    `orm:"type(char);size(60)"`
	ResultString string    `orm:"type(text)"` // 结果
	Time         time.Time // 时间
	User         *User     `orm:"rel(fk);default(0);index;on_delete(do_nothing)"` // 用户表
}

func (*StaffLog) CreateLog

func (m *StaffLog) CreateLog()

type User

type User struct {
	Id       uint64      `json:"id"`           // 用户Id
	Name     string      `orm:"size(255)"`     // 用户姓名
	Email    string      `orm:"size(255)"`     // 用户邮箱
	StaffLog []*StaffLog `orm:"reverse(many)"` // 用户的日志
	WeChatId string      `orm:"size(255)"`     // 微信Id
	Trashed  bool        `orm:"index"`         // 用户是否删除
}

func (*User) GetAll

func (m *User) GetAll() (*[]*User, error)

Jump to

Keyboard shortcuts

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