mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-16 23:26:14 +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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user