diff --git a/model/warehouse_request.go b/model/warehouse_request.go index d211345..a573798 100644 --- a/model/warehouse_request.go +++ b/model/warehouse_request.go @@ -130,3 +130,7 @@ type UpdateStatusWarehousePendingInactive struct { WarehouseID string `json:"warehouse"` PendingInactive bool `json:"pendingInactive"` } + +type GetListWarehouseConfigReq struct { + ConfigPartnerCode string `json:"configPartnerCode"` +} diff --git a/model/warehouse_response.go b/model/warehouse_response.go index db81e18..9f11666 100644 --- a/model/warehouse_response.go +++ b/model/warehouse_response.go @@ -181,3 +181,9 @@ type GetWarehousesResponse struct { Limit int64 `json:"limit"` List []WarehouseInfo `json:"list"` } + +type GetListWarehouseConfigRes struct { + Total int64 `json:"total"` + Limit int64 `json:"limit"` + List []WarehouseConfiguration `json:"list"` +} diff --git a/subject/warehouse.go b/subject/warehouse.go index 0d9a218..517a8a1 100644 --- a/subject/warehouse.go +++ b/subject/warehouse.go @@ -32,6 +32,7 @@ var Warehouse = struct { UpdateIsSellyMall string UpdateWarehouseConfig string BulkWriteWarehouseConfig string + GetListWarehouseConfig string }{ CreateWarehouseIntoServiceSupplier: getWarehouseValue("create_warehouse_into_service_supplier"), UpdateWarehouseIntoServiceSupplier: getWarehouseValue("update_warehouse_into_service_supplier"), @@ -56,4 +57,5 @@ var Warehouse = struct { UpdateIsSellyMall: getWarehouseValue("update_is_selly_mall"), UpdateWarehouseConfig: getWarehouseValue("update_warehouse_config"), BulkWriteWarehouseConfig: getWarehouseValue("bulk_write_warehouse_config"), + GetListWarehouseConfig: getWarehouseValue("get_list_warehouse_config"), }