This commit is contained in:
2025-12-04 13:37:11 +08:00
parent f770f8055e
commit b216ddaa61
11 changed files with 377 additions and 10 deletions

View File

@@ -6,7 +6,11 @@
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, UserSex) {
UserSexMan = 0, // 男
UserSexWeman = 1, // 女
UserSexTwoSex = 2, // 两性
};
@interface KBUser : NSObject
// 标识
@@ -14,12 +18,13 @@ NS_ASSUME_NONNULL_BEGIN
// 基本信息
@property (nonatomic, copy, nullable) NSString *nickName;
@property (nonatomic, copy, nullable) NSString *avatarUrl; // 头像 URL
@property (nonatomic, copy, nullable) NSString *gender; // 性别(后端可能返回 string/int统一转字符串存
/// 0
@property (nonatomic, assign) UserSex gender; // 性别(后端可能返回 string/int统一转字符串存
@property (nonatomic, copy, nullable) NSString *email;
/// 邮箱是否验证
@property (nonatomic, assign) BOOL emailVerified;
// 会话信息
// token
@property (nonatomic, copy, nullable) NSString *token; // token/access_token/accessToken
@end