CN110347380B - Front-end and back-end development method and device - Google Patents
Front-end and back-end development method and device Download PDFInfo
- Publication number
- CN110347380B CN110347380B CN201910649652.0A CN201910649652A CN110347380B CN 110347380 B CN110347380 B CN 110347380B CN 201910649652 A CN201910649652 A CN 201910649652A CN 110347380 B CN110347380 B CN 110347380B
- Authority
- CN
- China
- Prior art keywords
- client
- server
- message
- interface
- checked
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/24—Object-oriented
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及互联网技术领域,尤其涉及一种前后端开发方法及设备。The embodiments of the present application relate to the technical field of the Internet, and in particular to a front-end and back-end development method and equipment.
背景技术Background technique
随着社会的不断发展进步,Web页面的美学观感与交互体验对互联网用户的影响越加显著。现代浏览器流畅的渲染速度、Html5和CSS3丰富的表现力、Javascript灵活的功能,已经引起互联网用户的关注。With the continuous development and progress of society, the aesthetic perception and interactive experience of Web pages have an increasingly significant impact on Internet users. The smooth rendering speed of modern browsers, the rich expressive power of Html5 and CSS3, and the flexible functions of Javascript have attracted the attention of Internet users.
目前,为了满足用户对产品体验的追求,前端开发的复杂度迅速增加,后台开发兼顾前端页面的开发模式被淘汰,演进出前后端分离的开发模式。新的开发模式使得前端与后台并行开发,最终通过restful协议接口将表现与数据结合起来。At present, in order to meet users' pursuit of product experience, the complexity of front-end development has increased rapidly, and the development model of back-end development taking into account the front-end page has been eliminated, and the development model of front-end and back-end separation has evolved. The new development model enables parallel development of the front-end and the back-end, and finally combines performance and data through the restful protocol interface.
然而,前端与后台并行开发,可能会带来前端与后台开发工程师对接口开发不一致问题,这个问题到集成测试阶段才暴漏,需要修改代码重新集成测试,开发效率低。However, the parallel development of the front-end and the back-end may lead to the inconsistency of the interface development between the front-end and the back-end development engineers. This problem is not exposed until the integration test stage. It is necessary to modify the code to re-integrate the test, and the development efficiency is low.
发明内容Contents of the invention
本申请实施例提供一种前后端开发方法及设备,以克服现有前端与后台并行开发,无法及时发现接口问题,导致开发效率低的问题。The embodiment of the present application provides a front-end and back-end development method and equipment to overcome the problem that the existing front-end and back-end are developed in parallel, and interface problems cannot be found in time, resulting in low development efficiency.
第一方面,本申请实施例提供一种前后端开发方法,所述方法应用于第一客户端,所述第一客户端运行在前端开发人员的设备上,所述方法包括:In the first aspect, the embodiment of the present application provides a front-end and back-end development method, the method is applied to a first client, and the first client runs on a device of a front-end developer, and the method includes:
获取服务端保存的客户端列表,所述客户端列表包括与所述服务端建立连接的客户端,所述服务端运行在服务器上;Obtain a client list stored by the server, the client list includes clients that establish connections with the server, and the server runs on the server;
根据所述客户端列表确定第二客户端,所述第二客户端运行在后台开发人员的设备上;Determine a second client according to the client list, and the second client runs on the device of the background developer;
通过所述服务端向所述第二客户端发送结对调试请求报文,以使所述第二客户端将所述结对调试请求报文发送至后台接口工程,并将获得的接口返回报文发送至所述服务端,通过所述服务端返回所述第一客户端。Send a pairing debugging request message to the second client through the server, so that the second client sends the pairing debugging request message to the background interface project, and sends the obtained interface return message to the server, and return to the first client through the server.
在一种可能的设计中,所述第一客户端包括接口设计模块,所述接口设计模块包括所述前端和所述后台的接口规范,所述服务端包括报文检查模块;In a possible design, the first client includes an interface design module, the interface design module includes interface specifications of the front end and the backend, and the server includes a packet inspection module;
所述方法还包括:The method also includes:
从所述服务端存储的报文中确定待检查报文;determining the message to be checked from the messages stored at the server;
将所述待检查报文发送至所述报文检查模块,以使所述报文检查模块根据所述接口规范判断所述待检查报文是否正确,并在判定所述待检查报文有误时,根据所述接口规范确定所述待检查报文的有误位置。Send the message to be checked to the message checking module, so that the message checking module judges whether the message to be checked is correct according to the interface specification, and determines that the message to be checked is wrong , determine the error location of the message to be checked according to the interface specification.
在一种可能的设计中,所述接口规范包括基于json语法描述的所述前端和所述后台的接口的所有节点名称、类型、长度限制、是否必填、枚举值、节点依赖关系和集合节点数量约束。In a possible design, the interface specification includes all node names, types, length limits, required fields, enumeration values, node dependencies, and collections of the front-end and back-end interfaces described based on json syntax Node number constraints.
在一种可能的设计中,上述的方法,还包括:In a possible design, the above method also includes:
与所述服务端建立连接;Establish a connection with the server;
经过预设时间间隔发送心跳数据至所述服务端,并判断是否接收到所述服务端返回的心跳数据;sending heartbeat data to the server after a preset time interval, and judging whether the heartbeat data returned by the server is received;
若没有接收到所述服务端返回的心跳数据,则重新执行所述与所述服务端建立连接的步骤。If the heartbeat data returned by the server is not received, re-execute the step of establishing a connection with the server.
第二方面,本申请实施例提供另一种前后端开发方法,所述方法应用于服务端,所述服务端运行在服务器上,所述方法包括:In the second aspect, the embodiment of the present application provides another front-end and back-end development method, the method is applied to the server, and the server runs on the server, and the method includes:
发送客户端列表至第一客户端,以使所述第一客户端根据所述客户端列表确定第二客户端,所述客户端列表包括与所述服务端建立连接的客户端,所述第一客户端运行在前端开发人员的设备上,所述第二客户端运行在后台开发人员的设备上;sending a client list to the first client, so that the first client determines a second client according to the client list, the client list includes clients establishing connections with the server, the second A client runs on the device of the front-end developer, and the second client runs on the device of the background developer;
接收所述第一客户端向所述第二客户端发送的结对调试请求报文;receiving a pairing debugging request message sent by the first client to the second client;
将所述结对调试请求报文发送至所述第二客户端,以使所述第二客户端将所述结对调试请求报文发送至后台接口工程,并将获得的接口返回报文发送至所述服务端;sending the pairing debugging request message to the second client, so that the second client sends the pairing debugging request message to the background interface engineering, and sends the obtained interface return message to the the server side;
将所述接口返回报文返回所述第一客户端。returning the interface return message to the first client.
在一种可能的设计中,所述第一客户端包括接口设计模块,所述接口设计模块包括所述前端和所述后台的接口规范,所述服务端包括报文检查模块;In a possible design, the first client includes an interface design module, the interface design module includes interface specifications of the front end and the backend, and the server includes a packet inspection module;
所述方法还包括:The method also includes:
所述报文检查模块接收所述第一客户端发送的待检查报文,所述待检查报文为所述第一客户端从所述服务端存储的报文中确定的待检查报文;The message checking module receives the message to be checked sent by the first client, and the message to be checked is the message to be checked determined by the first client from the messages stored in the server;
根据所述接口规范判断所述待检查报文是否正确,并在判定所述待检查报文有误时,根据所述接口规范确定所述待检查报文的有误位置。Judging whether the message to be checked is correct according to the interface specification, and determining the error location of the message to be checked according to the interface specification when it is determined that the message to be checked is incorrect.
在一种可能的设计中,所述接口规范包括基于json语法描述的所述前端和所述后台的接口的所有节点名称、类型、长度限制、是否必填、枚举值、节点依赖关系和集合节点数量约束。In a possible design, the interface specification includes all node names, types, length limits, required fields, enumeration values, node dependencies, and collections of the front-end and back-end interfaces described based on json syntax Node number constraints.
第三方面,本申请实施例提供一种前后端开发设备,所述设备应用于第一客户端,所述第一客户端运行在前端开发人员的设备上,所述设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机执行指令,所述处理器执行所述计算机执行指令时实现如下步骤:In the third aspect, the embodiment of the present application provides a front-end and back-end development device, the device is applied to the first client, and the first client runs on the device of the front-end developer, and the device includes a memory, a processor, and Computer-executable instructions stored in the memory and operable on the processor, the processor implements the following steps when executing the computer-executable instructions:
获取服务端保存的客户端列表,所述客户端列表包括与所述服务端建立连接的客户端,所述服务端运行在服务器上;Obtain a client list stored by the server, the client list includes clients that establish connections with the server, and the server runs on the server;
根据所述客户端列表确定第二客户端,所述第二客户端运行在后台开发人员的设备上;Determine a second client according to the client list, and the second client runs on the device of the background developer;
通过所述服务端向所述第二客户端发送结对调试请求报文,以使所述第二客户端将所述结对调试请求报文发送至后台接口工程,并将获得的接口返回报文发送至所述服务端,通过所述服务端返回所述第一客户端。Send a pairing debugging request message to the second client through the server, so that the second client sends the pairing debugging request message to the background interface project, and sends the obtained interface return message to the server, and return to the first client through the server.
在一种可能的设计中,所述第一客户端包括接口设计模块,所述接口设计模块包括所述前端和所述后台的接口规范,所述服务端包括报文检查模块;In a possible design, the first client includes an interface design module, the interface design module includes interface specifications of the front end and the backend, and the server includes a packet inspection module;
所述处理器执行所述计算机执行指令时还实现如下步骤:When the processor executes the computer execution instructions, the following steps are also implemented:
从所述服务端存储的报文中确定待检查报文;determining the message to be checked from the messages stored at the server;
将所述待检查报文发送至所述报文检查模块,以使所述报文检查模块根据所述接口规范判断所述待检查报文是否正确,并在判定所述待检查报文有误时,根据所述接口规范确定所述待检查报文的有误位置。Send the message to be checked to the message checking module, so that the message checking module judges whether the message to be checked is correct according to the interface specification, and determines that the message to be checked is wrong , determine the error location of the message to be checked according to the interface specification.
在一种可能的设计中,所述接口规范包括基于json语法描述的所述前端和所述后台的接口的所有节点名称、类型、长度限制、是否必填、枚举值、节点依赖关系和集合节点数量约束。In a possible design, the interface specification includes all node names, types, length limits, required fields, enumeration values, node dependencies, and collections of the front-end and back-end interfaces described based on json syntax Node number constraints.
在一种可能的设计中,所述处理器执行所述计算机执行指令时还实现如下步骤:In a possible design, when the processor executes the computer execution instructions, the following steps are also implemented:
与所述服务端建立连接;Establish a connection with the server;
经过预设时间间隔发送心跳数据至所述服务端,并判断是否接收到所述服务端返回的心跳数据;sending heartbeat data to the server after a preset time interval, and judging whether the heartbeat data returned by the server is received;
若没有接收到所述服务端返回的心跳数据,则重新执行所述与所述服务端建立连接的步骤。If the heartbeat data returned by the server is not received, re-execute the step of establishing a connection with the server.
第四方面,本申请实施例提供另一种前后端开发设备,所述设备应用于服务端,所述服务端运行在服务器上,所述设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机执行指令,所述处理器执行所述计算机执行指令时实现如下步骤:In the fourth aspect, the embodiment of the present application provides another front-end and back-end development equipment. The equipment is applied to the server, and the server runs on the server. The equipment includes a memory, a processor, and a memory stored in the memory and Computer-executable instructions that can run on the processor, and the processor implements the following steps when executing the computer-executable instructions:
发送客户端列表至第一客户端,以使所述第一客户端根据所述客户端列表确定第二客户端,所述客户端列表包括与所述服务端建立连接的客户端,所述第一客户端运行在前端开发人员的设备上,所述第二客户端运行在后台开发人员的设备上;sending a client list to the first client, so that the first client determines a second client according to the client list, the client list includes clients establishing connections with the server, the second A client runs on the device of the front-end developer, and the second client runs on the device of the background developer;
接收所述第一客户端向所述第二客户端发送的结对调试请求报文;receiving a pairing debugging request message sent by the first client to the second client;
将所述结对调试请求报文发送至所述第二客户端,以使所述第二客户端将所述结对调试请求报文发送至后台接口工程,并将获得的接口返回报文发送至所述服务端;sending the pairing debugging request message to the second client, so that the second client sends the pairing debugging request message to the background interface engineering, and sends the obtained interface return message to the the server side;
将所述接口返回报文返回所述第一客户端。returning the interface return packet to the first client.
在一种可能的设计中,所述第一客户端包括接口设计模块,所述接口设计模块包括所述前端和所述后台的接口规范,所述服务端包括报文检查模块;In a possible design, the first client includes an interface design module, the interface design module includes interface specifications of the front end and the backend, and the server includes a packet inspection module;
所述处理器执行所述计算机执行指令时还实现如下步骤:When the processor executes the computer execution instructions, the following steps are also implemented:
所述报文检查模块接收所述第一客户端发送的待检查报文,所述待检查报文为所述第一客户端从所述服务端存储的报文中确定的待检查报文;The message checking module receives the message to be checked sent by the first client, and the message to be checked is the message to be checked determined by the first client from the messages stored in the server;
根据所述接口规范判断所述待检查报文是否正确,并在判定所述待检查报文有误时,根据所述接口规范确定所述待检查报文的有误位置。Judging whether the message to be checked is correct according to the interface specification, and determining the error location of the message to be checked according to the interface specification when it is determined that the message to be checked is incorrect.
在一种可能的设计中,所述接口规范包括基于json语法描述的所述前端和所述后台的接口的所有节点名称、类型、长度限制、是否必填、枚举值、节点依赖关系和集合节点数量约束。In a possible design, the interface specification includes all node names, types, length limits, required fields, enumeration values, node dependencies, and collections of the front-end and back-end interfaces described based on json syntax Node number constraints.
第五方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的前后端开发方法。In the fifth aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the above first aspect and the first The front-end and back-end development methods described in various possible designs.
第六方面,本申请实施例提供另一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第二方面以及第二方面各种可能的设计所述的前后端开发方法。In the sixth aspect, the embodiment of the present application provides another computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the second aspect and the second aspect above are realized. The front-end and back-end development methods described in various possible designs in the second aspect.
本申请实施例提供的前后端开发方法及设备,该方法应用于第一客户端,第一客户端运行在前端开发人员的设备上,通过获取服务端保存的客户端列表,其中,客户端列表包括与服务端建立连接的客户端,服务端运行在服务器上;再根据上述客户端列表确定第二客户端,第二客户端运行在后台开发人员的设备上;最后通过服务端向第二客户端发送结对调试请求报文,以使第二客户端将结对调试请求报文发送至后台接口工程,并将获得的接口返回报文通过服务端返回第一客户端,能够使前后端开发人员在代码集成测试之前随时进行结对联调,降低接口开发人员对接口开发存在分歧的情况,并能及时发现接口问题,提高前后台开发效率。The front-end and back-end development methods and devices provided by the embodiments of the present application are applied to the first client, and the first client runs on the device of the front-end developer. By obtaining the client list saved by the server, the client list Including the client that establishes a connection with the server, the server runs on the server; then determines the second client according to the above client list, and the second client runs on the device of the background developer; finally sends the second client through the server The client sends a pairing debugging request message, so that the second client sends the pairing debugging request message to the background interface project, and returns the obtained interface return message to the first client through the server, enabling front-end and back-end developers to Before the code integration test, paired joint debugging can be carried out at any time, which can reduce the disagreement between interface developers on interface development, and can detect interface problems in time to improve the efficiency of front-end and back-end development.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本申请实施例提供的前后端开发系统架构示意图;Fig. 1 is a schematic diagram of the front-end development system architecture provided by the embodiment of the present application;
图2为本申请实施例提供的前后端开发方法的流程示意图一;Fig. 2 is a schematic flow diagram 1 of the front-end and back-end development methods provided by the embodiment of the present application;
图3为本申请实施例提供的前后端开发方法的流程示意图二;FIG. 3 is a schematic flow diagram II of the front-end and back-end development methods provided by the embodiment of the present application;
图4为本申请实施例提供的前后端开发设备的结构示意图一;FIG. 4 is a schematic structural diagram of the front-end and back-end development equipment provided by the embodiment of the present application;
图5为本申请实施例提供的前后端开发设备的结构示意图二;FIG. 5 is a schematic structural diagram II of the front-end and back-end development equipment provided by the embodiment of the present application;
图6为本申请实施例提供的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
目前,为了满足用户对产品体验的追求,前端开发的复杂度迅速增加,后台开发兼顾前端页面的开发模式被淘汰,演进出前后端分离的开发模式。新的开发模式使得前端与后台并行开发,最终通过restful协议接口将表现与数据结合起来。然而,前端与后台并行开发,可能会带来前端与后台开发工程师对接口开发不一致问题,这个问题到集成测试阶段才暴漏,需要修改代码重新集成测试,开发效率低。At present, in order to meet users' pursuit of product experience, the complexity of front-end development has increased rapidly, and the development model of back-end development taking into account the front-end page has been eliminated, and the development model of front-end and back-end separation has evolved. The new development model enables parallel development of the front-end and the back-end, and finally combines performance and data through the restful protocol interface. However, the parallel development of the front-end and the back-end may lead to the inconsistency of the interface development between the front-end and the back-end development engineers. This problem is not exposed until the integration test stage. It is necessary to modify the code to re-integrate the test, and the development efficiency is low.
因此,考虑到上述问题,本申请提供一种前后端开发方法,该方法应用于第一客户端,第一客户端运行在前端开发人员的设备上,通过获取服务端保存的客户端列表,其中,客户端列表包括与服务端建立连接的客户端,服务端运行在服务器上;再根据上述客户端列表确定第二客户端,第二客户端运行在后台开发人员的设备上;最后通过服务端向第二客户端发送结对调试请求报文,以使第二客户端将结对调试请求报文发送至后台接口工程,并将获得的接口返回报文通过服务端返回第一客户端,能够使前后端开发人员在代码集成测试之前随时进行结对联调,降低接口开发人员对接口开发存在分歧的情况,并能及时发现接口问题,提高前后台开发效率。Therefore, considering the above problems, this application provides a front-end and back-end development method, the method is applied to the first client, the first client runs on the device of the front-end developer, by obtaining the client list saved by the server, wherein , the client list includes clients that establish connections with the server, and the server runs on the server; then determine the second client according to the above client list, and the second client runs on the device of the background developer; finally, through the server Send a pairing debugging request message to the second client, so that the second client sends the pairing debugging request message to the background interface project, and returns the obtained interface return message to the first client through the server, so that the front and rear End developers can perform pairing and joint debugging at any time before code integration testing, reducing the situation where interface developers have differences in interface development, and can detect interface problems in time to improve the efficiency of front-end and back-end development.
本申请提供的一种前后端开发方法,可以适用于图1所示的前后端开发系统架构示意图,如图1所示,第一客户端101运行在前端开发人员的设备上,服务端102运行在服务器上,示例性的,第一客户端101运行在前端开发人员的本地机器上,服务端102运行在远程服务器上,服务端102通过内部局域网与第一客户端101建立数据连接。第一客户端101与前端工程连接,其中,前端工程表示正运行在前端本地机器上的前端工程。第一客户端101可以获取服务端102保存的客户端列表,所述客户端列表包括与所述服务端102建立连接的客户端。第一客户端101可以根据上述客户端列表确定第二客户端103,其中,第二客户端103运行在后台开发人员的设备上。示例性的,第二客户端103运行在后台开发人员的本地机器上,服务端102通过内部局域网与第二客户端103建立数据连接。第二客户端103与后台接口工程连接,其中,后台接口工程表示正运行在后台本地机器上的restful接口工程。第一客户端101还可以通过所述服务端102向所述第二客户端103发送结对调试请求报文,以使所述第二客户端103将所述结对调试请求报文发送至后台接口工程,并将获得的接口返回报文发送至所述服务端102,通过所述服务端102返回所述第一客户端101。A front-end and back-end development method provided by this application can be applied to the schematic diagram of the front-end and back-end development system shown in Figure 1. As shown in Figure 1, the first client 101 runs on the front-end developer's device, and the server 102 runs On the server, for example, the first client 101 runs on the local machine of the front-end developer, the server 102 runs on the remote server, and the server 102 establishes a data connection with the first client 101 through the internal LAN. The first client 101 is connected to the front-end project, wherein the front-end project refers to the front-end project running on the front-end local machine. The first client 101 may obtain a client list stored by the server 102 , where the client list includes clients that establish connections with the server 102 . The first client 101 may determine the second client 103 according to the above client list, where the second client 103 runs on the device of the background developer. Exemplarily, the second client 103 runs on the local machine of the background developer, and the server 102 establishes a data connection with the second client 103 through the internal LAN. The second client 103 is connected to the background interface project, wherein the background interface project refers to the restful interface project running on the background local machine. The first client 101 may also send a pairing debugging request message to the second client 103 through the server 102, so that the second client 103 sends the pairing debugging request message to the background interface engineering , and send the obtained interface return message to the server 102, and return to the first client 101 through the server 102.
这里,客户端(Client)也可称为用户端,是指与服务器相对应,为客户提供本地服务的程序。服务端是为客户端服务的,服务的内容诸如向客户端提供资源,保存客户端数据等。Restful是一种软件架构风格、设计风格,而不是标准,只是提供了一组设计原则和约束条件,其主要用于客户端和服务器交互类的软件,基于这个风格设计的软件可以更简洁,更有层次,更易于实现缓存等机制。Here, a client (Client) may also be referred to as a client, and refers to a program that corresponds to a server and provides local services for clients. The server serves the client, such as providing resources to the client, saving client data, and so on. Restful is a software architectural style and design style, not a standard. It just provides a set of design principles and constraints. It is mainly used for client-server interaction software. Software designed based on this style can be more concise and more There are layers, and it is easier to implement mechanisms such as caching.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below in conjunction with the accompanying drawings.
图2为本申请实施例提供的前后端开发方法的流程示意图一,本申请实施例的执行主体可以为图1所示实施例中的第一客户端。如图2所示,该方法可以包括:FIG. 2 is a first schematic flow diagram of the front-end and back-end development method provided by the embodiment of the present application. The execution subject of the embodiment of the present application may be the first client in the embodiment shown in FIG. 1 . As shown in Figure 2, the method may include:
S201:获取服务端保存的客户端列表,所述客户端列表包括与所述服务端建立连接的客户端,所述服务端运行在服务器上。S201: Obtain a client list saved by the server, where the client list includes clients that establish connections with the server, and the server runs on the server.
可选地,上述的方法,还包括:Optionally, the above method also includes:
与所述服务端建立连接;Establish a connection with the server;
经过预设时间间隔发送心跳数据至所述服务端,并判断是否接收到所述服务端返回的心跳数据;sending heartbeat data to the server after a preset time interval, and judging whether the heartbeat data returned by the server is received;
若没有接收到所述服务端返回的心跳数据,则重新执行所述与所述服务端建立连接的步骤。If the heartbeat data returned by the server is not received, re-execute the step of establishing a connection with the server.
示例性的,在前端开发人员本地机器M1上启动第一客户端C1,启动时可以提示相关人员输入一个启动信息,例如客户端表示,C1与服务端S建立连接Connect1,C1经过预设时间间隔,例如每间隔1秒,与服务端S交换一次心跳数据,心跳数据包括启动时输入的启动信息,如果C1没有收到服务端S返回的心跳数据,C1立即重新建立与S的连接,如果无法建立连接,再次重新建立,如果连续多数,例如3次,都无法建立连接,C1提示“无法连接服务器”。Exemplarily, the first client C1 is started on the local machine M1 of the front-end developer, and relevant personnel may be prompted to enter a start-up information during startup. For example, the client indicates that C1 establishes a connection Connect1 with the server S, and C1 passes a preset time interval , for example, exchange heartbeat data with the server S every 1 second, the heartbeat data includes the startup information entered at startup, if C1 does not receive the heartbeat data returned by the server S, C1 immediately re-establishes the connection with S, if not Establish a connection and re-establish it again. If the connection cannot be established for more than three times in a row, C1 will prompt "Unable to connect to the server".
服务端S可以保存所有已经与其建立Socket连接的客户端的IP地址、启动信息等,例如保存的是C1的IP地址与启动信息。客户端C1通过之前建立的连接向服务端S查询其他客户端的列表,然后显示在C1的界面上。The server S can save the IP addresses and startup information of all clients that have established Socket connections with it, for example, the IP address and startup information of C1 are saved. The client C1 queries the server S for a list of other clients through the previously established connection, and then displays it on the interface of C1.
客户端C1可以经过预设时间间隔,例如每5分钟,向服务端S查询上述列表,然后保存到客户端的内存中,在本实施例中上述列表包括“/rest/query”接口。The client C1 can query the above list from the server S after a preset time interval, such as every 5 minutes, and then save it in the memory of the client. In this embodiment, the above list includes the "/rest/query" interface.
S202:根据所述客户端列表确定第二客户端,所述第二客户端运行在后台开发人员的设备上。S202: Determine a second client according to the client list, where the second client runs on a background developer's device.
第一客户端根据上述客户端列表确定第二客户端,示例性的,第一客户端显示上述客户端列表以供相关人员选择,并在接收到选择指令后,该选择指令携带客户端相关信息,例如客户端标识,根据上述选择指令确定第二客户端,发起结对调试。The first client determines the second client according to the above client list. Exemplarily, the first client displays the above client list for relevant personnel to select, and after receiving the selection instruction, the selection instruction carries client related information , such as the client ID, determine the second client according to the selection instruction above, and initiate pairing debugging.
这里,第二客户端需要与服务端建立连接,示例性的,在后台开发人员本地机器M2上启动装置的第二客户端C2,启动时必须输入一个启动信息;C2与服务端S建立连接Connect2,C2经过预设时间间隔,例如每间隔1秒,与服务端S交换一次心跳数据,心跳数据包括启动时输入的启动信息,如果C2没有收到服务端S返回的心跳数据,C2立即重新建立与S的连接,如果无法建立连接,再次重新建立,如果连续多次,例如连续3次,都无法建立连接,C2提示“无法连接服务器”。Here, the second client needs to establish a connection with the server. Exemplarily, the second client C2 that starts the device on the local machine M2 of the background developer must input a startup information; C2 establishes a connection with the server S Connect2 , C2 exchanges heartbeat data with server S after a preset time interval, for example, every 1 second. The heartbeat data includes the startup information entered during startup. If C2 does not receive the heartbeat data returned by server S, C2 immediately re-establishes If the connection with S cannot be established, re-establish it again. If the connection cannot be established for several consecutive times, for example, 3 consecutive times, C2 will prompt "Unable to connect to the server".
同上,服务端S也可以C2的IP地址与启动信息。客户端C2通过之前建立的连接向服务端S查询其他客户端的列表,然后显示在C2的界面上。客户端C2也可以经过预设时间间隔,例如每5分钟,向服务端S查询上述列表,然后保存到客户端的内存中,在本实施例中上述列表包括“/rest/query”接口。As above, the server S can also obtain the IP address and startup information of C2. The client C2 queries the server S for a list of other clients through the previously established connection, and then displays it on the interface of C2. The client C2 can also query the above list from the server S after a preset time interval, such as every 5 minutes, and then save it in the memory of the client. In this embodiment, the above list includes the "/rest/query" interface.
S203:通过所述服务端向所述第二客户端发送结对调试请求报文,以使所述第二客户端将所述结对调试请求报文发送至后台接口工程,并将获得的接口返回报文发送至所述服务端,通过所述服务端返回所述第一客户端。S203: Send a pairing debugging request message to the second client through the server, so that the second client sends the pairing debugging request message to the background interface project, and returns the obtained interface The text is sent to the server, and returned to the first client through the server.
这里,前端开发人员在客户端C1的界面上选择客户端C2发起结对调试,指令通过连接Connect1发送给S,然后又通过连接Connect2中转给C2,C2的界面上提示结对调试请求。如果C2拒绝请求,本次结对调试立即结束。如果C2同意请求,C2可以提示输入本地机器M2上运行的后台接口工程,例如restful接口的端口号,C2将端口号保存在内存中。示例性的,前端开发人员可以在本地机器M1上运行前端工程,在页面上操作功能按钮,按钮触发请求:http://localhost:8080/rest/query,客户端C1拦截本地机器M1发出的所有请求,截取端口号以后的部分与内存中保存的列表进行匹配:如果匹配不成功,C1将请求释放给M1的操作系统处理。如果匹配成功,例如与C2匹配成功,C1将请求发送给服务端S,服务端S将请求存储到数据库中,然后中转给C2。C2将请求发送给M2上运行的restful接口,获得的接口返回报文发送给服务端S,服务端S将返回结果存储到数据库中,然后中转给C1,C1将返回结果发送给页面进行展示。Here, the front-end developer selects client C2 to initiate pair debugging on the interface of client C1, and the command is sent to S through connection Connect1, and then transferred to C2 through connection Connect2, and the interface of C2 prompts a pair debugging request. If C2 rejects the request, this pairing debugging ends immediately. If C2 agrees to the request, C2 can prompt to input the background interface project running on the local machine M2, such as the port number of the restful interface, and C2 will save the port number in memory. Exemplarily, the front-end developer can run the front-end project on the local machine M1, operate the function button on the page, and the button triggers a request: http://localhost:8080/rest/query, and the client C1 intercepts all the requests sent by the local machine M1 Request, the part after the intercepted port number is matched with the list stored in the memory: if the match is unsuccessful, C1 releases the request to the operating system of M1 for processing. If the match is successful, for example, the match with C2 is successful, C1 sends the request to the server S, and the server S stores the request in the database, and then transfers it to C2. C2 sends the request to the restful interface running on M2, and sends the returned message from the interface to the server S. The server S stores the returned result in the database, and then transfers it to C1. C1 sends the returned result to the page for display.
前端开发人员可以通过第一客户端调用后台接口工程,在第一客户端记录下每次调用的请求报文与返回报文的全部内容、时间,然后把这些数据传送给服务端保存下来。The front-end developer can call the background interface project through the first client, record all the content and time of the request message and the return message of each call on the first client, and then transmit these data to the server for storage.
可选地,所述第一客户端包括接口设计模块,所述接口设计模块包括所述前端和所述后台的接口规范,所述服务端包括报文检查模块;Optionally, the first client includes an interface design module, the interface design module includes interface specifications of the front end and the backend, and the server includes a packet inspection module;
所述方法还包括:The method also includes:
从所述服务端存储的报文中确定待检查报文;determining the message to be checked from the messages stored at the server;
将所述待检查报文发送至所述报文检查模块,以使所述报文检查模块根据所述接口规范判断所述待检查报文是否正确,并在判定所述待检查报文有误时,根据所述接口规范确定所述待检查报文的有误位置。Send the message to be checked to the message checking module, so that the message checking module judges whether the message to be checked is correct according to the interface specification, and determines that the message to be checked is wrong , determine the error location of the message to be checked according to the interface specification.
可选地,所述接口规范包括基于json语法描述的所述前端和所述后台的接口的所有节点名称、类型、长度限制、是否必填、枚举值、节点依赖关系和集合节点数量约束。Optionally, the interface specification includes all node names, types, length limits, required fields, enumeration values, node dependencies, and collection node quantity constraints of the front-end and the back-end interfaces described based on the json syntax.
这里,第一客户端和第二客户端均可以包括上述接口设计模块,上述接口设计模块包括基于json语法描述接口的所有节点名称、类型、长度限制、是否必填、枚举值、节点依赖关系、集合节点数量约束等。其可以作为前后端开发人员共同遵守的接口规范,也可以用于报文检查模块判断报文的正确性。Here, both the first client and the second client may include the above-mentioned interface design module, and the above-mentioned interface design module includes all node names, types, length limits, required fields, enumerated values, and node dependencies based on the json syntax description interface , the number of collection nodes, etc. It can be used as an interface specification that front-end and back-end developers must abide by, and can also be used by the message checking module to judge the correctness of messages.
示例性的,一个接口设计模块样例如下所示。Exemplarily, a sample interface design module is as follows.
其中,描述接口的对象的第一层有5个键值对:Among them, the first layer of the object describing the interface has 5 key-value pairs:
(1)RestName键对应的值是接口名称;(1) The value corresponding to the RestName key is the interface name;
(2)RestUrl键对应的值是接口地址后缀;(2) The value corresponding to the RestUrl key is the interface address suffix;
(3)RestDesc键对应的值是接口的功能表述;(3) The value corresponding to the RestDesc key is the functional expression of the interface;
(4)RestReqFields键对应的值是接口请求报文所有字段的描述;(4) The value corresponding to the RestReqFields key is the description of all fields of the interface request message;
(5)RestRspFields键对应的值是接口返回报文所有字段的描述。(5) The value corresponding to the RestRspFields key is the description of all the fields in the message returned by the interface.
RestReqFields、RestRspFields键的值都是一个数组,数组中包含若干子对象,每个子对象有7个键值对:The values of the RestReqFields and RestRspFields keys are both an array, which contains several sub-objects, and each sub-object has 7 key-value pairs:
(1)FieldDesc键对应的值是字段意义的说明;(1) The value corresponding to the FieldDesc key is the description of the meaning of the field;
(2)FieldPath键对应的值是字段的路径表达式,例如$.shopInfo.shopName表示shopName节点在shopInfo节点下级,shopInfo节点在接口报文的根节点下级;(2) The value corresponding to the FieldPath key is the path expression of the field. For example, $.shopInfo.shopName means that the shopName node is at the lower level of the shopInfo node, and the shopInfo node is at the lower level of the root node of the interface message;
(3)FieldRequired键对应的值是字段是否必填,true表示必填,false表示非必填;(3) The value corresponding to the FieldRequired key is whether the field is required, true means it is required, and false means it is not required;
(4)FieldType键对应的值是字段类型,例如字符串、整数;(4) The value corresponding to the FieldType key is the field type, such as string, integer;
(5)FieldSize键对应的值是字段长度,例如64;(5) The value corresponding to the FieldSize key is the field length, such as 64;
(6)FieldEnum键对应的值是字段可选值数组,例如[“suning”,“jd”];(6) The value corresponding to the FieldEnum key is an array of field optional values, such as ["suning", "jd"];
(7)FieldRelations键对应的值是字段的与其他字段的关联约束;(7) The value corresponding to the FieldRelations key is the field's association constraints with other fields;
FieldRelations的值是数组,数组中包含若干子对象,每个子对象有2个键值对:The value of FieldRelations is an array, which contains several sub-objects, and each sub-object has 2 key-value pairs:
(1)RelatedField键的对应值是关联字段的路径表达式;(1) The corresponding value of the RelatedField key is the path expression of the related field;
(2)RelatedType键的对应值是关联约束类型,可选值:coexist表示RelatedField键值所指的字段与本字段必须同时不为空,或者同时为空,sizesize表示RelatedField键值所指的字段是数组类型,本字段的值也是数组类型,并且两个字段的数组长度相同;countsize表示RelatedField键值所指的字段是一个整数类型,本字段的值是数组类型,并且前者的数值就是后者的数组长度。(2) The corresponding value of the RelatedType key is the associated constraint type, optional value: coexist indicates that the field pointed to by the RelatedField key value and this field must be not empty at the same time, or must be empty at the same time, sizesize indicates that the field pointed to by the RelatedField key value is Array type, the value of this field is also an array type, and the array length of the two fields is the same; countsize indicates that the field pointed to by the RelatedField key value is an integer type, the value of this field is an array type, and the value of the former is the latter Array length.
在上述结对调试的过程中,如果前端开发人员对接口的报文有异议时,可以通过第一客户端在服务端存储的调用历史中找到当时的报文记录,提交给报文检查模块检查其正确与否并给出解释。In the above process of pair debugging, if the front-end developer has any objection to the message of the interface, he can find the record of the message at that time in the call history stored on the server through the first client, and submit it to the message inspection module for checking correct or not and give an explanation.
示例性的,以请求报文为例,第一客户端从服务端存储的报文中确定待检查报文,读取报文内容,提取报文中所有字段的路径,再从上述接口设计模块的RestReqFields节点提取所有字段的路径,如果后者不完全包含前者,记录下未包含的字段在待检查报文中的路径。Exemplarily, taking the request message as an example, the first client determines the message to be checked from the message stored in the server, reads the content of the message, extracts the path of all the fields in the message, and then obtains the The RestReqFields node extracts the paths of all fields, and if the latter does not completely contain the former, record the paths of the unincluded fields in the message to be checked.
遍历接口设计模块的RestReqFields节点的所有子对象,提取FieldRequired键值等于true的接口字段的路径,如果待检查报文中该字段为空或不存在,记录下该字段在报文中的路径。Traverse all sub-objects of the RestReqFields node of the interface design module, extract the path of the interface field whose FieldRequired key value is equal to true, if the field in the message to be checked is empty or does not exist, record the path of the field in the message.
提取待检查报文的每个字段,再找到接口设计模块中RestReqFields节点描述该字段的子对象,根据FieldType键值检查该字段的类型,根据FieldSize键值检查该字段的长度,根据FieldEnum键值检查该字段的值是否在枚举范围内。如果存在检查未通过的项目,记录字段在待检查报文中的路径、不满足的检查类型。Extract each field of the message to be checked, and then find the sub-object described by the RestReqFields node in the interface design module, check the type of the field according to the FieldType key value, check the length of the field according to the FieldSize key value, and check according to the FieldEnum key value Whether the field's value is within the enumeration range. If there is an item that fails to pass the inspection, record the path of the field in the message to be inspected and the unsatisfied inspection type.
提取接口设计模块中RestReqFields节点下级的每个FieldRelations数组节点,遍历每个FieldRelations数组节点的所有子对象,提取子对象的RelatedField键值,以下称为A值,提取子对象的RelatedType键值,以下称为C值,提取子对象所在FieldRelations数组的同级FieldName键值,以下称为B值。根据A值找到所指字段在待检查报文中的字段值,根据B值找到所指字段在待检查报文中的字段值。得到两个字段值后,再根据C值,按照规则检查A、B值的关系:若C值等于coexist,A值与B值必须同时不为空,或者同时为空;若C值等于sizesize,A值是数组类型,B值也是数组类型,并且数组长度相同;若C值等于countsize,A值是一个整数类型,B值是数组类型,并且前者的数值就是后者的数组长度。如果有检查不通过的项目,记录A值得字段路径、B值的字段路径、C值。Extract each FieldRelations array node under the RestReqFields node in the interface design module, traverse all sub-objects of each FieldRelations array node, extract the RelatedField key value of the sub-object, hereinafter referred to as the A value, and extract the RelatedType key value of the sub-object, hereinafter referred to as For the C value, extract the same-level FieldName key value of the FieldRelations array where the child object is located, hereinafter referred to as the B value. Find the field value of the indicated field in the message to be inspected according to the A value, and find the field value of the indicated field in the message to be inspected according to the B value. After obtaining the two field values, check the relationship between the A and B values according to the rules according to the C value: if the C value is equal to coexist, the A value and the B value must be not empty at the same time, or both must be empty; if the C value is equal to sizesize, The A value is an array type, the B value is also an array type, and the array length is the same; if the C value is equal to countsize, the A value is an integer type, and the B value is an array type, and the value of the former is the array length of the latter. If there are items that fail the inspection, record the field path of A value, field path of B value, and C value.
收集以上步骤中记录的所有未通过检查的项目,作为输出结果显示。Collect all failed checks recorded in the above steps and display them as output.
以上是对请求报文的检查步骤,如果是响应报文的检查,将RestReqFields节点换成RestRspFields。The above are the inspection steps of the request message. If it is the inspection of the response message, replace the RestReqFields node with RestRspFields.
另外,在上述结对调试的过程中,如果后台开发人员对接口的报文有异议时,可以通过第二客户端在服务端存储的调用历史中找到当时的报文记录,提交给报文检查模块检查其正确与否并给出解释。具体步骤可以参照上述对请求报文的检查步骤。In addition, during the above-mentioned pair debugging process, if the background developer has any objection to the message of the interface, the message record at that time can be found in the call history stored on the server through the second client, and submitted to the message inspection module Check it for correctness and give an explanation. For specific steps, refer to the above steps for checking the request message.
从上述描述可知,本申请实施例使用接口设计模块描述接口设计,前后端开发人员参照接口设计模块进行开发工作,在代码集成测试之前随时进行远程结对联调,联调过程产生的接口报文备份到服务器中,如果前后端开发人员就接口报文产生争议,报文检查模块进行报文正确性检查,并指出有误的具体位置,由此确认哪方对接口理解有误,降低接口设计人员人工处理开发人员分歧的情况,提高前后台分离开发模式的工作效率。It can be seen from the above description that the embodiment of the present application uses the interface design module to describe the interface design. The front-end and back-end developers refer to the interface design module for development work, and perform remote pairing and joint debugging at any time before the code integration test, and back up the interface messages generated during the joint debugging process. In the server, if the front-end and back-end developers have disputes over the interface message, the message checking module will check the correctness of the message and point out the specific location of the error, so as to confirm which party has a wrong understanding of the interface and reduce the interface designer's Manually handle the situation where developers disagree, and improve the work efficiency of the front-end and back-end separation development model.
图3为本申请实施例提供的前后端开发方法的流程示意图二,本申请实施例的执行主体可以为图1所示实施例中的服务端。如图3所示,该方法包括:FIG. 3 is the second schematic flow diagram of the front-end and back-end development methods provided by the embodiment of the present application. The execution subject of the embodiment of the present application may be the server in the embodiment shown in FIG. 1 . As shown in Figure 3, the method includes:
S301:发送客户端列表至第一客户端,以使所述第一客户端根据所述客户端列表确定第二客户端,所述客户端列表包括与所述服务端建立连接的客户端,所述第一客户端运行在前端开发人员的设备上,所述第二客户端运行在后台开发人员的设备上。S301: Send a client list to the first client, so that the first client determines a second client according to the client list, the client list includes clients that have established connections with the server, so The first client runs on the device of the front-end developer, and the second client runs on the device of the background developer.
S302:接收所述第一客户端向所述第二客户端发送的结对调试请求报文。S302: Receive a pairing debugging request message sent by the first client to the second client.
S303:将所述结对调试请求报文发送至所述第二客户端,以使所述第二客户端将所述结对调试请求报文发送至后台接口工程,并将获得的接口返回报文发送至所述服务端。S303: Send the pairing debugging request message to the second client, so that the second client sends the pairing debugging request message to the background interface project, and sends the obtained interface return message to the server.
S304:将所述接口返回报文返回所述第一客户端。S304: Return the interface return packet to the first client.
可选地,所述第一客户端包括接口设计模块,所述接口设计模块包括所述前端和所述后台的接口规范,所述服务端包括报文检查模块;Optionally, the first client includes an interface design module, the interface design module includes interface specifications of the front end and the backend, and the server includes a packet inspection module;
所述方法还包括:The method also includes:
所述报文检查模块接收所述第一客户端发送的待检查报文,所述待检查报文为所述第一客户端从所述服务端存储的报文中确定的待检查报文;The message checking module receives the message to be checked sent by the first client, and the message to be checked is the message to be checked determined by the first client from the messages stored in the server;
根据所述接口规范判断所述待检查报文是否正确,并在判定所述待检查报文有误时,根据所述接口规范确定所述待检查报文的有误位置。Judging whether the message to be checked is correct according to the interface specification, and determining the error location of the message to be checked according to the interface specification when it is determined that the message to be checked is incorrect.
这里,上述报文检查模块还可以接收第二客户端发送的待检查报文,该待检查报文为第二客户端从服务端存储的报文中确定的待检查报文。根据上述接口规范判断上述待检查报文是否正确,并在判定上述待检查报文有误时,根据上述接口规范确定上述待检查报文的有误位置。Here, the message checking module may also receive a message to be checked sent by the second client, and the message to be checked is a message to be checked determined by the second client from messages stored in the server. Judging whether the above-mentioned message to be checked is correct according to the above-mentioned interface specification, and when determining that the above-mentioned message to be checked is incorrect, determining the error location of the above-mentioned message to be checked according to the above-mentioned interface specification.
可选地,所述接口规范包括基于json语法描述的所述前端和所述后台的接口的所有节点名称、类型、长度限制、是否必填、枚举值、节点依赖关系和集合节点数量约束。Optionally, the interface specification includes all node names, types, length limits, required fields, enumeration values, node dependencies, and collection node quantity constraints of the front-end and the back-end interfaces described based on the json syntax.
本申请实施例提供的前后端开发方法,应用于服务端,所述服务端运行在服务器上,通过发送客户端列表至第一客户端,以使第一客户端根据客户端列表确定第二客户端,其中,客户端列表包括与服务端建立连接的客户端,第一客户端运行在前端开发人员的设备上,第二客户端运行在后台开发人员的设备上;接收第一客户端向第二客户端发送的结对调试请求报文;将结对调试请求报文发送至第二客户端,以使第二客户端将结对调试请求报文发送至后台接口工程,并将获得的接口返回报文发送至服务端;将接口返回报文返回第一客户端,能够使前后端开发人员在代码集成测试之前随时进行结对联调,降低接口开发人员对接口开发存在分歧的情况,并能及时发现接口问题,提高前后台开发效率。The front-end and back-end development methods provided by the embodiments of the present application are applied to the server. The server runs on the server and sends the client list to the first client so that the first client can determine the second client according to the client list. terminal, wherein the client list includes clients that establish connections with the server, the first client runs on the device of the front-end developer, and the second client runs on the device of the background developer; The pairing debugging request message sent by the second client; send the pairing debugging request message to the second client, so that the second client sends the pairing debugging request message to the background interface project, and returns the obtained interface message Send it to the server; return the interface return message to the first client, enabling the front-end and back-end developers to perform pairing and joint debugging at any time before the code integration test, reducing the situation where interface developers have differences in interface development, and discovering the interface in time problems and improve the efficiency of front-end and back-end development.
对应于上文实施例的前后端开发方法,图4为本申请实施例提供的前后端开发设备的结构示意图。为了便于说明,仅示出了与本申请实施例相关的部分。图4为本申请实施例提供的前后端开发设备的结构示意图一。如图4所示,该前后端开发设备40应用于第一客户端,所述第一客户端运行在前端开发人员的设备上,所述设备包括:列表获取模块401、客户端确定模块402以及结对调试模块403。Corresponding to the front-end and back-end development methods in the above embodiments, FIG. 4 is a schematic structural diagram of the front-end and back-end development equipment provided in the embodiment of the present application. For ease of description, only the parts related to the embodiment of the present application are shown. FIG. 4 is a first structural schematic diagram of the front-end and back-end development equipment provided by the embodiment of the present application. As shown in Figure 4, the front-end and back-end development equipment 40 is applied to the first client, and the first client runs on the equipment of the front-end developer, and the equipment includes: a list acquisition module 401, a client determination module 402 and Pair debugging module 403 .
其中,列表获取模块401,用于获取服务端保存的客户端列表,所述客户端列表包括与所述服务端建立连接的客户端,所述服务端运行在服务器上。Wherein, the list acquiring module 401 is configured to acquire a client list saved by the server, the client list includes clients establishing connections with the server, and the server runs on the server.
客户端确定模块402,用于根据所述客户端列表确定第二客户端,所述第二客户端运行在后台开发人员的设备上。The client determining module 402 is configured to determine a second client according to the client list, and the second client runs on the device of the background developer.
结对调试模块403,用于通过所述服务端向所述第二客户端发送结对调试请求报文,以使所述第二客户端将所述结对调试请求报文发送至后台接口工程,并将获得的接口返回报文发送至所述服务端,通过所述服务端返回所述第一客户端。A pairing debugging module 403, configured to send a pairing debugging request message to the second client through the server, so that the second client sends the pairing debugging request message to the background interface project, and The obtained interface return message is sent to the server, and returned to the first client through the server.
可选地,所述第一客户端包括接口设计模块404,所述接口设计模块404包括所述前端和所述后台的接口规范,所述服务端包括报文检查模块。Optionally, the first client includes an interface design module 404, and the interface design module 404 includes interface specifications of the front end and the backend, and the server includes a packet inspection module.
所述设备还包括报文确定模块405和报文检查模块406。The device further includes a packet determination module 405 and a packet inspection module 406 .
其中,报文确定模块405,用于从所述服务端存储的报文中确定待检查报文。Wherein, the message determining module 405 is configured to determine the message to be checked from the messages stored by the server.
报文检查模块406,用于将所述待检查报文发送至所述报文检查模块,以使所述报文检查模块根据所述接口规范判断所述待检查报文是否正确,并在判定所述待检查报文有误时,根据所述接口规范确定所述待检查报文的有误位置。A message checking module 406, configured to send the message to be checked to the message checking module, so that the message checking module judges whether the message to be checked is correct according to the interface specification, and determines whether the message to be checked is correct. When the message to be checked has an error, determine the error location of the message to be checked according to the interface specification.
可选地,所述接口规范包括基于json语法描述的所述前端和所述后台的接口的所有节点名称、类型、长度限制、是否必填、枚举值、节点依赖关系和集合节点数量约束。Optionally, the interface specification includes all node names, types, length limits, required fields, enumeration values, node dependencies, and collection node quantity constraints of the front-end and the back-end interfaces described based on the json syntax.
可选地,所述设备还包括连接建立模块407和数据发送模块408。Optionally, the device further includes a connection establishing module 407 and a data sending module 408 .
其中,连接建立模块407,用于与所述服务端建立连接。Wherein, the connection establishment module 407 is configured to establish a connection with the server.
数据发送模块408,用于经过预设时间间隔发送心跳数据至所述服务端,并判断是否接收到所述服务端返回的心跳数据;A data sending module 408, configured to send heartbeat data to the server after a preset time interval, and determine whether the heartbeat data returned by the server is received;
所述连接建立模块407,还用于若没有接收到所述服务端返回的心跳数据,则重新执行所述与所述服务端建立连接的步骤。The connection establishing module 407 is further configured to re-execute the step of establishing a connection with the server if the heartbeat data returned by the server is not received.
本申请实施例提供的设备,可用于执行上述图2方法实施例的技术方案,其实现原理和技术效果类似,本申请实施例此处不再赘述。The device provided by the embodiment of the present application can be used to execute the technical solution of the above method embodiment in FIG. 2 , and its implementation principle and technical effect are similar, so the embodiments of the present application will not repeat them here.
图5为本申请实施例提供的前后端开发设备的结构示意图二。如图5所示,该前后端开发设备50应用于服务端,所述服务端运行在服务器上,所述设备包括:列表发送模块501、报文接收模块502、报文发送模块503和报文返回模块504。FIG. 5 is a second structural schematic diagram of the front-end and back-end development equipment provided by the embodiment of the present application. As shown in Figure 5, the front-end and back-end development equipment 50 is applied to the server, and the server runs on the server, and the device includes: a list sending module 501, a message receiving module 502, a message sending module 503 and a message Return to module 504 .
其中,列表发送模块501,用于发送客户端列表至第一客户端,以使所述第一客户端根据所述客户端列表确定第二客户端,所述客户端列表包括与所述服务端建立连接的客户端,所述第一客户端运行在前端开发人员的设备上,所述第二客户端运行在后台开发人员的设备上。Wherein, the list sending module 501 is configured to send the client list to the first client, so that the first client determines the second client according to the client list, and the client list includes the The first client runs on the device of the front-end developer, and the second client runs on the device of the background developer.
报文接收模块502,用于接收所述第一客户端向所述第二客户端发送的结对调试请求报文。A message receiving module 502, configured to receive a pairing debugging request message sent by the first client to the second client.
报文发送模块503,用于将所述结对调试请求报文发送至所述第二客户端,以使所述第二客户端将所述结对调试请求报文发送至后台接口工程,并将获得的接口返回报文发送至所述服务端。A message sending module 503, configured to send the pairing debugging request message to the second client, so that the second client sends the pairing debugging request message to the background interface project, and obtains The interface return message is sent to the server.
报文返回模块504,用于将所述接口返回报文返回所述第一客户端。A message returning module 504, configured to return the interface return message to the first client.
可选地,所述第一客户端包括接口设计模块,所述接口设计模块包括所述前端和所述后台的接口规范,所述服务端包括报文检查模块505。Optionally, the first client includes an interface design module, and the interface design module includes interface specifications of the front end and the backend, and the server includes a packet inspection module 505 .
所述报文检查模块505接收所述第一客户端发送的待检查报文,所述待检查报文为所述第一客户端从所述服务端存储的报文中确定的待检查报文;The message checking module 505 receives the message to be checked sent by the first client, the message to be checked is the message to be checked determined by the first client from the messages stored in the server ;
根据所述接口规范判断所述待检查报文是否正确,并在判定所述待检查报文有误时,根据所述接口规范确定所述待检查报文的有误位置。Judging whether the message to be checked is correct according to the interface specification, and determining the error location of the message to be checked according to the interface specification when it is determined that the message to be checked is incorrect.
可选地,所述接口规范包括基于json语法描述的所述前端和所述后台的接口的所有节点名称、类型、长度限制、是否必填、枚举值、节点依赖关系和集合节点数量约束。Optionally, the interface specification includes all node names, types, length limits, required fields, enumeration values, node dependencies, and collection node quantity constraints of the front-end and the back-end interfaces described based on the json syntax.
本申请实施例提供的设备,可用于执行上述图3方法实施例的技术方案,其实现原理和技术效果类似,本申请实施例此处不再赘述。The equipment provided in the embodiment of the present application can be used to implement the technical solution of the above method embodiment in FIG. 3 , and its implementation principle and technical effect are similar, so the embodiments of the present application will not repeat them here.
参考图6,其示出了适于用来实现本申请实施例的电子设备600的结构示意图,该电子设备600可以为终端设备或服务器。其中,终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,简称PDA)、平板电脑(Portable Android Device,简称PAD)、便携式多媒体播放器(Portable MediaPlayer,简称PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring to FIG. 6 , it shows a schematic structural diagram of an electronic device 600 suitable for implementing the embodiment of the present application. The electronic device 600 may be a terminal device or a server. Wherein, the terminal equipment may include but not limited to mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA for short), tablet computers (Portable Android Device, PAD for short), portable multimedia players (Portable MediaPlayer (PMP for short), mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG. 6 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(Read Only Memory,简称ROM)602中的程序或者从存储装置608加载到随机访问存储器(Random Access Memory,简称RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, an electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which may be stored in a program in a read-only memory (Read Only Memory, ROM for short) 602 or from a storage device. 608 programs loaded into the Random Access Memory (RAM for short) 603 to execute various appropriate actions and processes. In the RAM 603, various programs and data necessary for the operation of the electronic device 600 are also stored. The processing device 601 , ROM 602 and RAM 603 are connected to each other through a bus 604 . An input/output (I/O) interface 605 is also connected to the bus 604 .
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(Liquid CrystalDisplay,简称LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices can be connected to the I/O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; including, for example, a Liquid Crystal Display (LCD for short) , an output device 607 such as a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 6 shows electronic device 600 having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM602被安装。在该计算机程序被处理装置601执行时,执行本申请实施例的方法中限定的上述功能。In particular, according to the embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609 , or from storage means 608 , or from ROM 602 . When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
需要说明的是,本申请上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device is made to execute the methods shown in the above-mentioned embodiments.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LocalArea Network,简称LAN)或广域网(Wide Area Network,简称WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it can be connected to an external computer (e.g. using an Internet Service Provider to connect via the Internet).
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。The units involved in the embodiments described in the present application may be implemented by means of software or by means of hardware.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present application. scope.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910649652.0A CN110347380B (en) | 2019-07-18 | 2019-07-18 | Front-end and back-end development method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910649652.0A CN110347380B (en) | 2019-07-18 | 2019-07-18 | Front-end and back-end development method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110347380A CN110347380A (en) | 2019-10-18 |
| CN110347380B true CN110347380B (en) | 2023-08-29 |
Family
ID=68178776
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910649652.0A Active CN110347380B (en) | 2019-07-18 | 2019-07-18 | Front-end and back-end development method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110347380B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111190596A (en) * | 2019-12-24 | 2020-05-22 | 平安普惠企业管理有限公司 | Joint debugging method and device, computer equipment and readable storage medium |
| CN111245927A (en) * | 2020-01-09 | 2020-06-05 | 济南邦德激光股份有限公司 | Remote control method and system of laser cutting equipment |
| CN112631557A (en) * | 2020-12-18 | 2021-04-09 | 深圳赛安特技术服务有限公司 | Method, device and storage medium for generating interface code and/or interface document |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103502899A (en) * | 2011-01-26 | 2014-01-08 | 谷歌公司 | Dynamic predictive modeling platform |
| US9432484B1 (en) * | 2013-12-19 | 2016-08-30 | Emc Corporation | CIM-based data storage management system having a restful front-end |
| CN106302747A (en) * | 2016-08-17 | 2017-01-04 | 北京乐美无限科技有限公司 | A kind of business cloud platform of Internet WEB front-end exploitation |
| CN106657197A (en) * | 2015-11-02 | 2017-05-10 | 腾讯科技(深圳)有限公司 | File uploading method and device |
| CN107103016A (en) * | 2016-02-23 | 2017-08-29 | 百度(美国)有限责任公司 | Represent to make the method for image and content matching based on keyword |
| CN107396199A (en) * | 2017-08-02 | 2017-11-24 | 武汉斗鱼网络科技有限公司 | Barrage method for exhibiting data and device, computer-readable recording medium |
| CN107645508A (en) * | 2017-10-16 | 2018-01-30 | 深圳市买买提乐购金融服务有限公司 | A kind of data handling system, method, client and server |
| CN107771383A (en) * | 2015-07-07 | 2018-03-06 | 阿读随得有限公司 | At least two authenticating devices are mapped to the method for user account using certificate server |
| CN103986663B (en) * | 2014-05-08 | 2018-03-27 | 中国联合网络通信集团有限公司 | Data center and its method and network controller for realizing data processing |
| CN109547430A (en) * | 2018-11-16 | 2019-03-29 | 上海朔羡网络科技有限公司 | A kind of exploitation service gateway system and exploitation gateway |
| CN109857375A (en) * | 2018-12-25 | 2019-06-07 | 上海尼好系统集成有限公司 | A kind of front end development system of matching rear end exploitation test |
| WO2019134306A1 (en) * | 2018-01-02 | 2019-07-11 | 武汉斗鱼网络科技有限公司 | Message processing method, device, terminal apparatus, and readable storage medium |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10866184B2 (en) * | 2015-11-06 | 2020-12-15 | California Institute Of Technology | Devices and methods for direct visual detection and readout of single nucleic acid molecules |
| US10164849B2 (en) * | 2015-12-18 | 2018-12-25 | Facebook, Inc. | Techniques to detect foreground processes |
-
2019
- 2019-07-18 CN CN201910649652.0A patent/CN110347380B/en active Active
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103502899A (en) * | 2011-01-26 | 2014-01-08 | 谷歌公司 | Dynamic predictive modeling platform |
| US9432484B1 (en) * | 2013-12-19 | 2016-08-30 | Emc Corporation | CIM-based data storage management system having a restful front-end |
| CN103986663B (en) * | 2014-05-08 | 2018-03-27 | 中国联合网络通信集团有限公司 | Data center and its method and network controller for realizing data processing |
| CN107771383A (en) * | 2015-07-07 | 2018-03-06 | 阿读随得有限公司 | At least two authenticating devices are mapped to the method for user account using certificate server |
| CN106657197A (en) * | 2015-11-02 | 2017-05-10 | 腾讯科技(深圳)有限公司 | File uploading method and device |
| CN107103016A (en) * | 2016-02-23 | 2017-08-29 | 百度(美国)有限责任公司 | Represent to make the method for image and content matching based on keyword |
| CN106302747A (en) * | 2016-08-17 | 2017-01-04 | 北京乐美无限科技有限公司 | A kind of business cloud platform of Internet WEB front-end exploitation |
| CN107396199A (en) * | 2017-08-02 | 2017-11-24 | 武汉斗鱼网络科技有限公司 | Barrage method for exhibiting data and device, computer-readable recording medium |
| CN107645508A (en) * | 2017-10-16 | 2018-01-30 | 深圳市买买提乐购金融服务有限公司 | A kind of data handling system, method, client and server |
| WO2019134306A1 (en) * | 2018-01-02 | 2019-07-11 | 武汉斗鱼网络科技有限公司 | Message processing method, device, terminal apparatus, and readable storage medium |
| CN109547430A (en) * | 2018-11-16 | 2019-03-29 | 上海朔羡网络科技有限公司 | A kind of exploitation service gateway system and exploitation gateway |
| CN109857375A (en) * | 2018-12-25 | 2019-06-07 | 上海尼好系统集成有限公司 | A kind of front end development system of matching rear end exploitation test |
Non-Patent Citations (1)
| Title |
|---|
| 软件测试管理系统核心框架及过程的研究与实现;梁新刚;《中国优秀硕士学位论文全文数据库 信息科技辑》;I138-296 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110347380A (en) | 2019-10-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112187558B (en) | Data verification method and device and electronic equipment | |
| CN104142856B (en) | Service program calling method and system and intelligent equipment thereof | |
| CN110347380B (en) | Front-end and back-end development method and device | |
| US11755744B2 (en) | Application programming interface specification inference | |
| CN111752644A (en) | Interface simulation method, device, equipment and storage medium | |
| CN112714042B (en) | Pressure testing method and device, electronic equipment and storage medium | |
| WO2022135547A1 (en) | Service operation method and apparatus, electronic device, and computer storage medium | |
| CN114637703A (en) | Data access apparatus, method, readable medium and electronic device | |
| CN112954056B (en) | Method and device for processing monitoring data, electronic equipment and storage medium | |
| CN115167822A (en) | Branch code merging method, device, equipment and storage medium | |
| CN112131092A (en) | Page debugging method and device | |
| CN110377273B (en) | Data processing method, device, medium and electronic equipment | |
| CN110489326B (en) | IDS-based HTTPAPI debugging method device, medium and equipment | |
| CN117667710A (en) | Determination method, test method, device, medium and equipment for page test case | |
| CN111797009A (en) | Method, apparatus and electronic device for detecting code compatibility | |
| WO2021139379A1 (en) | Activity configuration method and apparatus, readable medium and electronic device | |
| CN112395194B (en) | Method and device for accessing test platform | |
| CN112379967B (en) | Simulator detection method, device, equipment and medium | |
| CN112905455A (en) | Interface information checking method, device, equipment and storage medium | |
| CN115129554B (en) | Consensus transaction tracking method, device, equipment and storage medium | |
| CN116561013A (en) | Test method, device, electronic equipment and medium based on target service framework | |
| CN115576805A (en) | Log display method, device, readable medium and electronic device | |
| CN115550210A (en) | Cloud network service performance detection method, device, equipment and storage medium | |
| CN116360710B (en) | Data storage method, electronic device and readable medium applied to server cluster | |
| CN114430364A (en) | Information display method and device, electronic equipment and computer readable medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |