Method and device for automatically generating codes

By obtaining the first header file of the target business and generating the target code using preset mapping relationships, the problem of low efficiency in manual development code in the existing technology is solved, automatic code generation is realized, and development efficiency and code quality are improved.

CN119829045AActive Publication Date: 2025-04-15ZHEJIANG DAHUA TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411838947.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-15
Estimated Expiration
2044-12-12

AI Technical Summary

Technical Problem

In the existing interconnection system, the development of device access services requires manual development of code, which leads to inefficiency. Especially when the business evolves rapidly and the access services increase, it requires a lot of manpower, low work efficiency, and unsatisfactory quality.

Method used

Automatic code generation is achieved by obtaining the first header file of the target service and using preset mapping relationships to generate the target code, including interface specification code, sub-service code or adaptive code.

Benefits of technology

Automatically generating code solves the problem of low efficiency in manual development of code, improves the efficiency of development of code, reduces labor costs, and ensures code quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829045A_ABST
    Figure CN119829045A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method and a device for automatically generating codes. The method comprises the following steps: acquiring a first header file of a target service; target codes are generated through a preset mapping relation and the first header file, and the target codes comprise interface specification codes, sub-service codes or adaptive codes. Through the method and the device, the problem of low manual code development efficiency in the prior art is solved, and the effect of improving the code development efficiency is further achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of network software service generation, and in particular to a method and device for automatically generating codes. Background Art

[0002] With the vigorous development of the Internet, the Internet of Things, and the Industrial Internet of Things, it is inevitable to involve the interconnection between systems, between systems and devices, and between devices. In the existing interconnection system, the development of device access services mostly requires manual code development, which is not conducive to subsequent maintenance, especially in scenarios where the business evolves rapidly and the access business increases significantly, it requires a lot of manpower, low work efficiency, and cannot guarantee quality.

[0003] There is currently no effective solution to the above problems. Summary of the invention

[0004] The embodiments of the present invention provide a method and device for automatically generating codes, so as to at least solve the problem of low efficiency of manually developing codes in the related art.

[0005] According to one embodiment of the present invention, a method for automatically generating code is provided, comprising: obtaining a first header file of a target service; generating a target code through a preset mapping relationship and the first header file, wherein the target code comprises: an interface specification code, a sub-service code or an adaptation code.

[0006] In an exemplary embodiment, generating a target code through a preset mapping relationship and the first header file includes: generating the interface specification code according to the first mapping relationship and the first header file; or generating the sub-service code according to the second mapping relationship and the first header file; or generating the adaptation code of the first header file and the second header file according to a third mapping relationship, the first header file and the second header file; wherein the preset mapping relationship includes: the first mapping relationship, the second mapping relationship and the third mapping relationship.

[0007] In an exemplary embodiment, a corresponding interface specification code is generated according to a first mapping relationship and the first header file, including: generating the interface specification code according to a mapping relationship between a data type of the first header file and a field type of a data exchange format, wherein the first mapping relationship records a mapping relationship between a data type of the code used by the first header file and a field type of the data exchange format.

[0008] In an exemplary embodiment, a sub-service code is generated according to a second mapping relationship and the first header file, including: parsing the first header file to generate intermediate expression structure information; generating the sub-service code according to a mapping relationship between each structure information in the intermediate expression structure information and each sub-service information, wherein the mapping relationship between the structure information and the sub-service information is recorded in the second mapping relationship.

[0009] In an exemplary embodiment, generating adaptation code for the first header file and the second header file according to a third mapping relationship, the first header file and the second header file includes: generating the adaptation code according to a correspondence between each interface in the first header file and each function in the second header file.

[0010] In an exemplary embodiment, the adaptation code is generated according to the correspondence between each interface in the first header file and each function in the second header file, including: mapping the parameters of each function in the second header file to the corresponding input and output parameters of the corresponding interface in the second header file according to the number of interfaces in the first header file and the number of functions in the second header file.

