CreditsLogTypeEnum.php 787 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace common\enums;
  3. /**
  4. * Class CreditsLogType
  5. * @package common\enums
  6. * @author jianyan74 <751393839@qq.com>
  7. */
  8. class CreditsLogTypeEnum extends BaseEnum
  9. {
  10. // 金额类型
  11. const USER_MONEY = 'user_money';
  12. const CONSUME_MONEY = 'consume_money';
  13. // 积分类型
  14. const USER_INTEGRAL = 'user_integral';
  15. // 成长值类型
  16. const USER_GROWTH = 'user_growth';
  17. // 节约金额
  18. const ECONOMIZE = 'economize_money';
  19. /**
  20. * @return array
  21. */
  22. public static function getMap(): array
  23. {
  24. return [
  25. self::USER_MONEY => '余额日志',
  26. self::USER_INTEGRAL => '积分日志',
  27. self::USER_GROWTH => '成长值日志',
  28. self::CONSUME_MONEY => '消费日志',
  29. ];
  30. }
  31. }
粤ICP备19079148号