opt: func

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-07 14:41:25 +08:00
parent 286193f08f
commit dd6ff101d1
63 changed files with 181 additions and 180 deletions

View File

@@ -50,9 +50,9 @@ class MineController extends GetxController {
}
}
Future queryUserInfo() async {
Future<void> queryUserInfo() async {
if (!isLogin.value) {
return {'status': false};
return;
}
var res = await UserHttp.userInfo();
if (res['status']) {
@@ -74,7 +74,7 @@ class MineController extends GetxController {
queryUserStatOwner();
}
Future queryUserStatOwner() async {
Future<void> queryUserStatOwner() async {
var res = await UserHttp.userStatOwner();
if (res['status']) {
userStat.value = res['data'];