Skip to content

Commit

Permalink
Merge pull request #9 from Lemonnnnnnnnnnn/master
Browse files Browse the repository at this point in the history
fix: request - export string format problem
  • Loading branch information
Lemonnnnnnnnnnn authored Feb 22, 2024
2 parents 7e75485 + 8a8f977 commit 2141312
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yapi-to-ts"
version = "0.1.0"
version = "0.1.2"
description = "A Tauri App"
authors = ["you"]
license = ""
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/structs/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct Request {
* example:
* import { addRequest , addResponse } from "@/types/agentAppAccount/add"
*
* request_template:
* type_import_template:
* import { $1 , $2 } from "$3"
*/
pub type_import_template: Option<String>,
Expand Down Expand Up @@ -237,7 +237,7 @@ impl Request {
.replace("$3", &format!("{}Response", &file_name_string))
.replace(
"$4",
&format!("{}{}", sub_path_unix.as_str(), &file_name_string),
&format!("{}/{}", sub_path_unix.as_str(), &file_name_string),
)
+ "\n";

Expand Down

0 comments on commit 2141312

Please sign in to comment.