CN117591145A - Updating method and device of interface document, electronic equipment and storage medium - Google Patents

Updating method and device of interface document, electronic equipment and storage medium Download PDF

Info

Publication number
CN117591145A
CN117591145A CN202311466279.8A CN202311466279A CN117591145A CN 117591145 A CN117591145 A CN 117591145A CN 202311466279 A CN202311466279 A CN 202311466279A CN 117591145 A CN117591145 A CN 117591145A
Authority
CN
China
Prior art keywords
interface
code file
document
definition data
target
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
CN202311466279.8A
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.)
Beijing Yunsizhixue Technology Co ltd
Original Assignee
Beijing Yunsizhixue 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 Beijing Yunsizhixue Technology Co ltd filed Critical Beijing Yunsizhixue Technology Co ltd
Priority to CN202311466279.8A priority Critical patent/CN117591145A/en
Publication of CN117591145A publication Critical patent/CN117591145A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses an updating method and device of an interface document, electronic equipment and a storage medium, relating to the technical field of data processing, and mainly comprising the following technical scheme: after the update code file corresponding to the application program is obtained, judging whether the target interface document needs to be updated according to a first interface code file in the update code file; generating first interface definition data based on the first interface code file when the target interface document is determined to need to be updated; updating the target interface document based on the first interface definition data to obtain an updated target interface document. Compared with the related art, when the target interface document is determined to need to be updated, the embodiment of the application generates the first interface definition data based on the first interface code file, updates the target interface document based on the first interface definition data, obtains the updated target interface document, and realizes automatic updating and maintenance of the target interface document.

Description

