Task.php 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Http\Controllers\api\thirdPart\syrius\beans;
  3. class Task
  4. {
  5. const ORDER_PICKING = "ORDER_PICKING";
  6. const TOTAL_PICKING = "TOTAL_PICKING";
  7. const PUTAWAY = "PUTAWAY";
  8. public string $id; //任务ID
  9. //Optional
  10. public string $batchId; //批次ID
  11. //ENUM
  12. public string $type; //任务类型
  13. //Optional:between(1,10) default:5
  14. public string $priority; //优先级
  15. public string $timestamp; //下达时间
  16. //Optional
  17. public string $expectedExecutionTime; //预计执行时间
  18. //Optional
  19. public string $expectedFinishTime; //预计完成时间
  20. public string $warehouseId; //仓库ID
  21. //Optional
  22. public string $notifyUrl; //任务执行通知地址
  23. public array $storages; //存储Storage对象示例:[{type:"",serialNo:""}]
  24. public $attributes; //一些属性:{dischargeLocations:""},这里在初始传递时应为一个对象,通过内部转换为key-val数组
  25. public array $items;
  26. }