WechatQrcodeCateDao.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\dao\wechat;
  12. use app\dao\BaseDao;
  13. use app\model\wechat\WechatQrcodeCate;
  14. class WechatQrcodeCateDao extends BaseDao
  15. {
  16. /**
  17. * @return string
  18. */
  19. protected function setModel(): string
  20. {
  21. return WechatQrcodeCate::class;
  22. }
  23. /**
  24. * 渠道码分类列表
  25. * @return array
  26. * @throws \think\db\exception\DataNotFoundException
  27. * @throws \think\db\exception\DbException
  28. * @throws \think\db\exception\ModelNotFoundException
  29. */
  30. public function getCateList()
  31. {
  32. return $this->getModel()->where('is_del', 0)->select()->toArray();
  33. }
  34. }