[0011] According to another embodiment of the present invention, there is provided an apparatus for automatically generating code, comprising: an acquisition module for acquiring a first header file of a target service; a generation module for generating a target code through a preset mapping relationship and the first header file, wherein the target code comprises: an interface specification code, a sub-service code or an adaptation code.

[0012] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0013] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0014] According to yet another embodiment of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0015] Through the present invention, by obtaining the first header file of the target service, generating the target code through the preset mapping relationship and the first header file, wherein the target code includes: interface specification code, sub-service code or adaptation code. The purpose of automatically generating code is achieved. Therefore, the problem of low efficiency of manual code development in the technology can be solved, and the effect of improving the efficiency of code development can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for automatically generating codes according to an embodiment of the present invention;

[0017] Figure 2 is a flowchart of a method for automatically generating code according to an embodiment of the present invention;

[0018] Figure 3 This is a schematic diagram of the header file mapping relationship according to an embodiment of the present invention. Figure 1 ;

[0019] Figure 4 This is a schematic diagram of the header file mapping relationship according to an embodiment of the present invention. Figure 2 ;

[0020] Figure 5 This is a schematic diagram of the header file mapping relationship according to an embodiment of the present invention. Figure 3 ;

[0021] Figure 6 is a schematic diagram of secondary packaging development according to an embodiment of the present invention;

[0022] Figure 7 is an overall flow chart of a method for automatically generating codes according to an embodiment of the present invention;

[0023] Figure 8 is a structural block diagram of an apparatus for automatically generating codes according to an embodiment of the present invention; DETAILED DESCRIPTION

[0024] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0026] The embodiment of the method for automatically generating code provided in the embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for automatically generating codes according to an embodiment of the present invention. Figure 1As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0027] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for automatically generating code in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0028] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0029] In this embodiment, a method for automatically generating code running on the above mobile terminal or network architecture is provided. Figure 2 is a flowchart of a method for automatically generating code according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0030] Step S202, obtaining the first header file of the target service;

[0031] The above-mentioned first header file is a C++ file formed by structured parsing of the header file implemented by the above-mentioned target business based on its own code architecture style characteristics and C++ syntax, forming a custom header file intermediate expression structure data, which is responsible for componentized namespace, interface commands, interface input and output parameters, interface parameter data structure information, etc.

[0032] Step S204: Generate target code through a preset mapping relationship and the first header file, wherein the target code includes: an interface specification code, a sub-service code or an adaptation code.

[0033] The above mapping relationship includes a first mapping relationship, a second mapping relationship and a third mapping relationship, and the above target code includes an interface specification code, a sub-service code or an adaptation code. The above first mapping relationship and the second mapping relationship are respectively combined with the above first header file to generate an interface specification code and a sub-service code. The above third mapping relationship is combined with the above first header file and the third header file to generate an adaptation code.

[0034] Specifically, generating the target code through a preset mapping relationship and the first header file includes: generating the interface specification code according to the first mapping relationship and the first header file; or generating the sub-service code according to the second mapping relationship and the first header file; or generating the adaptation code of the first header file and the second header file according to a third mapping relationship, the first header file and the second header file; wherein the preset mapping relationship includes: the first mapping relationship, the second mapping relationship and the third mapping relationship.

[0035] As an optional implementation, generating a corresponding interface specification code based on a first mapping relationship and the first header file includes: generating the interface specification code based on a mapping relationship between a data type of the first header file and a field type of a data exchange format, wherein the first mapping relationship records a mapping relationship between a data type of the code used by the first header file and a field type of the data exchange format.

[0036] The first mapping relationship records the mapping relationship between the C / C++ data type of the first header file and the json field type of the corresponding service application program interface (Application Programming Interface, API for short), and the first mapping relationship and the first header file generate the interface specification code. The interface specification code is a series of specifications and conventions followed when defining an interface in programming, including interface naming specifications, interface method naming specifications, interface parameter specifications, interface return value specifications, etc.

