UserLabelEnum.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace common\enums;
  3. /**
  4. *
  5. * Class UserLabelEnum
  6. * @package common\enums
  7. * @author qimall
  8. */
  9. class UserLabelEnum extends BaseEnum
  10. {
  11. // 条件类型
  12. const LAST_CONSUME = 'last_consume';
  13. const CONSUME_NUM = 'consume_num';
  14. const CONSUME_MONEY = 'consume_money';
  15. const AVERAGE_MONEY = 'average_money';
  16. const RECHARGE_MONEY = 'recharge_money';
  17. const GOODS = 'goods';
  18. const FOLLOW = 'follow';
  19. // 标签类型
  20. const MANUAL = 1;// 手动
  21. const AUTO = 2;// 自动
  22. // 满足条件
  23. const SATISFY_ONE = 1;// 满足其一
  24. const SATISFY_ALL = 2;// 满足所有
  25. /**
  26. * @return array
  27. */
  28. public static function getMap(): array
  29. {
  30. return [
  31. self::LAST_CONSUME => '最后消费时间',
  32. self::CONSUME_NUM => '消费次数',
  33. self::CONSUME_MONEY => '消费金额',
  34. self::AVERAGE_MONEY => '客单价',
  35. self::RECHARGE_MONEY => '充值金额',
  36. self::GOODS => '购买指定商品',
  37. self::FOLLOW => '关注公众号',
  38. ];
  39. }
  40. }