CN115794437A - Calling method and device of microservice, computer equipment and storage medium - Google Patents

Calling method and device of microservice, computer equipment and storage medium Download PDF

Info

Publication number
CN115794437A
CN115794437A CN202211559228.5A CN202211559228A CN115794437A CN 115794437 A CN115794437 A CN 115794437A CN 202211559228 A CN202211559228 A CN 202211559228A CN 115794437 A CN115794437 A CN 115794437A
Authority
CN
China
Prior art keywords
target
interface
calling
service
request
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.)
Pending
Application number
CN202211559228.5A
Other languages
Chinese (zh)
Inventor
陈德
杨林青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Health Insurance Company of China Ltd
Original Assignee
Ping An Health Insurance Company of China Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Health Insurance Company of China Ltd filed Critical Ping An Health Insurance Company of China Ltd
Priority to CN202211559228.5A priority Critical patent/CN115794437A/en
Publication of CN115794437A publication Critical patent/CN115794437A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application belongs to the field of big data, and relates to a method for calling micro-services, which comprises the following steps: receiving a calling request corresponding to a target interface of the micro service; intercepting a calling request based on a target tangent plane to obtain a current operating environment; if the operation environment does not belong to the unit test environment, executing the agent method to acquire interface information and service information of the target interface; analyzing the target annotation to obtain a request type and a calling mode, and constructing a target entry based on the interface information, the service information and the request type; performing service calling of the micro service based on the target entry participation calling mode to obtain target exit participation returned by the target interface; and converting the target parameters to obtain feedback data, and returning the feedback data to the client. The application also provides a calling device, computer equipment and a storage medium of the microservice. In addition, the present application also relates to a blockchain technique, and feedback data can be stored in the blockchain. The method and the device improve the processing efficiency of micro-service calling.

Description

