Private
Public Access
20 lines
314 B
Go
20 lines
314 B
Go
package stock
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"net/http"
|
|
)
|
|
|
|
func LiberarReserva(c *gin.Context) {
|
|
id, err := parseUintParam(c, "id")
|
|
if err != nil {
|
|
return
|
|
}
|
|
resultado, err := nuevoServicio(c).Liberar(uint(id))
|
|
if err != nil {
|
|
responderError(c, err)
|
|
return
|
|
}
|
|
c.JSON(http.StatusOK, resultado)
|
|
}
|