Merge remote-tracking branch 'origin/dev' into cody/netwrok_SDK
# Conflicts: # apps/im_app/lib/features/chat/presentation/chat_db_test_view_model.dart # apps/im_app/lib/features/login/presentation/login_view_model.dart 修复逻辑漏洞,性能优化
This commit is contained in:
64
apps/im_app/lib/domain/entities/workspace.dart
Normal file
64
apps/im_app/lib/domain/entities/workspace.dart
Normal file
@@ -0,0 +1,64 @@
|
||||
/// 工作空间 Domain 实体
|
||||
class Workspace {
|
||||
final int id;
|
||||
final String? name;
|
||||
final int? ownerId;
|
||||
final String? description;
|
||||
final String? logo;
|
||||
final int? grade;
|
||||
final int? cap;
|
||||
final String? currency;
|
||||
final int? status;
|
||||
final int? createdAt;
|
||||
final int? updatedAt;
|
||||
final int? deletedAt;
|
||||
final int? channelGroupId;
|
||||
|
||||
const Workspace({
|
||||
required this.id,
|
||||
this.name,
|
||||
this.ownerId,
|
||||
this.description,
|
||||
this.logo,
|
||||
this.grade,
|
||||
this.cap,
|
||||
this.currency,
|
||||
this.status,
|
||||
this.createdAt,
|
||||
this.updatedAt,
|
||||
this.deletedAt,
|
||||
this.channelGroupId,
|
||||
});
|
||||
|
||||
Workspace copyWith({
|
||||
int? id,
|
||||
String? name,
|
||||
int? ownerId,
|
||||
String? description,
|
||||
String? logo,
|
||||
int? grade,
|
||||
int? cap,
|
||||
String? currency,
|
||||
int? status,
|
||||
int? createdAt,
|
||||
int? updatedAt,
|
||||
int? deletedAt,
|
||||
int? channelGroupId,
|
||||
}) {
|
||||
return Workspace(
|
||||
id: id ?? this.id,
|
||||
name: name ?? this.name,
|
||||
ownerId: ownerId ?? this.ownerId,
|
||||
description: description ?? this.description,
|
||||
logo: logo ?? this.logo,
|
||||
grade: grade ?? this.grade,
|
||||
cap: cap ?? this.cap,
|
||||
currency: currency ?? this.currency,
|
||||
status: status ?? this.status,
|
||||
createdAt: createdAt ?? this.createdAt,
|
||||
updatedAt: updatedAt ?? this.updatedAt,
|
||||
deletedAt: deletedAt ?? this.deletedAt,
|
||||
channelGroupId: channelGroupId ?? this.channelGroupId,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user