Updating method and device of interface document, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of data processing, and in particular relates to an updating method and device of an interface document, electronic equipment and a storage medium.
Background
The interface document is a description document of each interface in the application program, so that developers and users can better understand and use the interface, and when the code of the application program is updated, the interface document needs to be updated and maintained.
In the related art, the updating method of the interface document updates and maintains the interface document manually, and the application program development efficiency is low because the accuracy and coverage rate of manually updating and maintaining the interface document are low.
Disclosure of Invention
The disclosure provides an updating method and device of an interface document, electronic equipment and a storage medium. The method mainly aims to solve the problem of low development efficiency of the application program caused by low accuracy and coverage rate of manually updating and maintaining the interface document.
According to a first aspect of the present disclosure, there is provided an updating method of an interface document, including:
after an update code file corresponding to an application program is obtained, judging whether a target interface document needs to be updated according to a first interface code file in the update code file; the target interface document is an interface document generated based on a second interface code file of the application program;
Generating first interface definition data based on the first interface code file when the target interface document is determined to need to be updated;
and updating the target interface document based on the first interface definition data to obtain an updated target interface document.
Optionally, before determining whether the target interface document needs to be updated according to the first interface code file in the update code files, the method includes:
acquiring the second interface code file;
invoking the preset language algorithm to calculate the second interface code file to generate second interface definition data, wherein the target interface file consists of a plurality of second interface definition data;
and storing the target interface document, and visually displaying the target interface document.
Optionally, the determining whether the target interface document needs to be updated according to the first interface code file in the update code files includes:
comparing the first interface code file with the second interface code file;
and if the first interface code file is inconsistent with the second interface code file, determining that the target interface document needs to be updated.
Optionally, the generating the first interface definition data based on the first interface code file includes:
and calling the preset language algorithm to calculate the first interface code file, and generating the first interface definition data.
Optionally, the updating the target interface document based on the first interface definition data, and obtaining the updated target interface document includes:
determining whether a first interface name of the first interface definition data is consistent with a second interface name of the second interface definition data;
if the first interface name is inconsistent with the second interface name, storing the first interface definition data, and marking the second interface definition data as unavailable;
and if the first interface name is consistent with the second interface name, updating the second interface definition data into the first interface definition data to obtain an updated target interface document.
Optionally, before updating the target interface document based on the first interface definition data to obtain an updated target interface document, the method further includes:
and if the associated demand document exists in the updated code file, calling the preset language algorithm to calculate the associated demand document, generating associated demand description data, and storing the associated demand description data.
Optionally, after generating the first interface definition data based on the first interface code file, the method further comprises:
modifying the first interface definition data in response to a received modification instruction for the first interface definition data;
and re-inputting the modified first interface definition data into the preset language algorithm to adjust and optimize the preset language algorithm.
According to a second aspect of the present disclosure, there is provided an updating apparatus of an interface document, including:
the judging unit is used for judging whether the target interface document needs to be updated according to the first interface code file in the update code file after the update code file corresponding to the application program is acquired; the target interface document is an interface document generated based on a second interface code file of the application program;
a first generating unit, configured to generate first interface definition data based on the first interface code file when it is determined that the target interface document needs to be updated;
and the updating unit is used for updating the target interface document based on the first interface definition data to obtain the updated target interface document.
Optionally, before determining whether the target interface document needs to be updated according to the first interface code file in the update code files, the apparatus includes:
an obtaining unit, configured to obtain the second interface code file;
the second generating unit is used for calling the preset language algorithm to calculate the second interface code file to generate the second interface definition data, and the target interface file consists of a plurality of second interface definition data;
and the first storage unit is used for storing the target interface document and visually displaying the target interface document.
Optionally, the judging unit includes:
the comparison module is used for comparing the first interface code file with the second interface code file;
and the determining module is used for determining that the target interface document needs to be updated when the first interface code file is inconsistent with the second interface code file.
Optionally, the first generating unit includes:
and the generation module is used for calling the preset language algorithm to calculate the first interface code file and generating the first interface definition data.
Optionally, the updating unit includes:
A determining module, configured to determine whether a first interface name of the first interface definition data is consistent with a second interface name of the second interface definition data;
the storage module is used for storing the first interface definition data and marking the second interface definition data as unavailable when the first interface name is inconsistent with the second interface name;
and the updating module is used for updating the second interface definition data into the first interface definition data when the first interface name is consistent with the second interface name, so as to obtain an updated target interface document.
Optionally, before updating the target interface document based on the first interface definition data to obtain an updated target interface document, the apparatus further includes:
and the second storage unit is used for calling the preset language algorithm to calculate the associated demand document when the associated demand document exists in the updated code file, generating associated demand description data and storing the associated demand description data.
Optionally, after generating the first interface definition data based on the first interface code file, the apparatus further includes:
A modifying unit, configured to modify the first interface definition data in response to a received modification instruction for the first interface definition data;
the input unit is used for inputting the modified first interface definition data into the preset language algorithm again so as to adjust and optimize the preset language algorithm.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of the preceding first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect described above.
According to the method and device for updating the interface document, the electronic equipment and the storage medium, after the update code file corresponding to the application program is obtained, whether the target interface document needs to be updated is judged according to the first interface code file in the update code file; the target interface document is an interface document generated based on a second interface code file of the application program; generating first interface definition data based on the first interface code file when the target interface document is determined to need to be updated; and updating the target interface document based on the first interface definition data to obtain an updated target interface document. Compared with the related art, when the target interface document is determined to need to be updated, the embodiment of the application generates the first interface definition data based on the first interface code file, updates the target interface document based on the first interface definition data, obtains the updated target interface document, and realizes automatic updating and maintenance of the target interface document.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flowchart of a method for updating an interface document according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a processing procedure of an interface code file according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a method for generating a target interface document according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of an apparatus for updating an interface document according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another device for updating an interface document according to an embodiment of the present disclosure;
fig. 6 is a schematic block diagram of an example electronic device provided by an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The method and apparatus for updating an interface document, an electronic device, and a storage medium according to embodiments of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of an updating method of an interface document according to an embodiment of the disclosure.
As shown in fig. 1, the method is applied to an interface document system of a server, and comprises the following steps:
step 101, after an update code file corresponding to an application program is obtained, judging whether a target interface document needs to be updated according to a first interface code file in the update code file; wherein the target interface document is an interface document generated based on a second interface code file of the application program.
In order to facilitate better understanding of the processing procedure of the interface code file, as shown in fig. 2, fig. 2 is a schematic flow chart of the processing procedure of the interface code file provided in the embodiment of the present disclosure, after the update code file of the application program is uploaded to the server, a first interface code file in the update code file may also be updated, so that it needs to be determined whether the first interface code file is updated or not; after the interface document system obtains the update code file corresponding to the application program, the first interface code file of the update code file is compared with the second interface code file of the application program, if the first interface code file is inconsistent with the second interface code file, the target interface document is determined to need to be updated, wherein the interface code file is a code defining the interaction function between different application programs, the interface code file can enable interaction between different application programs, for example, mobile phone chat software can directly call a mobile phone gallery in the mobile phone chat software, pictures in the mobile phone gallery are sent in the mobile phone chat software, the first interface code file is the interface code file after the update of the application program, the second interface code file is the interface code file before the update of the application program, the interfaces include but are not limited to application program interfaces (Application Programming Interface, API), message interfaces and network service interfaces, the type and number of the interfaces are not limited, the target interface document is the interface document before the update of the application program, the interface document is the interface document contains the interface, the interface name, the interface is not limited to the interface, the interface name is better for the application program, the user interface is better understood by the user interface, and the user interface is better understood by the user interface is required to be provided by the user interface, and the user interface is better understood by the user interface.
And 102, generating first interface definition data based on the first interface code file when the target interface file is determined to need to be updated.
With continued reference to fig. 2, when it is determined that the first interface code file is inconsistent with the second interface code file, that is, when it is determined that the target interface file needs to be updated, an interface document system invokes a preset language algorithm to calculate the first interface code file, generate the first interface definition data, so as to prepare for updating the target interface file, where the interface definition data is an explanation document of a corresponding interface code file, all interface definition data corresponding to the interface code file form an interface document, the interface definition data includes, but is not limited to, information such as an interface name, an interface description, an interface method, a request parameter, a return parameter, etc. corresponding to the interface code file, the first interface definition data is an interface definition data corresponding to the first interface code file, the target interface document is an interface document formed by interface definition data corresponding to the interface code file before updating an application program, and the preset language algorithm is an algorithm capable of obtaining an excellent algorithm expression on a downstream task (such as text classification, language generation, etc.) after training a large amount of natural language text, the preset language can perform general processing on a natural language processing task and efficiently process the preset language, and the preset language defining the algorithm is not limited to the method.
And step 103, updating the target interface document based on the first interface definition data to obtain an updated target interface document.
With continued reference to fig. 2, after the first interface definition data is generated, comparing the first interface definition data with second interface definition data of the target interface document, where the second interface definition data is interface definition data corresponding to the second interface code file, before determining, according to the first interface code file in the update code file, whether the target interface document needs to be updated, the interface document system invokes a preset language algorithm to calculate the second interface code file, so as to generate the second interface definition data, and if a first interface name in the first interface definition data is inconsistent with a second interface name in the second interface definition data, determining that the first interface definition data is interface definition data of a new interface, and the second interface definition data is interface definition data of a deleted interface, storing the first interface definition data, and marking the second interface definition data as unavailable; and if the first interface name is consistent with the second interface name, determining that the first interface definition data is interface definition data of a modified interface, updating the second interface definition data into the first interface definition data, and obtaining an updated target interface document through updating the interface definition data in the target interface document, wherein the newly added interface is a newly added interface after updating an application program, the deleted interface is an interface deleted after updating the application program, and the modified interface is an interface modified after updating the application program.
According to the method for updating the interface document, after the update code file corresponding to the application program is obtained, whether the target interface document needs to be updated is judged according to the first interface code file in the update code file; the target interface document is an interface document generated based on a second interface code file of the application program; generating first interface definition data based on the first interface code file when the target interface document is determined to need to be updated; and updating the target interface document based on the first interface definition data to obtain an updated target interface document. Compared with the related art, when the target interface document is determined to need to be updated, the embodiment of the application generates the first interface definition data based on the first interface code file, updates the target interface document based on the first interface definition data, obtains the updated target interface document, and realizes automatic updating and maintenance of the target interface document.
In practical application, before determining whether the target interface document needs to be updated according to the first interface code file in the update code file, the target interface document needs to be generated and stored, so that developers and users can better understand and use the second interface code file, and fig. 3 is a flow chart of a method for generating the target interface document according to an embodiment of the disclosure, where the method includes:
Step 201, obtaining the second interface code file.
The application program adopts a model, view and controller architecture (Model, view, controller, MCV), and the interface layer and the controller layer of the application program are fixed in the prefix of the code file directory where the interface layer and the controller layer are located, for example router, controller, so that the separation and modularization of codes are realized, and the required code files can be accurately acquired, but it should be clear that the description is not intended to limit that the application program can only adopt the MCV architecture, and the separation and modularization of codes can be realized in other ways; and acquiring the second interface code file according to the directory where the second interface code file is located, so as to generate the target interface file according to the second interface code file, for example, the directory corresponding to the second interface code file is api.
Step 202, calling the preset language algorithm to calculate the second interface code file, generating the second interface definition data, and forming the target interface document by a plurality of second interface definition data.
After the second interface code file is obtained, the interface document system calls the preset language algorithm to calculate the second interface code file to generate second interface definition data, wherein the second interface definition data comprises, but is not limited to, information such as an interface name, an interface description, an interface method, a request parameter, a return value and the like corresponding to the first interface code file, the number of the second interface code files is at least one, the content of different second interface code files is different, the second interface definition data generated by different second interface code files is also different, and at least one second interface definition data forms the target interface document, but it should be clear that the description is not meant to limit the number of the second interface definition data.
And 203, storing the target interface document, and visually displaying the target interface document.
After the target interface document is generated, the interface document system stores the target interface document, and renders second interface definition data of the target interface document into a front-end template for display, so that developers and users can view the target interface document at any time.
As a refinement of step 101, when determining whether the target interface document needs to be updated according to the first interface code file in the update code files, if the first interface code file in the update code files corresponding to the application program is consistent with the second interface code file, it is determined that the interface code file of the application program is not changed, and if the first interface code file is inconsistent with the second interface code file, it is determined that the interface code file of the application program is changed, and the target interface file needs to be updated, so that the determination whether the target interface document needs to be updated may be implemented in the following manner, but is not limited to: comparing the code of the first interface code file with the code of the second interface code file; and if the codes of the first interface code file and the second interface code file are inconsistent, determining that the interface of the application program is changed, and updating the target interface document.
As a refinement of step 102, when generating the first interface definition data based on the first interface code file, since the first interface code file is inconsistent with the second interface code file, it is determined that the interface code file of the application program is changed, and the target interface file needs to be updated, so that the first interface definition data corresponding to the first interface code file needs to be calculated, which may be implemented by, but not limited to, the following ways: and the interface document system calls the preset language algorithm to calculate the first interface code file to generate the first interface definition data, wherein the first interface definition data comprises, but is not limited to, information such as an interface name, an interface description, an interface method, a request parameter, a return value and the like corresponding to the first interface code file, so that the target interface document is updated based on the first interface definition data.
As a refinement of step 103, when updating the target interface document based on the first interface definition data to obtain an updated target interface document, the following processing manner may be used, but is not limited to, as the first interface name of the first interface definition data may be the same as or may be different from the second interface name of the second interface definition data: determining whether a first interface name of the first interface definition data is consistent with a second interface name of the second interface definition data; if the first interface name is inconsistent with the second interface name, determining that the first interface definition data is the interface definition data of a newly added interface, the second interface definition data is the interface definition data of a deleted interface, storing the first interface definition data, and marking the second interface definition data as unavailable; and if the first interface name is consistent with the second interface name, determining that the first interface definition data is the interface definition data of the modified interface, updating the second interface definition data into the first interface definition data, and obtaining an updated target interface document through updating the target interface definition data.
As a refinement of step 103, before updating the target interface document based on the first interface definition data to obtain an updated target interface document, where there may be a need for association between multiple interfaces, a developer may upload the association need document and the update code file together to a server, so that the association need document may more clearly express a need description between multiple interfaces, where the association need document needs to be rearranged and stored, and may be implemented in the following manners, but not limited to: and if the associated demand document exists in the updated code file, calling the preset language algorithm to calculate the associated demand document, generating associated demand description data, and supplementing the associated demand description data into the target interface document so that the developer can better understand the overall demand of the application program by receiving the user.
In practical applications, the interface definition data generated by the preset language algorithm may sometimes have an inaccurate condition, so that manual verification and modification are required, and the method can be implemented by adopting, but is not limited to, the following modes: and in response to a received modification instruction for the first interface definition data, modifying the first interface definition data, re-inputting the modified first interface definition data into the preset language algorithm to adjust and optimize the preset language algorithm, after the first interface definition data is generated, when an administrator checks, the error of the first interface definition data generated by the interface document system is found, modifying the first interface definition data, and re-feeding the modified first interface definition data as training data to the preset language algorithm for training, which is equivalent to performing feedback optimization on the preset language algorithm for one time, and enhancing the generation effect of the subsequent preset language algorithm.
In summary, the embodiments of the present disclosure can achieve the following effects:
1. when the target interface document is determined to need to be updated, the embodiment of the application generates the first interface definition data based on the first interface code file, updates the target interface document based on the first interface definition data, obtains the updated target interface document, and realizes automatic updating and maintenance of the target interface document.
2. According to the method for generating the interface file by using the artificial intelligence, the interface file can be generated for the historical interface code file, and the corresponding interface file is automatically updated after the interface code file is changed and is online, so that a developer is focused on code writing, complicated interface file updating maintenance work is not needed, the whole research and development efficiency is improved, the high coverage rate and the automatic following of the updating of the interface code file are achieved, the docking cost between different application programs is improved, and the cost of workers is reduced.
Corresponding to the updating method of the interface document, the invention also provides an updating device of the interface document. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, details not disclosed in the device embodiment may refer to the above-mentioned method embodiment, and details are not described in detail in the present invention.
Fig. 4 is a schematic structural diagram of an apparatus for updating an interface document according to an embodiment of the present disclosure, as shown in fig. 4, including:
a judging unit 31, configured to judge whether the target interface document needs to be updated according to a first interface code file in the update code files after acquiring the update code files corresponding to the application program; the target interface document is an interface document generated based on a second interface code file of the application program;
a first generating unit 32, configured to generate first interface definition data based on the first interface code file when it is determined that the target interface document needs to be updated;
and an updating unit 33, configured to update the target interface document based on the first interface definition data, to obtain an updated target interface document.
According to the updating device of the interface document, after the updating code file corresponding to the application program is obtained, whether the target interface document needs to be updated is judged according to the first interface code file in the updating code file; the target interface document is an interface document generated based on a second interface code file of the application program; generating first interface definition data based on the first interface code file when the target interface document is determined to need to be updated; and updating the target interface document based on the first interface definition data to obtain an updated target interface document. Compared with the related art, when the target interface document is determined to need to be updated, the embodiment of the application generates the first interface definition data based on the first interface code file, updates the target interface document based on the first interface definition data, obtains the updated target interface document, and realizes automatic updating and maintenance of the target interface document.
Further, in one possible implementation manner of this embodiment, as shown in fig. 5, before determining, according to a first interface code file in the update code files, whether the target interface document needs to be updated, the apparatus includes:
an obtaining unit 34, configured to obtain the second interface code file;
a second generating unit 35, configured to invoke the preset language algorithm to calculate the second interface code file, generate the second interface definition data, and make up a target interface document with a plurality of second interface definition data;
and the first storage unit 36 is used for storing the target interface document and visually displaying the target interface document.
Further, in one possible implementation manner of the present embodiment, as shown in fig. 5, the determining unit 31 includes:
a comparing module 311, configured to compare the first interface code file with the second interface code file;
a determining module 312, configured to determine that the target interface document needs to be updated when the first interface code file is inconsistent with the second interface code file.
Further, in one possible implementation manner of the present embodiment, as shown in fig. 5, the first generating unit 32 includes:
The generating module 321 is configured to invoke the preset language algorithm to calculate the first interface code file, and generate the first interface definition data.
Further, in one possible implementation manner of this embodiment, as shown in fig. 5, the updating unit 33 includes:
a determining module 331, configured to determine whether a first interface name of the first interface definition data is consistent with a second interface name of the second interface definition data;
a storage module 332, configured to store the first interface definition data and mark the second interface definition data as unavailable if it is determined that the first interface name is inconsistent with the second interface name;
and an updating module 333, configured to update the second interface definition data to the first interface definition data to obtain an updated target interface document if the first interface name is determined to be consistent with the second interface name.
Further, in a possible implementation manner of this embodiment, as shown in fig. 5, before updating the target interface document based on the first interface definition data, the apparatus further includes:
And the second storage unit 37 is configured to call the preset language algorithm to calculate the associated demand document when the associated demand document exists in the update code file, generate associated demand description data, and store the associated demand description data.
Further, in a possible implementation manner of this embodiment, as shown in fig. 5, after generating the first interface definition data based on the first interface code file, the apparatus further includes:
a modifying unit 38, configured to modify the first interface definition data in response to a received modification instruction for the first interface definition data;
the input unit 39 is configured to re-input the modified first interface definition data into the preset language algorithm, so as to adjust and optimize the preset language algorithm.
The foregoing explanation of the method embodiment is also applicable to the apparatus of this embodiment, and the principle is the same, and this embodiment is not limited thereto.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 6 shows a schematic block diagram of an example electronic device 400 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 400 includes a computing unit 401 that can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 402 or a computer program loaded from a storage unit 408 into a RAM (Random Access Memory ) 403. In RAM 403, various programs and data required for the operation of device 400 may also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An I/O (Input/Output) interface 405 is also connected to bus 404.
Various components in device 400 are connected to I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, etc.; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408, such as a magnetic disk, optical disk, etc.; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 401 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 401 include, but are not limited to, a CPU (Central Processing Unit ), a GPU (Graphic Processing Units, graphics processing unit), various dedicated AI (Artificial Intell igence ) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor ), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the respective methods and processes described above, for example, the update method of the interface document. For example, in some embodiments, the method of updating an interface document may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 400 via the ROM 402 and/or the communication unit 409. When the computer program is loaded into RAM 403 and executed by computing unit 401, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the aforementioned updating method of the interface document in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, FPGA (Field Programmable Gate Array ), ASIC (application-specific integrated circuit), ASSP (Appl ication Specific Standard Product, application-specific standard product), SOC (System On Chip ), CPLD (Complex Programmable Logic Device, complex programmable logic device), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory, erasable programmable read-Only Memory) or flash Memory, an optical fiber, a CD-ROM (Compact Di sc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display ) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network ), WAN (Wide Area Network, wide area network), internet and blockchain networks.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
It should be noted that, artificial intelligence is a subject of studying a certain thought process and intelligent behavior (such as learning, reasoning, thinking, planning, etc.) of a computer to simulate a person, and has a technology at both hardware and software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge graph technology and the like.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (10)

