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) Query ¶
func (m *Category) Query() orm.QuerySeter
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) Query ¶
func (m *Config) Query() orm.QuerySeter
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) Query ¶
func (m *Paper) Query() orm.QuerySeter
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) Query ¶
func (m *Roll) Query() orm.QuerySeter
Click to show internal directories.
Click to hide internal directories.