blog

package
v0.0.0-...-f2dd2ce Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Id         int64
	Title      string    `orm:"size(100)"`
	Content    string    `orm:"type(text);null"` //内容
	Createtime time.Time `orm:"type(datetime);null"`
	Updatetime time.Time `orm:"type(datetime);null"`
	Sort       int64     //排序
	Status     int64     `orm:"default(2)"` //1开启 2关闭
	Username   string    // 目录建立者,较麻烦(忽略)
	Siteid     int64     //站点ID
	Type       int64     //0表示文章 1表示相册
	Image      string    //图片地址,加密,最后为了速度并没有加密
	Pid        int64     //父类id
}

func (*Category) Delete

func (m *Category) Delete() error

func (*Category) Insert

func (m *Category) Insert() error

func (*Category) Query

func (m *Category) Query() orm.QuerySeter

func (*Category) Read

func (m *Category) Read(fields ...string) error

func (*Category) Update

func (m *Category) Update(fields ...string) error

type Config

type Config struct {
	Id      int64
	Title   string `orm:"size(100)"`       //标题
	Content string `orm:"type(text)";null` //网站描述
	Address string `orm:"type(text);null"` //地址,已经改为网站头部
	Phone   string //联系方式
	Webinfo string `orm:"type(text);null"` //备案信息,已经改为首页配置
	Photo   string //logo
	Slogan  string `orm:"type(text);null"` //漂移通知
	Code1   string `orm:"type(text);null"` //评论短域名
	Code2   string `orm:"type(text);null"` //统计代码
	Code3   string `orm:"type(text);null"` //网站脚部
}

func (*Config) Delete

func (m *Config) Delete() error

func (*Config) Insert

func (m *Config) Insert() error

func (*Config) Query

func (m *Config) Query() orm.QuerySeter

func (*Config) Read

func (m *Config) Read(fields ...string) error

func (*Config) Update

func (m *Config) Update(fields ...string) error

type Paper

type Paper struct {
	Id         int64
	Title      string    `orm:"size(100)"`       //标题
	Content    string    `orm:"type(text)";null` //内容
	Descontent string    `orm:"type(text);null"` //内容简介
	Createtime time.Time `orm:"type(datetime);null"`
	Updatetime time.Time `orm:"type(datetime);null"`
	Sort       int64     //排序
	Status     int64     `orm:"default(0)"` //0 未审核 1审核 2回收站
	Author     string    //昵称
	Photo      string    //图片加密地址
	View       int64     //浏览量
	Cid        int64     //分类
	Istop      int64     `orm:"default(0)"` //是否置顶 1置顶
	Ishot      int64     `orm:"default(0)"` //是否热门 1热门
	Isroll     int64     `orm:"default(0)"` //是否轮转
	Rollpath   string    //自定义轮转地址
	Type       int64     //0表示文章,1表示图片
}

func (*Paper) Delete

func (m *Paper) Delete() error

func (*Paper) Insert

func (m *Paper) Insert() error

func (*Paper) Query

func (m *Paper) Query() orm.QuerySeter

func (*Paper) Read

func (m *Paper) Read(fields ...string) error

func (*Paper) Update

func (m *Paper) Update(fields ...string) error

type Roll

type Roll struct {
	Id         int64
	Title      string    `orm:"size(100)"`       //标题
	Content    string    `orm:"type(text)";null` //内容
	Createtime time.Time `orm:"type(datetime);null"`
	Updatetime time.Time `orm:"type(datetime);null"`
	Sort       int64     //排序
	Status     int64     `orm:"default(0)"` //0 关闭 1开启
	Photo      string    //图片加密地址
	View       int64     //浏览量
	Url        string
}

func (*Roll) Delete

func (m *Roll) Delete() error

func (*Roll) Insert

func (m *Roll) Insert() error

func (*Roll) Query

func (m *Roll) Query() orm.QuerySeter

func (*Roll) Read

func (m *Roll) Read(fields ...string) error

func (*Roll) Update

func (m *Roll) Update(fields ...string) error

Jump to

Keyboard shortcuts

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