admin-api/app/common/dao/store/product/ProductLabelDao.php

22 lines
377 B
PHP

<?php
namespace app\common\dao\store\product;
use app\common\dao\BaseDao;
use app\common\model\store\product\ProductLabel;
class ProductLabelDao extends BaseDao
{
protected function getModel(): string
{
return ProductLabel::class;
}
public function clear($id,$field)
{
$this->getModel()::getDB()->where($field, $id)->delete();
}
}