StoreDescriptionDao.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 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\product\product;
  12. use app\dao\BaseDao;
  13. use app\model\product\product\StoreDescription;
  14. /**
  15. * Class StoreDescriptionDao
  16. * @package app\dao\product\product
  17. */
  18. class StoreDescriptionDao extends BaseDao
  19. {
  20. /**
  21. * 设置模型
  22. * @return string
  23. */
  24. protected function setModel(): string
  25. {
  26. return StoreDescription::class;
  27. }
  28. /**
  29. * 根据条件获取商品详情
  30. * @param array $where
  31. * @return array|\think\Model|null
  32. * @throws \think\db\exception\DataNotFoundException
  33. * @throws \think\db\exception\DbException
  34. * @throws \think\db\exception\ModelNotFoundException
  35. */
  36. public function getDescription(array $where)
  37. {
  38. return $this->getOne($where);
  39. }
  40. }