simple support for nip07

This commit is contained in:
DASHU
2024-09-04 19:22:38 +08:00
parent 666c546d93
commit 633a29cd79
20 changed files with 1078 additions and 111 deletions

37
lib/data/zap_log.dart Normal file
View File

@@ -0,0 +1,37 @@
class ZapLog {
int? id;
int? appId;
int? zapType;
int? num;
int? createdAt;
ZapLog({
this.id,
this.appId,
this.zapType,
this.num,
this.createdAt,
});
ZapLog.fromJson(Map<String, dynamic> json) {
id = json['id'];
appId = json['app_id'];
zapType = json['zap_type'];
num = json['num'];
createdAt = json['created_at'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['app_id'] = this.appId;
data['zap_type'] = this.zapType;
data['num'] = this.num;
data['created_at'] = this.createdAt;
return data;
}
}