SharedProsperityRecommendConfigDao.php 777 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace app\common\dao\shared;
  3. use app\common\dao\BaseDao;
  4. use app\common\model\shared\SharedProsperityRecommendConfig;
  5. class SharedProsperityRecommendConfigDao extends BaseDao
  6. {
  7. protected function getModel(): string
  8. {
  9. return SharedProsperityRecommendConfig::class;
  10. }
  11. /**
  12. * @return array
  13. * @author 史晨
  14. * @date 2026/2/5 14:43
  15. * 获取推荐配置
  16. */
  17. public function getConfigList(): array
  18. {
  19. $entityList = [];
  20. try {
  21. /** @var SharedProsperityRecommendConfig $model */
  22. $model = $this->getModel();
  23. return $model::getDB()
  24. ->select()
  25. ->toArray();
  26. } catch (\Exception $e) {
  27. }
  28. return $entityList;
  29. }
  30. }