feat:适配多租户
This commit is contained in:
1 parent
cdbb69f843
commit
b370be9111
13 files changed
+175
-8
No files matched your search
@@ -126,3 +126,32 @@ class ServiceAsyncFace {
|
||||
|
||||
Map<String, dynamic> toJson() => _$ServiceAsyncFaceToJson(this);
|
||||
}
|
||||
|
||||
@JsonSerializable()
|
||||
class ServiceTenant {
|
||||
/// id
|
||||
final String? id;
|
||||
|
||||
/// 编号
|
||||
final String? code;
|
||||
|
||||
/// 编号
|
||||
final String? name;
|
||||
|
||||
final String? menuId;
|
||||
|
||||
final String? miniQr;
|
||||
|
||||
ServiceTenant({
|
||||
this.id,
|
||||
this.code,
|
||||
this.name,
|
||||
this.menuId,
|
||||
this.miniQr,
|
||||
});
|
||||
|
||||
factory ServiceTenant.fromJson(Map<String, dynamic> json) =>
|
||||
_$ServiceTenantFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$ServiceTenantToJson(this);
|
||||
}
|
||||
@@ -72,3 +72,21 @@ Map<String, dynamic> _$ServiceAsyncFaceToJson(ServiceAsyncFace instance) =>
|
||||
'deptId': instance.deptId,
|
||||
'deptName': instance.deptName,
|
||||
};
|
||||
|
||||
ServiceTenant _$ServiceTenantFromJson(Map<String, dynamic> json) =>
|
||||
ServiceTenant(
|
||||
id: json['id'] as String?,
|
||||
code: json['code'] as String?,
|
||||
name: json['name'] as String?,
|
||||
menuId: json['menuId'] as String?,
|
||||
miniQr: json['miniQr'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$ServiceTenantToJson(ServiceTenant instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'code': instance.code,
|
||||
'name': instance.name,
|
||||
'menuId': instance.menuId,
|
||||
'miniQr': instance.miniQr,
|
||||
};
|
||||
Reference in new issue
Block a user