SharedProsperityRecommendConfigDao.php 664 B

123456789101112131415161718192021222324252627282930
  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. public function getConfigList(): array
  12. {
  13. $entityList = [];
  14. try {
  15. /** @var SharedProsperityRecommendConfig $model */
  16. $model = $this->getModel();
  17. return $model::getDB()
  18. ->select()
  19. ->toArray();
  20. } catch (\Exception $e) {
  21. }
  22. return $entityList;
  23. }
  24. }