feat: 添加视频分类分页/详情/添加/更新/设置排序值/删除接口

This commit is contained in:
2025-02-20 17:55:28 +08:00
parent a7284d0854
commit f74aadc5d2
4 changed files with 249 additions and 1 deletions

View File

@@ -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 . '%');
}
}