mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: show member article
This commit is contained in:
30
lib/models/space_article/stats.dart
Normal file
30
lib/models/space_article/stats.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'stats.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Stats {
|
||||
int? view;
|
||||
int? favorite;
|
||||
int? like;
|
||||
int? dislike;
|
||||
int? reply;
|
||||
int? share;
|
||||
int? coin;
|
||||
int? dyn;
|
||||
|
||||
Stats({
|
||||
this.view,
|
||||
this.favorite,
|
||||
this.like,
|
||||
this.dislike,
|
||||
this.reply,
|
||||
this.share,
|
||||
this.coin,
|
||||
this.dyn,
|
||||
});
|
||||
|
||||
factory Stats.fromJson(Map<String, dynamic> json) => _$StatsFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$StatsToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user