parcoursmob/handlers/application/solidarity_service.go

45 lines
932 B
Go
Raw Normal View History

package application
2024-08-07 13:01:01 +00:00
// import (
// "context"
// "fmt"
// "net/http"
// "time"
2024-08-02 13:02:35 +00:00
2024-08-07 13:01:01 +00:00
// solidarity_service "git.coopgo.io/coopgo-apps/silvermobi/servers/grpcapi/proto"
// "google.golang.org/protobuf/types/known/timestamppb"
// )
2024-08-07 13:01:01 +00:00
// func (h *ApplicationHandler) DriversJourney(w http.ResponseWriter, r *http.Request) {
2024-08-07 13:01:01 +00:00
// if r.Method == "POST" {
2024-08-07 13:01:01 +00:00
// departureTime := time.Now()
2024-08-02 13:02:35 +00:00
2024-08-07 13:01:01 +00:00
// timestamp := timestamppb.New(departureTime)
2024-08-07 13:01:01 +00:00
// request := &solidarity_service.DriverJourneysRequest{
// DepartureDate: timestamp,
// Departure: &solidarity_service.Feature{
// Lat: 0,
// Long: 0,
// Address: "7 rue D",
// },
// }
// _, err := h.services.GRPC.SolidarityService.DriverJourneys(context.TODO(), request)
2024-08-02 13:02:35 +00:00
2024-08-07 13:01:01 +00:00
// if err != nil {
// fmt.Println(err)
// w.WriteHeader(http.StatusInternalServerError)
// return
// }
// }
2024-08-02 13:02:35 +00:00
2024-08-07 13:01:01 +00:00
// h.Renderer.SolidarityServiceBookingList(w, r)
// }
2024-08-02 13:02:35 +00:00