Business constructor
Business({
- dynamic id,
- DbJsonWraper? extra,
- int? time,
- String? no,
- String? pwd,
- String? nick,
- String? desc,
- String? icon,
- String? phone,
- String? email,
- String? secret,
- int? version,
- String? language,
- int? cashoutRate,
- int? vritualRate,
- List<
String> ? cashStyleList, - List<
DbJsonWraper> ? iceServerList, - dynamic systemUid,
- List? adminIds,
- List? staffIds,
- List? groupIds,
- Map<
int, String> ? customXAdminNos, - List<
PayGoods> ? rechargeGoodsList, - List<
PayGoods> ? virvalueGoodsList, - String? wechatAppId,
- String? wechatAppSecret,
- String? wechatMchId,
- String? wechatMchSecret,
- String? alipayAppId,
- String? alipayAesKey,
- String? alipayPublicKey,
- String? alipayAppPrivateKey,
- String? alipayCertRootKey,
- String? alipayCertPublicKey,
- String? alipayCertAppPublicKey,
- String? alismsAccessKeyId,
- String? alismsAccessKeySecret,
- String? alismsEndpoint,
- String? alismsApiVersion,
- String? alismsSignName,
- String? alismsTemplateCode,
- String? appleKeyP8,
- String? appleKeyP8Public,
- String? appleAuthClientId,
- String? appleAuthTeamId,
- String? appleAuthKeyId,
- String? appleAuthRedirectUri,
- String? appleAppSiteAssociation,
Implementation
Business({
ObjectId? id,
DbJsonWraper? extra,
int? time,
String? no,
String? pwd,
String? nick,
String? desc,
String? icon,
String? phone,
String? email,
String? secret,
int? version,
String? language,
int? cashoutRate,
int? vritualRate,
List<String>? cashStyleList,
List<DbJsonWraper>? iceServerList,
ObjectId? systemUid,
List<ObjectId>? adminIds,
List<ObjectId>? staffIds,
List<ObjectId>? groupIds,
Map<int, String>? customXAdminNos,
List<PayGoods>? rechargeGoodsList,
List<PayGoods>? virvalueGoodsList,
String? wechatAppId,
String? wechatAppSecret,
String? wechatMchId,
String? wechatMchSecret,
String? alipayAppId,
String? alipayAesKey,
String? alipayPublicKey,
String? alipayAppPrivateKey,
String? alipayCertRootKey,
String? alipayCertPublicKey,
String? alipayCertAppPublicKey,
String? alismsAccessKeyId,
String? alismsAccessKeySecret,
String? alismsEndpoint,
String? alismsApiVersion,
String? alismsSignName,
String? alismsTemplateCode,
String? appleKeyP8,
String? appleKeyP8Public,
String? appleAuthClientId,
String? appleAuthTeamId,
String? appleAuthKeyId,
String? appleAuthRedirectUri,
String? appleAppSiteAssociation,
}) : _id = id ?? ObjectId(),
_extra = extra ?? DbJsonWraper(),
_time = time ?? DateTime.now().millisecondsSinceEpoch,
no = no ?? '',
pwd = pwd ?? '',
nick = nick ?? '',
desc = desc ?? '',
icon = icon ?? '',
phone = phone ?? '',
email = email ?? '',
secret = secret ?? '',
version = version ?? 0,
language = language ?? 'zh',
cashoutRate = cashoutRate ?? 0,
vritualRate = vritualRate ?? 0,
cashStyleList = cashStyleList ?? [],
iceServerList = iceServerList ?? [],
systemUid = systemUid ?? ObjectId.fromHexString('000000000000000000000000'),
adminIds = adminIds ?? [],
staffIds = staffIds ?? [],
groupIds = groupIds ?? [],
customXAdminNos = customXAdminNos ?? {},
rechargeGoodsList = rechargeGoodsList ?? [],
virvalueGoodsList = virvalueGoodsList ?? [],
wechatAppId = wechatAppId ?? '',
wechatAppSecret = wechatAppSecret ?? '',
wechatMchId = wechatMchId ?? '',
wechatMchSecret = wechatMchSecret ?? '',
alipayAppId = alipayAppId ?? '',
alipayAesKey = alipayAesKey ?? '',
alipayPublicKey = alipayPublicKey ?? '',
alipayAppPrivateKey = alipayAppPrivateKey ?? '',
alipayCertRootKey = alipayCertRootKey ?? '',
alipayCertPublicKey = alipayCertPublicKey ?? '',
alipayCertAppPublicKey = alipayCertAppPublicKey ?? '',
alismsAccessKeyId = alismsAccessKeyId ?? '',
alismsAccessKeySecret = alismsAccessKeySecret ?? '',
alismsEndpoint = alismsEndpoint ?? '',
alismsApiVersion = alismsApiVersion ?? '',
alismsSignName = alismsSignName ?? '',
alismsTemplateCode = alismsTemplateCode ?? '',
appleKeyP8 = appleKeyP8 ?? '',
appleKeyP8Public = appleKeyP8Public ?? '',
appleAuthClientId = appleAuthClientId ?? '',
appleAuthTeamId = appleAuthTeamId ?? '',
appleAuthKeyId = appleAuthKeyId ?? '',
appleAuthRedirectUri = appleAuthRedirectUri ?? '',
appleAppSiteAssociation = appleAppSiteAssociation ?? '';