登录流程已全部重构

This commit is contained in:
zhutao
2025-09-23 11:47:29 +08:00
parent a4992a063b
commit 8988b3feea
71 changed files with 2036 additions and 901 deletions

View File

@@ -0,0 +1,14 @@
import 'package:flutter/cupertino.dart';
import 'package:food_health/api/dto/user_profile_dto.dart';
import 'package:food_health/api/endpoints/profile_api.dart';
class UserStore with ChangeNotifier {
UserProfileDto profile = UserProfileDto();
//初始化数据
Future<void> init() async {
var res = await getUserProfileApi();
profile = res;
notifyListeners();
}
}