feat: 搜索专栏

This commit is contained in:
guozhigq
2023-09-19 00:06:00 +08:00
parent 9f4b928257
commit 97fa047c60
5 changed files with 18 additions and 7 deletions

View File

@ -17,7 +17,7 @@ enum SearchType {
// 用户bili_user
bili_user,
// 专栏article
// article,
article,
// 相簿photo
// photo
}

View File

@ -397,6 +397,7 @@ class SearchArticleItemModel {
this.pubTime,
this.like,
this.title,
this.subTitle,
this.rankOffset,
this.mid,
this.imageUrls,
@ -414,6 +415,7 @@ class SearchArticleItemModel {
int? pubTime;
int? like;
List? title;
String? subTitle;
int? rankOffset;
int? mid;
List? imageUrls;
@ -431,6 +433,7 @@ class SearchArticleItemModel {
pubTime = json['pub_time'];
like = json['like'];
title = Em.regTitle(json['title']);
subTitle = json['title'].replaceAll(RegExp(r'<[^>]*>'), '');
rankOffset = json['rank_offset'];
mid = json['mid'];
imageUrls = json['image_urls'];