CN111124482A - Method and device for configuring file information - Google Patents

Method and device for configuring file information Download PDF

Info

Publication number
CN111124482A
CN111124482A CN201911358874.3A CN201911358874A CN111124482A CN 111124482 A CN111124482 A CN 111124482A CN 201911358874 A CN201911358874 A CN 201911358874A CN 111124482 A CN111124482 A CN 111124482A
Authority
CN
China
Prior art keywords
file
page
information
document
configuration item
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
CN201911358874.3A
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.)
Reach Best Technology Co Ltd
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Reach Best 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 Reach Best Technology Co Ltd filed Critical Reach Best Technology Co Ltd
Priority to CN201911358874.3A priority Critical patent/CN111124482A/en
Publication of CN111124482A publication Critical patent/CN111124482A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The present disclosure provides a method and an apparatus for configuring document information, relates to the field of network technology, and is used for solving the technical problem that the configuration scheme of the document information in the related art is not favorable for subsequently modifying the document information. The method comprises the following steps: the method comprises the steps that a terminal obtains a first document template, wherein the first document template comprises a first configuration item and a second configuration item, the first configuration item is used for determining the position of document information in a page, and the second configuration item is used for configuring the document information; and finally, the terminal exports the file template into a first file, and the terminal stores the first file in the server. In this way, the client may download the first file from the server. Therefore, the client reads the first file when reading the front end code of the page, so that the client can display the file information in the page when displaying the page. The method and the device are applied to the configuration process of the file information.

Description

