modificaciones de mejora

This commit is contained in:
Lizandro Guarnizo
2026-06-11 18:06:21 -05:00
parent fa0991eed7
commit 89021f2e77
3 changed files with 104 additions and 19 deletions
+10 -2
View File
@@ -44,9 +44,17 @@ func GetOssApiConfigs(c *fiber.Ctx) error {
}
limit := 20
offset := (page - 1) * limit
search := c.Query("search", "")
items, total, err := models.GetAllOssApi(limit, offset, search)
items, total, err := models.GetAllOssApi(
limit, offset,
c.Query("search", ""),
c.Query("provider", ""),
c.Query("estado", ""),
c.Query("sort_by", "id"),
c.Query("sort_dir", "desc"),
c.Query("date_from", ""),
c.Query("date_to", ""),
)
if err != nil {
return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{"error": err.Error()})
}