refactor: 视频信息相关接口添加语言查询支持

This commit is contained in:
2025-02-21 14:33:22 +08:00
parent b3c1e12c40
commit f1ed10c774
5 changed files with 16 additions and 0 deletions

View File

@@ -25,4 +25,10 @@ class VideoCategoryModel extends VideoCategoryBaseModel
}
$query->where('name', 'like', '%' . $value . '%');
}
// 语言查询
public function scopeLanguage($query, $value)
{
$query->where('language_id', '=', $value);
}
}