Compare commits
No commits in common. "4b728e559ddbc8cc28b9b7fcbbd1b1c8e0f29460" and "1b2dd9376a4b041df1af4b11c428b7d02619cb71" have entirely different histories.
4b728e559d
...
1b2dd9376a
|
@ -202,23 +202,3 @@ func (w Warehouse) UpdateStatusWarehousePendingInactive(p model.UpdateStatusWare
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// UpdateIsSellyMall ...
|
||||
func (w Warehouse) UpdateIsSellyMall(p model.UpdateIsSellyMallRequest) error {
|
||||
msg, err := natsio.GetServer().Request(subject.Warehouse.UpdateIsSellyMall, toBytes(p))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
var r struct {
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
if err = json.Unmarshal(msg.Data, &r); err != nil {
|
||||
return fmt.Errorf("nats: update_is_selly_mall %v", err)
|
||||
}
|
||||
if r.Error != "" {
|
||||
return errors.New(r.Error)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -120,11 +120,6 @@ type UpdateStatusWarehousePendingInactiveRequest struct {
|
|||
Warehouses []UpdateStatusWarehousePendingInactive `json:"warehouses"`
|
||||
}
|
||||
|
||||
// UpdateIsSellyMallRequest ...
|
||||
type UpdateIsSellyMallRequest struct {
|
||||
SupplierID string `json:"supplier"`
|
||||
}
|
||||
|
||||
// UpdateStatusWarehousePendingInactive ...
|
||||
type UpdateStatusWarehousePendingInactive struct {
|
||||
WarehouseID string `json:"warehouse"`
|
||||
|
|
|
@ -31,7 +31,6 @@ var Warehouse = struct {
|
|||
GetWarehouses string
|
||||
UpdateORDeliveryStatus string
|
||||
UpdateStatusWarehousePendingInactive string
|
||||
UpdateIsSellyMall string
|
||||
}{
|
||||
SyncWarehouseIntoServiceSupplier: getWarehouseValue("sync_warehouse_into_service_supplier"),
|
||||
CreateWarehouseIntoServiceSupplier: getWarehouseValue("create_warehouse_into_service_supplier"),
|
||||
|
@ -55,5 +54,4 @@ var Warehouse = struct {
|
|||
GetWarehouses: getWarehouseValue("get_warehouses"),
|
||||
UpdateORDeliveryStatus: getWarehouseValue("update_or_delivery_status"),
|
||||
UpdateStatusWarehousePendingInactive: getWarehouseValue("update_pending_active_product_by_warehouse_ids"),
|
||||
UpdateIsSellyMall: getWarehouseValue("update_is_selly_mall"),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue