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

A 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 the problems of more time-consuming, redundant code, frequent communication, etc., and achieve the effect of facilitating developers and avoiding redundant code

Active Publication Date: 2022-03-22
GUANGDONG EFLYCLOUD COMPUTING CO LTD
View PDF7 Cites 0 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
  • A front-end interface processing method and system
  • A front-end interface processing method and system
  • A 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 present disclosure provides a front-end interface processing method and system, and designs a front-end interface processing system, including a front-end interface processor to uniformly call the interface, and realize multi-interface call-callback by cooperating with the Model layer and the Service layer, and then according to Asynchronous callback processing enables the interface processor to be called infinitely and can adapt to changes in any situation, realizing one call of multiple interfaces, avoiding code redundancy; all parameters are passed by object, and developers no longer need to pay attention to the parameters sequence, so developers only need to focus on business logic. At the same time, since the interface processor only performs adaptation processing at the Service layer and the Model layer, and calls it at the Controller layer or other places that need to be called, it can be used in any project and any system, which greatly facilitates developers.

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 Patents(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