-
-
Save parzibyte/2414d10dbf922bb82b307b0799e61512 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enrutador.HandleFunc("/total_vendido_agrupado_por_mes", func(w http.ResponseWriter, r *http.Request) { | |
responderHttpConFuncion(w, r, func() (interface{}, error) { | |
valores, err := validarParametrosGetDePeticionHttp(r, []string{"fechaInicio", "fechaFin"}) | |
if err != nil { | |
return nil, err | |
} | |
fechaInicio, fechaFin := valores[0], valores[1] | |
return obtenerTotalVendidoEnPeriodoAgrupadoPorMes(fechaInicio, fechaFin) | |
}) | |
}).Methods(http.MethodGet).Name("Escritorio: ver total vendido en período de fechas agrupado por mes") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment