Module.php 449 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Master\Framework\Library\Extend;
  4. use App\Model\Framework\AdminSetupModel;
  5. class Module
  6. {
  7. /**
  8. * 单页模型
  9. * @param string $tables
  10. * @return array|mixed
  11. */
  12. public static function _SetupModule(string $tables): mixed
  13. {
  14. $setup = new AdminSetupModel();
  15. $info = $setup->getDetail(params: ['table' => $tables]);
  16. return $info['value'] ?? [];
  17. }
  18. }