models

package
v0.0.0-...-647ff6f Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Db

func Db() *gorm.DB

Db 获取db

Types

type Article

type Article struct {
	gorm.Model
	Time    time.Time `json:"Time"`
	Content string    `json:"Content" gorm:"size:10000"`
}

Article 文章

type ReadLog

type ReadLog struct {
	gorm.Model
	UserID uint      `json:"UserID"`
	Time   time.Time `json:"Time"`
}

ReadLog 打卡记录

type User

type User struct {
	gorm.Model
	WxOpenID      string    `json:"WxOpenID"`
	WxSessionKey  string    `json:"WxSessionKey"`
	WxLocalToken  string    `json:"WxLocalToken"`
	LastLoginDate time.Time `json:"LastLoginDate"`
	Name          string    `json:"Name"`
	SchoolID      string    `json:"SchoolID"`
}

User model

Jump to

Keyboard shortcuts

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