Calling method and device of microservice, computer equipment and storage medium
Technical Field
The present application relates to the field of big data technologies, and in particular, to a method and an apparatus for invoking a microservice, a computer device, and a storage medium.
Background
In front-end development, microservice is one of the most popular software architectures in the current field of software development. With the increase of business scale, the development of software industry is severely restricted by the short performance of the single service machine, and micro-services are produced and applied to various industries.
With the business development of the financial company, multiple calling modes are often concurrent among micro services in the financial company. For example, there are three calling modes of ESG1.0, ESG2.0 and fabric encapsulation NACOS at the same time, and it is also very common to call different external services through the three calling modes in the same service. The existing processing steps of micro service invocation generally comprise parameter assembly, header information setting, specific tool class invocation, response analysis and preliminary judgment on whether the micro service invocation is abnormal, so that the processing steps can increase the code amount of business codes to cause a large amount of redundant codes, and the complicated processing steps of micro service invocation reduce the processing efficiency of micro service invocation.
Disclosure of Invention
An embodiment of the present application aims to provide a method, an apparatus, a computer device, and a storage medium for calling a micro service, so as to solve the technical problem that a large amount of redundant codes exist in the existing processing steps for calling a micro service, and the processing efficiency for calling a micro service is reduced.
In order to solve the above technical problem, an embodiment of the present application provides a method for calling a microservice, which adopts the following technical solutions:
judging whether a call request which is triggered by a user through a client and corresponds to a target interface of the micro service is received; the calling request carries a service name of the micro service and an interface name of the target interface, and a target note is predefined in a proxy method corresponding to the target interface;
if so, intercepting the calling request based on a target section corresponding to the target interface, and acquiring a current operating environment;
if the operating environment does not belong to a preset unit test environment, executing the proxy method corresponding to the target interface to acquire interface information and service information corresponding to the target interface;
analyzing the target annotation to obtain a corresponding request type and a corresponding calling mode, and constructing a target entry based on the interface information, the service information and the request type;
based on the target entry participation calling mode, using a preset bottom layer tool class to carry out service calling processing corresponding to the micro service, and obtaining target exit participation corresponding to the target entry participation returned by the target interface;
and converting the target parameters to obtain corresponding feedback data, and returning the feedback data to the client.
Further, the step of intercepting the call request based on the target section corresponding to the target interface and acquiring the current operating environment specifically includes:
obtaining the target annotation predefined in the execution method in the target interface;
acquiring the target section corresponding to the target annotation;
intercepting the calling request based on the target section;
and acquiring the current operating environment in the target tangent plane.
Further, the step of performing service calling processing corresponding to the microservice by using a preset bottom tool class based on the target entry participation calling mode to obtain a target exit participation corresponding to the target entry participation returned by the target interface specifically includes:
calling the bottom layer tool class, and assembling the calling mode, the interface information, the service information and the request type in the target access parameter to generate a corresponding access request;
sending the access request to the micro service, processing the access request through the micro service to generate corresponding return data, and taking the return data as the target mark parameter;
and receiving the target mark-out parameter returned by the micro service through the target interface.
Further, the step of converting the target parameters to obtain corresponding feedback data and returning the feedback data to the client specifically includes:
calling a preset information configuration platform;
acquiring a predefined return value type corresponding to the target interface from the information configuration platform;
converting the target parameters based on the return value type to obtain corresponding target object data, and taking the target object data as the feedback data;
and returning the feedback data to the client.
Further, the step of performing conversion processing on the target object parameter based on the return value type to obtain corresponding target object data specifically includes:
determining a conversion mode corresponding to the type of the return value;
calling a conversion tool corresponding to the conversion mode;
performing conversion processing on the target parameters based on the conversion tool to obtain converted parameter data;
and taking the converted parameter data as the target object data.
Further, after the step of intercepting the call request based on the target tangent plane corresponding to the target interface and acquiring the current operating environment, the method further includes:
if the operating environment belongs to the unit testing environment, acquiring a target method corresponding to the target interface;
executing the target method to obtain corresponding simulation data;
and returning the simulation data to the client.
Further, before the step of obtaining the target method corresponding to the target interface, the method further includes:
acquiring a preset simulation code;
writing the simulation code into a preset method template to obtain a processed method template;
and taking the processed method template as the target method.
In order to solve the above technical problem, an embodiment of the present application further provides a device for invoking a microservice, which employs the following technical solutions:
the judging module is used for judging whether a calling request which is triggered by a user through a client and corresponds to a target interface of the micro service is received; the calling request carries a service name of the micro service and an interface name of the target interface, and a target note is predefined in a proxy method corresponding to the target interface;
the intercepting module is used for intercepting the calling request based on a target section corresponding to the target interface and acquiring the current operating environment if the calling request is received;
a first obtaining module, configured to execute the proxy method corresponding to the target interface if the operating environment does not belong to a preset unit test environment, and obtain interface information and service information corresponding to the target interface;
the analysis module is used for analyzing the target annotation to obtain a corresponding request type and a corresponding calling mode, and constructing target access parameters based on the interface information, the service information and the request type;
the first processing module is used for carrying out service calling processing corresponding to the micro service by using a preset bottom layer tool class based on the calling mode of the target entry participation to obtain target exit participation corresponding to the target entry participation returned by the target interface;
and the second processing module is used for converting the target parameters to obtain corresponding feedback data and returning the feedback data to the client.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which adopts the following technical solutions:
judging whether a call request which is triggered by a user through a client and corresponds to a target interface of the micro service is received; the calling request carries a service name of the micro service and an interface name of the target interface, and a target note is predefined in a proxy method corresponding to the target interface;
if so, intercepting the calling request based on a target section corresponding to the target interface, and acquiring a current operating environment;
if the operating environment does not belong to a preset unit test environment, executing the proxy method corresponding to the target interface to acquire interface information and service information corresponding to the target interface;
analyzing the target annotation to obtain a corresponding request type and a corresponding calling mode, and constructing a target entry based on the interface information, the service information and the request type;
based on the target entry participation calling mode, using a preset bottom layer tool class to carry out service calling processing corresponding to the micro service, and obtaining target exit participation corresponding to the target entry participation returned by the target interface;
and converting the target parameters to obtain corresponding feedback data, and returning the feedback data to the client.
In order to solve the above technical problem, an embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solutions:
judging whether a call request which is triggered by a user through a client and corresponds to a target interface of the micro service is received; the calling request carries a service name of the micro service and an interface name of the target interface, and a target note is predefined in a proxy method corresponding to the target interface;
if so, intercepting the calling request based on a target section corresponding to the target interface, and acquiring the current operating environment;
if the operating environment does not belong to a preset unit test environment, executing the proxy method corresponding to the target interface to acquire interface information and service information corresponding to the target interface;
analyzing the target annotation to obtain a corresponding request type and a corresponding calling mode, and constructing a target entry based on the interface information, the service information and the request type;
based on the target entry participation calling mode, using a preset bottom layer tool class to carry out service calling processing corresponding to the micro service, and obtaining target exit participation corresponding to the target entry participation returned by the target interface;
and converting the target parameters to obtain corresponding feedback data, and returning the feedback data to the client.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
according to the method and the device, after a call request which is triggered by a user through a client and corresponds to a target interface of micro service is received, the call request is intercepted based on a target tangent plane corresponding to the target interface, a current running environment is obtained, if the running environment does not belong to a preset unit test environment, a proxy method corresponding to the target interface is executed, interface information and service information corresponding to the target interface are obtained, then a target annotation is analyzed to obtain a corresponding request type and a corresponding call mode, a target entry parameter is constructed based on the interface information and the service information and the request type, the target entry parameter is subsequently participated in the call mode, a preset bottom tool class is used for carrying out service call processing corresponding to the micro service, a target exit parameter corresponding to the target entry parameter is obtained, and finally the target exit parameter is converted to obtain corresponding feedback data and the feedback data are returned to the client. According to the method and the device, the target annotation is applied to the target interface corresponding to the micro service to carry out the calling process of the micro service, so that the generation of a large number of redundant codes in the business code can be reduced, the service calling processing corresponding to the micro service can be rapidly carried out through the use of the bottom layer tool class, and the processing efficiency of micro service calling can be effectively improved.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for invoking a microservice in accordance with the present application;
FIG. 3 is a schematic block diagram illustrating one embodiment of a calling device for a microservice according to the present application;
FIG. 4 is a schematic block diagram of one embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Mov I picture Experts G roup Aud I o Layer I, mpeg compression standard audio Layer 3), MP4 players (Mov I ng P I ctu Experts G roup Aud I o Layer I V, mpeg compression standard audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that the method for calling the micro service provided in the embodiment of the present application is generally executed by the server/terminal device, and accordingly, the means for calling the micro service is generally disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow diagram of one embodiment of a method for invocation of a microservice in accordance with the present application is shown. The calling method of the microservice comprises the following steps:
step S201, determining whether a call request corresponding to a target interface of the microservice triggered by a user through a client is received.
In this embodiment, the electronic device (for example, the server/terminal device shown in fig. 1) on which the calling method of the microservice operates may obtain the calling request through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G/5G connection, a wifi connection, a bluetooth connection, a wimax connection, a Z i gbee connection, a UWB (u l t ra W i deband) connection, and other wireless connection means now known or developed in the future. The interface may be AP I (App I cat I on Programmm I ng I interface, application program interface). The AP I is a set of definitions, procedures and protocols through which the intercommunication between computer software can be realized. And the calling request carries the service name of the micro service and the interface name of the target interface, and a target annotation is predefined in the proxy method corresponding to the target interface. The execution method is a core method in a target interface corresponding to the call request of the micro service, and is specifically configured to respond to the call request of the micro service and have a function of generating interface feedback data corresponding to the call request of the micro service. In addition, when a developer develops an interface which needs to depend on an external micro-service, the developer only needs to define a reference model and a reference model by referring to an interface document of the external micro-service, and determine the service and the calling mode of the external micro-service. An interface of the external micro-service can be defined, and method contents can return nul and mock data for matching with j un i t unit test.
And S202, if yes, intercepting the calling request based on a target section corresponding to the target interface, and acquiring the current operating environment.
In this embodiment, the target section is a target section having an association relationship with a target annotation of the target interface. In the above specific implementation process of intercepting the call request based on the target section corresponding to the target interface and acquiring the current operating environment, further details of the process will be described in the following specific embodiments, which are not set forth herein. The target annotation is an annotation which is constructed in advance according to actual microservice calling requirements, and annotation parameters can be configured in a preset information configuration platform. Specifically, the micro service defines a Java class in each item, and adds an Spr ng annotation to the class, so that the class becomes a class capable of performing Spr ng section programming. The target annotation comprises @ remoteServ I e annotation and @ remoteHand er annotation, and a service name or a consumption code or app I d of the external service corresponding to serv I CEName in the @ remoteServ I e annotation is arranged in a configuration center; the ur i in the @ remoteHandel er annotation corresponds to an interface address of the external service in the configuration center and supports dynamic updating of the configuration center. The annotation default calling mode is NACSOS, and the annotation default calling mode can be manually configured into ESG1.0 or ESG2.0; the default request type is a POST with BODY request (a POST request, a parameter is placed in a BODY), and the default request type can be manually configured into a GET with BODY request (a GET request, a parameter is placed in a BODY) or a GET parameter splicing URL (a GET request, a parameter is spliced behind a URL) or a request with a parameter as a part of a URL (a GET request, a parameter is used as a part of a URL).
Example codes are as follows:
@S l f4j
@RemoteSe rv i e(ser v i ceName=“remote.nps.se r v i ceName”)
@Component
pub l i c c l ass NPSRemoteServ i e{
@RemoteHand l e r(u r i=“r emote.nps.ur i.pageOccpat i ons”)
pub l i c NPSPageOccpat i onsResponse pageOccpat i ons( NPSPageOccpat i onsRequest pageOccpat i ons npsPageOccpat i onsRequest){r etu r n nu l l;}
}
further, the @ RemoteHand l e r may also be used in other combinations, as exemplified by:
@ RemoteHand l er (ur i = "r emote. Se rv i ce1.Ur i. Ap i 1")// default use;
a post request of @ remoteHandl er (ur i = "r emote. Ser v i ce2.Ur i. Ap i 2", ca l model = Ca l model Enum. ESG _1, reqType =RequestTypeEnum. POST)// ESG 1.0;
get request of @ remoteHandl er (ur i = "remote. Ser v i ce3.Ur i. Ap i 3", ca l Mo de = Ca l ModeEnum. ESG _2, reqType = RequestTypeEnum. GET _PARAM, paramF i e ds = { "appCode", "um" })// ESG 2.0.
Step S203, if the operating environment does not belong to a preset unit test environment, executing the proxy method corresponding to the target interface, and acquiring interface information and service information corresponding to the target interface.
In this embodiment, the preset unit testing environment may refer to a j un i t unit testing environment, and if the running environment does not belong to the unit testing environment, it indicates that the current running environment belongs to a micro service call environment, the proxy method corresponding to the target interface is executed, so as to analyze interface information and service information corresponding to the target interface from the annotation. The interface information may include an interface address of the target interface, and the service information may include a service type of the microservice.
Step S204, analyzing the target annotation to obtain a corresponding request type and a corresponding calling mode, and constructing a target entry based on the interface information, the service information and the request type.
In this embodiment, the corresponding request type and the corresponding calling mode are obtained by analyzing the target annotation. The request type may include a type of a request manner, and for example, the request type may include a GET request, a POST request, and the like. The calling modes can comprise a NACSOS calling mode, an ESG1.0 calling mode and an ESG2.0 calling mode. The target access parameter is used for calling the micro service, and comprises the interface information, the service information and the request type. In addition, if the requirement of entering the parameter needs to be recorded, a parameter entering log corresponding to the target parameter is saved.
Step S205, based on the target entry participation calling manner, using a preset bottom tool class to perform service calling processing corresponding to the micro service, so as to obtain a target exit participation corresponding to the target entry participation returned by the target interface.
In this embodiment, based on the target entry participation calling manner, the preset bottom-layer tool class is used to perform the service calling processing corresponding to the micro service, so as to obtain a specific implementation process of the target exit participation corresponding to the target entry participation returned by the target interface. And if the participation requirement needs to be recorded, saving a participation log corresponding to the target participation.
And step S206, performing conversion processing on the target parameters to obtain corresponding feedback data, and returning the feedback data to the client.
In this embodiment, the specific implementation process of converting the target parameters to obtain corresponding feedback data and returning the feedback data to the client is described in further detail in the following specific embodiments, and will not be described herein too much.
After receiving a call request which is triggered by a client and corresponds to a target interface of a micro service, the method intercepts the call request based on a target tangent plane corresponding to the target interface, acquires a current operating environment, executes an agent method corresponding to the target interface if the operating environment does not belong to a preset unit test environment, acquires interface information and service information corresponding to the target interface, analyzes a target annotation to acquire a corresponding request type and a corresponding call mode, constructs a target entry parameter based on the interface information, the service information and the request type, subsequently performs service call processing corresponding to the micro service based on the target entry parameter and the call mode by using a preset bottom tool class to acquire a target exit parameter corresponding to the target entry parameter returned by the target interface, and finally performs conversion processing on the target exit parameter to acquire corresponding feedback data and returns the feedback data to the client. According to the micro-service calling method and device, the target annotation is applied to the target interface corresponding to the micro-service to carry out the calling process of the micro-service, so that the generation of a large number of redundant codes in the business code can be reduced, the service calling processing corresponding to the micro-service can be carried out rapidly through the use of the bottom layer tool class, and therefore the processing efficiency of micro-service calling can be effectively improved.
In some optional implementations, step S202 includes the following steps:
obtaining the target annotation predefined within the execution method in the target interface.
In this embodiment, the execution method refers to a core method in a target interface corresponding to the call request of the micro service, and is specifically configured to respond to the call request of the micro service, and has a function of generating interface feedback data corresponding to the call request of the micro service.
And acquiring the target section corresponding to the target annotation.
In this embodiment, the target section refers to a code segment that is cut into a designated method of a designated class, and which classes and methods are cut into is called an entry point. The target section is also called a programming section, and refers to a programming idea of dynamically cutting codes into a specified method and a specified position of a class during running.
And intercepting the calling request based on the target tangent plane.
In this embodiment, the call request may be intercepted in a target section. After the target tangent plane is obtained, the call request sent to the micro service can be intercepted through the target tangent plane, and therefore all parts of service access are isolated through the target tangent plane, so that the coupling degree between all parts of business logic is reduced, the reusability of a program is improved, and further the development efficiency is improved. A preset interception method can be defined in the j ava class of the target annotation, and the interception method is woven in before the tangent point to intercept the call request. The above interception method may comprise the dobeform method.
And acquiring the current operating environment in the target tangent plane.
In this embodiment, corresponding judgment or logic processing may also be performed in the target section, for example, the current operating environment is acquired. The operating environment may include a unit test environment or a non-unit test environment, i.e., a normal service access environment.
The target annotation predefined in the execution method in the target interface is obtained; then acquiring the target section corresponding to the target annotation; and intercepting the calling request based on the target section, and acquiring the current running environment in the target section. The method and the device intercept the call request sent to the micro service through the target tangent plane corresponding to the target annotation of the target interface so as to isolate all parts accessed by the service through the target tangent plane, thereby reducing the coupling degree among all parts of business logic, improving the reusability of a program and being beneficial to improving the development efficiency.
In some optional implementations of this embodiment, step S205 includes the following steps:
and calling the bottom layer tool class, and assembling the calling mode, the interface information, the service information and the request type in the target access parameter to generate a corresponding access request.
In this embodiment, the calling method, the interface information, the service information, and the request type in the target entry may be assembled according to the underlying tool class to be used, so as to generate an access request for accessing the microservice. The bottom tool class is specifically an interface implementation class corresponding to an interface class used for accessing the microservice. Specifically, since the interface class and the interface implementation class of a micro service have a mapping relationship, when a certain micro service needs to be accessed, which interface implementation class in the virtual machine needs to be operated can be known by calling the interface class corresponding to the micro service, and then the calling mode corresponding to the face interface and the interface information, the service information and the request type in the target entry are assembled by operating the obtained interface implementation class in the virtual machine, so that the access request for the micro service can be obtained.
And sending the access request to the micro service so as to process the access request through the micro service and generate corresponding return data, and taking the return data as the target mark parameter.
In this embodiment, before sending the access request to the microservice, based on the service information, that is, the service type, a bottom layer encapsulation method corresponding to the service information is called, the bottom layer encapsulation method is used to encapsulate the access request, so as to obtain a processed access request, and the processed access request is sent to the microservice. The encapsulating process for the access request by using the bottom layer encapsulating method may include: certain logic filtering is performed on the access request, for example, whether the relevant parameters are correct is verified, whether the data format of the relevant parameters is correct is verified, and the like. By performing logical filtering, some non-compliant access requests may be filtered to enable only compliant access requests to be issued to the microservice.
And receiving the target mark-out parameter returned by the micro service through the target interface.
In this embodiment, after sending the access request to the microservice, the microservice processes the access request to perform service access, and generates corresponding return data, that is, the target mark-out parameter and the target mark-out parameter that is returned through the target interface.
According to the method and the device, the interface information, the service information and the request type in the target entry parameter are assembled and processed by calling the bottom tool class to generate a corresponding access request, and then the access request is sent to the micro service so as to pass through the micro service to process the access request and generate corresponding return data to obtain the target entry parameter, and the micro service returns through the target interface to receive the target entry parameter. The service calling processing corresponding to the micro service is conveniently carried out based on the use of the preset bottom layer tool class, so that the target parameter corresponding to the target parameter returned by the target interface is quickly and accurately obtained.
In some optional implementations, step S206 includes the following steps:
and calling a preset information configuration platform.
In this embodiment, the information configuration platform is a pre-constructed platform for storing management interface information. An interface configuration table corresponding to each micro-service interface is configured and generated in the information configuration platform, the interface configuration table comprises various interface configuration information corresponding to each interface, and the interface configuration information at least comprises interface configuration information such as an interface name, an interface type, an interface address, an interface request mode, an interface return value type and various conversion modes corresponding to the return value types.
And acquiring a predefined return value type corresponding to the target interface from the information configuration platform.
In this embodiment, a target interface configuration table corresponding to a target interface may be obtained from an information configuration platform, and then a predefined return value type corresponding to the target interface may be queried from the target interface configuration table.
And converting the target parameters based on the return value type to obtain corresponding target object data, and taking the target object data as the feedback data.
In this embodiment, the specific implementation process of performing conversion processing on the target object parameter based on the return value type to obtain corresponding target object data is described in further detail in the following specific embodiments, and will not be described in detail herein.
And returning the feedback data to the client.
The method comprises the steps of calling a preset information configuration platform, obtaining a predefined return value type corresponding to a target interface from the information configuration platform, then carrying out conversion processing on the target parameters based on the return value type to obtain corresponding target object data, and returning the target object data serving as feedback data to a client. According to the method and the device, the target parameters can be quickly and accurately converted to obtain the corresponding feedback data based on the information query processing of the information configuration platform, the target parameters are converted to obtain the corresponding feedback data, the generation efficiency of the feedback data is improved, and the generation accuracy of the feedback data is ensured.
In some optional implementation manners, the converting the target object parameter based on the return value type to obtain corresponding target object data includes the following steps:
and determining a conversion mode corresponding to the return value type.
In this embodiment, when the return value type corresponding to the target interface is obtained, the conversion manner corresponding to the return value type of the target interface can be further found from all conversion manners corresponding to various return value types stored in the target interface configuration table corresponding to the target interface.
And calling a conversion tool corresponding to the conversion mode.
In this embodiment, the conversion tool refers to a converter matching the return value type of the target interface.
And performing conversion processing on the target parameters based on the conversion tool to obtain converted parameter data.
In this embodiment, the performing conversion processing on the target parameters based on the conversion tool means that the conversion tool is used to perform conversion processing on the data format of the target parameters, and obtain the result of performing conversion processing on the data format of the target parameters returned by the conversion tool, so as to obtain the converted parameter data.
And taking the converted parameter data as the target object data.
According to the method and the device, a conversion mode corresponding to the type of the return value is determined, then a conversion tool corresponding to the conversion mode is called, conversion processing is carried out on the target output parameter based on the conversion tool, converted parameter data are obtained, and the converted parameter data are used as the target object data. According to the method and the device, through the use based on the conversion tool, the conversion tool can be used for quickly and accurately converting the target parameters to obtain the required target object data and using the target object data as the feedback data, the generation efficiency of the feedback data is improved, and the generation accuracy of the feedback data is ensured.
In some optional implementation manners of this embodiment, after step S202, the electronic device may further perform the following steps:
and if the running environment belongs to the unit testing environment, acquiring a target method corresponding to the target interface.
In this embodiment, the target method is a method used by a developer for testing a j un i t unit matched with a target interface, which is pre-constructed according to actual unit testing requirements, and the method content of the target method is used for returning simulation data related to the target interface in a j un i t unit testing environment, where the simulation data is also called mock data.
And executing the target method to obtain corresponding simulation data.
In this embodiment, by executing the target method, test data with good mock in the unit test environment, that is, the simulation data, is returned.
And returning the simulation data to the client.
After the current running environment is obtained, if the running environment is detected to belong to the unit testing environment, a target method corresponding to the target interface is obtained, the target method is executed to obtain corresponding simulation data, and the simulation data are returned to the client. When the current running environment is detected to belong to the unit testing environment, the target method corresponding to the target interface can be intelligently and directly executed to return corresponding simulation data, so that the unit testing failure caused by the failure of external services can be effectively avoided, and the intelligence of unit testing processing is improved.
In some optional implementation manners of this embodiment, before the step of obtaining the target method corresponding to the target interface, the electronic device may further perform the following steps:
and acquiring a preset simulation code.
In this embodiment, the simulation code is a code that is written in advance by a developer according to actual unit test requirements and is used for a j un i t unit test matching a target interface. The above-described analog code may also be referred to as mock code.
And writing the simulation code into a preset method template to obtain a processed method template.
In this embodiment, the method template is a universal test method template that is pre-constructed for various interfaces according to actual unit test requirements.
And taking the processed method template as the target method.
In this embodiment, the generated target method refers to a unit test method in the target interface, and is specifically configured to respond to a unit test process of the target interface, and has a function of generating test data corresponding to a unit test request of the target interface.
According to the method and the device, a preset simulation code is obtained, and then the simulation code is written into a preset method template, so that the obtained processed method template is the target method. According to the method and the device, the mode that the simulation codes are written into the method template to generate the target method is adopted, and mock-related dependence is not required to be additionally introduced in the process of carrying out unit test on the target interface, so that unit test without external service images is realized, and the intelligence of unit test processing is improved.
It is emphasized that the feedback data may also be stored in a node of a block chain in order to further ensure privacy and security of the feedback data.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The block chain (B l ockcha i n), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. The artificial intelligence (Art I f I a l I nte l I gene, A I) is a theory, method, technology and application system which simulates, extends and expands human intelligence by using a digital computer or a machine controlled by the digital computer, senses the environment, acquires knowledge and obtains the best result by using the knowledge.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware that is configured to be instructed by computer-readable instructions, which can be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods described above. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 3, as an implementation of the method shown in fig. 2, the present application provides an embodiment of a device for invoking micro services, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the device may be applied to various electronic devices.
As shown in fig. 3, the apparatus 300 for invoking microservices according to the present embodiment includes: the device comprises a judging module 301, an intercepting module 302, a first obtaining module 303, a resolving module 304, a first processing module 305 and a second processing module 306. Wherein:
the judging module 301 is configured to judge whether a call request corresponding to a target interface of the microservice, which is triggered by a user through a client, is received; the calling request carries a service name of the micro service and an interface name of the target interface, and a target note is predefined in a proxy method corresponding to the target interface;
an intercepting module 302, configured to intercept the call request based on a target section corresponding to the target interface if the call request is received, and obtain a current operating environment;
a first obtaining module 303, configured to execute the proxy method corresponding to the target interface if the operating environment does not belong to a preset unit test environment, and obtain interface information and service information corresponding to the target interface;
the parsing module 304 is configured to parse the target annotation to obtain a corresponding request type and a corresponding calling manner, and construct a target entry based on the interface information, the service information, and the request type;
a first processing module 305, configured to perform service calling processing corresponding to the micro service by using a preset bottom tool class based on the target entry participation calling manner, so as to obtain a target exit participation corresponding to the target entry participation returned by the target interface;
the second processing module 306 is configured to perform conversion processing on the target parameters to obtain corresponding feedback data, and return the feedback data to the client.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the method for invoking a microservice in the foregoing embodiment one by one, and are not described herein again.
In some optional implementations of this embodiment, the intercepting module 302 includes:
a first obtaining sub-module, configured to obtain the target annotation predefined in the execution method in the target interface;
the second obtaining sub-module is used for obtaining the target section corresponding to the target annotation;
the intercepting submodule is used for intercepting the calling request based on the target section;
and the third acquisition sub-module is used for acquiring the current operating environment in the target tangent plane.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the method for invoking a microservice in the foregoing embodiment one by one, and are not described herein again.
In some optional implementations of this embodiment, the first processing module 305 includes:
the first generation submodule is used for calling the bottom layer tool class, assembling the calling mode with the interface information, the service information and the request type in the target access parameter and generating a corresponding access request;
the second generation submodule is used for sending the access request to the micro service so as to process the access request through the micro service and generate corresponding return data, and the return data is used as the target mark parameter;
and the receiving submodule is used for receiving the target mark parameters returned by the micro service through the target interface.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the method for invoking a microservice in the foregoing embodiment one by one, and are not described herein again.
In some optional implementations of this embodiment, the second processing module 306 includes:
the calling submodule is used for calling a preset information configuration platform;
a fourth obtaining submodule, configured to obtain, from the information configuration platform, a predefined return value type corresponding to the target interface;
the conversion submodule is used for carrying out conversion processing on the target parameters based on the types of the return values to obtain corresponding target object data, and the target object data is used as the feedback data;
and the return submodule is used for returning the feedback data to the client.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the method for invoking a microservice in the foregoing embodiment one by one, and are not described herein again.
In some optional implementations of this embodiment, the conversion sub-module includes:
a first determining unit, configured to determine a conversion manner corresponding to the type of the return value;
the calling unit is used for calling a conversion tool corresponding to the conversion mode;
the conversion unit is used for carrying out conversion processing on the target parameters based on the conversion tool to obtain converted parameter data;
a second determining unit configured to use the converted parameter data as the target object data.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the method for invoking a microservice in the foregoing embodiment one by one, and are not described herein again.
In some optional implementations of this embodiment, the invoking device of the microservice further includes:
a second obtaining module, configured to obtain a target method corresponding to the target interface if the operating environment belongs to the unit testing environment;
the execution module is used for executing the target method to obtain corresponding simulation data;
and the return module is used for returning the simulation data to the client.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the method for invoking a microservice in the foregoing embodiment one by one, and are not described herein again.
In some optional implementations of this embodiment, the invoking device of the microservice further includes:
the third acquisition module is used for acquiring a preset simulation code;
the writing module is used for writing the simulation code into a preset method template to obtain a processed method template;
and the determining module is used for taking the processed method template as the target method.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the method for invoking a microservice in the foregoing embodiment one by one, and are not described herein again.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 4, fig. 4 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 4 comprises a memory 41, a processor 42, a network interface 43 communicatively connected to each other via a system bus. It is noted that only computer device 4 having components 41-43 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. AS will be understood by those skilled in the art, the computer device herein is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an application specific integrated circuit (App I cat I on Spec I C I integrated C I rcu I, AS ic), a programmable Gate array (F I l D-programmable ab l Gate Ar ray, FPGA), a digital Processor (D I ta l S I gna l Processor, DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 41 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as a hard disk or a memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, a Smart Memory Card (SMC), a secure digital (Secu re D i g i ta l, SD) Card, a flash memory Card (F l ash Card), and the like, which are provided on the computer device 4. Of course, the memory 41 may also include both internal and external storage devices of the computer device 4. In this embodiment, the memory 41 is generally used for storing an operating system installed in the computer device 4 and various types of application software, such as computer readable instructions of a calling method of a microservice, and the like. Further, the memory 41 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 42 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is configured to execute computer readable instructions stored in the memory 41 or process data, such as computer readable instructions for executing a calling method of the microservice.
The network interface 43 may comprise a wireless network interface or a wired network interface, and the network interface 43 is generally used for establishing a communication connection between the computer device 4 and other electronic devices.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
in the embodiment of the application, after a call request which is triggered by a client and corresponds to a target interface of a micro service is received, the call request is intercepted based on a target tangent plane corresponding to the target interface, a current running environment is obtained, if the running environment does not belong to a preset unit test environment, a proxy method corresponding to the target interface is executed, interface information and service information corresponding to the target interface are obtained, then a target annotation is analyzed to obtain a corresponding request type and a corresponding call mode, a target entry parameter is constructed based on the interface information and the service information and the request type, and subsequently the target entry parameter is participated in the call mode, a preset bottom tool class is used for carrying out service call processing corresponding to the micro service, a target exit parameter corresponding to the target entry parameter returned by the target interface is obtained, and finally the target exit parameter is converted to obtain corresponding feedback data, and the feedback data is returned to the client. According to the embodiment of the application, the target annotation is applied to the target interface corresponding to the micro service to carry out the calling process of the micro service, so that the generation of a large number of redundant codes in the business codes can be reduced, the service calling processing corresponding to the micro service can be rapidly carried out through the use of the bottom layer tools, and the processing efficiency of micro service calling can be effectively improved.
The present application further provides another embodiment, which is to provide a computer-readable storage medium storing computer-readable instructions executable by at least one processor to cause the at least one processor to perform the steps of the method for calling a microservice as described above.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
in the embodiment of the application, after a call request which is triggered by a client and corresponds to a target interface of a micro service is received, the call request is intercepted based on a target tangent plane corresponding to the target interface, a current running environment is obtained, if the running environment does not belong to a preset unit test environment, a proxy method corresponding to the target interface is executed, interface information and service information corresponding to the target interface are obtained, then a target annotation is analyzed to obtain a corresponding request type and a corresponding call mode, a target entry parameter is constructed based on the interface information and the service information and the request type, and subsequently the target entry parameter is participated in the call mode, a preset bottom tool class is used for carrying out service call processing corresponding to the micro service, a target exit parameter corresponding to the target entry parameter returned by the target interface is obtained, and finally the target exit parameter is converted to obtain corresponding feedback data, and the feedback data is returned to the client. According to the method and the device, the target annotation is applied to the target interface corresponding to the micro service to carry out the calling process of the micro service, so that the generation of a large number of redundant codes in the business code can be reduced, the service calling processing corresponding to the micro service can be rapidly carried out through the use of the bottom layer tool class, and the processing efficiency of micro service calling can be effectively improved.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.

Claims (10)

1. A calling method of micro service is characterized by comprising the following steps:
judging whether a call request which is triggered by a user through a client and corresponds to a target interface of the micro service is received; the calling request carries a service name of the micro service and an interface name of the target interface, and a target note is predefined in a proxy method corresponding to the target interface;
if so, intercepting the calling request based on a target section corresponding to the target interface, and acquiring the current operating environment;
if the operating environment does not belong to a preset unit test environment, executing the proxy method corresponding to the target interface to acquire interface information and service information corresponding to the target interface;
analyzing the target annotation to obtain a corresponding request type and a corresponding calling mode, and constructing a target entry based on the interface information, the service information and the request type;
based on the target entry participation calling mode, using a preset bottom layer tool class to carry out service calling processing corresponding to the micro service, and obtaining target exit participation corresponding to the target entry participation returned by the target interface;
and converting the target parameters to obtain corresponding feedback data, and returning the feedback data to the client.
2. The method for invoking a microservice according to claim 1, wherein the step of intercepting the invocation request based on the target tangent plane corresponding to the target interface and obtaining the current operating environment specifically comprises:
obtaining the target annotation predefined in the execution method in the target interface;
acquiring the target tangent plane corresponding to the target annotation;
intercepting the calling request based on the target section;
and acquiring the current operating environment in the target tangent plane.
3. The method for invoking micro-services according to claim 1, wherein the step of performing, based on the target entry participation invoking manner, a service invoking process corresponding to the micro-service using a preset underlying tool class to obtain a target exit participation returned by the target interface and corresponding to the target entry participation specifically comprises:
calling the bottom layer tool class, and assembling the calling mode, the interface information, the service information and the request type in the target access parameter to generate a corresponding access request;
sending the access request to the micro service, processing the access request through the micro service to generate corresponding return data, and taking the return data as the target mark parameter;
and receiving the target mark-out parameter returned by the micro service through the target interface.
4. The method for calling the microservice according to claim 1, wherein the step of converting the target parameters to obtain corresponding feedback data and returning the feedback data to the client specifically comprises:
calling a preset information configuration platform;
acquiring a predefined return value type corresponding to the target interface from the information configuration platform;
converting the target parameters based on the return value type to obtain corresponding target object data, and taking the target object data as the feedback data;
and returning the feedback data to the client.
5. The method for invoking a microservice according to claim 4, wherein the step of performing a conversion process on the target object parameter based on the return value type to obtain corresponding target object data specifically comprises:
determining a conversion mode corresponding to the type of the return value;
calling a conversion tool corresponding to the conversion mode;
performing conversion processing on the target parameters based on the conversion tool to obtain converted parameter data;
and taking the converted parameter data as the target object data.
6. The method for calling microservice according to claim 1, further comprising, after the step of intercepting the call request based on the target section corresponding to the target interface and obtaining the current execution environment:
if the operating environment belongs to the unit testing environment, acquiring a target method corresponding to the target interface;
executing the target method to obtain corresponding simulation data;
and returning the simulation data to the client.
7. The method for calling a microservice according to claim 6, further comprising, prior to the step of obtaining a target method corresponding to the target interface:
acquiring a preset simulation code;
writing the simulation code into a preset method template to obtain a processed method template;
and taking the processed method template as the target method.
8. An apparatus for invoking a microservice, comprising:
the judging module is used for judging whether a calling request which is triggered by a user through a client and corresponds to a target interface of the micro service is received; the calling request carries a service name of the micro service and an interface name of the target interface, and a target note is predefined in a proxy method corresponding to the target interface;
the intercepting module is used for intercepting the calling request based on a target section corresponding to the target interface if the calling request is received, and acquiring the current operating environment;
a first obtaining module, configured to execute the proxy method corresponding to the target interface if the operating environment does not belong to a preset unit test environment, and obtain interface information and service information corresponding to the target interface;
the analysis module is used for analyzing the target annotation to obtain a corresponding request type and a corresponding calling mode, and constructing target access parameters based on the interface information, the service information and the request type;
the first processing module is used for carrying out service calling processing corresponding to the micro service by using a preset bottom layer tool class based on the calling mode of the target entry participation to obtain target exit participation corresponding to the target entry participation returned by the target interface;
and the second processing module is used for converting the target parameters to obtain corresponding feedback data and returning the feedback data to the client.
9. A computer device comprising a memory having computer readable instructions stored therein and a processor which when executed implements the steps of the method of calling a microservice of any of claims 1 to 7.
10. A computer-readable storage medium, having computer-readable instructions stored thereon, which, when executed by a processor, implement the steps of the method of calling a microservice of any of claims 1-7.
CN202211559228.5A 2022-12-06 2022-12-06 Calling method and device of microservice, computer equipment and storage medium Pending CN115794437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211559228.5A CN115794437A (en) 2022-12-06 2022-12-06 Calling method and device of microservice, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211559228.5A CN115794437A (en) 2022-12-06 2022-12-06 Calling method and device of microservice, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115794437A true CN115794437A (en) 2023-03-14

Family

ID=85417394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211559228.5A Pending CN115794437A (en) 2022-12-06 2022-12-06 Calling method and device of microservice, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115794437A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116166569A (en) * 2023-04-26 2023-05-26 深圳市和讯华谷信息技术有限公司 Mock testing method and related equipment thereof
CN117195863A (en) * 2023-09-12 2023-12-08 蔷薇聚信(北京)科技有限公司 Dictionary/field analysis method and device, micro-service system and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116166569A (en) * 2023-04-26 2023-05-26 深圳市和讯华谷信息技术有限公司 Mock testing method and related equipment thereof
CN117195863A (en) * 2023-09-12 2023-12-08 蔷薇聚信(北京)科技有限公司 Dictionary/field analysis method and device, micro-service system and storage medium

Similar Documents

Publication Publication Date Title
CN115794437A (en) Calling method and device of microservice, computer equipment and storage medium
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN114564294A (en) Intelligent service arranging method and device, computer equipment and storage medium
CN117033249A (en) Test case generation method and device, computer equipment and storage medium
CN115712422A (en) Form page generation method and device, computer equipment and storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN116383787A (en) Page creation method, page creation device, computer equipment and storage medium
CN115080045A (en) Link generation method and device, computer equipment and storage medium
CN114969482A (en) Method for automatically completing request by online configuration interface and related equipment thereof
CN115334065A (en) Web front-back end data interaction method, device, equipment and storage medium
CN115904657A (en) Document generation method and device, computer equipment and storage medium
CN117056052A (en) Timing task processing method, device, equipment and storage medium thereof
CN114238466A (en) Message pushing method and device, computer equipment and storage medium
CN117217684A (en) Index data processing method and device, computer equipment and storage medium
CN115526731A (en) Task batch processing method and device, computer equipment and storage medium
CN115809241A (en) Data storage method and device, computer equipment and storage medium
CN117290019A (en) Interface calling method and device, computer equipment and storage medium
CN117421233A (en) Annotation-based code generation method, annotation-based code generation device, computer equipment and storage medium
CN117111957A (en) Code generation method, device, computer equipment and storage medium
CN117278263A (en) Authentication processing method, authentication processing device, computer equipment and storage medium
CN117112665A (en) Link data processing method and device, computer equipment and storage medium
CN117850842A (en) Plug-in updating method, device, equipment and storage medium thereof
CN115828018A (en) Electronic magazine interface material replacing method and related equipment thereof
CN114564917A (en) EXCEL document analysis method and device, computer equipment and storage medium
CN112711421A (en) Cross-service Mock data sharing and using method, system, equipment and storage 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