MenuDict.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 MenuDict
  13. {
  14. public const ON = 1;
  15. public const OFF = 0;
  16. /**
  17. * 菜单状态
  18. * @return array
  19. */
  20. public static function getStatus()
  21. {
  22. return [
  23. self::ON => get_lang('dict_menu.status_on'),//展示
  24. self::OFF => get_lang('dict_menu.status_off'),//隐藏
  25. ];
  26. }
  27. public const SYSTEM = 'system';
  28. public const CREATE = 'create';
  29. public const GENERATOR = 'generator';
  30. public static function getSource(){
  31. return [
  32. self::SYSTEM => get_lang('dict_menu.source_system'),//系统文件
  33. self::CREATE => get_lang('dict_menu.source_create'),//新建菜单
  34. self::GENERATOR => get_lang('dict_menu.source_generator'),//代码生成器
  35. ];
  36. }
  37. }