fix audit
This commit is contained in:
parent
5d864de6ce
commit
c4db0d2d7c
|
@ -26,12 +26,14 @@ type AllQuery struct {
|
|||
}
|
||||
|
||||
// All ...
|
||||
func (s Service) All(query AllQuery) (result []Audit, total int64) {
|
||||
func (s Service) All(query AllQuery) ([]Audit, int64) {
|
||||
var (
|
||||
ctx = context.Background()
|
||||
colName = getColName(query.Target)
|
||||
skip = query.Page * query.Limit
|
||||
wg sync.WaitGroup
|
||||
result = make([]Audit, 0)
|
||||
total int64
|
||||
)
|
||||
cond := s.getQueryCondition(query)
|
||||
wg.Add(1)
|
||||
|
|
Loading…
Reference in New Issue