models

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 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 Result

type Result struct {
	Id          string    `orm:"pk autoincr INT(11)" json:"id"`
	Title       string    `orm:"size(200)" json:"title"`
	CreateTime  time.Time `orm:"auto_now_add;type(datetime)" json:"create_time"`
	Author      string    `orm:"size(45)" json:"author"`
	Detail      string    `orm:"type(text)" json:"detail"`
	Category    string    `orm:"size(45)" json:"category"`
	Tags        string    `orm:"size(45)" json:"tags"`
	Figure      string    `orm:"size(100)" json:"figure"`
	Description string    `orm:"type(text)" json:"description"`
	Link        string    `orm:"size(100)" json:"link"`
	Source      string    `orm:"size(45)" json:"source"`
	ParseDate   time.Time `orm:"auto_now_add;type(datetime)" json:"parse_date"`
	PV          int       `json:"pv"`
}

Jump to

Keyboard shortcuts

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