Homeinformation.php 573 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\admin\model;
  3. use think\Model;
  4. /**
  5. * 主页导航管理模型
  6. */
  7. class Homeinformation extends Model
  8. {
  9. public function getHomeInformation()
  10. {
  11. $result = $this->select();
  12. return $result;
  13. }
  14. public function findHomeInformation($id)
  15. {
  16. $result = $this->where(['homeinformation_id'=>$id])->find();
  17. return $result;
  18. }
  19. public function updateHomeInformation($id, $updateData)
  20. {
  21. $result = $this->where(['homeinformation_id'=>$id])->update($updateData);
  22. return $result;
  23. }
  24. }