CartEnum.php 524 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace common\enums;
  3. /**
  4. * 状态枚举
  5. *
  6. *
  7. * Class StatusEnum
  8. * @package common\enums
  9. * @author qimall
  10. */
  11. class CartEnum extends BaseEnum
  12. {
  13. const MALL_CART = 1; //主商城购物车
  14. const STORE_MALL_CART = 2; // o2o门店购物车
  15. /**
  16. * @return array
  17. */
  18. public static function getMap(): array
  19. {
  20. return [
  21. self::MALL_CART => '主商城商品',
  22. self::STORE_MALL_CART => 'o2o商品',
  23. // self::DELETE => '已删除',
  24. ];
  25. }
  26. }