feat: remove fan

Closes #733

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-22 18:05:02 +08:00
parent 1f2f00d49c
commit 7856857cca
8 changed files with 139 additions and 70 deletions

View File

@@ -4,15 +4,21 @@ part 'relation.g.dart';
@JsonSerializable()
class Relation {
int? status;
@JsonKey(name: 'is_follow')
int? isFollow;
int? status;
@JsonKey(name: 'is_follow')
int? isFollow;
@JsonKey(name: 'is_followed')
int? isFollowed;
Relation({this.status, this.isFollow});
Relation({
this.status,
this.isFollow,
this.isFollowed,
});
factory Relation.fromJson(Map<String, dynamic> json) {
return _$RelationFromJson(json);
}
factory Relation.fromJson(Map<String, dynamic> json) {
return _$RelationFromJson(json);
}
Map<String, dynamic> toJson() => _$RelationToJson(this);
Map<String, dynamic> toJson() => _$RelationToJson(this);
}

View File

@@ -9,9 +9,11 @@ part of 'relation.dart';
Relation _$RelationFromJson(Map<String, dynamic> json) => Relation(
status: (json['status'] as num?)?.toInt(),
isFollow: (json['is_follow'] as num?)?.toInt(),
isFollowed: (json['is_followed'] as num?)?.toInt(),
);
Map<String, dynamic> _$RelationToJson(Relation instance) => <String, dynamic>{
'status': instance.status,
'is_follow': instance.isFollow,
'is_followed': instance.isFollowed,
};