Files
keyboard/keyBoard/Class/Login/M/KBUser.h
2025-12-04 13:37:11 +08:00

34 lines
945 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// KBUser.h
// 登录模块-用户模型MJExtension 解析)
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, UserSex) {
UserSexMan = 0, // 男
UserSexWeman = 1, // 女
UserSexTwoSex = 2, // 两性
};
@interface KBUser : NSObject
// 标识
@property (nonatomic, copy, nullable) NSString *userId; // id/user_id/uid
// 基本信息
@property (nonatomic, copy, nullable) NSString *nickName;
@property (nonatomic, copy, nullable) NSString *avatarUrl; // 头像 URL
/// 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
NS_ASSUME_NONNULL_END