This commit is contained in:
2026-03-04 19:49:07 +08:00
parent c42ccfbcdf
commit 7029209a4d
6 changed files with 293 additions and 25 deletions

View File

@@ -14,6 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
typedef void(^KBLoginCompletion)(BOOL success, NSError * _Nullable error);
typedef void(^KBRegisterCompletion)(BOOL success, NSError * _Nullable error);
typedef void(^KBVerifyMailCompletion)(BOOL success, NSError * _Nullable error);
typedef void(^KBAppUpdateCompletion)(NSDictionary * _Nullable data, NSError * _Nullable error);
@interface KBLoginVM : NSObject
@@ -42,6 +43,9 @@ typedef void(^KBVerifyMailCompletion)(BOOL success, NSError * _Nullable error);
/// 是否已登录:由 KBAuthManager 判断(是否存在有效 token
- (BOOL)isLoggedIn;
/// 检查是否需要更新
- (void)checkAppUpdateWithCompletion:(KBAppUpdateCompletion)completion;
@end
NS_ASSUME_NONNULL_END