1. A method for updating an interface document, comprising:
after an update code file corresponding to an application program is obtained, judging whether a target interface document needs to be updated according to a first interface code file in the update code file; the target interface document is an interface document generated based on a second interface code file of the application program;
generating first interface definition data based on the first interface code file when the target interface document is determined to need to be updated;
and updating the target interface document based on the first interface definition data to obtain an updated target interface document.
2. The method of claim 1, wherein prior to determining from a first interface code file of the update code files whether a target interface document needs to be updated, the method further comprises:
acquiring the second interface code file;
invoking the preset language algorithm to calculate the second interface code file to generate second interface definition data, wherein the target interface file consists of a plurality of second interface definition data;
and storing the target interface document, and visually displaying the target interface document.
3. The method of claim 2, wherein determining whether the target interface document needs to be updated based on the first interface code file in the update code files comprises:
comparing the first interface code file with the second interface code file;
and if the first interface code file is inconsistent with the second interface code file, determining that the target interface document needs to be updated.
4. The method of claim 3, wherein generating first interface definition data based on the first interface code file comprises:
and calling the preset language algorithm to calculate the first interface code file, and generating the first interface definition data.
5. The method of claim 4, wherein updating the target interface document based on the first interface definition data to obtain an updated target interface document comprises:
determining whether a first interface name of the first interface definition data is consistent with a second interface name of the second interface definition data;
if the first interface name is inconsistent with the second interface name, storing the first interface definition data, and marking the second interface definition data as unavailable;
And if the first interface name is consistent with the second interface name, updating the second interface definition data into the first interface definition data to obtain an updated target interface document.
6. The method of claim 4, wherein prior to updating the target interface document based on the first interface definition data to obtain an updated target interface document, the method further comprises:
and if the associated demand document exists in the updated code file, calling the preset language algorithm to calculate the associated demand document, generating associated demand description data, and storing the associated demand description data.
7. The method of claim 4, wherein after generating first interface definition data based on the first interface code file, the method further comprises:
modifying the first interface definition data in response to a received modification instruction for the first interface definition data;
and re-inputting the modified first interface definition data into the preset language algorithm to adjust and optimize the preset language algorithm.
8. An updating apparatus for an interface document, comprising:
the judging unit is used for judging whether the target interface document needs to be updated according to the first interface code file in the update code file after the update code file corresponding to the application program is acquired; the target interface document is an interface document generated based on a second interface code file of the application program;
a first generating unit, configured to generate first interface definition data based on the first interface code file when it is determined that the target interface document needs to be updated;
and the updating unit is used for updating the target interface document based on the first interface definition data to obtain the updated target interface document.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN202311466279.8A 2023-11-06 2023-11-06 Updating method and device of interface document, electronic equipment and storage medium Pending CN117591145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311466279.8A CN117591145A (en) 2023-11-06 2023-11-06 Updating method and device of interface document, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311466279.8A CN117591145A (en) 2023-11-06 2023-11-06 Updating method and device of interface document, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117591145A true CN117591145A (en) 2024-02-23

