CN112685078A - Interface document generation and query method, device and computer readable storage medium - Google Patents

Interface document generation and query method, device and computer readable storage medium Download PDF

Info

Publication number
CN112685078A
CN112685078A CN202011645338.4A CN202011645338A CN112685078A CN 112685078 A CN112685078 A CN 112685078A CN 202011645338 A CN202011645338 A CN 202011645338A CN 112685078 A CN112685078 A CN 112685078A
Authority
CN
China
Prior art keywords
interface
document
functional module
project
interface document
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
CN202011645338.4A
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 Securities Co Ltd
Original Assignee
Ping An Securities 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 Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN202011645338.4A priority Critical patent/CN112685078A/en
Publication of CN112685078A publication Critical patent/CN112685078A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of data processing, and discloses an interface document generation and query method, which comprises the following steps: acquiring an interface project creating instruction, creating a document project corresponding to the interface project, and storing the association relationship between the interface project and the document project in a project relationship table; creating or updating a function module of an interface project, and generating or updating an interface document associated with the function module in the document project; when an interface document query request is received, searching a corresponding interface document according to a function module identifier in the interface document query request, and returning the corresponding interface document. The invention also relates to blockchain techniques, the interface document being stored in a blockchain. The invention automatically generates and manages the associated interface according to the functional module, reduces the cost of manually editing the document and the later maintenance cost, and ensures the consistency of the interface and the document, thereby conveniently and quickly realizing the generation and the query of the interface document.

Description

