lloydzhou 1 年之前
父節點
當前提交
af49ed4fdc
共有 2 個文件被更改,包括 1 次插入9 次删除
  1. 0 1
      app/global.d.ts
  2. 1 8
      src-tauri/src/stream.rs

+ 0 - 1
app/global.d.ts

@@ -12,7 +12,6 @@ declare module "*.svg";
 
 declare interface Window {
   __TAURI__?: {
-    convertFileSrc(url: string, protocol?: string): string;
     writeText(text: string): Promise<void>;
     invoke(command: string, payload?: Record<string, unknown>): Promise<any>;
     dialog: {

+ 1 - 8
src-tauri/src/stream.rs

@@ -2,6 +2,7 @@
 //
 
 use std::error::Error;
+use std::collections::HashMap;
 use futures_util::{StreamExt};
 use reqwest::Client;
 use reqwest::header::{HeaderName, HeaderMap};
@@ -28,14 +29,6 @@ pub struct ChunkPayload {
   chunk: bytes::Bytes,
 }
 
-use std::collections::HashMap;
-
-#[derive(serde::Serialize)]
-pub struct CustomResponse {
-  message: String,
-  other_val: usize,
-}
-
 #[tauri::command]
 pub async fn stream_fetch(
   window: tauri::Window,