Files
projet_gestion_commande/backend/gestion/models/livreur.go
T

24 lines
762 B
Go

package models
import "time"
type LivreurPosition struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
UpdatedAt time.Time `json:"updated_at"`
Status string `json:"status"` // "idle", "en_route", "arrived"
}
type DeliveryIssue struct {
ID int `json:"id"`
CommandID int `json:"command_id"`
IssueType string `json:"issue_type"`
Description string `json:"description"`
Status string `json:"status"` // "open", "in_progress", "resolved"
ReportedBy string `json:"reported_by"`
ResolvedBy string `json:"resolved_by,omitempty"`
Resolution string `json:"resolution,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}