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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



