mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-17 23:56:13 +08:00
opt: up panel (#861)
This commit is contained in:
committed by
GitHub
parent
f87957b170
commit
acb3784071
@@ -71,15 +71,12 @@ class DynamicsHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future followUp() async {
|
||||
static Future<LoadingState<FollowUpModel>> followUp() async {
|
||||
var res = await Request().get(Api.followUp);
|
||||
if (res.data['code'] == 0) {
|
||||
return {
|
||||
'status': true,
|
||||
'data': FollowUpModel.fromJson(res.data['data']),
|
||||
};
|
||||
return Success(FollowUpModel.fromJson(res.data['data']));
|
||||
} else {
|
||||
return {'status': false, 'msg': res.data['message']};
|
||||
return Error(res.data['message']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/models/follow/result.dart';
|
||||
|
||||
class FollowHttp {
|
||||
static Future followings({
|
||||
static Future<LoadingState<FollowDataModel>> followings({
|
||||
int? vmid,
|
||||
int? pn,
|
||||
int? ps,
|
||||
@@ -18,12 +18,11 @@ class FollowHttp {
|
||||
'order_type': orderType,
|
||||
});
|
||||
if (res.data['code'] == 0) {
|
||||
return {
|
||||
'status': true,
|
||||
'data': FollowDataModel.fromJson(res.data['data'])
|
||||
};
|
||||
return Success(
|
||||
FollowDataModel.fromJson(res.data['data']),
|
||||
);
|
||||
} else {
|
||||
return {'status': false, 'msg': res.data['message']};
|
||||
return Error(res.data['message']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user