mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
FIX[BE]: fix json wrong json field name
This commit is contained in:
@@ -38,7 +38,7 @@ type LocationDTO struct {
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type SuplierSimpleDTO struct {
|
||||
type SupplierSimpleDTO struct {
|
||||
Id uint `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
@@ -75,7 +75,7 @@ type TransferDetailItemDTO struct {
|
||||
// Delivery ekspedisi
|
||||
type TransferDeliveryDTO struct {
|
||||
Id uint64 `json:"id"`
|
||||
Suplier SuplierSimpleDTO `json:"suplier"`
|
||||
Supplier SupplierSimpleDTO `json:"supplier"`
|
||||
VehiclePlate string `json:"vehicle_plate"`
|
||||
DriverName string `json:"driver_name"`
|
||||
DocumentNumber string `json:"document_number"`
|
||||
@@ -176,7 +176,7 @@ func ToTransferListDTO(e entity.StockTransfer) TransferListDTO {
|
||||
}
|
||||
deliveries = append(deliveries, TransferDeliveryDTO{
|
||||
Id: del.Id,
|
||||
Suplier: SuplierSimpleDTO{
|
||||
Supplier: SupplierSimpleDTO{
|
||||
Id: del.Supplier.Id,
|
||||
Name: del.Supplier.Name,
|
||||
},
|
||||
@@ -225,7 +225,7 @@ func ToTransferDetailDTO(e entity.StockTransfer) TransferDetailDTO {
|
||||
for _, del := range e.Deliveries {
|
||||
deliveries = append(deliveries, TransferDeliveryDTO{
|
||||
Id: del.Id,
|
||||
Suplier: SuplierSimpleDTO{
|
||||
Supplier: SupplierSimpleDTO{
|
||||
Id: del.Supplier.Id,
|
||||
Name: del.Supplier.Name,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user