modificaciones de mejora
This commit is contained in:
@@ -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()})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user