mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-08 03:00:26 +08:00
[操作日志]增加若干查询条件
This commit is contained in:
@@ -34,7 +34,7 @@ func (this *LogService) CountLogs(ctx context.Context, req *pb.CountLogRequest)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
count, err := models.SharedLogDAO.CountAllLogs()
|
||||
count, err := models.SharedLogDAO.CountLogs(req.DayFrom, req.DayTo, req.Keyword)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -49,7 +49,7 @@ func (this *LogService) ListLogs(ctx context.Context, req *pb.ListLogsRequest) (
|
||||
return nil, err
|
||||
}
|
||||
|
||||
logs, err := models.SharedLogDAO.ListLogs(req.Offset, req.Size)
|
||||
logs, err := models.SharedLogDAO.ListLogs(req.Offset, req.Size, req.DayFrom, req.DayTo, req.Keyword)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user