BikeMap.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Mead
  5. * Date: 2019/9/16
  6. * Time: 1:10 PM
  7. */
  8. namespace App\Maps;
  9. class BikeMap
  10. {
  11. // redis 中车的标识
  12. const REDIS_BIKE_LOCATION_TAG = 'bike_locations';
  13. const STATUS_OK = 1;
  14. const STATUS_PAUSE = 0;
  15. public static $statusMaps = [
  16. self::STATUS_OK => '正常',
  17. self::STATUS_PAUSE => '暂停'
  18. ];
  19. const LINK_ONLINE = 1;
  20. const LINK_OFFLINE = 0;
  21. public static $linkMaps = [
  22. self::LINK_ONLINE => '在线',
  23. self::LINK_OFFLINE => '离线'
  24. ];
  25. const TROUBLE_YES = 1;
  26. const TROUBLE_NO = 0;
  27. public static $troubleMaps = [
  28. self::TROUBLE_NO => '无故障',
  29. self::TROUBLE_YES => '有故障'
  30. ];
  31. const PUT_STATUS_YES = 1;
  32. const PUT_STATUS_NO = 0;
  33. public static $putStatusMaps = [
  34. self::PUT_STATUS_YES => '已投放',
  35. self::PUT_STATUS_NO => '未投放'
  36. ];
  37. const RIDING_YES = 1;
  38. const RIDING_NO = 0;
  39. public static $ridingMaps = [
  40. self::RIDING_YES => '骑行中',
  41. self::RIDING_NO => '未骑行'
  42. ];
  43. const BATTERY_POWER_OK = 1;
  44. const BATTERY_POWER_LOW = 0;
  45. public static $batteryPowerMaps = [
  46. self::BATTERY_POWER_OK => '电量正常',
  47. self::BATTERY_POWER_LOW => '低电量'
  48. ];
  49. }