UserDict.php 924 B

1234567891011121314151617181920212223242526272829303132
  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\sys;
  12. class UserDict
  13. {
  14. const ON = 1;
  15. const OFF = 0;
  16. /**
  17. * 用户状态
  18. * @return array
  19. */
  20. public static function getStatus()
  21. {
  22. return [
  23. self::ON => get_lang('dict_user.status_on'),//正常
  24. self::OFF => get_lang('dict_user.status_off'),//无效
  25. ];
  26. }
  27. }