Method and device for configuring file information
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to a method and an apparatus for configuring document information.
Background
Currently, in order to provide corresponding information to a user, a web page or a page of an application program displays corresponding document information. For example, the document information may be advertisement terms, publicity terms, etc. displayed in the form of words.
In the related art, a worker writes the document information into a front-end code. Therefore, when the document information needs to be modified, the front-end code needs to be rewritten by the staff, which results in a large workload for modifying the document information. Therefore, how to configure the document information to reduce the workload brought by subsequently modifying the document information is a technical problem to be solved urgently at present.
Disclosure of Invention
The present disclosure provides a method and an apparatus for configuring document information, which are used to solve the problem that the configuration scheme of the document information in the related art is not favorable for subsequently modifying the document information. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for configuring document information, the method including: a terminal acquires a first document template, wherein the first document template comprises a first configuration item and a second configuration item, the first configuration item in the first document template is used for determining the position of document information in a page, and the second configuration item in the first document template is used for configuring the document information; then, the terminal exports the first document template into a first file, and the first file can be read when the client reads the front end code of the page; the front-end code of the page is used for enabling the client to display the page; the first file is used for enabling the client to display the file information when the page is displayed; and finally, the terminal stores the first file in a server, and the server is used for providing the first file for the client.
In one possible implementation, the first configuration item includes: the page routing address, the page module name and the file plan preset field; or, the first configuration item includes: an Application Programming Interface (API) address of the server, an object returned by the server, and a status code.
In a possible implementation manner, the method further includes: and the terminal performs hash operation on the first file to generate a hash value of the first file. And then, the terminal sets the hash value of the first file as the name of the first file.
In one possible embodiment, the first file is written in a machine language.
In one possible embodiment, the method further comprises: under the condition that the file information needs to be modified, a terminal acquires a second file template, wherein the second file template comprises a first configuration item and a second configuration item, the first configuration item in the second file template is used for determining the position of the modified file information in the page, and the second configuration item in the second file template is used for configuring the modified file information; then, the terminal exports the second document template into a second file, and the second file can be read when the client reads the front end code of the page; the second file is used for enabling the client to display the modified file information when the page is displayed; and finally, the terminal replaces the first file stored in the server with the second file, and the server is used for providing the second file for the client.
In one possible embodiment, the method further comprises: the terminal carries out Hash operation on the second file to generate a Hash value of the second file; and the terminal sets the hash value of the second file as the name of the second file.
In one possible embodiment, the second file is written in a machine language.
According to a second aspect of the embodiments of the present disclosure, there is provided a device for configuring document information, including: the system comprises a setting module, a display module and a display module, wherein the setting module is configured to execute setting to obtain a first document template, the first document template comprises a first configuration item and a second configuration item, the first configuration item in the first document template is used for determining the position of document information in a page, and the second configuration item in the first document template is used for configuring the document information; a generation module configured to perform exporting the first document template as a first file, the first file being readable when the client reads a front-end code of the page; the front-end code of the page is used for enabling the client to display the page; the first file is used for enabling the client to display the file information when the page is displayed; a storage module configured to perform storing the first file in a server, the server to provide the first file to the client.
In one possible implementation, the first configuration item includes: the page routing address, the page module name and the file plan preset field; or, the first configuration item includes: the server's application program interface address, the object returned by the server, and the status code.
In a possible implementation manner, the generating module is further configured to perform a hash operation on the first file, and generate a hash value of the first file; and setting the hash value of the first file as the name of the first file.
In one possible embodiment, the first file is written in a machine language.
In a possible implementation manner, the setting module is further configured to execute, when the document information needs to be modified, acquiring a second document template, where the second document template includes a first configuration item and a second configuration item, the first configuration item in the second document template is used to determine a position of the modified document information in the page, and the second configuration item in the second document template is used to configure the modified document information. The generation module is further configured to perform exporting the second document template into a second file, the second file being readable when the client reads the front-end code of the page; the second file is used for enabling the client to display the modified file information when the page is displayed. The storage module is further configured to perform replacing the first file stored in the server with the second file, the server being configured to provide the second file to the client.
In a possible implementation manner, the generating module is further configured to perform a hash operation on the second file, and generate a hash value of the second file; and setting the hash value of the second file as the name of the second file.
In one possible embodiment, the second file is written in a machine language.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including: a processor, a memory for storing processor-executable instructions. Wherein the processor is configured to execute the instructions to implement the method for configuring the documentation information of any one of the above first aspects.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium having instructions stored therein, which, when run on a terminal, cause the terminal to execute the method for configuring the document information of any one of the above-mentioned first aspects.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, which, when run on a computer, causes the computer to execute the method for configuring the documentation information of any one of the above first aspects.
The technical scheme provided by the embodiment of the disclosure at least has the following beneficial effects:
the technical scheme provided by the embodiment at least has the following beneficial effects: the terminal acquires a first document template; then, the terminal exports the first document template to a first file written by a machine language; finally, the terminal stores the first file in the server so that the client can load the first file from the server. Since the first document template includes the first configuration item and the second configuration item, the first configuration item is used for determining the position of the document information in the page, and the second configuration item is used for configuring the document information, the first file derived from the first document template can also be used for determining the position of the document information and the document information in the page. In this way, the client reads the first file when reading the front end code of the page, so that the client can determine the document information and the position of the document information in the page according to the first file, and the client can display the document information when displaying the page. Therefore, the technical scheme of the disclosure can enable the client to correctly display the file information in the page. Moreover, on the premise that the client can correctly display the document information in the page, in the technical scheme of the disclosure, the first file is different from the front-end code of the page, and the first file and the front-end code of the page are two different files, that is, the document information is not written to the front-end code, so that even if a worker needs to modify the document information, the worker does not need to rewrite the front-end code. Therefore, the technical scheme disclosed by the invention can realize flexible configuration of the document information, improve the configuration efficiency of the document information and simplify the subsequent operation of modifying the document information.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of an implementation environment shown in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method for configuring documentation information in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating yet another method for configuring paperwork information in accordance with an exemplary embodiment;
fig. 4 is a block diagram showing a configuration apparatus of the document information according to an exemplary embodiment;
fig. 5 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The following briefly introduces an implementation environment (implementation architecture) to which the present disclosure relates. As shown in fig. 1, which illustrates a schematic diagram of one implementation environment in which the present disclosure is applicable. The implementation environment may include a terminal and a server, and the terminal may establish a connection with the server through a network (a wired network or a wireless network). Further, a client may be included in the implementation environment.
The terminal is a device used by a worker, and the worker can be a front-end engineer, a product manager, a clerk and the like. The staff can use the terminal to configure the document template, export the document template into a file (hereinafter referred to as a first file or a second file) carrying document information, and store the file containing the document information in the server. The terminal may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a portable computer, and the like, which is not limited in this disclosure.
The server can receive the file carrying the file information sent by the terminal. The server may then store the file carrying the copy information. When a user browses a webpage or uses an application program by using a client, the client can load a file carrying the file information from the server; and then, the client can display the corresponding file information when displaying the page by reading the file carrying the file information.
In some embodiments, the server may be a server built with front-end engineering; alternatively, the server may be a Content Delivery Network (CDN) server.
In some embodiments, the server may be a single server, or may be a server cluster composed of multiple servers, which is not limited in this disclosure.
The client, or called user side, refers to a program corresponding to the server for providing services to the user. A user may browse a web page (or application interface) through a client. The client may be installed in a mobile phone, a tablet computer, a notebook computer, a desktop computer, a portable computer, and the like, which is not limited in this disclosure.
For the convenience of understanding, the following describes the configuration method of the document information provided by the present disclosure in detail with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating a method for configuring documentation information according to an exemplary embodiment, the method for configuring documentation information including the steps of:
s101, the terminal obtains a first document template.
The first file template comprises a first configuration item and a second configuration item. The first configuration item of the first document template is used for determining the position of the document information in the page. The second configuration item of the first file template is used for configuring file information.
Optionally, the first configuration item may adopt any one of the following two designs:
design 1, the first configuration item may include: page routing address, page module name, and document predetermined fields.
The page routing address is used for positioning a page for displaying the file information. It will be appreciated that each page has its own unique page routing address. The client can access the page through the page routing address.
The page module name is used for determining a page module for displaying the file information in the page. It will be appreciated that there may be one or more page modules in a page, and therefore it is necessary to configure the page module name in the case module to identify the page module for presenting case information.
The file predetermined field is used for determining a field for displaying file information in the page module. It will be appreciated that there may be one or more fields in a page template, and therefore it is necessary to configure the predetermined fields of the document in the document template to determine the fields for presenting the document information.
For example, based on design 1, when the document template is presented in the form of a form, the document template may be as shown in table 1. The specific case values in table 1 are the second configuration entries of the case template.
TABLE 1
Page routing address
Page module name
Predetermined field of the document
Specific case value
It should be noted that, for a static page, the document template should adopt the first configuration item based on design 1.
Design 2, the first configuration item may include: the API address of the server, the object returned by the server, and the status code.
Wherein, the API address of the server is the destination address of the request sent by the client.
The object returned by the server is the object returned to the client after the server receives the request sent by the client.
The state code is a digital code which is returned to the client by the server after receiving the request sent by the client and is used for describing the response state. For example, the status code is "200", indicating that the client's request has been successful. The status code is "404" indicating that the client's request has failed. The detailed description of the status code can refer to the prior art and is not repeated herein.
For example, based on design 2, when the document template is presented in the form of a form, the document template may be as shown in table 2.
TABLE 2
API address of server
Objects returned by a server
Status code
Specific case value
It should be noted that, for the page returned by the server according to the request information of the client, the document template should adopt the first configuration item based on design 2.
As a possible implementation manner, in response to an input operation of a worker, the terminal acquires the first document template. In this case, the specific content of each configuration item in the first document template is determined according to the input operation of the worker.
Optionally, in the process of filling in the configuration items in the first document template by the staff, in order to avoid the content in the first document template from being lost due to an unexpected situation, the terminal may periodically store the document template. Therefore, even if an accident happens, the terminal stores the file template of the previous period, so that the staff does not need to re-fill the configuration items in the first file template, and the use experience of the staff is improved.
Optionally, after the worker completes setting the configuration items in the first document template, in response to the saving operation of the worker, the terminal saves the first document template in the local database; or the terminal uploads the first file template to the cloud.
As another possible implementation manner, the terminal runs the configuration script of the document information to obtain the first document template. In this case, the specific contents of each configuration item in the first document template are configured by the configuration script.
It is understood that the configuration script of the document information can be implemented according to the prior art, and is not described herein in detail.
S102, the terminal exports the first document template to be a first file.
As an alternative implementation manner, in response to the export operation of the staff, the terminal exports the first document template as the first file. Or after the staff or the configuration script sets all the configuration items in the first document template, the terminal automatically exports the first document template to be the first file.
Wherein the first file is written in a machine language. Illustratively, the machine language may be a JavaScript object notation (json). It should be noted that Json is a lightweight data exchange format. The file has the advantages of easy writing and reading, easy machine generation and analysis, high data transmission efficiency and the like.
It is understood that the specific implementation manner of exporting the first document template as the first document may refer to related technologies, which are not described herein in detail.
In an embodiment of the disclosure, the first file is different from the front-end code of the page. Alternatively, the first file is not in the front-end code of the page. In this way, since the first file and the front-end code are two different files, that is, the front-end code does not write the document information, in the case that the document information needs to be modified, the worker can only modify the first file without modifying the front-end code.
In the disclosed embodiment, the first file can be read when the client reads the front-end code of the page. The front-end code of the page is used to cause the client to display the page. The first file is used for enabling the client to display the file information when the page is displayed.
Optionally, in the process that the terminal exports the first document template as the first file, the terminal may perform hash operation on the first file to generate a hash value corresponding to the first file. And then the terminal sets the hash value of the first file as the name of the first file.
It should be noted that files with different contents correspond to different hash values. Therefore, the hash value is used as the name of the file, and when the name of the file is changed, the file is updated.
S103, the terminal stores the first file in the server.
As an alternative implementation manner, in response to the storage operation of the staff member, the terminal sends the first file to the server, so that the server stores the first file.
In this way, since the server stores the first file, the client can download the first file from the server, and the client can display the document information when displaying the page by reading the first file.
If the server is a server built with a front-end project, the first file can be used as a dependency item of the front-end project. It should be noted that the front end engineering includes the front end code of the page.
It should be noted that, in the related art, the definitions of the dependent terms are as follows: if one program needs to rely on other programs to work, the other programs may be referred to as dependent items.
In the case where the first file is a dependency of the front-end project, the front-end project may parse the first file into an object for ease of use by the front-end project.
For example, the object parsed from the first file may be marked with a variable o. Assume that url represents a page routing address (or an API address of a server), res represents a page module name (or an object returned by the server), result is a predetermined field of a pattern, and the logic of the pattern shown at the front end is o [ url ] [ res ] [ result ].
Taking e-commerce orders as an example, different document contents can be shown in different states of the orders. The url is used as the page routing address, the model is the page module name, the ordertatus is the order status (i.e. the file plan predetermined field in the above text), and the file plan logic shown at the front end is o [ url ] [ model ] [ ordertatus ].
The technical scheme provided by the embodiment at least has the following beneficial effects: the terminal acquires a first document template; then, the terminal exports the first document template to a first file written by a machine language; finally, the terminal stores the first file in the server so that the client can load the first file from the server. Since the first document template includes the first configuration item and the second configuration item, the first configuration item is used for determining the position of the document information in the page, and the second configuration item is used for configuring the document information, the first file derived from the first document template can also be used for determining the position of the document information and the document information in the page. In this way, the client reads the first file when reading the front end code of the page, so that the client can determine the document information and the position of the document information in the page according to the first file, and the client can display the document information when displaying the page. Therefore, the technical scheme of the disclosure can enable the client to correctly display the file information in the page. Moreover, on the premise that the client can correctly display the document information in the page, in the technical scheme of the disclosure, the first file is different from the front-end code of the page, and the first file and the front-end code of the page are two different files, that is, the document information is not written to the front-end code, so that even if a worker needs to modify the document information, the worker does not need to rewrite the front-end code. Therefore, the technical scheme disclosed by the invention can realize flexible configuration of the document information, improve the configuration efficiency of the document information and simplify the subsequent operation of modifying the document information.
Based on the embodiment shown in fig. 2, how the staff modifies the documentation information is described below with reference to the embodiment shown in fig. 3.
Fig. 3 is a flow chart illustrating a method for configuring documentation information according to an example embodiment. The configuration method of the file information comprises the following steps:
s201, the terminal acquires a second document template under the condition that the document information needs to be modified.
Wherein the second document template comprises a first configuration item and a second configuration item. The first configuration item in the second document template is used for determining the position of the modified document information in the page. And the second configuration item in the second file template is used for configuring the modified file information.
It should be noted that the main differences between the second document template and the first document template are as follows: the second configuration item of the first documentation template includes documentation information that is different from the documentation information included in the second configuration item of the second documentation template.
It can be understood that the implementation manner of the terminal acquiring the second document template is similar to the implementation manner of the terminal acquiring the first document template, and therefore, the implementation manner of the terminal acquiring the second document template may refer to the description of the related content above, and is not described herein again.
S202, the terminal exports the second document template to be a second file.
As an alternative implementation manner, in response to the export operation of the staff, the terminal exports the second document template as the second file.
Wherein the second file is written in a machine language. Illustratively, the machine language may be Json.
In an embodiment of the disclosure, the second file is different from the front-end code of the page.
It will be appreciated that the second file can be read when the client reads the front-end code of the page. The second file is used for enabling the client to display the modified file information when the page is displayed.
Optionally, in the process that the terminal exports the second document template as the second file, the terminal may perform hash operation on the second file to generate a hash value corresponding to the second file. And the terminal sets the hash value of the second file as the name of the second file.
It will be appreciated that the second file is different from the first file due to the difference between the first and second document templates, and thus the hash value of the second file is different from the hash value of the first file. Thus, the name of the second file is different from the name of the first file on the basis of the hash value as the name of the file. In this way, if the first file stored in the server is replaced with the second file, the client can quickly confirm that the file stored in the server has changed according to the change in the name of the file.
S203, the terminal replaces the first file stored in the server with the second file.
As an optional implementation manner, in response to a replacement operation of a user, the terminal sends the second file to the server, so that the server deletes the first file and stores the second file, thereby achieving the purpose of replacing the first file stored by the server with the second file.
In this way, the client may download from the server to the second file, rather than to the first file. Therefore, the client can display the modified file information when the page is displayed by reading the second file.
The technical scheme provided by the embodiment at least has the following beneficial effects: when the staff needs to modify the document information, the staff only needs to modify the document information configured by the second configuration item in the document template, and does not need to modify the front-end code, so that the workload brought by modifying the document information is reduced, and the staff can flexibly modify the document information.
It is understood that the above method can be implemented by a configuration device of the file information. The configuration device of the document information includes a hardware structure and/or a software module for performing each function in order to realize the above functions. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments.
The embodiment of the present disclosure may divide the functional modules of the configuration device of the document information according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiments of the present disclosure is illustrative, and is only one division of logic functions, and there may be another division in actual implementation.
Fig. 4 is a schematic structural diagram of a configuration apparatus for document information according to an embodiment of the disclosure, and is applied to a terminal. The configuration device of the file information comprises a setting module 101, a generating module 102 and a storage module 103.
The setting module 101 is configured to execute obtaining a first document template, where the first document template includes a first configuration item and a second configuration item, the first configuration item in the first document template is used to determine a position of document information in a page, and the second configuration item in the first document template is used to configure the document information.
A generating module 102 configured to perform exporting the first pattern template into a first file, the first file being capable of being read when a client reads a front-end code of a page; the front-end code of the page is used for enabling the client to display the page; the first file is used for enabling the client to display the file information when the page is displayed.
A storage module 103 configured to perform storing the first file in a server, the server being configured to provide the first file to the client.
In one possible implementation, the first configuration item includes: the page routing address, the page module name and the file plan preset field; or, the first configuration item includes: the server's application program interface address, the object returned by the server, and the status code.
In a possible implementation manner, the generating module 102 is further configured to perform a hash operation on the first file, and generate a hash value of the first file; and setting the hash value of the first file as the name of the first file.
In one possible embodiment, the first file is written in a machine language.
In a possible implementation manner, the setting module 101 is further configured to execute, when the document information needs to be modified, acquiring a second document template, where the second document template includes a first configuration item and a second configuration item, the first configuration item of the second document template is used to determine a position of the modified document information in the page, and the second configuration item of the second document template is used to configure the modified document information. The generating module 102 is further configured to perform exporting the second pattern template into a second file, where the second file can be read when the client reads the front end code of the page; the second file is used for enabling the client to display the modified file information when the page is displayed. A storage module 103 further configured to perform replacing the first file stored in the server with the second file, the server being configured to provide the second file to the client.
In a possible implementation manner, the generating module 102 is further configured to perform a hash operation on the second file, and generate a hash value of the second file; and setting the hash value of the second file as the name of the second file.
In one possible embodiment, the second file is written in a machine language.
Alternatively, the terminal may be the apparatus 200 shown in fig. 5. The apparatus 200 may be: a smartphone, a tablet, a laptop, or a desktop computer. The apparatus 200 may also be referred to by other names such as a staff device, a portable terminal, a laptop terminal, a desktop terminal, etc.
The apparatus 200 may include at least one processor 201, a communication bus 202, a memory 203, and at least one communication interface 204.
The processor 201 may be a Central Processing Unit (CPU), a micro-processing unit, an ASIC, or one or more integrated circuits for controlling the execution of programs according to the present disclosure.
The communication bus 202 may include a path that conveys information between the aforementioned components.
The communication interface 204 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), etc.
The memory 203 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
The memory 203 is used for storing application program codes for executing the disclosed scheme, and the processor 201 controls the execution. The processor 201 is configured to execute application program code stored in the memory 203 to implement the functions of the disclosed method.
In particular implementations, processor 201 may include one or more CPUs such as CPU0 and CPU1 in fig. 5 for one embodiment.
In particular implementations, apparatus 200 may include multiple processors, such as processor 201 and processor 207 in FIG. 5, for example, as an example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In one implementation, the apparatus 200 may further include an output device 205 and an input device 206, as an example. The output device 205 is in communication with the processor 201 and may display information in a variety of ways. For example, the output device 205 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device 206 is in communication with the processor 201 and may accept input from a worker in a variety of ways. For example, the input device 206 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of the apparatus 200 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The present disclosure also provides a storage medium including instructions stored thereon, which when executed by a processor of a computer device, enable the computer to perform the method for configuring the documentation information provided by the above-described illustrated embodiments. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present disclosure also provides a computer program product containing instructions which, when run on a computer, cause the computer device to perform the method of configuring documentation information provided by the above-described illustrative embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for configuring file information is applied to a terminal, and the method comprises the following steps:
acquiring a first document template, wherein the first document template comprises a first configuration item and a second configuration item, the first configuration item of the first document template is used for determining the position of document information in a page, and the second configuration item of the first document template is used for configuring the document information;
exporting the first document template into a first file, wherein the first file can be read when a client reads a front end code of the page; the front-end code of the page is used for enabling the client to display the page; the first file is used for enabling the client to display the file information when the page is displayed;
storing the first file in a server, the server being configured to provide the first file to the client.
2. The method of claim 1, wherein the first configuration item comprises: the page routing address, the page module name and the file plan preset field; alternatively, the first and second electrodes may be,
the first configuration item includes: the server's application program interface address, the object returned by the server, and the status code.
3. The method of configuring the paperwork information of claim 1, further comprising:
carrying out Hash operation on the first file to generate a Hash value of the first file;
and setting the hash value of the first file as the name of the first file.
4. The method of claim 1, wherein the first file is written in a machine language.
5. The method of configuring the paperwork information according to any of the claims 1 to 4, wherein the method comprises:
when the document information needs to be modified, a second document template is obtained, wherein the second document template comprises a first configuration item and a second configuration item, the first configuration item in the second document template is used for determining the position of the modified document information in the page, and the second configuration item in the second document template is used for configuring the modified document information;
exporting the second document template into a second file, wherein the second file can be read when the client reads the front end code of the page; the second file is used for enabling the client to display the modified file information when the page is displayed;
replacing the first file stored in the server with the second file, the server for providing the second file to the client.
6. The method of configuring the paperwork information of claim 5, further comprising:
carrying out hash operation on the second file to generate a hash value of the second file;
and setting the hash value of the second file as the name of the second file.
7. A device for configuring document information, the device comprising:
the system comprises a setting module, a first document template and a second document template, wherein the setting module is configured to execute acquisition of the first document template, the first document template comprises a first configuration item and a second configuration item, the first configuration item in the first document template is used for determining the position of document information in a page, and the second configuration item in the first document template is used for configuring the document information;
a generation module configured to perform exporting the first document template as a first file, the first file being readable when a client reads a front-end code of the page; the front-end code of the page is used for enabling the client to display the page; the first file is used for enabling the client to display the file information when the page is displayed;
a storage module configured to perform storing the first file in a server, the server to provide the first file to the client.
8. The apparatus for configuring bibliographic information of claim 7,
the setting module is further configured to execute, when the document information needs to be modified, acquiring a second document template, where the second document template includes a first configuration item and a second configuration item, the first configuration item in the second document template is used to determine a position of the modified document information in the page, and the second configuration item in the second document template is used to configure the modified document information;
the generation module is further configured to perform exporting the second document template into a second file, the second file being readable when the client reads the front-end code of the page; the second file is used for enabling the client to display the modified file information when the page is displayed;
the storage module is further configured to perform replacing the first file stored in the server with the second file, the server being configured to provide the second file to the client.
9. A terminal, characterized in that the terminal comprises:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of configuring the paperwork information of any of claims 1-6.
10. A storage medium, wherein instructions in the storage medium, when executed by a processor of the terminal, cause the terminal to perform the method of configuring the document information according to any one of claims 1 to 6.
CN201911358874.3A 2019-12-25 2019-12-25 Method and device for configuring file information Pending CN111124482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911358874.3A CN111124482A (en) 2019-12-25 2019-12-25 Method and device for configuring file information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911358874.3A CN111124482A (en) 2019-12-25 2019-12-25 Method and device for configuring file information

