mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user