pipeline

package
v0.0.0-...-926784e Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2016 License: Apache-2.0 Imports: 6 Imported by: 1

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

func (*PipelineMySQL) Process

func (self *PipelineMySQL) Process(pageitems *robot.PageItems, task robot.Task)

type Second

type Second struct {
	Id         int64
	Secondname string    `orm:"size(20);unique"`
	Updatetime time.Time `orm:"type(date)"`
	Createtime time.Time `orm:"type(date)"`
}

二级分类表

type System

type System struct {
	Id int64
	K  string `orm:"size(50);unique"`
	V  string `orm:"size(100)"`
}

系统配置表

Jump to

Keyboard shortcuts

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