[0037] As an optional implementation, a sub-service code is generated according to a second mapping relationship and the first header file, including: parsing the first header file to generate intermediate expression structure information; generating the sub-service code according to a mapping relationship between each structure information in the intermediate expression structure information and each sub-service information, wherein the second mapping relationship records the mapping relationship between the structure information and the sub-service information.

[0038] The above intermediate expression structure information includes macro definition, naming method, component name, parameter description, interface definition, etc. The above sub-service code is to facilitate management and maintenance, splitting the system into multiple independent service units, each of which is responsible for processing specific functions or business logic. These independent service units are called the above sub-services.

[0039] The second mapping relationship records the mapping relationship between each structure information in the intermediate expression structure information and each sub-service information. The second mapping relationship includes the following contents:

[0040] Mapping method definition 1: component name in the header file => sub-service name;

[0041] Mapping method definition 2: Component name in the header file. Interface name => sub-service API interface name (to avoid service conflicts);

[0042] Mapping method definition 3: Asynchronous interface in the header file => add Asyn after the sub-service API interface name;

[0043] Mapping method definition 4: Subscription callback interface name in the header file => sub-service API interface name + notify;

[0044] Mapping method definition 5: In API requests, method is used to identify the interface service; params is used to identify the parameter service; object is used to identify the business object address, id is used to identify the request identifier, and session is used to identify the session identifier;

[0045] Mapping method definition 6: In the API request, the result is always used to identify the response result, and the rest is consistent with the request;

[0046] According to the second mapping relationship and the first header file, the sub-service code is generated according to the following steps.

[0047] Step 1: Generate the corresponding sub-service registration slot based on the RPC communication framework

[0048] Step 2: Input the C++ business interface structured data into the sub-service generator and generate the corresponding service API based on the generated mapping

[0049] Step 3: According to the C++ business interface and the corresponding generation method, it is sent to the sub-service generator and service slot generator to generate sub-services and service slots.

[0050] Step 4: For multiple sub-services, perform round-robin calls to generate sub-services separately to form a sub-service set.

[0051] As an optional implementation, generating adaptation code for the first header file and the second header file according to the third mapping relationship, the first header file and the second header file, including: generating the adaptation code according to the correspondence between each interface in the first header file and each function in the second header file.

[0052] Specifically, the adaptation code is generated based on the correspondence between each interface and each function in the second header file, including: mapping the parameters of each function in the second header file to the corresponding input and output parameters of the corresponding interface in the second header file according to the number of interfaces in the first header file and the number of functions in the second header file.

[0053] The second header file is a file used by a third party company other than our company to implement business, and the adaptation code is a code used to connect our company's software system with the software system of the third party company. The adaptation code is usually used to solve the problem of incompatible interfaces or inconsistent data formats between different systems to ensure that they can communicate and interact correctly.

[0054] The third mapping relationship mentioned above includes the following three contents:

[0055] Figure 3 This is a schematic diagram of the header file mapping relationship according to an embodiment of the present invention. Figure 1 ,like Figure 3 As shown, header file A is the first header file, header file B is the second header file, and the number of functions in the second header file is consistent with the number of interfaces in the first header file. Then, the parameters in the functions of the second header file are mapped one by one to the input and output parameters in the first header file. Figure 3 For example, parameter 1 in the second header file is mapped to the input and output parameter A1 in the first header file, parameter 2 in the second header file is mapped to the input and output parameter A2 in the first header file, and parameter 3 in the second header file is mapped to the output parameter A3 in the first header file.

[0056] Figure 4 Schematic diagram of header file service mapping according to an embodiment of the present invention Figure 2 ,like Figure 4As shown, header file A is the first header file, header file B is the second header file, and the number of interfaces in the first header file is greater than the number of functions in the second header file. Then, the parameters in the functions of the second header file are mapped to the input and output parameters of multiple interfaces in the first header file. Figure 4 For example, parameter 1 in the second header file is mapped to the input and output parameter A1 of interface 1 in the first header file, parameter 2 in the second header file is mapped to the input and output parameter B1 of interface 2 in the first header file, parameter 3 in the second header file is mapped to the input and output parameter B2 of interface 2 in the first header file, parameter 4 in the second header file is mapped to the input and output parameter A2 of interface 1 in the first header file, parameter 5 in the second header file is mapped to the output parameter A3 of interface 1 in the first header file, and parameter 6 in the second header file is mapped to the output parameter B3 of interface 2 in the first header file.

