You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
674 B

class BusinessInstance {
factory BusinessInstance() => _getInstance();
static BusinessInstance get instance => _getInstance();
static BusinessInstance _instance;
String _businessToken;
String _businessTenant;
String get businessToken => _businessToken;
set businessToken(String value) {
_businessToken = value;
}
BusinessInstance._internal() {
//单例初始化
}
static BusinessInstance _getInstance() {
if (_instance == null) {
_instance = BusinessInstance._internal();
}
return _instance;
}
String get businessTenant => _businessTenant;
set businessTenant(String value) {
_businessTenant = value;
}
}