Post editor tags

This commit is contained in:
2025-06-27 00:56:07 +08:00
parent e90b35f19f
commit 0361f031db
35 changed files with 1329 additions and 128 deletions

View File

@ -26,6 +26,7 @@ $SnActivityCopyWith<SnActivity> get copyWith => _$SnActivityCopyWithImpl<SnActiv
/// Serializes this SnActivity to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is SnActivity&&(identical(other.id, id) || other.id == id)&&(identical(other.type, type) || other.type == type)&&(identical(other.resourceIdentifier, resourceIdentifier) || other.resourceIdentifier == resourceIdentifier)&&const DeepCollectionEquality().equals(other.data, data)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt));
@ -40,6 +41,7 @@ String toString() {
return 'SnActivity(id: $id, type: $type, resourceIdentifier: $resourceIdentifier, data: $data, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt)';
}
}
/// @nodoc
@ -50,6 +52,9 @@ $Res call({
String id, String type, String resourceIdentifier, dynamic data, DateTime createdAt, DateTime updatedAt, DateTime? deletedAt
});
}
/// @nodoc
class _$SnActivityCopyWithImpl<$Res>
@ -76,6 +81,7 @@ as DateTime?,
}
/// @nodoc
@JsonSerializable()
@ -116,6 +122,7 @@ String toString() {
return 'SnActivity(id: $id, type: $type, resourceIdentifier: $resourceIdentifier, data: $data, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt)';
}
}
/// @nodoc
@ -126,6 +133,9 @@ $Res call({
String id, String type, String resourceIdentifier, dynamic data, DateTime createdAt, DateTime updatedAt, DateTime? deletedAt
});
}
/// @nodoc
class __$SnActivityCopyWithImpl<$Res>
@ -150,8 +160,10 @@ as DateTime?,
));
}
}
/// @nodoc
mixin _$SnCheckInResult {
@ -165,6 +177,7 @@ $SnCheckInResultCopyWith<SnCheckInResult> get copyWith => _$SnCheckInResultCopyW
/// Serializes this SnCheckInResult to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is SnCheckInResult&&(identical(other.id, id) || other.id == id)&&(identical(other.level, level) || other.level == level)&&const DeepCollectionEquality().equals(other.tips, tips)&&(identical(other.accountId, accountId) || other.accountId == accountId)&&(identical(other.account, account) || other.account == account)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)&&(identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt));
@ -179,6 +192,7 @@ String toString() {
return 'SnCheckInResult(id: $id, level: $level, tips: $tips, accountId: $accountId, account: $account, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt)';
}
}
/// @nodoc
@ -189,6 +203,7 @@ $Res call({
String id, int level, List<SnFortuneTip> tips, String accountId, SnAccount? account, DateTime createdAt, DateTime updatedAt, DateTime? deletedAt
});
$SnAccountCopyWith<$Res>? get account;
}
@ -230,6 +245,7 @@ $SnAccountCopyWith<$Res>? get account {
}
}
/// @nodoc
@JsonSerializable()
@ -277,6 +293,7 @@ String toString() {
return 'SnCheckInResult(id: $id, level: $level, tips: $tips, accountId: $accountId, account: $account, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt)';
}
}
/// @nodoc
@ -287,6 +304,7 @@ $Res call({
String id, int level, List<SnFortuneTip> tips, String accountId, SnAccount? account, DateTime createdAt, DateTime updatedAt, DateTime? deletedAt
});
@override $SnAccountCopyWith<$Res>? get account;
}
@ -329,6 +347,7 @@ $SnAccountCopyWith<$Res>? get account {
}
}
/// @nodoc
mixin _$SnFortuneTip {
@ -342,6 +361,7 @@ $SnFortuneTipCopyWith<SnFortuneTip> get copyWith => _$SnFortuneTipCopyWithImpl<S
/// Serializes this SnFortuneTip to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is SnFortuneTip&&(identical(other.isPositive, isPositive) || other.isPositive == isPositive)&&(identical(other.title, title) || other.title == title)&&(identical(other.content, content) || other.content == content));
@ -356,6 +376,7 @@ String toString() {
return 'SnFortuneTip(isPositive: $isPositive, title: $title, content: $content)';
}
}
/// @nodoc
@ -366,6 +387,9 @@ $Res call({
bool isPositive, String title, String content
});
}
/// @nodoc
class _$SnFortuneTipCopyWithImpl<$Res>
@ -388,6 +412,7 @@ as String,
}
/// @nodoc
@JsonSerializable()
@ -424,6 +449,7 @@ String toString() {
return 'SnFortuneTip(isPositive: $isPositive, title: $title, content: $content)';
}
}
/// @nodoc
@ -434,6 +460,9 @@ $Res call({
bool isPositive, String title, String content
});
}
/// @nodoc
class __$SnFortuneTipCopyWithImpl<$Res>
@ -454,8 +483,10 @@ as String,
));
}
}
/// @nodoc
mixin _$SnEventCalendarEntry {
@ -469,6 +500,7 @@ $SnEventCalendarEntryCopyWith<SnEventCalendarEntry> get copyWith => _$SnEventCal
/// Serializes this SnEventCalendarEntry to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is SnEventCalendarEntry&&(identical(other.date, date) || other.date == date)&&(identical(other.checkInResult, checkInResult) || other.checkInResult == checkInResult)&&const DeepCollectionEquality().equals(other.statuses, statuses));
@ -483,6 +515,7 @@ String toString() {
return 'SnEventCalendarEntry(date: $date, checkInResult: $checkInResult, statuses: $statuses)';
}
}
/// @nodoc
@ -493,6 +526,7 @@ $Res call({
DateTime date, SnCheckInResult? checkInResult, List<dynamic> statuses
});
$SnCheckInResultCopyWith<$Res>? get checkInResult;
}
@ -529,6 +563,7 @@ $SnCheckInResultCopyWith<$Res>? get checkInResult {
}
}
/// @nodoc
@JsonSerializable()
@ -545,6 +580,7 @@ class _SnEventCalendarEntry implements SnEventCalendarEntry {
return EqualUnmodifiableListView(_statuses);
}
/// Create a copy of SnEventCalendarEntry
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@ -570,6 +606,7 @@ String toString() {
return 'SnEventCalendarEntry(date: $date, checkInResult: $checkInResult, statuses: $statuses)';
}
}
/// @nodoc
@ -580,6 +617,7 @@ $Res call({
DateTime date, SnCheckInResult? checkInResult, List<dynamic> statuses
});
@override $SnCheckInResultCopyWith<$Res>? get checkInResult;
}