chore: refacto

This commit is contained in:
2026-04-20 19:41:52 +02:00
parent 5fc52c72ee
commit 2e9827af98
46 changed files with 497 additions and 648 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"net/http"
"strconv"
"github.com/gin-gonic/gin"
)
@@ -90,7 +91,6 @@ func GetMyCommandsWithTracking(c *gin.Context) {
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{
"error": "Erreur récupération",
"details": err.Error(),
})
return
}
@@ -118,6 +118,7 @@ func GetMyCommandsWithTracking(c *gin.Context) {
enrichedCommands[i] = gin.H{
"id": cmd["id"],
"client_order_number": cmd["client_order_number"],
"status": cmd["status"],
"status_message": getStatusMessage(cmd["status"].(string)),
"adresse": cmd["adresse"],