1、添加超级管理器编辑文档权限

2、新增CDN静态文件加速
This commit is contained in:
Minho
2017-05-12 10:45:40 +08:00
parent 45ad5a0c7f
commit 095957eecf
10 changed files with 236 additions and 93 deletions

View File

@@ -134,6 +134,14 @@ func (m *Book) FindByFieldFirst(field string,value interface{})(*Book,error) {
}
func (m *Book) FindByIdentify(identify string) (*Book,error) {
o := orm.NewOrm()
err := o.QueryTable(m.TableNameWithPrefix()).Filter("identify",identify).One(m)
return m,err
}
//分页查询指定用户的项目
func (m *Book) FindToPager(pageIndex, pageSize ,memberId int) (books []*BookResult,totalCount int,err error){