CommonDict.php 532 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\dict\common;
  3. /**
  4. * admin管理菜单
  5. * Class CommonDict
  6. * @package app\dict\common
  7. */
  8. class CommonDict
  9. {
  10. public const UNKNOWN = 0;
  11. public const MAN = 1;
  12. public const WOMAN = 2;
  13. /**
  14. * 性别
  15. * @return array
  16. */
  17. public static function getSexType()
  18. {
  19. return [
  20. self::UNKNOWN => get_lang('dict_sex.unknown'),//未知
  21. self::MAN => get_lang('dict_sex.man'),//男
  22. self::WOMAN => get_lang('dict_sex.woman'),//女
  23. ];
  24. }
  25. }