Skip to content

一个基于Electron,为方便使用MoyaMapper而做的JSON转Model工具

License

Notifications You must be signed in to change notification settings

MoyaMapper/elecmapper

Repository files navigation

ElectMapper 是为方便使用 MoyaMapper 而制作的 JSON 转模型 工具

MoyaMapper : 快速解析模型工具,支持RxSwift。同时支持缓存功能

MoyaMapper 使用手册 https://MoyaMapper.github.io

下载

特性

  • 格式化 json 数据
  • 对调整 转换 后的数据进行调整
  • 将数据导出为 Swift 模型文件

界面

使用

  1. json数据 粘贴至左边的编辑框内,点击 转换
  2. 在右边的调整区进行调整内容
  3. 点击 导出 按钮,输出 Swift 模型文件

使用

作者

开发

git clone git@github.com:MoyaMapper/elecmapper.git
cd elecmapper
npm i

# 运行
npm run dev

# 打包
npm run pack

License

ElectMapper is available under the MIT license. See the LICENSE file for more info.