WechatQrcodeCateDao.php 624 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\dao\wechat;
  3. use app\dao\BaseDao;
  4. use app\model\wechat\WechatQrcodeCate;
  5. class WechatQrcodeCateDao extends BaseDao
  6. {
  7. /**
  8. * @return string
  9. */
  10. protected function setModel(): string
  11. {
  12. return WechatQrcodeCate::class;
  13. }
  14. /**
  15. * 渠道码分类列表
  16. * @return array
  17. * @throws \think\db\exception\DataNotFoundException
  18. * @throws \think\db\exception\DbException
  19. * @throws \think\db\exception\ModelNotFoundException
  20. */
  21. public function getCateList()
  22. {
  23. return $this->getModel()->where('is_del', 0)->select()->toArray();
  24. }
  25. }