MemberDict.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace app\dict\member;
  12. use app\dict\common\ChannelDict;
  13. /**
  14. * 会员信息枚举类
  15. * Class MemberDict
  16. */
  17. class MemberDict extends ChannelDict
  18. {
  19. const ON = 1;
  20. const OFF = 0;
  21. /**
  22. * 会员状态
  23. * @return array
  24. */
  25. public static function getStatus()
  26. {
  27. return [
  28. self::ON => get_lang('dict_member.status_on'),//正常
  29. self::OFF => get_lang('dict_member.status_off'),//无效
  30. ];
  31. }
  32. }