opt models

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-04 15:20:35 +08:00
parent f50b1d2beb
commit b960359a39
858 changed files with 11000 additions and 12588 deletions

View File

@@ -0,0 +1,29 @@
class PgcTriple {
int? coin;
int? coinNumber;
int? favorite;
int? fmid;
int? follow;
int? like;
bool? relation;
PgcTriple({
this.coin,
this.coinNumber,
this.favorite,
this.fmid,
this.follow,
this.like,
this.relation,
});
factory PgcTriple.fromJson(Map<String, dynamic> json) => PgcTriple(
coin: json["coin"],
coinNumber: json["coin_number"],
favorite: json["favorite"],
fmid: json["fmid"],
follow: json["follow"],
like: json["like"],
relation: json["relation"],
);
}

View File

@@ -0,0 +1,29 @@
class UgcTriple {
bool? like;
bool? coin;
bool? fav;
int? multiply;
bool? isRisk;
int? gaiaResType;
dynamic gaiaData;
UgcTriple({
this.like,
this.coin,
this.fav,
this.multiply,
this.isRisk,
this.gaiaResType,
this.gaiaData,
});
factory UgcTriple.fromJson(Map<String, dynamic> json) => UgcTriple(
like: json["like"],
coin: json["coin"],
fav: json["fav"],
multiply: json["multiply"],
isRisk: json["is_risk"],
gaiaResType: json["gaia_res_type"],
gaiaData: json["gaia_data"],
);
}