opt: up panel (#861)

This commit is contained in:
My-Responsitories
2025-05-21 02:11:31 +08:00
committed by GitHub
parent f87957b170
commit acb3784071
6 changed files with 81 additions and 90 deletions

View File

@@ -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']);
}
}