github.com/xzl8028/xenia-server@v0.0.0-20190809101854-18450a97da63/app/audit.go (about)

     1  // Copyright (c) 2017-present Xenia, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  package app
     5  
     6  import (
     7  	"github.com/xzl8028/xenia-server/model"
     8  )
     9  
    10  func (a *App) GetAudits(userId string, limit int) (model.Audits, *model.AppError) {
    11  	return a.Srv.Store.Audit().Get(userId, 0, limit)
    12  }
    13  
    14  func (a *App) GetAuditsPage(userId string, page int, perPage int) (model.Audits, *model.AppError) {
    15  	return a.Srv.Store.Audit().Get(userId, page*perPage, perPage)
    16  }