Publications (1)

Publication Number Publication Date
CN111124482A true CN111124482A (en) 2020-05-08

Family

ID=70502363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911358874.3A Pending CN111124482A (en) 2019-12-25 2019-12-25 Method and device for configuring file information

Country Status (1)

Country Link
CN (1) CN111124482A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486264A (en) * 2021-06-18 2021-10-08 上海众言网络科技有限公司 Method and device for putting questionnaire

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123631A (en) * 2011-11-21 2013-05-29 阿里巴巴集团控股有限公司 Generation of copywriting, displaying method of webpage copywriting, device and website server
CN104750670A (en) * 2013-12-31 2015-07-01 阿里巴巴集团控股有限公司 Page document processing method and device
CN105897824A (en) * 2015-11-17 2016-08-24 乐视网信息技术(北京)股份有限公司 Hint copywriting sharing and configuration method and device and sharing system
WO2017124952A1 (en) * 2016-01-21 2017-07-27 阿里巴巴集团控股有限公司 Webpage script loading method and device
WO2018086463A1 (en) * 2016-11-09 2018-05-17 阿里巴巴集团控股有限公司 User information obtaining system, method and device
CN108694210A (en) * 2017-04-11 2018-10-23 阿里巴巴集团控股有限公司 Template generation method and device
CN109194714A (en) * 2018-08-02 2019-01-11 深圳鼎盛电脑科技有限公司 A kind of official documents and correspondence method for pushing, device, terminal device and storage medium
CN109685473A (en) * 2018-12-26 2019-04-26 无线生活(北京)信息技术有限公司 Official documents and correspondence amending method and device
CN109901859A (en) * 2019-01-21 2019-06-18 平安科技(深圳)有限公司 Dynamic configuration official documents and correspondence method, electronic device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123631A (en) * 2011-11-21 2013-05-29 阿里巴巴集团控股有限公司 Generation of copywriting, displaying method of webpage copywriting, device and website server
CN104750670A (en) * 2013-12-31 2015-07-01 阿里巴巴集团控股有限公司 Page document processing method and device
CN105897824A (en) * 2015-11-17 2016-08-24 乐视网信息技术(北京)股份有限公司 Hint copywriting sharing and configuration method and device and sharing system
WO2017124952A1 (en) * 2016-01-21 2017-07-27 阿里巴巴集团控股有限公司 Webpage script loading method and device
WO2018086463A1 (en) * 2016-11-09 2018-05-17 阿里巴巴集团控股有限公司 User information obtaining system, method and device
CN108694210A (en) * 2017-04-11 2018-10-23 阿里巴巴集团控股有限公司 Template generation method and device
CN109194714A (en) * 2018-08-02 2019-01-11 深圳鼎盛电脑科技有限公司 A kind of official documents and correspondence method for pushing, device, terminal device and storage medium
CN109685473A (en) * 2018-12-26 2019-04-26 无线生活(北京)信息技术有限公司 Official documents and correspondence amending method and device
CN109901859A (en) * 2019-01-21 2019-06-18 平安科技(深圳)有限公司 Dynamic configuration official documents and correspondence method, electronic device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
宋胜攀;: "基于B/S的文档生成的设计与开发", 电脑编程技巧与维护, no. 20, 18 October 2009 (2009-10-18) *
黄惠康;: "基于响应式信息管理导入导出模板设计的探讨", 电脑知识与技术, no. 07, 5 March 2017 (2017-03-05) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486264A (en) * 2021-06-18 2021-10-08 上海众言网络科技有限公司 Method and device for putting questionnaire

