UserSignGongxianEnum.php 627 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\common\enum\user;
  3. use app\common\enum\CommonEnum;
  4. class UserSignGongxianEnum extends CommonEnum
  5. {
  6. // 贡献值状态
  7. const STATUS = [
  8. 'Valid' => ['code' => 1, 'name' => '有效'],
  9. 'Invalid' => ['code' => 0, 'name' => '失效'],
  10. 'PendingConfirmation' => ['code' => -1, 'name' => '待确认'],
  11. ];
  12. // 贡献值类型
  13. const TYPE = [
  14. 'Give' => ['code' => 1, 'name' => '赠送'],
  15. 'Consume' => ['code' => 2, 'name' => '消耗'],
  16. ];
  17. // 订单类型(可以根据实际需求扩展订单类型)
  18. const ORDER_TYPE = parent::ORDER_TYPE;
  19. }