dyn uplist

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-05 11:47:22 +08:00
parent 203a997583
commit 52373dc540
7 changed files with 122 additions and 56 deletions

View File

@@ -68,7 +68,13 @@ class DynamicsHttp {
}
static Future<LoadingState<FollowUpModel>> followUp() async {
var res = await Request().get(Api.followUp);
var res = await Request().get(
Api.followUp,
queryParameters: {
'up_list_more': 1,
'web_location': 333.1365,
},
);
if (res.data['code'] == 0) {
return Success(FollowUpModel.fromJson(res.data['data']));
} else {
@@ -76,6 +82,22 @@ class DynamicsHttp {
}
}
static Future<LoadingState<DynUpList>> dynUpList(String? offset) async {
var res = await Request().get(
Api.dynUplist,
queryParameters: {
'offset': offset,
'platform': 'web',
'web_location': 333.1365,
},
);
if (res.data['code'] == 0) {
return Success(DynUpList.fromJson(res.data['data']));
} else {
return Error(res.data['message']);
}
}
// 动态点赞
// static Future likeDynamic({
// required String? dynamicId,