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) 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 `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) 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 `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) 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 `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) Query ¶
func (m *Roll) Query() orm.QuerySeter