AccumulatePointsScene.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~2021 https://www.yiovo.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
  8. // +----------------------------------------------------------------------
  9. // | Author: 萤火科技 <admin@yiovo.com>
  10. // +----------------------------------------------------------------------
  11. declare (strict_types = 1);
  12. namespace app\common\enum\user;
  13. use app\common\enum\EnumBasics;
  14. /**
  15. * 用户积分枚举类
  16. * Class AccumulatePointsScene
  17. * @package app\common\enum\user
  18. */
  19. class AccumulatePointsScene extends EnumBasics
  20. {
  21. // 用户消费获得
  22. const RECHARGE = 10;
  23. // 兑换商品
  24. const CONSUME = 20;
  25. // 管理员操作
  26. const ADMIN = 30;
  27. /**
  28. * 获取订单类型值
  29. * @return array
  30. */
  31. public static function data()
  32. {
  33. return [
  34. self::RECHARGE => [
  35. 'name' => '用户消费获得',
  36. 'value' => self::RECHARGE,
  37. 'describe' => '用户消费获得:%s',
  38. ],
  39. self::CONSUME => [
  40. 'name' => '兑换商品',
  41. 'value' => self::CONSUME,
  42. 'describe' => '兑换商品:%s',
  43. ],
  44. self::ADMIN => [
  45. 'name' => '管理员操作',
  46. 'value' => self::ADMIN,
  47. 'describe' => '后台管理员 [%s] 操作',
  48. ]
  49. ];
  50. }
  51. }