mirror of
https://github.com/Moe-Sakura/Wrangler-API.git
synced 2026-03-27 06:19:45 +08:00
feat: 引入平台标签系统,优化平台信息及错误日志
- 引入平台标签系统,提供详细的平台特性说明。 - 重构搜索结果初始化,避免平台名称重复定义。 - 修正核心搜索错误日志,确保正确记录平台名称。 - 移除两个Galgame平台:TianYouErCiYuan(收费)和YingZhiGuang(网站转型)。 - 更新部分平台的颜色、魔法属性和标签信息。
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
export interface SearchResultItem {
|
||||
name: string;
|
||||
url: string;
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
// 平台搜索的返回值
|
||||
export interface PlatformSearchResult {
|
||||
items: SearchResultItem[];
|
||||
count: number;
|
||||
name: string;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface PlatformSearchResult {
|
||||
export interface Platform {
|
||||
name: string;
|
||||
color: string;
|
||||
tags: string[];
|
||||
magic: boolean;
|
||||
search: (game: string, ...args: any[]) => Promise<PlatformSearchResult>;
|
||||
}
|
||||
@@ -24,6 +25,7 @@ export interface Platform {
|
||||
export interface StreamResult {
|
||||
name: string;
|
||||
color: string;
|
||||
tags: string[];
|
||||
items: SearchResultItem[];
|
||||
error?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user