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

技术编号:16216166 阅读:243 留言:0更新日期:2017-09-15 22:19
本发明专利技术公开了一种移动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.

【技术实现步骤摘要】
一种App、小程序和Web接口定义和代码生成方法
本专利技术属于移动App和微信小程序开发
,尤其涉及App、小程序和Web接口定义和代码生成方法。
技术介绍
手机几乎是每个人必备的物品,目前主流的手机是以安卓和iOS为操作系统的智能手机。安卓和iOS占智能手机操作系统市场份额的95%以上。运行在智能手机的上程序称为移动App(下文简称App)。App分为不联网的本地应用和联网的应用。其中联网的应用占比例估计在70%以上。开发联网的App需要定义App和服务器端的通讯接口,一般包括App上传的参数列表(包括名称和数据类型),简称上传参数;服务器端处理后返回给App的数据(包括结构、名称和数据类型),简称结果数据。接口的定义、实现和调试占移动App开发时间的比例很大(估计在30%到50%),主要的原因是:接口定义一般是用图文描述,不够严谨,容易造成开发过程中理解的偏差;接口调用是其严谨的,一个字符大小写的错误,将造成调用错误,所以开发完成后往往需要花比较多的时间找出开发中的错误;接口调试涉及App开发者和后台开发者,协调配合需要占用比较多的时间。微信小程序是一种不需要下载安装就可本文档来自技高网...
一种App、小程序和Web接口定义和代码生成方法

【技术保护点】
一种App、小程序和Web接口定义和代码生成方法,其特征在于,包括操作界面模块(1)和代码生成模块(6);所述操作界面模块(1)中包括项目信息和接口定义的输入界面 (2)及生成代码按钮(3);所述代码生成模块(6)中包括安卓、iOS、微信小程序和服务器的项目模板(4)。

【技术特征摘要】
1.一种App、小程序和Web接口定义和代码生成方法,其特征在于,包括操作界面模块(1)和代码生成模块(6);所述操作界面模块(1)中包括项目信息和接口定义的输入界面(2)及生成代码按钮(3);所述代码生成模块(6)中包括安卓、iOS、微信小程序和服务器的项目模板(4)。2.根据权利要求1所述的一种App、小程序和Web接口定义和代码生成方法,其特征在于,所述项目模板(4)中具有用于替换或删除的占位信息或标记(7),这些占位信...

【专利技术属性】
技术研发人员:陈德伟
申请(专利权)人:苏州奇松软件有限公司
类型:发明
国别省市:江苏,32

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1