feat: article list

Closes #841

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-10 12:39:17 +08:00
parent 024a249e6b
commit 91af974bd4
16 changed files with 740 additions and 14 deletions

View File

@@ -98,6 +98,7 @@ class ItemModulesModel {
// 专栏
ModuleTop? moduleTop;
ModuleCollection? moduleCollection;
List<ModuleTag>? moduleExtend; // opus的tag
List<ArticleContentModel>? moduleContent;
ModuleBlocked? moduleBlocked;
@@ -133,6 +134,11 @@ class ItemModulesModel {
? null
: ModuleTag.fromJson(i['module_title']);
break;
case 'MODULE_TYPE_COLLECTION':
moduleCollection = i['module_collection'] == null
? null
: ModuleCollection.fromJson(i['module_collection']);
break;
case 'MODULE_TYPE_AUTHOR':
moduleAuthor = i['module_author'] == null
? null
@@ -167,6 +173,20 @@ class ItemModulesModel {
}
}
class ModuleCollection {
String? count;
int? id;
String? name;
String? title;
ModuleCollection.fromJson(Map<String, dynamic> json) {
count = json['count'];
id = json['id'];
name = json['name'];
title = json['title'];
}
}
class ModuleTop {
ModuleTopDisplay? display;