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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user