# AutomaticCoder **Repository Path**: langcode/automatic-coder ## Basic Information - **Project Name**: AutomaticCoder - **Description**: 自动代码工具 - **Primary Language**: Objective-C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-24 - **Last Updated**: 2022-10-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AutomaticCoder #### 介绍 自动代码工具 原github地址:https://github.com/stayRealLang/AutomaticCoder 因为代码经常推不上去(太TM幸福了),改成用这个仓库了 #### 功能说明 主界面 ![Image text](https://gitee.com/langcode/automatic-coder/raw/master/resource/%E4%B8%BB%E7%95%8C%E9%9D%A2.png) 一. 自动创建控件代码 ![Image text](https://gitee.com/langcode/automatic-coder/raw/master/resource/autoViewCoder.png) 1.在Class Name中填入控件名称 2.在旁边选择控件类型即可生成控件代码 二. json转模型文件 ![Image text](https://gitee.com/langcode/automatic-coder/raw/master/resource/dic2model.png) 1.在Class Name中填入model文件名 2.选择OC或者swift类型 3.将需要生成Model的json黏贴到中间输入框 4.点击底部按钮即可生成model文件 三. rap文档转模型文件 ![Image text](https://gitee.com/langcode/automatic-coder/raw/master/resource/RAP%E6%96%87%E6%A1%A3.png) ![Image text](https://gitee.com/langcode/automatic-coder/raw/master/resource/RAP.png) 如上图所示,将RAP文档中的响应参数黏贴到输入框,点击底部按钮即可 四. yapi文档转模型文件 ![Image text](https://gitee.com/langcode/automatic-coder/raw/master/resource/YAPI%E6%96%87%E6%A1%A3.png) ![Image text](https://gitee.com/langcode/automatic-coder/raw/master/resource/YAPI.png) 1.在yapi文档网站中点击数据管理,数据导出类型选择json,点击导出后获得json文件 2.点击应用中的获取json文件,选择上一步获取的json文件 3.选择相应的模块及接口 4.选择语言类型OC或者swift 5.点击创建模型文件