From 040c867c15159b02e0a6c58f8fb0d10ce2a35e7c Mon Sep 17 00:00:00 2001 From: QuanTT0110 Date: Tue, 8 Nov 2022 11:12:37 +0700 Subject: [PATCH 1/2] sync data warehouse into service supplier --- subject/warehouse.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subject/warehouse.go b/subject/warehouse.go index e200804..6bb0d6e 100644 --- a/subject/warehouse.go +++ b/subject/warehouse.go @@ -15,7 +15,7 @@ var Warehouse = struct { SyncORStatus string WebhookTNC string WebhookGlobalCare string - WebhookOnPoint string + WebhookOnPoint string FindOne string FindByCondition string Distinct string @@ -24,7 +24,7 @@ var Warehouse = struct { AfterCreateWarehouse string UpdateIsClosedSupplier string GetWarehouses string - UpdateORDeliveryStatus string + UpdateORDeliveryStatus string }{ SyncWarehouseIntoServiceSupplier: getWarehouseValue("sync_warehouse_into_service_supplier"), AfterCreateWarehouse: getWarehouseValue("after_create_warehouse"), @@ -36,12 +36,12 @@ var Warehouse = struct { SyncORStatus: getWarehouseValue("sync_or_status"), WebhookTNC: getWarehouseValue("webhook_tnc"), WebhookGlobalCare: getWarehouseValue("webhook_global_care"), - WebhookOnPoint: getWarehouseValue("webhook_on_point") + WebhookOnPoint: getWarehouseValue("webhook_on_point"), FindOne: getWarehouseValue("find_one"), FindByCondition: getWarehouseValue("find_all_by_condition"), Distinct: getWarehouseValue("distinct"), Count: getWarehouseValue("count"), UpdateIsClosedSupplier: getWarehouseValue("update_is_closed_supplier"), GetWarehouses: getWarehouseValue("get_warehouses"), - UpdateORDeliveryStatus: getWarehouseValue("update_or_delivery_status"), + UpdateORDeliveryStatus: getWarehouseValue("update_or_delivery_status"), } From b45fb1d19ac5a8ff3b4cf7e2dc43e0ec20346865 Mon Sep 17 00:00:00 2001 From: QuanTT0110 Date: Tue, 8 Nov 2022 14:20:05 +0700 Subject: [PATCH 2/2] sync data warehouse into service supplier --- model/supplier_request.go | 8 -------- model/supplier_response.go | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/model/supplier_request.go b/model/supplier_request.go index d2c9ae1..e4ddab5 100644 --- a/model/supplier_request.go +++ b/model/supplier_request.go @@ -23,14 +23,6 @@ type SupplierRequestPayload struct { ContractStatus string } -type SyncSupplierWarehousePayload struct { - Supplier string `json:"supplier"` - Warehouse string `json:"warehouse"` - ProvinceCode int `json:"provinceCode"` - DistrictCode int `json:"districtCode"` - WardCode int `json:"wardCode"` -} - // SupplierCashflowCreatePayload ... type SupplierCashflowCreatePayload struct { Supplier string `json:"supplier"` diff --git a/model/supplier_response.go b/model/supplier_response.go index 83fec77..ec46dc5 100644 --- a/model/supplier_response.go +++ b/model/supplier_response.go @@ -56,3 +56,11 @@ type SupplierUpdateBalanceRes struct { type SupplierGetCurrentBalanceRes struct { CurrentCash float64 `json:"currentCash"` } + +type SyncSupplierWarehousePayload struct { + Supplier string `json:"supplier"` + Warehouse string `json:"warehouse"` + ProvinceCode int `json:"provinceCode"` + DistrictCode int `json:"districtCode"` + WardCode int `json:"wardCode"` +}