Files
bidding_watcher/widget/looker/frontend/wailsjs/go/models.ts
dmy bcd7af4e69 feat: 添加爬虫状态监控功能
新增爬虫统计信息展示组件,包括后端数据查询接口和前端展示界面。同时简化日期显示格式并添加刷新提示功能。
2026-01-14 09:26:04 +08:00

92 lines
2.4 KiB
TypeScript

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;
url: string;
publishDate: string;
source: string;
pin: boolean;
createdAt: string;
updatedAt: string;
static createFrom(source: any = {}) {
return new BidItem(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.id = source["id"];
this.title = source["title"];
this.url = source["url"];
this.publishDate = source["publishDate"];
this.source = source["source"];
this.pin = source["pin"];
this.createdAt = source["createdAt"];
this.updatedAt = source["updatedAt"];
}
}
export class CrawlInfoStat {
source: string;
count: number;
latestUpdate: string;
latestPublishDate: string;
error: string;
static createFrom(source: any = {}) {
return new CrawlInfoStat(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.source = source["source"];
this.count = source["count"];
this.latestUpdate = source["latestUpdate"];
this.latestPublishDate = source["latestPublishDate"];
this.error = source["error"];
}
}
export class DatabaseConfig {
Type: string;
Host: string;
Port: string;
Username: string;
Password: string;
Name: string;
static createFrom(source: any = {}) {
return new DatabaseConfig(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.Type = source["Type"];
this.Host = source["Host"];
this.Port = source["Port"];
this.Username = source["Username"];
this.Password = source["Password"];
this.Name = source["Name"];
}
}
}