# swagger-to-ts **Repository Path**: LongYuFeng/swagger-to-ts ## Basic Information - **Project Name**: swagger-to-ts - **Description**: 基于GO语言+GIN进行开发,通过解析swagger相关文件进行生成Typescript各个接口(interface),含请求和响应接口。 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-02-05 - **Last Updated**: 2025-02-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # swagger-to-ts #### 介绍 基于GO语言+GIN进行开发,通过解析swagger相关文件进行生成Typescript各个接口(interface),含请求和响应接口。 #### 软件架构 软件架构说明 #### 工具实现目标 1、根据swagger.json文件生成Typescript接口(完成) 2、支持网页版 3、支持多种版本swagger文件解析 #### 安装教程 1. go install 2. go run main.go #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 使用教程 1. 双击下载后的exe文件,双击即可打开 ![应用图](./gitImages/1.png) 1. 输入swagger.json 请求路径 ![示例图](./gitImages/3.png) 1. 回车,即可生成Typescript文件 ![示例图](./gitImages/4.png) 2. 会在当前目录下生成一个文件夹,里面是生成的Typescript文件 ![示例图](./gitImages/2.png)