From 0888ee5c89e5173996b5a28d12122bb19cfda1c2 Mon Sep 17 00:00:00 2001 From: df123 Date: Sun, 10 May 2026 16:54:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=20RSS=20?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=9D=A1=E7=9B=AE=E4=B8=AD=E7=9A=84=E5=88=86?= =?UTF-8?q?=E8=AF=8D=E7=BB=9F=E8=AE=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除前端页面中分词统计相关的 UI、API 方法和类型定义 --- client/src/api/rssMirror.ts | 40 +---- client/src/types/business.ts | 1 - client/src/views/rss-mirror/items/index.vue | 176 +------------------- 3 files changed, 4 insertions(+), 213 deletions(-) diff --git a/client/src/api/rssMirror.ts b/client/src/api/rssMirror.ts index 799f5ac..c3a8ba4 100644 --- a/client/src/api/rssMirror.ts +++ b/client/src/api/rssMirror.ts @@ -1,9 +1,8 @@ import { http } from "@/utils/http"; -import type { PagedRequestDto, PagedResultDto } from "@/types/api"; +import type { PagedResultDto } from "@/types/api"; import type { RssMirrorItemDto, - GetRssMirrorItemsRequestDto, - WordSegmentStatisticsDto + GetRssMirrorItemsRequestDto } from "@/types/business"; class RssMirrorApi { @@ -26,8 +25,7 @@ class RssMirrorApi { filter: input?.filter, startTime: input?.startTime, endTime: input?.endTime, - isDownloaded: input?.isDownloaded, - wordToken: input?.wordToken + isDownloaded: input?.isDownloaded } }); } @@ -53,38 +51,6 @@ class RssMirrorApi { return http.request("delete", `${this.baseUrl}/many`, { data: ids }); } - /** - * 获取分词统计 - */ - async getWordSegmentStatistics( - rssSourceId?: number, - languageType?: number, - top: number = 100 - ): Promise { - return http.get(`${this.baseUrl}/word-segment-statistics`, { - params: { rssSourceId, languageType, top } - }); - } - - /** - * 根据分词查询RSS镜像条目 - */ - async getByWordToken( - wordToken: string, - params?: PagedRequestDto - ): Promise> { - const pageIndex = params?.pageIndex ?? 1; - const pageSize = params?.pageSize ?? 10; - return http.get(`${this.baseUrl}/by-word-token`, { - params: { - wordToken, - skipCount: (pageIndex - 1) * pageSize, - maxResultCount: pageSize, - sorting: params?.sorting - } - }); - } - /** * 清空所有RSS镜像条目 */ diff --git a/client/src/types/business.ts b/client/src/types/business.ts index 9c92a9f..ca04adc 100644 --- a/client/src/types/business.ts +++ b/client/src/types/business.ts @@ -759,7 +759,6 @@ export interface GetRssMirrorItemsRequestDto extends PagedRequestDto { startTime?: string; endTime?: string; isDownloaded?: boolean; - wordToken?: string; } // 分词统计DTO diff --git a/client/src/views/rss-mirror/items/index.vue b/client/src/views/rss-mirror/items/index.vue index 61fdea9..f4a744b 100644 --- a/client/src/views/rss-mirror/items/index.vue +++ b/client/src/views/rss-mirror/items/index.vue @@ -5,7 +5,6 @@
RSS镜像条目
- 分词统计 清空所有 @@ -38,14 +37,6 @@ @clear="handleSearch" /> - - - - - -