Check patentability & draft patents in minutes with Patsnap Eureka AI!

Front-end interface processing method and system

A front-end interface and processing system technology, which is applied in the field of front-end interface processing methods and systems, can solve problems such as code redundancy, time-consuming, and lack of versatility, and achieve the effect of avoiding code redundancy and facilitating developers

Active Publication Date: 2018-11-23
GUANGDONG EFLYCLOUD COMPUTING CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The structure of one interface calling one callback is not universal, and there is code redundancy. The more frequent the front-end and back-end communication, the more redundancy; the parameters in the GET request are passed in one by one in order. In actual development, one The interface may have more than 10 or even more than 20 parameters. At this time, it is difficult to record the order of the parameters. Therefore, when there are too many interface parameters, it will take more time to check the parameters and reduce the development efficiency.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Front-end interface processing method and system
  • Front-end interface processing method and system
  • Front-end interface processing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The concept, specific structure and technical effects of the present disclosure will be clearly and completely described below in conjunction with the embodiments and drawings, so as to fully understand the purpose, scheme and effect of the present disclosure. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0022] Such as figure 1 Shown is a conventional port interface processing system, figure 2 Shown is a front-end interface processing system module architecture diagram, combined below figure 1 and figure 2 A front-end interface processing method according to the present disclosure will be described.

[0023] Such as figure 1 As shown, in the existing interface communication, generally one interface calls one callback. The main process is as follows: Define the calling interface in the Service layer, GET request parameters are usually passed in ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The disclosure provides a front-end interface processing method and system, and designs a front-end interface processing system. The front-end interface processing system comprises a front-end interface processor for uniformly calling interfaces; by matching of a Model layer and a Service layer, alternative execution of calling and callback of multiple interfaces is implemented; then according toasynchronous callback processing, the interface processor can infinitely call and can be suitable for changes in any cases so as to implement one calling of multiple interfaces and avoid the code redundancy; and all parameters adopt an object parameter transfer mode, and a developer does not need to pay attention to a sequence of the parameters, and thus, the developer only needs to focus on a service logic. Meanwhile, the interface processor just carries out adaptive processing on the Service layer and the Model layer, and carries out calling on a Controller layer or other places where calling needs to be carried out, and thus, the front-end interface processing method and system can be used in a random project and a random system and are greatly convenient for the developer.

Description

technical field [0001] The present disclosure relates to the field of network interface communication, in particular to a front-end interface processing method and system. Background technique [0002] In the current web environment, the communication between the front end and the back end is usually in the form of an interface. Every time an operation is performed, the front end needs to initiate an Ajax request, call the interface provided by the back end, pass the parameters required by the back end operation, and then perform the corresponding operation in the corresponding callback function. It can be seen that the interface between the front end and the back end Communication will be very frequent. Interface communication calls and interfaces are generally used for inter-layer collaboration. The upper layer installs the function of this layer in the lower layer. This function is a callback, and the lower layer triggers a callback under certain conditions. For example...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54
CPCG06F9/545G06F9/547G06F2209/541
Inventor 谢培忠黄衍博周保群史伟
Owner GUANGDONG EFLYCLOUD COMPUTING CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More