[0057] Figure 5 This is a schematic diagram of the header file mapping relationship according to an embodiment of the present invention. Figure 3 ,like Figure 5 As shown, header file A is the first header file, header file B is the second header file, and the number of interfaces in the first header file is less than the number of functions in the second header file. Then, the parameters of multiple functions in the second header file are respectively mapped to the interfaces of the first header file. Figure 5 For example, the parameter 1 of the function 1 in the second header file is mapped to the input and output parameter A1 of the interface 1 in the first header file, the parameter 2 of the function 1 in the second header file is mapped to the output parameter A3 of the interface 1 in the first header file, the parameter 3 of the function 1 in the second header file is mapped to the input and output parameter B2 of the interface 1 in the first header file, the parameter 1 of the function 2 in the second header file is mapped to the input and output parameter A2 of the interface 1 in the first header file, the parameter 2 of the function 2 in the second header file is mapped to the output parameter B3 of the interface 1 in the first header file, and the parameter 3 of the function 2 in the second header file is mapped to the input and output parameter B1 of the interface 1 in the first header file.

[0058] As an optional implementation, Figure 6 This is a schematic diagram of secondary packaging development according to an embodiment of the present invention. Each business service has a custom C / C++ header file. When it comes to interconnection between systems, the third method will provide the required C / C++ header file format. One party needs to provide a system access SDK and perform secondary packaging development according to the service access header file format of the other party. The header file between the two system services is used to define the header file method to achieve rapid development and integration of each sub-service. The schematic diagram of secondary packaging development is shown in the figure below. Figure 6 shown.

[0059] As an optional implementation method, when the published service API specification is evolved and extended, incompatibility may occur in the implementation of a single business interface in the header file.

[0060] Figure 7 is an overall flow chart of a method for automatically generating codes according to an embodiment of the present invention, such as Figure 7 As shown, the process includes the following:

[0061] S701: Input terminal inputs C++ header file;

[0062] S702: The header file parsing engine parses the header file, and the parsed structured data includes namespace, class name, function name, parameter type, number of parameters, input and output parameters, function annotation, function return value, callback function, etc.

[0063] S703: storing the structured log of the header file;

[0064] S704: Generate modeling, which includes service name, API name, parameter name, self-service N, etc.

[0065] S705: Generator output, including the service API generator generating the sub-service API, the sub-service generator generating the sub-service source code; and the service registration generator generating the sub-service registration slot in combination with the structured data of S1103.

[0066] Optionally, the executor of the above steps may be a background processor, or other devices with similar processing capabilities, or a machine that integrates at least an image acquisition device and a data processing device, wherein the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include a computer, a mobile phone or other terminal, but is not limited thereto.

[0067] Through the above steps, the first header file of the target service is obtained; the target code is generated through the preset mapping relationship and the first header file, wherein the target code includes: interface specification code, sub-service code or adaptation code. This solves the problem of low efficiency of manual code development in the solution technology and improves the efficiency of code development.

[0068] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0069] In the present embodiment, a device for automatically generating code is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the description has been made no further. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented with software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0070] Figure 8 is a structural block diagram of an apparatus for automatically generating codes according to an embodiment of the present invention, such as Figure 8 As shown, the device includes an acquisition module 802 for acquiring a first header file of a target service; a generation module 804 for generating a target code through a preset mapping relationship and the first header file, wherein the target code includes: an interface specification code, a sub-service code or an adaptation code.

