1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // PBUser.h
- // PBSDK
- //
- // Created by mbp on 2024/12/13.
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface PBUser : NSObject <NSCoding>
- + (PBUser *)shared;
- @property (nonatomic, copy ) NSString *userId;
- @property (nonatomic, copy ) NSString *userCode;
- @property (nonatomic, copy ) NSString *userName;
- @property (nonatomic, copy ) NSString *nickName;
- @property (nonatomic, copy ) NSString *gender;
- @property (nonatomic, assign) NSInteger age;
- @property (nonatomic, copy ) NSString *icon;
- @property (nonatomic, copy ) NSString *imUserName;
- @property (nonatomic, copy ) NSString *imPassword;
- //登录
- + (void)loginWithMap:(NSDictionary*)dic;
- // 保存用户信息到 UserDefaults
- - (void)saveToUserDefaults;
- // 从 UserDefaults 加载用户信息
- + (void)loadFromUserDefaults;
- // 清除 UserDefaults 中的用户信息
- + (void)clearUserDefaults;
- @end
- NS_ASSUME_NONNULL_END
|