MSP-7036 fix search & sort
This commit is contained in:
1 parent
71e0768231
commit
ec327424c9
19 files changed
+447
-126
No files matched your search
@@ -38,6 +38,13 @@ func NewAudit(service AuditService) Audit {
|
||||
// @Failure 500 {object} domain.GrpcError
|
||||
// @Router /log/all [POST]
|
||||
func (c Audit) All(ctx context.Context, req domain.AuditPageRequest) (*domain.AuditResponse, error) {
|
||||
if req.Order == nil {
|
||||
req.Order = &domain.OrderParams{
|
||||
Field: domain.DefaultOrderField,
|
||||
Type: domain.DefaultOrderType,
|
||||
}
|
||||
}
|
||||
|
||||
return c.service.All(ctx, req)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user