Similar Documents

Publication Publication Date Title
US10726195B2 (en) Filtered stylesheets
US9965135B2 (en) Configurable metrics and metric visualization
US20150293764A1 (en) Method and system to compose and execute business rules
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
US9152619B2 (en) System and method for constructing markup language templates and input data structure specifications
CN107943465B (en) Method and device for generating HTML (Hypertext markup language) form
CN110941614A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN110427182A (en) A kind of template type construction APP method and device
US20180239617A1 (en) Big data pipeline management within spreadsheet applications
CN111125064A (en) Method and device for generating database mode definition statement
CN114201718A (en) Dynamically configurable form instance generation method and device
CN111124482A (en) Method and device for configuring file information
CN112926008A (en) Method and device for generating form page, electronic equipment and storage medium
CN113254043A (en) Web front-end project processing method and device, electronic equipment and storage medium
CN112486482A (en) Page display method and device
CN116432624A (en) Micro-service API document generation method, device, equipment and storage medium
CN111367607A (en) Dynamic electronic contract generating and signing system and implementation method thereof
CN111090976A (en) Method and device for generating inspection document based on dynamic data
US11567742B2 (en) Method, apparatus, and computer program product for generating updated network application interfaces
US10210149B2 (en) Personalized wiki-book annotation
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
US11016739B2 (en) Reducing memory usage in software applications
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113253991A (en) Task visualization 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