primeros cambios hechos para tener el multitenant

This commit is contained in:
fede committed 2026-11-10 17:06:56 -03:00
1 parent 34ad4424f9
commit 4e082e8767
132 files changed
+6202 -762

No files matched your search

@@ -9,14 +9,14 @@ import (
"github.com/gin-gonic/gin"
)
func ObtenerRepuesto(c *gin.Context){
func ObtenerRepuesto(c *gin.Context) {
id, err := strconv.ParseUint(c.Param("id"), 10, 64)
if err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": "ID invalido"})
return
}
repuesto, err := r.ObtenerRepositorios().Repuesto.ObtenerPorID(uint(id))
repuesto, err := r.ObtenerRepositorios(c).Repuesto.ObtenerPorID(uint(id))
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return