lo que es back esta correjido

This commit is contained in:
fede committed 2026-11-16 19:31:54 -03:00
1 parent 6ed8805e21
commit 9205fea8d8
23 files changed
+486

No files matched your search

@@ -0,0 +1,28 @@
package stock
import (
"net/http"
"github.com/gin-gonic/gin"
dto "repuestera_back/dto/Stock"
)
func ActualizarObservacion(c *gin.Context) {
id, err := parseUintParam(c, "id")
if err != nil {
return
}
var data dto.ObservacionDto
if err := c.ShouldBindJSON(&data); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
resultado, err := nuevoServicio(c).Comentar(id, data.Observacion)
if err != nil {
responderError(c, err)
return
}
c.JSON(http.StatusOK, resultado)
}