Files
huangjingfen/pro_v3.5.1/app/dao/activity/live/LiveRoomGoodsDao.php
apple 78de918c37 Initial commit: queue workspace
Made-with: Cursor
2026-03-21 02:55:24 +08:00

47 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
declare (strict_types=1);
namespace app\dao\activity\live;
use app\dao\BaseDao;
use app\model\activity\live\LiveRoomGoods;
/**
* 直播间关联商品
* Class LiveRoomGoodsDao
* @package app\dao\activity\live
*/
class LiveRoomGoodsDao extends BaseDao
{
/**
* 设置模型
* @return string
*/
protected function setModel(): string
{
return LiveRoomGoods::class;
}
/**
* 清除直播间关联商品
* @param int $id 直播间ID
* @return bool
*/
public function clear($id)
{
return $this->getModel()->where('live_room_id', $id)->delete();
}
}