123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Mead
- * Date: 2019/9/16
- * Time: 1:10 PM
- */
- namespace App\Maps;
- class BikeMap
- {
- // redis 中车的标识
- const REDIS_BIKE_LOCATION_TAG = 'bike_locations';
- const STATUS_OK = 1;
- const STATUS_PAUSE = 0;
- public static $statusMaps = [
- self::STATUS_OK => '正常',
- self::STATUS_PAUSE => '暂停'
- ];
- const LINK_ONLINE = 1;
- const LINK_OFFLINE = 0;
- public static $linkMaps = [
- self::LINK_ONLINE => '在线',
- self::LINK_OFFLINE => '离线'
- ];
- const TROUBLE_YES = 1;
- const TROUBLE_NO = 0;
- public static $troubleMaps = [
- self::TROUBLE_NO => '无故障',
- self::TROUBLE_YES => '有故障'
- ];
- const PUT_STATUS_YES = 1;
- const PUT_STATUS_NO = 0;
- public static $putStatusMaps = [
- self::PUT_STATUS_YES => '已投放',
- self::PUT_STATUS_NO => '未投放'
- ];
- const RIDING_YES = 1;
- const RIDING_NO = 0;
- public static $ridingMaps = [
- self::RIDING_YES => '骑行中',
- self::RIDING_NO => '未骑行'
- ];
- const BATTERY_POWER_OK = 1;
- const BATTERY_POWER_LOW = 0;
- public static $batteryPowerMaps = [
- self::BATTERY_POWER_OK => '电量正常',
- self::BATTERY_POWER_LOW => '低电量'
- ];
- }
|