From 30c9450492c3945e34032bf0414817bf416093bb Mon Sep 17 00:00:00 2001 From: zhengshunjin <2667579369@qq.com> Date: Fri, 8 May 2026 00:18:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor(api):=20=E4=B8=BAAPI=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=94=E5=9B=9E=E7=B1=BB=E5=9E=8B=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为book_download函数添加ResponseData返回类型 - 为video_findDeduplication函数添加ResponseData返回类型 - 为video_deduplication函数添加ResponseData返回类型 - 为video_hasTorrent函数添加ResponseData返回类型 - 为torrent_deduplication函数添加ResponseData返回类型 - 为image_export函数添加ResponseData返回类型 - 为image_hasTorrent函数添加ResponseData返回类型 - 为music_rename函数添加ResponseData返回类型 - 为test函数添加ResponseData返回类型 --- flask-ui/src/api/index.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flask-ui/src/api/index.ts b/flask-ui/src/api/index.ts index 77ec1e3..bcdf66c 100644 --- a/flask-ui/src/api/index.ts +++ b/flask-ui/src/api/index.ts @@ -2,25 +2,25 @@ import request from "../utils/request.ts" type ResponseData = Promise<{ code: number, message: Array }> -export function book_download() { +export function book_download():ResponseData { return request({ url: "/book/download", }) } -export function video_findDeduplication() { +export function video_findDeduplication():ResponseData { return request({ url: "/video/findDeduplication", }) } -export function video_deduplication() { +export function video_deduplication():ResponseData { return request({ url: "/video/deduplication", }) } -export function video_hasTorrent() { +export function video_hasTorrent():ResponseData { return request({ url: "/video/hasTorrent", }) @@ -32,31 +32,31 @@ export function file_rename(): ResponseData { }) } -export function torrent_deduplication() { +export function torrent_deduplication():ResponseData { return request({ url: "/torrent/deduplication", }) } -export function image_export() { +export function image_export():ResponseData { return request({ url: "/image/export", }) } -export function image_hasTorrent() { +export function image_hasTorrent():ResponseData { return request({ url: "/image/hasTorrent", }) } -export function music_rename() { +export function music_rename():ResponseData { return request({ url: "/music/rename", }) } -export function test() { +export function test():ResponseData { return request({ url: "/test", })