LiveRoomGoodsDao.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. declare (strict_types=1);
  12. namespace app\dao\activity\live;
  13. use app\dao\BaseDao;
  14. use app\model\activity\live\LiveRoomGoods;
  15. /**
  16. * 直播间关联商品
  17. * Class LiveRoomGoodsDao
  18. * @package app\dao\activity\live
  19. */
  20. class LiveRoomGoodsDao extends BaseDao
  21. {
  22. protected function setModel(): string
  23. {
  24. return LiveRoomGoods::class;
  25. }
  26. public function clear($id)
  27. {
  28. return $this->getModel()->where('live_room_id', $id)->delete();
  29. }
  30. }