feat(video): add user-specific video query and filter accounts functionality

- Introduced `buildUserQuery` method in `DysVideoLog` model to create a base query for user-specific video logs.
- Added `getVideoFilterAccountsByUserId` method in `DyVideoUser` model to retrieve active accounts for a specified user.
- Updated routing to include new video work API endpoints under `v1/video-work`, requiring user authentication.
This commit is contained in:
nepiedg
2026-04-03 03:48:25 +00:00
parent 5a9d6090f3
commit be58aac7e7
5 changed files with 778 additions and 0 deletions
+6
View File
@@ -5,6 +5,7 @@ use think\facade\Route;
use app\api\controller\v1\Auth;
use app\api\controller\v1\Platform;
use app\api\controller\v1\PublishPlan;
use app\api\controller\v1\VideoWork;
/**
* 全局路由入口。
@@ -39,3 +40,8 @@ Route::group('api/v1/publish-plan', function () {
Route::post('start/:id', [PublishPlan::class, 'start']);
Route::post('stop/:id', [PublishPlan::class, 'stop']);
})->middleware(\app\api\middleware\Auth::class);
// v1 视频作品接口(需登录)
Route::group('api/v1/video-work', function () {
Route::get('list', [VideoWork::class, 'index']);
})->middleware(\app\api\middleware\Auth::class);