AreaSetting.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace App\Models;
  3. use App\Traits\ModelHelpers;
  4. use Illuminate\Database\Eloquent\Model;
  5. class AreaSetting extends Model
  6. {
  7. use ModelHelpers;
  8. //
  9. protected $table = "area_settings";
  10. protected $guarded = [];
  11. const WHOLE_AREA_HUANCHE_OK = 1;
  12. const WHOLE_AREA_HUANCHE_NO = 0;
  13. public static $typeWholeAreaHuanche = [
  14. self::WHOLE_AREA_HUANCHE_NO => '不启用在整个区域还车点',
  15. self::WHOLE_AREA_HUANCHE_OK => '启用在整个区域还车点',
  16. ];
  17. const TRUE_PARKING = 1;
  18. const FALSE_PARKING = 0;
  19. public static $typeParking = [
  20. self::TRUE_PARKING => '需要在停车区停',
  21. self::FALSE_PARKING => '不需要在停车区停'
  22. ];
  23. const TRUE_ADVANCE_RECHARGE = 1;
  24. const FALSE_ADVANCE_RECHARGE = 0;
  25. public static $typeAdvanceRecharge = [
  26. self::TRUE_ADVANCE_RECHARGE => '需要先充值',
  27. self::FALSE_ADVANCE_RECHARGE => '不需要先充值'
  28. ];
  29. const PARKING_FUSHE_YES = 1;
  30. const PARKING_FUSHE_NO = 0;
  31. public static $parkingFusheMaps = [
  32. self::PARKING_FUSHE_NO => '不启用停车点辐射',
  33. self::PARKING_FUSHE_YES => '启用停车点辐射',
  34. ];
  35. const FREE_MINUTE_NO = 0;
  36. const FREE_MINUTE_OK = 1;
  37. public static $freeMinuteMaps = [
  38. self::FREE_MINUTE_NO => '开启分钟内免费骑行',
  39. self::FREE_MINUTE_OK => '不开启分钟内免费骑行',
  40. ];
  41. }