mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-21 03:17:25 +08:00
1、添加超级管理器编辑文档权限
2、新增CDN静态文件加速
This commit is contained in:
@@ -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){
|
||||
|
||||
|
Reference in New Issue
Block a user