feat: searching on customer list

This commit is contained in:
2026-04-07 14:42:45 +02:00
parent 2e645f3368
commit d56650ae5d
5 changed files with 63 additions and 20 deletions

View File

@@ -42,14 +42,14 @@ func Paginate[T any](langID uint, paging Paging, stmt *gorm.DB) (Found[T], error
return Found[T]{}, err
}
columnsSpec := GetColumnsSpec[T](langID)
// columnsSpec := GetColumnsSpec[T](langID)
return Found[T]{
Items: items,
Count: uint(count),
Spec: map[string]interface{}{
"columns": columnsSpec,
},
// Spec: map[string]interface{}{
// "columns": columnsSpec,
// },
}, err
}