mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 01:26:59 +08:00
21
lib/pages/video/related/controller.dart
Normal file
21
lib/pages/video/related/controller.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/models/model_hot_video_item.dart';
|
||||
import 'package:PiliPlus/pages/common/common_list_controller.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:PiliPlus/http/video.dart';
|
||||
|
||||
class RelatedController
|
||||
extends CommonListController<List<HotVideoItemModel>?, HotVideoItemModel> {
|
||||
// 视频aid
|
||||
String bvid = Get.parameters['bvid'] ?? "";
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
queryData();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<LoadingState<List<HotVideoItemModel>?>> customGetData() =>
|
||||
VideoHttp.relatedVideoList(bvid: bvid);
|
||||
}
|
||||
Reference in New Issue
Block a user