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

Interface calling method and device, server and storage medium

A technology of interface call and server, which is applied in the computer field, can solve problems such as the difficulty of implementing interface call, and achieve the effects of solving the difficulty of implementation, reducing work intensity, and improving efficiency

Pending Publication Date: 2021-01-05
CHINA CONSTRUCTION BANK
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides an interface calling method, device, server and storage medium, which solves the problem that the implementation of interface calling is relatively difficult

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
  • Interface calling method and device, server and storage medium
  • Interface calling method and device, server and storage medium
  • Interface calling method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] figure 1 It is a flowchart of an interface calling method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of invoking interfaces corresponding to various requirements in various scenarios through a unique entry. The method can be executed by the interface invoking device provided by the embodiment of the present invention, the device can be realized by software and / or hardware, and the device can be integrated on the server.

[0051] see figure 1 , the method of the embodiment of the present invention specifically includes the following steps:

[0052] S110. When a trigger event of an interface call is detected, acquire an interface call parameter corresponding to the trigger event.

[0053] Wherein, the triggering event event may be an event triggered by the front end (that is, the client) to call an interface in the back end (that is, the server), and the interface may be an event to be called corresponding to a certain ...

Embodiment 2

[0063] figure 2 It is a flowchart of an interface calling method provided in Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above-mentioned technical solutions. In this embodiment, optionally, the mapping relationship can be pre-built through the following steps: Obtain the class annotation and method annotation at custom runtime, and the entity class corresponding to the class annotation and method annotation, and the entity class is set with Transaction code, class name, class object and method; Based on the pre-set annotation scanning class, class annotations and method annotations are written into the entity class, and a mapping relationship is constructed based on the written entity class. Wherein, explanations of terms that are the same as or corresponding to the above embodiments are not repeated here. see figure 2 , the method of this embodiment may specifically include the following steps:

[0064] S210. Obtain class anno...

Embodiment 3

[0074] image 3 It is a flowchart of an interface calling method provided in Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above-mentioned technical solutions. In this embodiment, optionally, determining the interface to be called in the scene to be called corresponding to the interface call parameter in the mapping relationship may specifically include: using the interface call parameter as an input parameter, calling the constructed interface to determine function, so as to determine the interface to be called in the scene to be called corresponding to the interface call parameter in the mapping relationship, wherein the interface determination function is set in the interface service class, and the interface service class includes the FacadeService class. Wherein, explanations of terms that are the same as or corresponding to the above embodiments are not repeated here.

[0075] see image 3 , the method of this embodiment may sp...

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 embodiment of the invention discloses an interface calling method and device, a server and a storage medium. The method is applied to a server, and can comprise steps of obtaining an interface calling parameter corresponding to a triggering event when the triggering event of interface calling is monitored; a to-be-called interface in a to-be-called scene corresponding to the interface callingparameter being determined in the mapping relation, and the mapping relation being constructed in advance in an annotation dynamic mapping mode; and calling the to-be-called interface to realize a function corresponding to the to-be-called interface. According to the method, by providing a simpler, more flexible, more unified and standardized interface calling mode, the calling process of each interface under various scenes can be uniformly realized in a unique entrance, so that the problem of relatively high interface calling realization difficulty is solved, working intensity of developers is reduced, and development efficiency is improved; subsequent interface calling efficiency is improved.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, and in particular to an interface calling method, device, server and storage medium. Background technique [0002] In the software application development process, the back-end interface call is the basis for front-end and back-end interaction and interaction between systems, and is a basic function in software applications. [0003] In the field of financial services, there are requirements for time-consuming monitoring, synchronous and asynchronous, filtering, adding journals, etc. for various financial transactions, which makes it very cumbersome to implement the implementation process of calling the corresponding interface to complete the respective requirements in different scenarios. In particular, because there are many actual scenarios, the implementation methods of interface calls for the same requirement in various scenarios are not uniform, which also increa...

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
IPC IPC(8): G06F9/448
CPCG06F9/449
Inventor 李镭余化陶晖齐珑
Owner CHINA CONSTRUCTION BANK
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