CN114489603A - Code generation method, apparatus, electronic device, medium, and product - Google Patents

Code generation method, apparatus, electronic device, medium, and product Download PDF

Info

Publication number
CN114489603A
CN114489603A CN202210142411.9A CN202210142411A CN114489603A CN 114489603 A CN114489603 A CN 114489603A CN 202210142411 A CN202210142411 A CN 202210142411A CN 114489603 A CN114489603 A CN 114489603A
Authority
CN
China
Prior art keywords
interface
code
fields
target
code generation
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
CN202210142411.9A
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.)
Boc Financial Technology Co ltd
Original Assignee
Boc Financial Technology Co 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 Boc Financial Technology Co ltd filed Critical Boc Financial Technology Co ltd
Priority to CN202210142411.9A priority Critical patent/CN114489603A/en
Publication of CN114489603A publication Critical patent/CN114489603A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a code generation method, apparatus, electronic device, medium and product, which can be applied to the financial field or other fields. The interface code template is constructed in advance without manually compiling the interface code by developers, the field value of the field contained in the interface code template is searched from the obtained interface information, and the interface code template is filled in the field value, so that the target interface code corresponding to the interface is obtained.

Description

Code generation method, device, electronic equipment, medium and product
Technical Field
The present application relates to the field of software technologies, and in particular, to a code generation method, apparatus, electronic device, medium, and product.
Background
The front-end client and the background server need to perform data interaction through an interface, namely, developers need to write interface codes corresponding to the interface, and the front-end client achieves the purpose of interaction with the background server through the interface by calling the interface codes. Due to the wide variety of the front-end client, developers are required to write corresponding interface codes one by one according to different interfaces, and the operation is complicated.
Disclosure of Invention
In view of the above, the present application provides a code generation method, apparatus, electronic device, medium, and product.
In order to achieve the above purpose, the present application provides the following technical solutions:
according to a first aspect of embodiments of the present disclosure, there is provided a code generation method, including:
acquiring interface information corresponding to an interface, wherein the interface information comprises a plurality of fields and field values corresponding to the fields respectively, and the fields comprise: the method comprises the following steps that a communication address of a background server, a parameter name carried by a message sent to the background server, a structure of the message and a request mode of the message are set;
controlling display of a user interface for instructing a user to select an interface code template comprising a plurality of fields of a field value to be filled in;
acquiring an interface code template corresponding to the interface determined by the user interface;
and searching field values of fields contained in the interface code template from the interface information, and filling the field values into the interface code template to generate a target interface code corresponding to the interface.
In a first possible implementation manner of the first aspect, the method further includes:
searching a target file position corresponding to the target interface code based on a preset corresponding relation between the interface code and the file position;
and inserting the target interface code into the target file position of the code file of the pre-constructed front-end client.
In a second possible implementation manner of the first aspect, the obtaining interface information corresponding to an interface includes:
acquiring an interface document corresponding to the interface;
and analyzing the interface document to obtain the interface information.
In a third possible implementation manner of the first aspect, the obtaining interface information corresponding to an interface includes:
establishing communication connection with an online interface management tool, wherein the online interface management tool comprises interface information corresponding to the interface;
and obtaining interface information corresponding to the interface through the online interface management tool.
According to a second aspect of the embodiments of the present disclosure, there is provided a code generation apparatus including:
a first obtaining module, configured to obtain interface information corresponding to an interface, where the interface information includes a plurality of fields and field values corresponding to the plurality of fields, and the plurality of fields include: the method comprises the following steps that a communication address of a background server, a parameter name carried by a message sent to the background server, a structure of the message and a request mode of the message are set;
the control module is used for controlling and displaying a user interface, the user interface is used for indicating a user to select an interface code template, and the interface code template comprises a plurality of fields of field values to be filled;
the second acquisition module is used for acquiring the interface code template corresponding to the interface determined by the user interface;
and the generating module is used for searching the field value of the field contained in the interface code template from the interface information and filling the field value into the interface code template so as to generate the target interface code corresponding to the interface.
In a first possible implementation manner of the second aspect, the method further includes:
the searching module is used for searching a target file position corresponding to the target interface code based on the preset corresponding relation between the interface code and the file position;
and the inserting module is used for inserting the target interface code into the target file position of the code file of the pre-constructed front-end client.
In a second possible implementation manner of the second aspect, the first obtaining module includes:
the first acquisition unit is used for acquiring an interface document corresponding to the interface;
and the analysis unit is used for analyzing the interface document to obtain the interface information.
In a third possible implementation manner of the second aspect, the first obtaining module includes:
the connection establishing unit is used for establishing communication connection with an online interface management tool, and the online interface management tool comprises interface information corresponding to the interface;
and the second acquisition unit is used for acquiring the interface information corresponding to the interface through the online interface management tool.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the code generation method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the code generation method according to the first aspect.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product directly loadable into an internal memory of a computer, wherein the memory is included in the electronic device shown in the third aspect and contains software codes, and the computer program can be loaded into and executed by the computer to implement the code generation method according to the first aspect.
According to the technical scheme, in the code generation method provided by the application, the interface code template is constructed in advance without manually writing the interface code by developers, the field value of the field contained in the interface code template is searched from the obtained interface information, and the interface code template is filled in the field value, so that the target interface code corresponding to the interface is obtained.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a code generation method provided by an embodiment of the present application;
fig. 2 is a block diagram of a code generation apparatus according to an embodiment of the present application;
FIG. 3 is a block diagram illustrating an apparatus for an electronic device in accordance with an example embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a code generation method, a code generation device, an electronic device, a medium and a product, and before introducing the technical scheme provided by the application, a hardware architecture related to the application is explained.
The hardware architecture related to the embodiment of the application comprises: an electronic device.
For example, the electronic device may be any electronic product that can interact with a user through one or more modes of a keyboard, a touch PAD, a touch screen, a remote controller, voice interaction or handwriting equipment, for example, a mobile phone, a notebook computer, a tablet computer, a palmtop computer, a personal computer, a wearable device, a smart television, a PAD, and the like.
The electronic device can be operated with a front-end client, and the front-end client can be an application client or a web page version client or an applet.
The interface codes corresponding to the interfaces for the interaction between the front-end client and each server can be generated by the code generation method provided by the application, so that developers do not need to write the interface codes of each interface one by one, the operation is simple and convenient, and the efficiency is improved.
It can be understood that after the interface codes corresponding to the interfaces are generated, the interface codes are inserted into the corresponding positions of the code files of the front-end client, so that the front-end client can be put into use after the front-end client is developed.
It will be appreciated by those skilled in the art that the above-described electronic devices are merely exemplary, and that other electronic devices, now known or later developed, that may be suitable for use with the present disclosure are intended to be included within the scope of the present disclosure and are hereby incorporated by reference.
The following describes a code generation method provided by the embodiment of the present application with reference to the above hardware architecture.
As shown in fig. 1, a flowchart of a code generation method provided in an embodiment of the present application includes the following steps S11 to S14.
Step S11: acquiring interface information corresponding to an interface, wherein the interface information comprises a plurality of fields and field values corresponding to the fields respectively, and the fields comprise: the method comprises the steps of sending a message to a background server, wherein the message comprises a communication address of the background server, a parameter name carried by the message sent to the background server, a structure of the message and a request mode of the message.
It can be understood that, in the process of developing the front-end client, a developer disassembles each function according to the service of the front-end client, and then determines, for each function, a background server that the front-end client needs to interact with if the function is implemented, so as to determine an interface corresponding to the function. The interface is related to the functionality of the front-end client.
The interface information is the basis for generating the interface code, and the following explains why the interface information needs to include the above-described plurality of fields.
It can be understood that the front-end client communicates through Http (HyperText Transfer Protocol) Protocol during the process of interacting with the background server. The front-end client may send a message, e.g., an Http message, to the backend server, where the message includes a message header and a message body.
The packet carries a parameter name related to the interface and a field value corresponding to the parameter name. After receiving the message, the background server checks whether the parameter name carried in the message is consistent with the function of the interface, and if so, the background server feeds back a response message to the front-end client.
The following description will be given taking a function included in the front-end client as a login function as an example. The method comprises the steps that a front-end client can receive a user name and a password (parameter names carried in a message comprise the user name and the password), the front-end client sends a login request message to a background server through a login interface, the background server verifies whether the request message carries the user name and the password or not after receiving the login request message, if the request message carries the user name and the password, whether field values of the user name and the password meet requirements or not is verified, and a response message indicating whether the user name and the password pass or not is returned.
The message carries a communication Address of the background server, and the communication Address may be, for example, an IP Address (also translated into an Internet Protocol Address) and a port number. The destination address carried in the message is the communication address of the background server.
The request mode of the message includes but is not limited to: GET request mode, POST request mode, PUT request mode and Delete request mode. The request mode represents an interaction mode of the front-end client and the background server.
In the process of interaction between the front-end client and the background server, the structure of the message of the opposite side needs to be known, otherwise, the field and the field value cannot be analyzed from the message. So a parameter of the structure of the message is required.
Step S12: controlling display of a user interface for instructing a user to select an interface code template comprising a plurality of fields in which field values are to be filled.
The interface code templates are pre-constructed, and the interface code templates corresponding to different types of interfaces are different. The interface code template corresponding to each interface only includes fields required by the interface, the field values corresponding to the fields are not filled in, and illustratively, the field values corresponding to the fields can be represented by placeholders.
Illustratively, the interface code template includes at least the following fields: request mode, parameter name, and communication address of the background server.
Step S13: and acquiring an interface code template corresponding to the interface determined by the user interface.
Illustratively, each interface code template corresponds to a template name, and a user can determine the interface code template corresponding to the interface through the template name, so the user may not be a developer.
For example, the user interface may display fields contained in the interface code template, and the user may select an interface code template corresponding to a function of the interface from the fields displayed by the interface code template.
Step S14: and searching field values of fields contained in the interface code template from the interface information, and filling the field values into the interface code template to generate a target interface code corresponding to the interface.
Illustratively, if the field values of the fields included in the interface code template are all filled, the target interface code is obtained.
For example, if the field values of one or more fields in the interface code template are not found in the interface information, the display prompt box may be controlled to prompt the user to write manually.
In the code generation method provided by the embodiment of the application, developers do not need to write interface codes manually, but an interface code template is constructed in advance, field values of fields contained in the interface code template are searched from the obtained interface information, and the interface code template is filled in, so that target interface codes corresponding to the interfaces are obtained.
It can be understood that the interface code needs to be inserted into a corresponding position of the code file corresponding to the front-end client, and in the process of running the code file corresponding to the front-end client, the http request library automatically calls the interface code at the corresponding position in the code file. In an alternative implementation, the method further includes the following steps a1 to a 2.
Step A1: and searching a target file position corresponding to the target interface code based on the preset corresponding relation between the interface code and the file position.
Illustratively, the correspondence of the interface code to the file location may be altered.
Step A2: and inserting the target interface code into the target file position of the code file of the pre-constructed front-end client.
The interface codes are generated in the mode of the interface code template and are inserted into the target file position of the code file, so that the interface codes are used as modules, the code file is prevented from being too fat, and the thought is clear when a subsequent developer reads the code file.
In an alternative implementation manner, there are various implementation manners of step S11, and the embodiment of the present application provides, but is not limited to, the following three.
The first step S11 includes the following steps B1 to B2.
Step B1: and acquiring an interface document corresponding to the interface.
Illustratively, the interface document is written by a developer and uploaded into the electronic device.
The interface document comprises interface information defined by developers of the front-end client and developers of the background server together. The developers of the front-end client and the developers of the background server develop based on the interface documents in the process of developing the front-end client and the background server.
Step B2: and analyzing the interface document to obtain the interface information.
The interface document includes a plurality of fields and field values corresponding to the plurality of fields, respectively. The structure of the interface document is fixed, so the way in which the interface document is parsed can be defined based on the structure of the interface document.
The second implementation of step S11 includes the following steps C1 to C2.
Step C1: and establishing communication connection with an online interface management tool, wherein the online interface management tool comprises interface information corresponding to the interface.
For example, the online interface management tool may be: swagger, RAP, APIDOC, Spring REST Docs.
The developer can set interface information corresponding to one or more interfaces in the online interface management tool.
For example, the online interface management tool may be located in other electronic devices, and the electronic device running the front-end client may establish a remote connection with the other electronic devices.
Step C2: and obtaining interface information corresponding to the interface through the online interface management tool.
The third implementation manner of step S11 includes: and analyzing the engineering source code to obtain interface information.
In an alternative implementation, the code generation method provided by the embodiment of the present application supports commonly used plug-ins, such as IDE plug-ins. The code generation method provided by the application can be called through the IDE plug-in unit to realize the updating of the interface code.
The method is described in detail in the embodiments disclosed in the present application, and the method of the present application can be implemented by various types of apparatuses, so that an apparatus is also disclosed in the present application, and the following detailed description is given of specific embodiments.
As shown in fig. 2, a block diagram of a code generation apparatus provided in an embodiment of the present application includes: a first obtaining module 21, a control module 22, a second obtaining module 23, and a generating module 24, wherein:
a first obtaining module 21, configured to obtain interface information corresponding to an interface, where the interface information includes a plurality of fields and field values corresponding to the plurality of fields, and the plurality of fields include: the method comprises the following steps that a communication address of a background server, a parameter name carried by a message sent to the background server, a structure of the message and a request mode of the message are set;
a control module 22 for controlling display of a user interface for instructing a user to select an interface code template including a plurality of fields of a field value to be filled in;
a second obtaining module 23, configured to obtain an interface code template corresponding to the interface determined through the user interface;
the generating module 24 is configured to search field values of fields included in the interface code template from the interface information, and fill in the interface code template to generate a target interface code corresponding to the interface.
In an optional implementation manner, the method further includes:
the searching module is used for searching a target file position corresponding to the target interface code based on the preset corresponding relation between the interface code and the file position;
and the inserting module is used for inserting the target interface code into the target file position of the code file of the pre-constructed front-end client.
In an optional implementation manner, the first obtaining module includes:
the first acquisition unit is used for acquiring an interface document corresponding to the interface;
and the analysis unit is used for analyzing the interface document to obtain the interface information.
In an optional implementation manner, the first obtaining module includes:
the connection establishing unit is used for establishing communication connection with an online interface management tool, and the online interface management tool comprises interface information corresponding to the interface;
and the second acquisition unit is used for acquiring the interface information corresponding to the interface through the online interface management tool.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 3 is a block diagram illustrating an apparatus for an electronic device in accordance with an example embodiment.
Electronic devices include, but are not limited to: a processor 31, a memory 32, a network interface 33, an I/O controller 34, and a communication bus 35.
It should be noted that, as those skilled in the art will appreciate, the structure of the electronic device shown in fig. 3 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown in fig. 3, or may combine some components, or may be arranged in different components.
The following describes each component of the electronic device in detail with reference to fig. 3:
the processor 31 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 32 and calling data stored in the memory 32, thereby performing overall monitoring of the electronic device. Processor 31 may include one or more processing units; illustratively, the processor 31 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 31.
The processor 31 may be a Central Processing Unit (CPU), or an application Specific Integrated circuit (asic), or one or more Integrated circuits configured to implement embodiments of the present invention, etc.;
the Memory 32 may include Memory, such as a Random-Access Memory (RAM) 321 and a Read-Only Memory (ROM) 322, and may also include a mass storage device 323, such as at least 1 disk storage. Of course, the electronic device may also include hardware required for other services.
The memory 32 is configured to store the executable instructions of the processor 31. The processor 31 has the following functions: acquiring interface information corresponding to an interface, wherein the interface information comprises a plurality of fields and field values corresponding to the fields respectively, and the fields comprise: the method comprises the following steps that a communication address of a background server, a parameter name carried by a message sent to the background server, a structure of the message and a request mode of the message are set;
controlling display of a user interface for instructing a user to select an interface code template comprising a plurality of fields of a field value to be filled in;
acquiring an interface code template corresponding to the interface determined by the user interface;
and searching field values of fields contained in the interface code template from the interface information, and filling the field values into the interface code template to generate a target interface code corresponding to the interface.
A wired or wireless network interface 33 is configured to connect the electronic device to a network.
The processor 31, the memory 32, the network interface 33, and the I/O controller 34 may be connected to each other by a communication bus 35, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
In an exemplary embodiment, the electronic device may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic elements for performing the above-described code generation method.
In an exemplary embodiment, the disclosed embodiments provide a storage medium comprising instructions, such as the memory 32 comprising instructions, executable by the processor 31 of the electronic device to perform the above-described method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer readable storage medium is provided, which can be directly loaded into the internal memory of a computer, such as the memory 32, and contains software codes, and the computer program can be loaded into the computer and executed to implement the steps of any embodiment of the code generation method.
In an exemplary embodiment, a computer program product is also provided, which is directly loadable into an internal memory of a computer, such as a memory included in the electronic device, and contains software codes, and which, when loaded and executed by the computer, is able to implement the steps shown in any of the embodiments of the code generation method described above.
It should be noted that the code generation method, apparatus, electronic device, medium, and product provided by the present invention may be used in the financial field or other fields, for example, may be used in a code generation application scenario in the financial field. The other fields are arbitrary fields other than the financial field, for example, the electric power field. The above description is only an example, and does not limit the application fields of the code generation method, apparatus, electronic device, medium, and product provided by the present invention.
Note that the features described in the embodiments in the present specification may be replaced with or combined with each other. For the device or system type embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A code generation method, comprising:
acquiring interface information corresponding to an interface, wherein the interface information comprises a plurality of fields and field values corresponding to the fields respectively, and the fields comprise: the method comprises the following steps that a communication address of a background server, a parameter name carried by a message sent to the background server, a structure of the message and a request mode of the message are set;
controlling display of a user interface for instructing a user to select an interface code template comprising a plurality of fields of a field value to be filled in;
acquiring an interface code template corresponding to the interface determined by the user interface;
and searching field values of fields contained in the interface code template from the interface information, and filling the field values into the interface code template to generate a target interface code corresponding to the interface.
2. The code generation method according to claim 1, further comprising:
searching a target file position corresponding to the target interface code based on a preset corresponding relation between the interface code and the file position;
and inserting the target interface code into the target file position of the code file of the pre-constructed front-end client.
3. The code generation method according to claim 1 or 2, wherein the acquiring interface information corresponding to the interface includes:
acquiring an interface document corresponding to the interface;
and analyzing the interface document to obtain the interface information.
4. The code generation method according to claim 1 or 2, wherein the acquiring interface information corresponding to the interface includes:
establishing communication connection with an online interface management tool, wherein the online interface management tool comprises interface information corresponding to the interface;
and obtaining interface information corresponding to the interface through the online interface management tool.
5. A code generation apparatus, comprising:
a first obtaining module, configured to obtain interface information corresponding to an interface, where the interface information includes a plurality of fields and field values corresponding to the plurality of fields, and the plurality of fields include: the method comprises the following steps that a communication address of a background server, a parameter name carried by a message sent to the background server, a structure of the message and a request mode of the message are set;
the control module is used for controlling and displaying a user interface, the user interface is used for indicating a user to select an interface code template, and the interface code template comprises a plurality of fields of field values to be filled;
the second acquisition module is used for acquiring an interface code template corresponding to the interface determined by the user interface;
and the generating module is used for searching the field value of the field contained in the interface code template from the interface information and filling the field value into the interface code template so as to generate the target interface code corresponding to the interface.
6. The code generation apparatus according to claim 5, further comprising:
the searching module is used for searching a target file position corresponding to the target interface code based on the preset corresponding relation between the interface code and the file position;
and the inserting module is used for inserting the target interface code into the target file position of the code file of the pre-constructed front-end client.
7. The code generation apparatus according to claim 5 or 6, wherein the first obtaining module comprises:
the first acquisition unit is used for acquiring an interface document corresponding to the interface;
and the analysis unit is used for analyzing the interface document to obtain the interface information.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the code generation method of any of claims 1 to 4.
9. A computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the code generation method of any of claims 1 to 4.
10. A computer program product directly loadable into the internal memory of a computer, said memory being the memory comprised by the electronic device according to claim 8 and containing software code, said computer program being loadable and executable via the computer and being capable of implementing the code generation method according to any of claims 1 to 4.
CN202210142411.9A 2022-02-16 2022-02-16 Code generation method, apparatus, electronic device, medium, and product Pending CN114489603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210142411.9A CN114489603A (en) 2022-02-16 2022-02-16 Code generation method, apparatus, electronic device, medium, and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210142411.9A CN114489603A (en) 2022-02-16 2022-02-16 Code generation method, apparatus, electronic device, medium, and product