Family

ID=89912448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311466279.8A Pending CN117591145A (en) 2023-11-06 2023-11-06 Updating method and device of interface document, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117591145A (en)

Similar Documents

Publication Publication Date Title
US20220198137A1 (en) Text error-correcting method, apparatus, electronic device and readable storage medium
CN112527281B (en) Operator upgrading method and device based on artificial intelligence, electronic equipment and medium
CN113011155B (en) Method, apparatus, device and storage medium for text matching
US20240144570A1 (en) Method for generating drivable 3d character, electronic device and storage medium
CN113037489B (en) Data processing method, device, equipment and storage medium
CN113033346B (en) Text detection method and device and electronic equipment
CN113704058A (en) Business model monitoring method and device and electronic equipment
CN117591145A (en) Updating method and device of interface document, electronic equipment and storage medium
CN114048863A (en) Data processing method, data processing device, electronic equipment and storage medium
CN114549785A (en) Method and device for generating model substrate, electronic equipment and storage medium
CN113138760A (en) Page generation method and device, electronic equipment and medium
CN112560462B (en) Event extraction service generation method, device, server and medium
CN114816467B (en) Upgrade file generation method and device and electronic equipment
CN116071422B (en) Method and device for adjusting brightness of virtual equipment facing meta-universe scene
CN115630630B (en) Language model processing method, service processing method, device, equipment and medium
CN114741072B (en) Page generation method, device, equipment and storage medium
CN113641428B (en) Method and device for acquiring special effect scene packet, electronic equipment and readable storage medium
CN113220282B (en) Development processing method, device and storage medium for applet
CN116363260B (en) Image generation method and device and electronic equipment
CN113961263B (en) Applet distribution method, device, apparatus and storage medium
CN113360407B (en) Function positioning method and device, electronic equipment and readable storage medium
CN114327271B (en) Lifecycle management method, apparatus, device and storage medium
CN113448668B (en) Method and device for skipping popup window and electronic equipment
CN117931202A (en) Method for generating byte code replacement configuration file and byte code replacement method
CN117931195A (en) Data dictionary processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination