* opt: uuid

* tweak

* opt: SlideDialog

* mod: fvmrc [skip ci]

* Revert "mod: fvmrc [skip ci]"

This reverts commit 500fd7f454.

* Revert "opt: SlideDialog"

This reverts commit b435a312a6.

---------

Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2026-01-11 10:45:51 +08:00
committed by GitHub
parent 34a839d9e2
commit c40d794180
12 changed files with 66 additions and 55 deletions

View File

@@ -44,13 +44,12 @@ abstract final class UserHttp {
}
}
static Future<dynamic> userStatOwner() async {
static Future<LoadingState<UserStat>> userStatOwner() async {
final res = await Request().get(Api.userStatOwner);
if (res.data['code'] == 0) {
UserStat data = UserStat.fromJson(res.data['data']);
return {'status': true, 'data': data};
return Success(UserStat.fromJson(res.data['data']));
} else {
return {'status': false, 'msg': res.data['message']};
return Error(res.data['message']);
}
}