Publications (1)

Publication Number Publication Date
CN114489603A true CN114489603A (en) 2022-05-13

Family

ID=81479515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210142411.9A Pending CN114489603A (en) 2022-02-16 2022-02-16 Code generation method, apparatus, electronic device, medium, and product

Country Status (1)

Country Link
CN (1) CN114489603A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116339703A (en) * 2023-05-24 2023-06-27 北京蓝天航空科技股份有限公司 Bus interface code generation method and device, electronic equipment and medium
CN118034652A (en) * 2023-12-22 2024-05-14 北京谷器数据科技有限公司 Method for automatically generating service codes

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116339703A (en) * 2023-05-24 2023-06-27 北京蓝天航空科技股份有限公司 Bus interface code generation method and device, electronic equipment and medium
CN116339703B (en) * 2023-05-24 2023-08-15 北京蓝天航空科技股份有限公司 Bus interface code generation method and device, electronic equipment and medium
CN118034652A (en) * 2023-12-22 2024-05-14 北京谷器数据科技有限公司 Method for automatically generating service codes
CN118034652B (en) * 2023-12-22 2024-10-08 北京谷器数据科技有限公司 Method for automatically generating service codes

Similar Documents

Publication Publication Date Title
CN110198247B (en) Interface test method and system
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN109391509A (en) A kind of method, system and the application server of more new application
US9692852B2 (en) Uploading a form attachment
EP2323034A2 (en) Information-processing device, communication system, program, and information-processing method
CN114489603A (en) Code generation method, apparatus, electronic device, medium, and product
CN107463563B (en) Information service processing method and device of browser
CN112597020A (en) Interface testing method and device, computer equipment and storage medium
CN112887451B (en) Domain name resolution method and device and computer equipment
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
CN113761588A (en) Data verification method and device, terminal equipment and storage medium
CN111488286B (en) Method and device for independently developing Android modules
JP2016018233A (en) Script caching method and information processing device utilizing the same
CN112988311A (en) On-line experimental method based on WEB server
CN105141586B (en) A kind of method and system verified to user
CN112306591A (en) Remote debugging method and device based on page
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device
WO2022099913A1 (en) Interface configuration method and apparatus, and device and medium
CN115382216A (en) Visual game data debugging method and system
CN112000313A (en) Request response method, device, equipment and storage medium
CN114489736A (en) Interface code updating method, device, system, medium and product
CN108737350A (en) A kind of information processing method and client
CN114817794A (en) Webpage content control method, device, equipment and medium
CN113760703A (en) Method, device and equipment for generating Mock data 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