models

package
v0.0.0-...-92cc5ea Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Username string `orm:"column(username);pk"`
	Pappwd   string `orm:"column(pappwd);size(255)"`
	Headimg  string `orm:"column(headimg);size(255)"`
	Email    string `orm:"column(email);size(255)"`
}

type BlogArticle

type BlogArticle struct {
	Id          int64         `orm:"column(id);auto"`
	Author      string        `orm:"column(author);size(255)"`
	Top         bool          `orm:"column(top)"`
	Title       string        `orm:"column(title);size(255)"`
	Content     orm.TextField `orm:"column(content)"`
	Morecontent orm.TextField `orm:"column(morecontent)"`
	Category    string        `orm:"column(category);size(255)"`
	Addtime     time.Time     `orm:"column(addtime);type(datetime);null;auto_now_add"`
}

type Session

type Session struct {
	Id            int    `orm:"column(session_key);pk"`
	SessionData   string `orm:"column(session_data);null"`
	SessionExpiry uint   `orm:"column(session_expiry)"`
}

Jump to

Keyboard shortcuts

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