所有数据库表,提供相应的provider、桥接等方法
This commit is contained in:
44
apps/im_app/lib/domain/entities/favorite_detail.dart
Normal file
44
apps/im_app/lib/domain/entities/favorite_detail.dart
Normal file
@@ -0,0 +1,44 @@
|
||||
/// 收藏详情 Domain 实体
|
||||
class FavoriteDetail {
|
||||
final int? id;
|
||||
final String relatedId;
|
||||
final String content;
|
||||
final int? typ;
|
||||
final int? messageId;
|
||||
final int? sendId;
|
||||
final int? chatId;
|
||||
final int? sendTime;
|
||||
|
||||
const FavoriteDetail({
|
||||
this.id,
|
||||
this.relatedId = '',
|
||||
this.content = '',
|
||||
this.typ,
|
||||
this.messageId,
|
||||
this.sendId,
|
||||
this.chatId,
|
||||
this.sendTime,
|
||||
});
|
||||
|
||||
FavoriteDetail copyWith({
|
||||
int? id,
|
||||
String? relatedId,
|
||||
String? content,
|
||||
int? typ,
|
||||
int? messageId,
|
||||
int? sendId,
|
||||
int? chatId,
|
||||
int? sendTime,
|
||||
}) {
|
||||
return FavoriteDetail(
|
||||
id: id ?? this.id,
|
||||
relatedId: relatedId ?? this.relatedId,
|
||||
content: content ?? this.content,
|
||||
typ: typ ?? this.typ,
|
||||
messageId: messageId ?? this.messageId,
|
||||
sendId: sendId ?? this.sendId,
|
||||
chatId: chatId ?? this.chatId,
|
||||
sendTime: sendTime ?? this.sendTime,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user