feat: 添加AI推荐功能及自动刷新机制
新增AI推荐模块,包括后端数据获取接口和前端展示组件 实现自动刷新功能,每5分钟自动更新当前标签页数据 添加手动刷新按钮,优化用户交互体验
This commit is contained in:
@@ -1,5 +1,23 @@
|
||||
export namespace main {
|
||||
|
||||
export class AiRecommendation {
|
||||
id: string;
|
||||
title: string;
|
||||
confidence: number;
|
||||
createdAt: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new AiRecommendation(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.id = source["id"];
|
||||
this.title = source["title"];
|
||||
this.confidence = source["confidence"];
|
||||
this.createdAt = source["createdAt"];
|
||||
}
|
||||
}
|
||||
export class BidItem {
|
||||
id: string;
|
||||
title: string;
|
||||
|
||||
Reference in New Issue
Block a user