feat: 添加视频分类分页/详情/添加/更新/设置排序值/删除接口
This commit is contained in:
@@ -11,5 +11,12 @@ use app\common\model\VideoCategoryBaseModel;
|
||||
*/
|
||||
class VideoCategoryModel extends VideoCategoryBaseModel
|
||||
{
|
||||
//
|
||||
// 分类名称搜索
|
||||
public function searchNameAttr($query, $value)
|
||||
{
|
||||
if (empty($value)) {
|
||||
return;
|
||||
}
|
||||
$query->where('name', 'like', '%' . $value . '%');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user