Interface document generation and query method, device and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to an interface document generation and query method, an electronic device, and a computer-readable storage medium.
Background
At present, when an interface document is generated, the definition of an interface is usually used as the interface document, a form that one interface corresponds to one interface document is adopted, one functional module in an interface project relates to a plurality of interfaces, all the interfaces of the functional module can be previewed only by checking the plurality of interface documents, and the use is inconvenient. In the prior art, when an interface document of a certain interface item or a certain functional module is queried, corresponding interface documents need to be queried one by one, and when the interface item or the functional module relates to a plurality of interfaces, a large number of interfaces are often displayed without being distinguished, so that the interface documents are not clear and convenient enough.
Therefore, how to conveniently and quickly realize generation and query of the interface document becomes a technical problem to be solved urgently.
Disclosure of Invention
In view of the above, it is necessary to provide an interface document generating and querying method for conveniently and quickly generating and querying an interface document.
The invention provides an interface document generation and query method, which is applied to an electronic device and comprises the following steps:
acquiring an interface project creating instruction, creating a document project corresponding to the interface project, and storing the association relationship between the interface project and the document project in a project relationship table;
creating or updating a function module of an interface project, and generating or updating an interface document associated with the function module in the document project;
when an interface document query request is received, searching a corresponding interface document according to a function module identifier in the interface document query request, and returning the corresponding interface document.
Optionally, the generating or updating, in the document item, an interface document associated with the functional module includes:
inquiring whether an interface document associated with the functional module is stored in the document item according to a document association table;
if the interface document associated with the functional module is not stored in the document project, generating the interface document associated with the functional module and storing the interface document into the document project, and storing the association relationship between the functional module and the interface document in a document association table;
and if the document item stores the interface document associated with the functional module, updating the interface document associated with the functional module in the document item.
Optionally, the generating and storing an interface document associated with the function module into the document item includes:
and creating an interface document in the document project, reading the interface information of the functional module in a traversing manner, and writing the interface information of the functional module into the newly created interface document in the document project according to a preset format.
Optionally, the updating the interface document associated with the functional module in the document item includes:
traversing and reading each interface information of the functional module, reading an interface associated with a document in an interface document associated with the functional module, and judging whether the functional module has an added, deleted or updated interface;
if the functional module has a new interface, adding the new interface to an interface document associated with the functional module;
if the functional module has an updated interface, replacing the updated interface with an updated interface in an interface document associated with the functional module;
if the functional module deletes an interface, removing the interface from the interface document associated with the functional module.
Optionally, the interface item includes one or more functional modules, and the functional module includes one or more interfaces.
In addition, to achieve the above object, the present invention also provides an electronic device including: the storage and the processor, the storage stores an interface document generation and query program which can run on the processor, and the interface document generation and query program realizes the following steps when being executed by the processor:
acquiring an interface project creating instruction, creating a document project corresponding to the interface project, and storing the association relationship between the interface project and the document project in a project relationship table;
creating or updating a function module of an interface project, and generating or updating an interface document associated with the function module in the document project;
when an interface document query request is received, searching a corresponding interface document according to a function module identifier in the interface document query request, and returning the corresponding interface document.
Optionally, the generating or updating, in the document item, an interface document associated with the functional module includes:
inquiring whether an interface document associated with the functional module is stored in the document item according to a document association table;
if the interface document associated with the functional module is not stored in the document project, generating the interface document associated with the functional module and storing the interface document into the document project, and storing the association relationship between the functional module and the interface document in a document association table;
and if the document item stores the interface document associated with the functional module, updating the interface document associated with the functional module in the document item.
Optionally, the generating and storing an interface document associated with the function module into the document item includes:
and creating an interface document in the document project, reading the interface information of the functional module in a traversing manner, and writing the interface information of the functional module into the newly created interface document in the document project according to a preset format.
Optionally, the updating the interface document associated with the functional module in the document item includes:
traversing and reading each interface information of the functional module, reading an interface associated with a document in an interface document associated with the functional module, and judging whether the functional module has an added, deleted or updated interface;
if the functional module has a new interface, adding the new interface to an interface document associated with the functional module;
if the functional module has an updated interface, replacing the updated interface with an updated interface in an interface document associated with the functional module;
if the functional module deletes an interface, removing the interface from the interface document associated with the functional module.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium including a storage data area storing data created according to use of a block chain node and a storage program area storing an interface document generation and query program; wherein, the interface document generation and query program can be executed by one or more processors to realize the steps of the interface document generation and query method.
Compared with the prior art, the interface document associated with the function module is automatically generated after the function module of the interface project is established, the interface document associated with the function module is synchronously and automatically updated when the interface of the function module is changed, the document editing cost and the later maintenance cost are reduced, the consistency of the interface and the document is ensured, the association relation between the function module and the corresponding interface document is stored in the document association table, the interface is managed more clearly through functional association, when the interface document is inquired, the interface related to the function module can be automatically displayed through the inquiry function module identification, and the generation and the inquiry of the interface document can be conveniently and quickly realized.
Drawings
FIG. 1 is a diagram of an electronic device according to an embodiment of the invention;
FIG. 2 is a program module diagram of one embodiment of the interface document generation and query program of FIG. 1;
FIG. 3 is a flowchart of an embodiment of an interface document generating and querying method according to the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. 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 invention.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an electronic device 1 according to an embodiment of the invention. The electronic apparatus 1 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a command set or stored in advance. The electronic device 1 may be a computer, or may be a single network server, a server group composed of a plurality of network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing, where cloud computing is one of distributed computing and is a super virtual computer composed of a group of loosely coupled computers.
In the present embodiment, the electronic device 1 includes, but is not limited to, a memory 11, a processor 12, and a network interface 13, which are communicatively connected to each other through a system bus, wherein the memory 11 stores an interface document generation and query program 10, and the interface document generation and query program 10 is executable by the processor 12. While FIG. 1 shows only an electronic device 1 having components 11-13 and an interface document generation and query program 10, those skilled in the art will appreciate that the configuration shown in FIG. 1 is not intended to be limiting of the electronic device 1, and may include fewer or more components than those shown, or some components in combination, or a different arrangement of components.
The storage 11 includes a memory and at least one type of readable storage medium. The memory provides cache for the operation of the electronic device 1; the readable storage medium may be a non-volatile storage medium such as 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 readable storage medium may be an internal storage unit of the electronic apparatus 1, such as a hard disk of the electronic apparatus 1; in other embodiments, the non-volatile storage medium may also be an external storage device of the electronic apparatus 1, such as a plug-in hard disk provided on the electronic apparatus 1, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (FlashCard), and the like. In this embodiment, the readable storage medium of the memory 11 mainly includes a storage program area and a storage data area, where the storage program area is generally used for storing an operating system and various application software installed in the electronic device 1, for example, codes of the interface document generation and query program 10 in an embodiment of the present invention; the storage data area may store data created according to the use of the blockchain node, etc., such as various types of data that have been output or are to be output.
Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 12 is generally used for controlling the overall operation of the electronic apparatus 1, such as performing control and processing related to data interaction or communication with other devices. In this embodiment, the processor 12 is configured to run the program code stored in the memory 11 or process data, for example, run the interface document generating and querying program 10.
The network interface 13 may comprise a wireless network interface or a wired network interface, and the network interface 13 is used for establishing a communication connection between the electronic device 1 and a client (not shown).
Optionally, the electronic device 1 may further include a user interface, the user interface may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an organic light-emitting diode (OLED) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic apparatus 1 and for displaying a visualized user interface.
In one embodiment of the present invention, the interface document generation and query program 10, when executed by the processor 12, performs the following steps.
Acquiring an interface project creating instruction, creating a document project corresponding to the interface project, and storing the association relationship between the interface project and the document project in a project relationship table.
In particular, the interface item comprises one or more functional modules comprising one or more interfaces. The document items comprise interface documents associated with the function modules, and the association relation between the function modules and the corresponding interface documents is stored in a document association table.
In one embodiment, the item relationship table structure is as follows:
{
"id": and/item relationship table id
"team": "" and/or the group to which it belongs
"InterfaceProjectId" ",// interface item id
"docProjectId" ",// document item id
}
Creating or updating a function module of the interface project, and generating or updating an interface document associated with the function module in the document project.
In one embodiment, whether an interface document associated with the function module is stored in the document item is queried according to a document association table: if the interface document associated with the functional module is not stored in the document project, generating the interface document associated with the functional module and storing the interface document into the document project, and storing the association relationship between the functional module and the interface document in a document association table; and if the document item stores the interface document associated with the functional module, updating the interface document associated with the functional module in the document item.
Specifically, if an interface document associated with the function module is not stored in the document project, an interface document is newly built in the document project, each interface information of the function module is read in a traversal manner, each interface information of the function module is written into a newly-built interface document in the document project according to a preset format, and then an association relationship between the function module and the interface document is stored in a document association table.
Wherein the interface document structure is as follows:
{
"id" ",// interface document id
"content" ",// interface document content
"img" [ ],// Picture description
"file" [ ],// address information
Interface for interface,// document association [ interface Id1, interface Id 2. ]/]
"name": Port Stranding interface "// interface document name
groupId, functional Module id
"project Id" ",// interface item id
"editor" "// editor
}
The structure of the document association table is as follows:
{
"id": v/document association table id
"team": "" and/or the group to which it belongs
"InterfaceProjectId" ",// interface item id
"groupName": ",// function Module name
groupId, functional Module id
"docProjectId" ",// document item id
"docId" ",// interface document id
"createdAt"// creation time
"updatedAt"// update time
Creator
If the document item stores the interface document associated with the functional module, traversing and reading each interface information of the functional module, reading the interface associated with the document in the interface document associated with the functional module and judging whether the functional module has an added, deleted or updated interface; if the functional module has a new interface, adding the new interface to an interface document associated with the functional module; if the functional module has an updated interface, replacing the updated interface with an updated interface in an interface document associated with the functional module; if the functional module deletes an interface, removing the interface from the interface document associated with the functional module.
When an interface document query request is received, searching a corresponding interface document according to a function module identifier in the interface document query request, and returning the corresponding interface document.
Specifically, after an interface document query request is received, a corresponding interface document id is searched in the document association table according to a function module id in the interface document query request, and an interface document corresponding to the interface document id is returned according to the interface document id.
It can be seen from the foregoing embodiments that, in the electronic device 1 provided in the present invention, after the functional module of the interface project is created, the interface document associated with the functional module is automatically generated, and when the interface of the functional module changes, the interface document associated with the functional module is automatically updated in a synchronous manner, so that the cost for manually editing the document and the maintenance cost in the later period are reduced, the consistency between the interface and the document are ensured, the association relationship between the functional module and the corresponding interface document is stored in the document association table, the interface is managed more clearly by associating the functions, when the interface document is queried, the interface associated with the functional module can be automatically displayed by querying the functional module identifier, and the generation and query of the interface document can be conveniently and quickly implemented.
In other embodiments, the interface document generating and querying program 10 may be further divided into one or more modules, and the one or more modules are stored in the memory 11 and executed by one or more processors (in this embodiment, the processor 12) to implement the present invention, where the module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions for describing the execution process of the interface document generating and querying program 10 in the electronic device 1.
As shown in FIG. 2, a program module diagram of one embodiment of the interface document generation and query program 10 of FIG. 1 is shown.
In one embodiment of the present invention, the interface document generation and query program 10 includes a project creation module 110, a document generation module 120, and a document query module 130, illustratively:
the project creating module 110 is configured to obtain an interface project creating instruction, create a document project corresponding to the interface project, and store an association relationship between the interface project and the document project in a project relationship table;
the document generating module 120 is configured to create or update a function module of an interface project, and generate or update an interface document associated with the function module in the document project;
the document query module 130 is configured to, when receiving an interface document query request, search for a corresponding interface document according to the functional module identifier in the interface document query request, and return the corresponding interface document.
The functions or operation steps of the program modules such as the project creation module 110, the document generation module 120, and the document query module 130 are substantially the same as those of the above embodiments, and are not repeated herein.
FIG. 3 is a flowchart illustrating an embodiment of the interface document generating and querying method according to the present invention, which includes steps S1-S3.
S1, acquiring an interface project creating instruction, creating a document project corresponding to the interface project, and storing the association relationship between the interface project and the document project in a project relationship table.
In particular, the interface item comprises one or more functional modules comprising one or more interfaces. The document items comprise interface documents associated with the function modules, and the association relation between the function modules and the corresponding interface documents is stored in a document association table.
In one embodiment, the item relationship table structure is as follows:
{
"id": and/item relationship table id
"team": "" and/or the group to which it belongs
"InterfaceProjectId" ",// interface item id
"docProjectId" ",// document item id
}
S2, creating or updating the function module of the interface project, and generating or updating the interface document associated with the function module in the document project.
In one embodiment, whether an interface document associated with the function module is stored in the document item is queried according to a document association table: if the interface document associated with the functional module is not stored in the document project, generating the interface document associated with the functional module and storing the interface document into the document project, and storing the association relationship between the functional module and the interface document in a document association table; and if the document item stores the interface document associated with the functional module, updating the interface document associated with the functional module in the document item.
Specifically, if an interface document associated with the function module is not stored in the document project, an interface document is newly built in the document project, each interface information of the function module is read in a traversal manner, each interface information of the function module is written into a newly-built interface document in the document project according to a preset format, and then an association relationship between the function module and the interface document is stored in a document association table.
Wherein the interface document structure is as follows:
{
"id" ",// interface document id
"content" ",// interface document content
"img" [ ],// Picture description
"file" [ ],// address information
Interface for interface,// document association [ interface Id1, interface Id 2. ]/]
"name": Port Stranding interface "// interface document name
groupId, functional Module id
"project Id" ",// interface item id
"editor" "// editor
}
The structure of the document association table is as follows:
{
"id": v/document association table id
"team": "" and/or the group to which it belongs
"InterfaceProjectId" ",// interface item id
"groupName": ",// function Module name
groupId, functional Module id
"docProjectId" ",// document item id
"docId" ",// interface document id
"createdAt"// creation time
"updatedAt"// update time
Creator
If the document item stores the interface document associated with the functional module, traversing and reading each interface information of the functional module, reading the interface associated with the document in the interface document associated with the functional module and judging whether the functional module has an added, deleted or updated interface; if the functional module has a new interface, adding the new interface to an interface document associated with the functional module; if the functional module has an updated interface, replacing the updated interface with an updated interface in an interface document associated with the functional module; if the functional module deletes an interface, removing the interface from the interface document associated with the functional module.
S3, when receiving the interface document inquiry request, searching the corresponding interface document according to the function module identification in the interface document inquiry request, and returning the corresponding interface document.
Specifically, after an interface document query request is received, a corresponding interface document id is searched in the document association table according to a function module id in the interface document query request, and an interface document corresponding to the interface document id is returned according to the interface document id.
It can be seen from the foregoing embodiments that, according to the interface document generation and query method provided by the present invention, after the functional module of the interface project is created, the interface document associated with the functional module is automatically generated, and when the interface of the functional module changes, the interface document associated with the functional module is automatically updated in a synchronous manner, so that the cost for manually editing the document and the maintenance cost in the later period are reduced, the consistency between the interface and the document are ensured, the association relationship between the functional module and the corresponding interface document is stored in the document association table, the interface is managed more clearly by associating the functions, and when the interface document is queried, the interface document generation and query can be conveniently and quickly realized by automatically displaying the interface associated with the functional module through the query functional module identifier.
In addition, the embodiment of the present invention further provides a computer-readable storage medium, which may be any one of or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, and the like. Included in the computer-readable storage medium is an interface document generation and query program 10, which when executed by a processor, performs the following:
a1, acquiring an interface project creating instruction, creating a document project corresponding to the interface project, and storing the association relationship between the interface project and the document project in a project relationship table;
a2, creating or updating a function module of an interface project, and generating or updating an interface document associated with the function module in the document project;
a3, when receiving an interface document inquiry request, searching a corresponding interface document according to the function module identification in the interface document inquiry request, and returning the corresponding interface document.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the specific implementation of the interface document generating and querying method and the electronic device, and will not be described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
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 invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as 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 invention.
The block chain 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. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An interface document generation and query method applied to an electronic device is characterized by comprising the following steps:
acquiring an interface project creating instruction, creating a document project corresponding to the interface project, and storing the association relationship between the interface project and the document project in a project relationship table;
creating or updating a function module of an interface project, and generating or updating an interface document associated with the function module in the document project;
when an interface document query request is received, searching a corresponding interface document according to a function module identifier in the interface document query request, and returning the corresponding interface document.
2. The interface document generation and query method of claim 1, wherein generating or updating the interface document associated with the functional module in the document project comprises:
inquiring whether an interface document associated with the functional module is stored in the document item according to a document association table;
if the interface document associated with the functional module is not stored in the document project, generating the interface document associated with the functional module and storing the interface document into the document project, and storing the association relationship between the functional module and the interface document in a document association table;
and if the document item stores the interface document associated with the functional module, updating the interface document associated with the functional module in the document item.
3. The interface document generation and query method of claim 2, wherein generating and storing the interface document associated with the functional module into the document project comprises:
and creating an interface document in the document project, reading the interface information of the functional module in a traversing manner, and writing the interface information of the functional module into the newly created interface document in the document project according to a preset format.
4. The interface document generation and query method of claim 2, wherein said updating the interface document associated with the functional module in the document project comprises:
traversing and reading each interface information of the functional module, reading an interface associated with a document in an interface document associated with the functional module, and judging whether the functional module has an added, deleted or updated interface;
if the functional module has a new interface, adding the new interface to an interface document associated with the functional module;
if the functional module has an updated interface, replacing the updated interface with an updated interface in an interface document associated with the functional module;
if the functional module deletes an interface, removing the interface from the interface document associated with the functional module.
5. The interface document generation and query method of claim 1, wherein the interface items include one or more functional modules, the functional modules including one or more interfaces.
6. An electronic device, comprising: the storage and the processor, the storage stores an interface document generation and query program which can run on the processor, and the interface document generation and query program realizes the following steps when being executed by the processor:
acquiring an interface project creating instruction, creating a document project corresponding to the interface project, and storing the association relationship between the interface project and the document project in a project relationship table;
creating or updating a function module of an interface project, and generating or updating an interface document associated with the function module in the document project;
when an interface document query request is received, searching a corresponding interface document according to a function module identifier in the interface document query request, and returning the corresponding interface document.
7. The electronic device of claim 6, wherein the generating or updating an interface document associated with the functional module in the document item comprises:
inquiring whether an interface document associated with the functional module is stored in the document item according to a document association table;
if the interface document associated with the functional module is not stored in the document project, generating the interface document associated with the functional module and storing the interface document into the document project, and storing the association relationship between the functional module and the interface document in a document association table;
and if the document item stores the interface document associated with the functional module, updating the interface document associated with the functional module in the document item.
8. The electronic device of claim 7, wherein the generating and storing into the document item an interface document associated with the functional module comprises:
and creating an interface document in the document project, reading the interface information of the functional module in a traversing manner, and writing the interface information of the functional module into the newly created interface document in the document project according to a preset format.
9. The electronic device of claim 7, wherein the updating the interface document associated with the functional module in the document item comprises:
traversing and reading each interface information of the functional module, reading an interface associated with a document in an interface document associated with the functional module, and judging whether the functional module has an added, deleted or updated interface;
if the functional module has a new interface, adding the new interface to an interface document associated with the functional module;
if the functional module has an updated interface, replacing the updated interface with an updated interface in an interface document associated with the functional module;
if the functional module deletes an interface, removing the interface from the interface document associated with the functional module.
10. A computer-readable storage medium comprising a storage data area storing data created according to use of a block chain node and a storage program area storing an interface document generation and query program; wherein the interface document generation and query program is executable by one or more processors to implement the steps of the interface document generation and query method according to any one of claims 1 to 5.
CN202011645338.4A 2020-12-30 2020-12-30 Interface document generation and query method, device and computer readable storage medium Pending CN112685078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011645338.4A CN112685078A (en) 2020-12-30 2020-12-30 Interface document generation and query method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011645338.4A CN112685078A (en) 2020-12-30 2020-12-30 Interface document generation and query method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112685078A true CN112685078A (en) 2021-04-20

Family

ID=75457014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011645338.4A Pending CN112685078A (en) 2020-12-30 2020-12-30 Interface document generation and query method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112685078A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794997A (en) * 2021-09-29 2021-12-14 中国银行股份有限公司 Interface document management method and device based on block chain and 5G message

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794997A (en) * 2021-09-29 2021-12-14 中国银行股份有限公司 Interface document management method and device based on block chain and 5G message
CN113794997B (en) * 2021-09-29 2022-11-11 中国银行股份有限公司 Interface document management method and device based on block chain and 5G message

Similar Documents

Publication Publication Date Title
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN108388599B (en) Electronic device, data migration and calling method and storage medium
CN111400308B (en) Processing method of cache data, electronic device and readable storage medium
CN109597979B (en) List table generation method and device, computer equipment and storage medium
WO2019071898A1 (en) Electronic device, database query script generation method and storage medium
CN110837366A (en) Form generation method, electronic device and computer readable storage medium
CN109491962B (en) File directory tree management method and related device
CN112506486A (en) Search system establishing method and device, electronic equipment and readable storage medium
CN111723077A (en) Data dictionary maintenance method and device and computer equipment
CN112464625A (en) Receipt generation method and device, computer equipment and storage medium
CN111159183B (en) Report generation method, electronic device and computer readable storage medium
CN112860737A (en) Data query method and device, electronic equipment and readable storage medium
CN115543198A (en) Method and device for lake entering of unstructured data, electronic equipment and storage medium
CN108763341B (en) Electronic device, automatic table building method and storage medium
CN115455925A (en) Contract generation method and device, electronic equipment and storage medium
CN107967305B (en) Image file uploading method, server and readable storage medium
CN108108392B (en) Commodity data management method, commodity data management device, computer equipment and storage medium
CN112685078A (en) Interface document generation and query method, device and computer readable storage medium
CN113590703B (en) ES data importing method and device, electronic equipment and readable storage medium
CN115617797A (en) Dynamic expansion method of service metadata field, electronic equipment and storage medium
CN109446159B (en) Multi-version file management method, server and computer readable storage medium
CN111585897B (en) Request route management method, system, computer system and readable storage medium
CN114169306A (en) Method, device and equipment for generating electronic receipt and readable storage medium
CN108566293B (en) Electronic device, zk node information notification method, and storage medium
CN112328656A (en) Service query method, device, equipment and storage medium based on middle platform architecture

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