ICRUserUtil.h 1.6 KB
Newer Older
mei's avatar
mei committed
1 2
//
//  ICRUserUtil.h
mei's avatar
mei committed
3
//  XFFruit
mei's avatar
mei committed
4 5 6 7 8 9 10 11 12 13 14 15
//
//  Created by Xummer on 3/29/15.
//  Copyright (c) 2015 Xummer. All rights reserved.
//

#import "IBTObject.h"

@interface ICRUserUtil : IBTObject <NSCoding, NSCopying>

// Login Data
@property (copy, nonatomic) NSString *userName;
@property (copy, nonatomic) NSString *password;
freecui's avatar
freecui committed
16
@property (copy, nonatomic) NSString *registerCode;  //企业认证码
mei's avatar
mei committed
17 18
@property (copy, nonatomic) NSString *token;
@property (copy, nonatomic) NSNumber *bAutoLogin;
freecui's avatar
freecui committed
19
@property (copy, nonatomic) NSString *authenticode;//企业认证码
n22's avatar
n22 committed
20
@property (assign,nonatomic)BOOL needFresh;
mei's avatar
mei committed
21 22

// User Data
freecui's avatar
freecui committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
@property (copy, nonatomic) NSString *userId;  // 唯一标识
@property (copy, nonatomic) NSString *displayName; //用户名称
@property (copy, nonatomic) NSString *userCode; // 用户代码

@property (copy, nonatomic) NSString *orgCode; // 企业代码
@property (copy, nonatomic) NSString *orgName; // 企业名称
@property (copy, nonatomic) NSString *orgId;   //  唯一标识

@property (strong, nonatomic) NSArray *permissions; //权限列表




@property (copy, nonatomic) NSString *currentStoreID;  //
@property (copy, nonatomic) NSString *uniqueID;  //
mei's avatar
mei committed
38

管鹏飞's avatar
管鹏飞 committed
39 40 41
//avatar add
@property (assign, nonatomic) BOOL isLogout;

mei's avatar
mei committed
42 43 44 45 46 47
+ (instancetype)sharedInstance;

- (BOOL)saveArchive;

- (BOOL)isLogin;

mei's avatar
mei committed
48 49 50 51
- (void)logout;

- (NSString *)mobileID;

mei's avatar
mei committed
52 53 54 55 56
- (void)storageUserName:(NSString *)userName
               password:(NSString *)password
           registerCode:(NSString *)registerCode
                  token:(NSString *)token;

mei's avatar
mei committed
57 58 59 60
- (void)storageCurrentStoreID:(NSString *)currentStoreID;

- (void)updatePassword:(NSString *)pwd;

mei's avatar
mei committed
61
@end