[0071] In an exemplary embodiment, the above-mentioned device is also used to generate the interface specification code according to the first mapping relationship and the first header file; or, to generate the sub-service code according to the second mapping relationship and the first header file; or, to generate the adaptation code of the first header file and the second header file according to a third mapping relationship, the first header file and the second header file; wherein the preset mapping relationship includes: the first mapping relationship, the second mapping relationship and the third mapping relationship.

[0072] In an exemplary embodiment, the above-mentioned device is also used to generate the interface specification code based on the mapping relationship between the data type of the first header file and the field type of the data exchange format, wherein the first mapping relationship records the mapping relationship between the data type of the code used by the first header file and the field type of the data exchange format.

[0073] In an exemplary embodiment, the above-mentioned device is also used to parse the first header file to generate intermediate expression structure information; generate the sub-service code according to the mapping relationship between each structure information in the intermediate expression structure information and each sub-service information, wherein the mapping relationship between the structure information and the sub-service information is recorded in the second mapping relationship.

[0074] In an exemplary embodiment, the apparatus is further configured to generate the adaptation code according to a correspondence between each interface in the first header file and each function in the second header file.

[0075] In an exemplary embodiment, the apparatus is further configured to map parameters of each function in the second header file to corresponding input and output parameters of the corresponding interface in the second header file according to the number of interfaces in the first header file and the number of functions in the second header file.

[0076] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0077] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0078] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0079] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0080] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0081] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0082] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method described in each embodiment of the present application when executed by a processor.

[0083] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0084] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for automatically generating code, characterized in that: include: Get the first header file of the target business; The target code is generated through a preset mapping relationship and the first header file, wherein the target code includes: an interface specification code, a sub-service code or an adaptation code.

2. The method according to claim 1, characterized in that Generating a target code through a preset mapping relationship and the first header file includes: Generate the interface specification code according to the first mapping relationship and the first header file; or, generating the sub-service code according to the second mapping relationship and the first header file; or, generating the adaptation code of the first header file and the second header file according to the third mapping relationship, the first header file and the second header file; Wherein, the preset mapping relationship includes: the first mapping relationship, the second mapping relationship and the third mapping relationship.

3. The method according to claim 2, characterized in that Generate a corresponding interface specification code according to the first mapping relationship and the first header file, including: The interface specification code is generated according to the mapping relationship between the data type of the first header file and the field type of the data exchange format, wherein the first mapping relationship records the mapping relationship between the data type of the code used by the first header file and the field type of the data exchange format.

4. The method according to claim 2, characterized in that: Generate a sub-service code according to the second mapping relationship and the first header file, including: Parsing the first header file to generate intermediate expression structure information; The sub-service code is generated according to the mapping relationship between each structure information in the intermediate expression structure information and each sub-service information, wherein the second mapping relationship records the mapping relationship between the structure information and the sub-service information.

5. The method according to claim 2, characterized in that: Generating adaptation code for the first header file and the second header file according to the third mapping relationship, the first header file, and the second header file, including: The adaptation code is generated according to the correspondence between each interface in the first header file and each function in the second header file.

6. The method according to claim 5, characterized in that Generating the adaptation code according to the correspondence between each interface in the first header file and each function in the second header file includes: According to the number of interfaces in the first header file and the number of functions in the second header file, the parameters of each function in the second header file are mapped to corresponding input and output parameters of the corresponding interface in the second header file.

7. A device for automatically generating codes, characterized in that: include: An acquisition module, used to acquire the first header file of a target business; A generation module is used to generate a target code through a preset mapping relationship and the first header file, wherein the target code includes: an interface specification code, a sub-service code or an adaptation code.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 6 when executed by a processor.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method and device for generating remote procedure call (RPC) code

    CN103235718A

  • Method, device and storage medium for invoking service interface of application program

    CN109086147A

  • Front-end code automatic generation method, device, server, system and medium

    CN113138757A

  • Service code generation method and device, electronic equipment and readable storage medium

    CN113515271A

  • Software interface adaptation method, device and system

    CN114281336A