examples/gin/provider/user_service.go
func GetUser(c *gin.Context) {
	fmt.Println("GET USER!")
	c.Header("X-Api-Correlation-Id", "1234")

	id, _ := strconv.Atoi(c.Param("id"))
	user, err := userRepository.ByID(id)

	if err != nil {
		c.JSON(http.StatusNotFound, gin.H{"status": "file not found"})
	} else {
		c.JSON(http.StatusOK, user)
	}
}
func GetUser(c *gin.Context) {
	fmt.Println("GET USER!")
	c.Header("X-Api-Correlation-Id", "1234")

	id, _ := strconv.Atoi(c.Param("id"))
	user, err := userRepository.ByID(id)

	if err != nil {
		c.JSON(http.StatusNotFound, gin.H{"status": "file not found"})
	} else {
		c.JSON(http.StatusOK, user)
	}
}
// GetUser fetches a user if authenticated and exists