blog

package
v0.0.0-...-d43a9a6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Copyright 2017 by rabbit author: gdccmcm14@live.com. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License

Copyright 2017 by rabbit author: gdccmcm14@live.com. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License

Copyright 2017 by rabbit author: gdccmcm14@live.com. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License

Copyright 2017 by rabbit author: gdccmcm14@live.com. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Id         int64
	Alias      string    `orm:"unique"`
	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     `orm:"null"`       //排序
	Status     int64     `orm:"default(2)"` //1开启 2关闭
	Siteid     int64     `orm:"default(0)"` //站点ID
	Type       int64     `orm:"default(0)"` //0表示文章 1表示相册
	Image      string    `orm:"null"`       //图片地址,加密,最后为了速度并没有加密
	Pid        int64     `orm:"default(0)"` //父类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) TableName

func (m *Category) TableName() string

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 `orm:"null"`            //联系方式
	Webinfo string `orm:"type(text);null"` //备案信息,已经改为首页配置
	Photo   string `orm:"null"`            //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) TableName

func (m *Config) TableName() string

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     `orm:"default(0)"` //排序
	Status     int64     `orm:"default(0)"` //0 未审核 1审核 2回收站
	Author     string    `orm:"null"`       //昵称
	Photo      string    `orm:"null"`       //图片地址
	View       int64     `orm:"default(0)"` //浏览量
	Cid        int64     //分类
	Istop      int64     `orm:"default(0)"` //是否置顶 1置顶
	Ishot      int64     `orm:"default(0)"` //是否热门 1热门
	Isroll     int64     `orm:"default(0)"` //是否轮转
	Rollpath   string    `orm:"null"`       //自定义轮转地址
	Type       int64     `orm:"default(0)"` //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) TableName

func (m *Paper) TableName() string

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     `orm:"default(0)"` //排序
	Status     int64     `orm:"default(0)"` //0 关闭 1开启
	Photo      string    `orm:"null"`       //图片地址
	View       int64     `orm:"default(0)"` //浏览量
	Url        string    `orm:"null"`
}

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) TableName

func (m *Roll) TableName() string

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