Логика из CreateOrder ручки была вынесена в OrderService.CreateOrder, так же Geocode вынесен в pkg, а ещё слегка переработана логика поиска координат складов
This commit is contained in:
@@ -474,6 +474,10 @@ components:
|
||||
volumeM3:
|
||||
type: number
|
||||
nullable: true
|
||||
destinationWarehouseId:
|
||||
type: string
|
||||
format: uuid
|
||||
nullable: true
|
||||
|
||||
OrderStatusUpdate:
|
||||
type: object
|
||||
|
||||
@@ -252,12 +252,13 @@ type ManagerCreate struct {
|
||||
|
||||
// OrderCreate defines model for OrderCreate.
|
||||
type OrderCreate struct {
|
||||
CargoDescription *string `json:"cargoDescription,omitempty"`
|
||||
DestinationAddress string `json:"destinationAddress"`
|
||||
OriginAddress *string `json:"originAddress,omitempty"`
|
||||
OriginWarehouseId *openapi_types.UUID `json:"originWarehouseId,omitempty"`
|
||||
VolumeM3 *float32 `json:"volumeM3,omitempty"`
|
||||
WeightKg *float32 `json:"weightKg,omitempty"`
|
||||
CargoDescription *string `json:"cargoDescription,omitempty"`
|
||||
DestinationAddress string `json:"destinationAddress"`
|
||||
DestinationWarehouseId *openapi_types.UUID `json:"destinationWarehouseId,omitempty"`
|
||||
OriginAddress *string `json:"originAddress,omitempty"`
|
||||
OriginWarehouseId *openapi_types.UUID `json:"originWarehouseId,omitempty"`
|
||||
VolumeM3 *float32 `json:"volumeM3,omitempty"`
|
||||
WeightKg *float32 `json:"weightKg,omitempty"`
|
||||
}
|
||||
|
||||
// OrderStatusUpdate defines model for OrderStatusUpdate.
|
||||
|
||||
Reference in New Issue
Block a user