| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\Http\Controllers\api\thirdPart\syrius\producer;
- class BinLocation extends Controller
- {
- /**
- * @param string $locationId
- * @param \stdClass $warehouse {id:"",name:""}
- * @param \stdClass $attribute {id:"",layer:0,num:0}
- *
- */
- public function createBinLocation(string $locationId, \stdClass $warehouse, \stdClass $attribute)
- {
- $url = config("api.syrius.request.bin_location");
- $body = [[
- "binLocationId" => $locationId, //库位ID
- "warehouseId" => $warehouse->id, //仓库ID
- "warehouseName" => $warehouse->name,//仓库名
- "attributes" => [
- "shelfId" => $attribute->id, //架ID
- "shelfLayer" => $attribute->layer, //架层
- "numOfLayer" => $attribute->num, //架层数
- ],
- ]];
- $this->response($url,$body);
- }
- }
|