feat: ajout manual_status et status_history aux réservations
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 5m22s
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 5m22s
This commit is contained in:
@@ -8,6 +8,17 @@ const (
|
||||
StatusForthcoming = 1
|
||||
)
|
||||
|
||||
type StatusHistoryEntry struct {
|
||||
FromStatus string `json:"from_status" bson:"from_status"`
|
||||
ToStatus string `json:"to_status" bson:"to_status"`
|
||||
UserID string `json:"user_id" bson:"user_id"`
|
||||
UserName string `json:"user_name" bson:"user_name"`
|
||||
GroupID string `json:"group_id" bson:"group_id"`
|
||||
GroupName string `json:"group_name" bson:"group_name"`
|
||||
Date time.Time `json:"date" bson:"date"`
|
||||
Comment string `json:"comment" bson:"comment"`
|
||||
}
|
||||
|
||||
type Booking struct {
|
||||
ID string `json:"id" bson:"_id"`
|
||||
Vehicleid string `json:"vehicleid"`
|
||||
@@ -20,6 +31,9 @@ type Booking struct {
|
||||
|
||||
Deleted bool `json:"deleted"`
|
||||
Vehicle Vehicle `json:"vehicle" bson:"-"`
|
||||
|
||||
ManualStatus string `json:"manual_status" bson:"manual_status"`
|
||||
StatusHistory []StatusHistoryEntry `json:"status_history" bson:"status_history"`
|
||||
}
|
||||
|
||||
func (b Booking) Status() int {
|
||||
|
||||
Reference in New Issue
Block a user