feat: 稍后再看

This commit is contained in:
guozhigq
2023-05-23 11:18:23 +08:00
parent 51c4a082ac
commit bbba3083bc
9 changed files with 132 additions and 5 deletions

View File

@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:pilipala/http/user.dart';
import 'package:pilipala/models/model_hot_video_item.dart';
class LaterController extends GetxController {
final ScrollController scrollController = ScrollController();
RxList<HotVideoItemModel> laterList = [HotVideoItemModel()].obs;
int count = 0;
Future queryLaterList() async {
var res = await UserHttp.seeYouLater();
if (res['status']) {
laterList.value = res['data']['list'];
count = res['data']['count'];
}
return res;
}
}