齐鲁在线 > 资讯 > 科技 > App小程序和Web接口定义和代码生成方法技术 > 正文

App小程序和Web接口定义和代码生成方法技术

2017-09-18 16:56:48 来源:网络 编辑:K027_小凯乐

App小程序和Web接口定义和代码生成方法技术
本发明专利技术公开了一种移动App、微信小程序和服务器接口定义和代码自动生成的方法和系统,包括操作界面模块和项目生成模块;所述操作界面模块中包括项目信息和接口定义的输入界面及代码生成按钮;所述代码生成模块中包括安卓、iOS、微信小程序和服务器的项目模板。其操作方法如下:(a)在操作界面模块上输入项目信息和接口定义信息;(b)点击代码生成按钮,系统自动生成安卓、iOS、微信小程序和服务器端的代码,生成的代码实现了以下功能:1.移动App和微信小程序端参数录入界面、调用服务器接口,2.服务器根据上传参数和定义的测试用例,返回相应的测试数据,3.移动App和微信小程序解析服务器应答数据,显示相应数据。
A App, applets, and Web interface definitions and code generation methods
The invention discloses a mobile App, WeChat small program and server interface and automatic code generation method and system, including interface module and project generation module; input interface and code generation buttons including project information and the interface defines the interface module; including Android, iOS, WeChat small program and server the project template code generation module. Following the operation methods: (a) input project information and interface definition information in the user interface module; (b) click on the button code generation, automatic generation of Android, iOS, WeChat small program and server system code, the generated code to achieve the following functions: 1. mobile and WeChat App small program end parameter input interface 2., call the server interface, the server according to the test case upload parameters and definitions, returns the corresponding test data, 3. mobile App and WeChat app server response data, display the corresponding data.