datawriter/internal/models/models.go

38 lines
796 B
Go

package models
type UUID string
type ProductDelivery struct {
Id int //Warehouse Id
Warehouse string
Amount int
DeliveryDays int
DeliveryId int
}
type Container struct {
Products map[string]int `json:"products"`
Context Context `json:"context"`
}
type Context struct {
Country string `json:"country"`
State string `json:"state"`
}
type Product struct {
Warehouse string `json:"warehouse"`
Quantity int `json:"quantity"`
Delivery int `json:"delivery_time"`
WhdId int `json:"-"`
DeliveryId int `json:"-"`
}
type OutgoingProducts struct {
Products map[string][]Product `json:"products"`
}
type OutgoingReservationProducts struct {
Id UUID `json:"id"`
Products map[string][]Product `json:"products"`
}