feat: A1 网络层与鉴权 + A2 账号登录对接
- 引入 dio,封装统一 ApiClient(BaseUrl/Token 注入/401 自动刷新/{code,message,data} 解包)
- TokenStorage 令牌持久化,AuthController 登录状态管理
- AuthRepository 封装 otp/login/logout 接口
- 登录页对接手机号/邮箱验证码登录(Google 登录待 OAuth client 配置)
This commit is contained in:
1 parent
015677d1a8
commit
a7ac3b7fc7
9 files changed
+602
-78
No files matched your search
@@ -39,6 +39,7 @@ dependencies:
|
||||
provider: ^6.1.5+1
|
||||
video_player: ^2.14.0
|
||||
shared_preferences: ^2.5.5
|
||||
dio: ^5.7.0
|
||||
flutter_localizations:
|
||||
sdk: flutter
|
||||
|
||||
|
||||
Reference in new issue
Block a user