Documentation ¶
Overview ¶
Author: Aosen Data: 2016-01-19 QQ: 316052486 Desc: models
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { Id int64 Novelid int64 Title string `orm:"size(200);index"` Firstid int64 `orm:"index"` Secondid int64 `orm:"index"` Chapter int `orm:"index"` Subtitle string `orm:"size(200);index"` Text string `orm:"type(text)"` Contentsource string `orm:"size(200);index"` Createtime time.Time `orm:"type(date)"` }
小说内容表
type First ¶
type First struct { Id int64 Firstname string `orm:"size(20);unique"` Updatetime time.Time `orm:"type(date)"` Createtime time.Time `orm:"type(date)"` }
一级分类表
type Novel ¶
type Novel struct { Id int64 Title string `orm:"size(200)"` Firstid int64 `orm:"index"` Secondid int64 `orm:"index"` Author string `orm:"size(50);index"` Introduction string `orm:"type(text)"` Picture string `orm:"size(200)"` Novelsource string `orm:"size(200);unique"` Novelpv int `orm:"default(0)"` Novelcollect int `orm:"default(0)"` Createtime time.Time `orm:"type(date)"` }
小说简介表
type PipelineMySQL ¶
type PipelineMySQL struct {
ImageStore string
}
mysql pipeline
func NewPipelineMySQL ¶
func NewPipelineMySQL(dbinfo string) *PipelineMySQL
Click to show internal directories.
Click to hide internal directories.