| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace common\enums;
- /**
- *
- * Class UserLabelEnum
- * @package common\enums
- * @author qimall
- */
- class UserLabelEnum extends BaseEnum
- {
- // 条件类型
- const LAST_CONSUME = 'last_consume';
- const CONSUME_NUM = 'consume_num';
- const CONSUME_MONEY = 'consume_money';
- const AVERAGE_MONEY = 'average_money';
- const RECHARGE_MONEY = 'recharge_money';
- const GOODS = 'goods';
- const FOLLOW = 'follow';
- // 标签类型
- const MANUAL = 1;// 手动
- const AUTO = 2;// 自动
- // 满足条件
- const SATISFY_ONE = 1;// 满足其一
- const SATISFY_ALL = 2;// 满足所有
- /**
- * @return array
- */
- public static function getMap(): array
- {
- return [
- self::LAST_CONSUME => '最后消费时间',
- self::CONSUME_NUM => '消费次数',
- self::CONSUME_MONEY => '消费金额',
- self::AVERAGE_MONEY => '客单价',
- self::RECHARGE_MONEY => '充值金额',
- self::GOODS => '购买指定商品',
- self::FOLLOW => '关注公众号',
- ];
- }
- }
|