BinLocation.php 945 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Http\Controllers\api\thirdPart\syrius\producer;
  3. class BinLocation extends Controller
  4. {
  5. /**
  6. * @param string $locationId
  7. * @param \stdClass $warehouse {id:"",name:""}
  8. * @param \stdClass $attribute {id:"",layer:0,num:0}
  9. *
  10. */
  11. public function createBinLocation(string $locationId, \stdClass $warehouse, \stdClass $attribute)
  12. {
  13. $url = config("api.syrius.request.bin_location");
  14. $body = [[
  15. "binLocationId" => $locationId, //库位ID
  16. "warehouseId" => $warehouse->id, //仓库ID
  17. "warehouseName" => $warehouse->name,//仓库名
  18. "attributes" => [
  19. "shelfId" => $attribute->id, //架ID
  20. "shelfLayer" => $attribute->layer, //架层
  21. "numOfLayer" => $attribute->num, //架层数
  22. ],
  23. ]];
  24. $this->response($url,$body);
  25. }
  26. }