Text input template processing method and device and storage medium
By generating and saving the template traceability information of the text input template, the problem of low efficiency in obtaining historical versions in the existing technology is solved, the historical version of the text input template is quickly obtained, and the user experience is improved.
Patent Information
- Application Number
- CN202310247871.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, when obtaining the historical version of a text input template, it is necessary to obtain all historical text input files and perform aggregation and deduplication, resulting in redundant and inefficient operation processes.
By generating and saving the template traceability information of the text input template, including index information, storage time and template information, it is possible to quickly obtain the required historical version based on the index information and avoid the necessity of obtaining all historical files.
The efficiency of obtaining text input templates is improved, the operation steps are reduced, and the user experience is improved.
Smart Images

Figure CN118626441A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a text input template processing method, device and storage medium. Background Art
[0002] In the related art, in order to meet various business needs, multiple types of text input templates are generally created to cope with the needs of different occasions. Moreover, as business needs are updated, these text input templates will be updated accordingly to meet the new business needs. Therefore, each type of text input template may have multiple different historical versions.
[0003] However, in the related art, it is impossible to directly obtain each historical version of the text input template. Therefore, when it is necessary to find the historical version of a text input template within a certain time period, the commonly used method is to first obtain all the historical text input files of the text input template, and then obtain all the target historical text input files within the time period according to the submission time of these historical text input files, and then aggregate and deduplicate the historical versions of these target historical text input files to obtain the historical version of the text input template within the time period. This method in the related art not only needs to obtain all historical text input files, but also needs to aggregate and deduplicate the historical versions of these historical text input files, so there are problems such as redundant operation process and low template acquisition efficiency. Summary of the invention
[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0005] The embodiments of the present invention provide a text input template processing method, device and storage medium, which can improve the efficiency of obtaining text input templates, thereby improving the user experience.
[0006] On the one hand, an embodiment of the present invention provides a text input template processing method, comprising the following steps:
[0007] When receiving a save request information for saving a text input template, saving the text input template according to the save request information, wherein the save request information includes first template information of the text input template;
[0008] Acquire a first saving time when the text input template is saved, and generate index information corresponding to the text input template, wherein the index information is used to index the first saving time and the first template information;
[0009] Generating template traceability information of the text input template according to the index information, the first saving time and the first template information, wherein the template traceability information includes the index information, the first saving time and the first template information;
[0010] The template traceability information is saved.
[0011] On the other hand, an embodiment of the present invention further provides a text input template processing device, comprising:
[0012] a first saving unit, configured to save the text input template according to the saving request information when receiving the saving request information for saving the text input template, wherein the saving request information includes the first template information of the text input template;
[0013] an information processing unit, configured to obtain a first saving time when the text input template is saved, and generate index information corresponding to the text input template, wherein the index information is used to index the first saving time and the first template information;
[0014] An information generating unit, configured to generate template traceability information of the text input template according to the index information, the first saving time and the first template information, wherein the template traceability information includes the index information, the first saving time and the first template information;
[0015] The second storage unit is used to store the template traceability information.
[0016] Optionally, the information generating unit is further used for:
[0017] Generate a blank information mapping table;
[0018] The index information, the first saving time and the first template information are filled into the information mapping table to obtain the template tracing information of the text input template.
[0019] Optionally, the information mapping table includes key items and information items; and the information generating unit is further used to:
[0020] splicing the first saving time and the first template information to obtain template saving information;
[0021] The index information is filled into the key-value item, and the template saving information is filled into the information item to obtain the template tracing information of the text input template.
[0022] Optionally, the information processing unit is further used for:
[0023] generating index information corresponding to the text input template according to at least one of the first saving time or the first template information;
[0024] Alternatively, index information corresponding to the text input template is randomly generated.
[0025] Optionally, the first storage unit is further used for:
[0026] Obtaining a text input template list, wherein the text input template list includes all saved historical text input templates;
[0027] Acquire second template information of a target historical text input template corresponding to the text input template according to the save request information and the text input template list;
[0028] The second template information is updated according to the first template information to complete the saving of the text input template.
[0029] Optionally, the save request information further includes a template identifier of the text input template; and the first save unit is further configured to:
[0030] Obtaining the template identifier of the text input template in the save request information;
[0031] The second template information of the target historical text input template corresponding to the text input template is acquired according to the template identifier and the text input template list.
[0032] Optionally, the text input template processing device further includes:
[0033] A first information acquisition unit, configured to, upon receiving acquisition request information for acquiring a first target text input template within a target time period, acquire all saved first historical template traceability information according to the acquisition request information;
[0034] A second information acquisition unit, configured to acquire target template tracing information within the target time period from all the first historical template tracing information;
[0035] The template information acquisition unit is used to obtain the third template information of the first target text input template according to the target template traceability information.
[0036] Optionally, the second information acquiring unit is further used to:
[0037] Obtaining the second saving time in each of the first historical template traceability information;
[0038] Acquire a target storage time within the target time period from all the second storage times;
[0039] The target template tracing information corresponding to the target saving time is obtained from all the first historical template tracing information.
[0040] Optionally, the text input template processing device further includes:
[0041] A third information acquisition unit is configured to, upon receiving rollback request information for performing version rollback on the text input template, acquire all saved second historical template traceability information according to the rollback request information;
[0042] An information sorting unit, used to sort all the second historical template traceability information in chronological order from recent to far, to obtain a template traceability information sequence;
[0043] The version rollback unit is used to obtain the fourth template information included in the second second historical template tracing information in the template tracing information sequence, and complete the version rollback of the text input template.
[0044] Optionally, the information sorting unit is further used for:
[0045] Obtaining the third storage time included in each of the second historical template traceability information;
[0046] Sorting all the third saving times in order from recent to far to obtain a saving time sequence;
[0047] All the second historical template traceability information is sorted according to the saving time sequence to obtain a template traceability information sequence.
[0048] Optionally, the text input template processing device further includes:
[0049] A template acquisition unit, configured to, upon receiving a text input file to be saved, acquire a second target text input template corresponding to the text input file;
[0050] A time acquisition unit, used for acquiring a fourth storage time of the second target text input template;
[0051] The third saving unit is used to add the fourth saving time to the file information of the text input file, and save the text input file with the fourth saving time added.
[0052] On the other hand, an embodiment of the present invention further provides a text input template processing device, comprising:
[0053] at least one processor;
[0054] at least one memory for storing at least one program;
[0055] When at least one of the programs is executed by at least one of the processors, the text input template processing method as described above is implemented.
[0056] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program executable by a processor. When the computer program executable by the processor is executed by the processor, it is used to implement the text input template processing method as described above.
[0057] On the other hand, an embodiment of the present invention also provides a computer program product, including a computer program or computer instructions, wherein the computer program or the computer instructions are stored in a computer-readable storage medium, and a processor of a text input template processing device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, so that the text input template processing device performs the text input template processing method as described above.
[0058] The embodiment of the present invention includes at least the following beneficial effects: after completing the saving of the text input template, the first saving time when the text input template is saved is obtained, and index information corresponding to the text input template is generated for indexing the first saving time and the first template information of the text input template, and then the template traceability information of the text input template is generated according to the index information, the first saving time and the first template information, and the template traceability information of the text input template is saved. In this way, when it is necessary to find a historical version of a text input template within a certain time period, the corresponding template traceability information can be first obtained according to the index information corresponding to the text input template to be found, so that the first saving time and the first template information corresponding to the text input template to be found can be obtained in the obtained template traceability information, and then the historical version of the text input template to be found within the time period can be obtained according to the obtained first saving time and the first template information. Since the historical version of a text input template within a certain time period can be obtained without obtaining all historical text input files and aggregating and deduplicating historical versions of historical text input files, the efficiency of obtaining text input templates can be improved, thereby improving the user experience.
[0059] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0061] Figure 1 It is a schematic diagram of the types of enterprise document templates provided by a specific example of the present invention;
[0062] Figure 2 is a schematic diagram of a setting interface of a text input template provided by a specific example of the present invention;
[0063] Figure 3 is a schematic diagram of a setting interface of a text input template provided by another specific example of the present invention;
[0064] Figure 4 It is a flowchart of obtaining a historical version of a certain enterprise document template in a certain specific time period in the related technology provided by the embodiment of the present invention;
[0065] Figure 5 is a schematic diagram of an implementation environment provided by an embodiment of the present invention;
[0066] Figure 6 is a schematic diagram of another implementation environment provided by an embodiment of the present invention;
[0067] Figure 7 is a flow chart of a text input template processing method provided by an embodiment of the present invention;
[0068] Figure 8 It is a schematic diagram of the effect of the template setting interface after the saving success signal is transmitted to the terminal according to a specific example of the present invention;
[0069] Fig. 9 It is a flowchart of completing the preservation of a text input template provided by a specific example of the present invention;
[0070] Fig.10 It is a schematic diagram of a flow chart of generating template traceability information of a text input template provided by a specific example of the present invention;
[0071] Fig.11 It is a flowchart of implementing template traceability information preservation provided by a specific example of the present invention;
[0072] Fig.12 It is a flowchart of obtaining target template traceability information within a target time period provided by a specific example of the present invention;
[0073] Fig.13 It is a flowchart of implementing version rollback of a text input template provided by a specific example of the present invention;
[0074] Fig.14 is a flowchart of the steps of a text input template processing method provided by a specific example of the present invention;
[0075] Fig.15 is an interactive schematic diagram of a text input template processing method provided by a specific example of the present invention;
[0076] Fig.16 is a schematic diagram of a text input template processing device provided by an embodiment of the present invention;
[0077] Fig.17 It is a schematic diagram of another text input template processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0078] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be regarded as limiting the present invention, and all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0079] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0080] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0081] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.
[0082] 1) Text input template refers to a defined template that has a lot of original data saved in advance. Text information can be input into the template to meet different business needs. For example, the text input template can include corporate document templates, auxiliary writing templates, presentation templates, etc.
[0083] 2) Message Queue (MQ) is a data structure of "first in, first out" in the basic data structure. It means putting the data (or message) to be transmitted in the queue and using the queue mechanism to realize message transmission. First, the producer generates the message and puts the message into the queue, and then the consumer processes it. Consumers can pull messages from the specified queue, or subscribe to the corresponding queue, and the MQ server pushes messages to them. It is generally used to solve problems such as application decoupling, asynchronous messaging, and traffic peak shaving, and to achieve high-performance, high-availability, scalable and eventually consistent architecture.
[0084] 3) Index information is a decentralized storage structure created to speed up the retrieval of data rows in a database table. It is mainly established for database tables. By creating a unique index, the uniqueness of each row of data in the database table can be guaranteed.
[0085] 4) Information mapping table is an object used to store data in the database. It mainly adopts the key-value pair storage mode. The information mapping table includes key-value items and information items, and can realize the mapping from key-value items to information items. That is, the key-value item is the unique keyword for finding each data, and the information item is the actual stored content of the data.
[0086] 5) Asynchronous is a non-blocking mode, which means that the thread does not need to wait all the time, but continues to execute the following operation regardless of the status of other threads. For example, when the client sends a request to the server, the client can do other things while waiting for the server to respond. Asynchronous processing can generally be achieved through multi-threading, MQ middleware, message broadcasting, etc.
[0087] Text input templates may include enterprise document templates, auxiliary writing templates, presentation templates, etc. In the related art, in order to meet various business needs, various types of text input templates are generally created to cope with different occasions. For example, Figure 1 Enterprises usually provide many different types of enterprise document templates. Common ones can be divided into leave, administration, finance, personnel, and other categories. Each category of templates is usually designed with different types according to different occasions. For example, leave templates are usually subdivided into the following types: leave, business trip, outing, overtime, etc. Due to the update of business needs, there will be a need to change the template settings, that is, to update the attribute information of the template, such as Figure 2 and Figure 3 As shown, Figure 2 and Figure 3 The following is an example of a text input template setting interface diagram. Figure 2In , the setting information of the text input template may include basic attribute setting options such as template name setting options and template group setting options, as well as control attribute information such as leave type control, start time control, and end time control; in Figure 3 In the text input template, the setting information may include basic attribute setting options such as template name setting options and template grouping setting options, as well as control attribute information such as product category controls, quantity controls, and product serial number controls. When facing different application scenarios, users may update a certain type of template, such as adding commonly used basic attribute setting options or control attribute information. It can be seen that as business needs are updated, the text input template will be updated accordingly to meet new business needs, so each type of text input template may have multiple different historical versions.
[0088] However, in the related art, only the text input template corresponding to the submitted text input file is often recorded, and the historical version of the text input template is usually not recorded, that is, it is impossible to directly obtain the various historical versions of the text input template. Therefore, when it is necessary to find the historical version of a text input template within a certain time period, the common method is to first obtain all the historical text input files of the text input template, and then obtain all the target historical text input files within the time period according to the submission time of these historical text input files, and then aggregate and deduplicate the historical versions of these target historical text input files to obtain the historical version of the text input template within the time period. For example, taking the text input template as an enterprise document template as an example, when the user needs to submit a document, first select a suitable enterprise document template, and by entering the corresponding text information in the enterprise document template, a document with business data (i.e., a historical text input file) can be generated. Although each document will record the corresponding enterprise document template at the time of submission, if the user wants to obtain the historical version (i.e., template information) of a certain enterprise document template in a specific time period, the desired template information can only be obtained through the stored historical documents. For example Figure 4 As shown, when it is necessary to obtain a historical version of a certain enterprise document template in a certain specific time period, it is necessary to first retrieve all historical documents (i.e., the target historical text input file) from the database, and then filter out the historical documents in the specific time period according to the submission time, and then aggregate and deduplicate the historical versions of the historical documents, and then perform aggregation again to obtain the required historical version. However, since the number of historical documents is tens of millions or even hundreds of millions, this method will incur huge performance and time consumption. It can be seen that this method in the related art not only needs to obtain all historical text input files, but also needs to aggregate and deduplicate the historical versions of these historical text input files, so there are problems such as redundant operation process and low efficiency of template acquisition.
[0089] When it is necessary to find a historical version of a text input template within a certain time period, in order to solve the problems of redundant operation process and low efficiency of template acquisition, an embodiment of the present invention provides a text input template processing method, a text input template processing device, a computer-readable storage medium and a computer program product. After completing the saving of the text input template, the first saving time when the text input template is saved is obtained, and index information corresponding to the text input template is generated for indexing the first saving time and the first template information of the text input template, and then the template traceability information of the text input template is generated according to the index information, the first saving time and the first template information, and the template traceability information of the text input template is saved. In this way, when it is necessary to find a historical version of a text input template within a certain time period, the corresponding template traceability information can be obtained according to the index information corresponding to the text input template to be found, so that the first saving time and the first template information corresponding to the text input template to be found can be obtained in the obtained template traceability information, and then the historical version of the text input template to be found within the time period can be obtained according to the obtained first saving time and the first template information. Since the historical version of a text input template within a certain time period can be obtained without obtaining all historical text input files and aggregating and deduplicating historical versions of historical text input files, the efficiency of obtaining text input templates can be improved, thereby improving the user experience.
[0090] Reference Figure 5 , Figure 5 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention. The implementation environment may include a first user terminal 101 and a first template processing server 102, and the first user terminal 101 and the first template processing server 102 may be directly or indirectly connected via wired or wireless communication. The first user terminal 101 and the first template processing server 102 may be nodes in a blockchain, which is not specifically limited in this embodiment.
[0091] The first user terminal 101 may include but is not limited to a smart phone, a tablet, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, etc. Optionally, the first user terminal 101 may be installed with a text input template processing client, through which a save request message may be generated when a user save operation on a text input template is recognized, and the save request message may be sent to the first template processing server 102 for corresponding template save processing.
[0092] The first template processing server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network) and big data and artificial intelligence platforms.
[0093] The first template processing server 102 has at least the functions of saving the text input template, generating index information corresponding to the text input template, generating and saving template traceability information, etc. For example, after receiving the save request information for saving the text input template, it can save the text input template according to the save request information, obtain the first save time when saving the text input template, and generate index information corresponding to the text input template, and then generate the template traceability information of the text input template according to the index information, the first save time and the first template information, and then save the template traceability information of the text input template.
[0094] Reference Figure 5As shown, in an application scenario, it is assumed that the first user terminal 101 is a computer, and the first user terminal 101 is installed with a text input template processing client. In response to the user's save operation on the text input template, the text input template processing client in the first user terminal 101 generates a save request information corresponding to the text input template that currently needs to be saved, and the save request information includes the first template information. The first user terminal 101 sends the save request information to the first template processing server 102; in response to receiving the save request information sent by the first user terminal 101, the first template processing server 102 saves the text input template according to the save request information; wherein, when the first template processing server 102 saves the text input template according to the save request information, it can first obtain the text input template. template list, and then obtain the second template information of the target historical text input template corresponding to the text input template according to the save request information and the text input template list, and then update the second template information according to the first template information, so as to complete the saving of the text input template; in addition, when the first template processing server 102 obtains the second template information of the target historical text input template according to the save request information and the text input template list, it can first obtain the template identifier of the text input template in the save request information, and then obtain the second template information of the target historical text input template corresponding to the text input template according to the template identifier and the text input template list. Then, the first template processing server 102 obtains the first saving time when saving the text input template, and generates index information corresponding to the text input template for indexing the first saving time and the first template information of the text input template; wherein, when generating the index information corresponding to the text input template, the first template processing server 102 can generate the index information corresponding to the text input template according to at least one of the first saving time or the first template information, or can randomly generate the index information corresponding to the text input template. Next, the first template processing server 102 generates the template traceability information of the text input template according to the index information, the first saving time and the first template information, and saves the template traceability information of the text input template; wherein, when the first template processing server 102 generates the template traceability information of the text input template according to the index information, the first saving time and the first template information, it can first generate a blank information mapping table, and then fill the index information, the first saving time and the first template information into the information mapping table to obtain the template traceability information of the text input template; in addition, when the first template processing server 102 fills the index information, the first saving time and the first template information into the information mapping table to obtain the template traceability information of the text input template, it can first splice the first saving time and the first template information to obtain the template saving information, and then fill the index information into the key-value item, and fill the template saving information into the information item to obtain the template traceability information of the text input template.
[0095] refer to Figure 6 , Figure 6 201 is a schematic diagram of another implementation environment provided by an embodiment of the present invention. The implementation environment may include a second user terminal 201 and a second template processing server 202, and the second user terminal 201 and the second template processing server 202 may be directly or indirectly connected via wired or wireless communication. The second user terminal 201 and the second template processing server 202 may be nodes in a blockchain, which is not specifically limited in this embodiment.
[0096] The second user terminal 201 may include but is not limited to a smart phone, a tablet, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc. Optionally, the second user terminal 201 may be installed with a text input template processing client, through which the text input template processing client may generate acquisition request information when identifying a user's query operation on the first target text input template within the target time period, and may send the acquisition request information to the second template processing server 202 for corresponding template acquisition processing.
[0097] The second template processing server 202 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN networks, and big data and artificial intelligence platforms.
[0098] The second template processing server 202 has at least the functions of saving template traceability information, obtaining all first historical template traceability information, obtaining target template traceability information within a target time period, and obtaining third template information of the first target text input template. For example, after receiving an acquisition request information for obtaining the first target text input template within the target time period, the second template processing server 202 can obtain all saved first historical template traceability information according to the acquisition request information, and then obtain the target template traceability information within the target time period from all the first historical template traceability information, and then obtain the third template information of the first target text input template according to the target template traceability information.
[0099] Reference Figure 6As shown, in another application scenario, it is assumed that the second user terminal 201 is a smart phone, and the second user terminal 201 is installed with a text input template processing client. In response to the user's query operation for the first target text input template within the target time period, the text input template processing client in the second user terminal 201 generates an acquisition request information for acquiring the first target text input template within the target time period, and sends the acquisition request information to the second template processing server 202. In response to receiving the acquisition request information, the second template processing server 202 acquires all the first historical template traceability information that has been saved according to the acquisition request information, and then determines the target time period according to the acquisition request information, and then acquires the target template traceability information within the target time period from all the first historical template traceability information; wherein, when the second template processing server 202 acquires the target template traceability information within the target time period from all the first historical template traceability information, it can first acquire the second saving time in each first historical template traceability information, and then acquire the target saving time in the target time period from all the second saving times, and then acquire the target template traceability information corresponding to the target saving time from all the first historical template traceability information. Then, the third template information of the first target text input template is obtained according to the target template traceability information. The first historical template traceability information can be pre-generated and saved by the second template processing server 202. When the second template processing server 202 receives the save request information for saving the text input template, it can save the text input template according to the save request information, and the save request information includes the first template information; wherein, when the second template processing server 202 saves the text input template according to the save request information, it can first obtain the text input template list, and then obtain the second template information of the target historical text input template corresponding to the text input template according to the save request information and the text input template list, and then update the second template information according to the first template information, thereby completing the saving of the text input template. After completing the saving of the text input template, the second template processing server 202 obtains the first saving time when the text input template is saved, and generates index information corresponding to the text input template for indexing the first saving time and the first template information of the text input template; then the second template processing server 202 generates the template traceability information of the text input template according to the index information, the first saving time and the first template information, and saves the template traceability information of the text input template.
[0100] It should be noted that in various specific embodiments of the present invention, when it comes to the need to perform relevant processing based on the attribute information or attribute information set of the target object (such as a user, etc.) and other data related to the characteristics of the target object, the permission or consent of the target object will be obtained first, and the collection, use and processing of these data will comply with the relevant laws, regulations and standards of the relevant countries and regions. In addition, when the embodiment of the present invention needs to obtain the attribute information of the target object, it will obtain the separate permission or separate consent of the target object through a pop-up window or jump to a confirmation page, and after clearly obtaining the separate permission or separate consent of the target object, it will obtain the relevant data of the target object necessary for the normal operation of the embodiment of the present invention.
[0101] refer to Figure 7 , Figure 7 1 is a flowchart of a text input template processing method provided by an embodiment of the present invention. The text input template processing method can be executed by a server, or by a terminal and a server together. In the embodiment of the present invention, the method is executed by a server as an example for explanation. Figure 7 The text input template processing method may include but is not limited to steps 710 to 740.
[0102] Step 710: When receiving a save request information for saving a text input template, save the text input template according to the save request information, wherein the save request information includes first template information of the text input template.
[0103] In one embodiment, a user can edit and update the text input template on the template setting interface of the terminal according to actual application requirements, and then perform a save operation on the current text input template. The terminal responds to the save operation on the text input template, generates save request information corresponding to the text input template and sends the save request information to the server, so that the server can save the text input template according to the save request information, and can generate and save the template traceability information corresponding to the text input template according to the first template information in the save request information, thereby realizing the memory preservation of the text input template.
[0104] In one embodiment, the saving operation performed by the user on the text input template may be a touch operation, a voice operation, or a somatosensory operation, etc., which is not specifically limited here. For example, when the user triggers the saving of the text input template through a touch operation, the user can save the text input template by touching (such as clicking or sliding, etc.) a save button in the terminal, such as Figure 2 and Figure 3As shown, when the user clicks the "Save" button in the template setting interface, the terminal will receive the click instruction and then be able to generate save request information based on the page data in the current template setting interface. When the user triggers the saving of the text input template through voice operation, the user can issue a voice instruction through a microphone or other sound pickup device in the terminal to save the text input template; when the user triggers the saving of the text input template through a somatosensory operation, the user can make a somatosensory action through a camera or other shooting device in the terminal to save the text input template.
[0105] It should be noted that the save request information may include the first template information, and the first template information may include all data of the currently set text input template. For example, if the currently set text input template is a leave template, the first template information corresponding to the leave template may include information such as template name, template group, leave type, start time, end time, leave duration, and leave reason. It is understandable that when editing a text input template, the user may add or delete the setting information of the text input template to ensure that each type of text input template can be reused multiple times.
[0106] In one embodiment, after receiving a save request message for saving a text input template, the user's save permission for the text input template can be verified based on the save request message, that is, it can be determined whether the user has the permission to edit and update the text input template, wherein the user's save permission for the text input template can be verified by password verification, gesture verification, face verification, iris verification, or fingerprint verification, etc., which are not specifically limited here. When it is determined that the user has the save permission for the text input template, the text input template can be saved based on the save request message; when it is determined that the user does not have the save permission for the text input template, a verification failure message can be generated and fed back to the terminal; by verifying the user's save permission, the security and reliability of the text input template update process can be guaranteed.
[0107] In one embodiment, when saving a text input template according to a save request message, a text input template list may be obtained first. Since the text input template list includes all saved historical text input templates, the second template information of the target historical text input template corresponding to the text input template may be obtained according to the save request message and the text input template list, and then the second template information may be updated according to the first template information, thereby completing the saving of the text input template. It is understandable that since there are many historical text input templates pre-stored in the text input template list, a matching target historical text input template may be obtained in the text input template list according to the save request message corresponding to the currently modified text input template, and then the second template information corresponding to the target historical text input template may be obtained, which can improve the processing efficiency of the text input template saving process. When updating the second template information according to the first template information, the first template information may cover the second template information, or the second template information may be incrementally updated according to the first template information, thereby enabling the update and saving of the current text input template to ensure the normal operation of the template saving operation process.
[0108] In one embodiment, the save request information may also include a template identifier of the text input template, and the template identifier can uniquely identify the text input template. When obtaining the second template information of the target historical text input template corresponding to the text input template according to the save request information and the text input template list, the template identifier of the text input template in the save request information may be obtained first, and then the second template information of the target historical text input template corresponding to the text input template may be obtained according to the template identifier and the text input template list. It can be understood that according to the template identifier, the target historical text input template corresponding to the text input template can be quickly matched in the text input template list, and the second template information of the target historical text input template can be determined. By using the template identifier to obtain the second template information, the efficiency of information acquisition can be greatly improved, so that the second template information can be updated according to the first template information in the subsequent steps, so as to achieve the purpose of updating and saving the text input template.
[0109] In a possible implementation, the template identification may be in the form of numbers, letters, characters, or a combination of the above forms, so that the template identification has good flexibility. The specific form of the template identification can be appropriately selected according to the actual application situation, and is not specifically limited here.
[0110] In a possible implementation, the text input template processing method may be executed by an independent server, in which a first management module, a logic processing module and a storage module may be provided, and the terminal may access the first management module, thereby realizing interaction between the user and the server. When the terminal sends a save request message for saving the text input template to the first management module, the first management module can verify the identity of the user in response to receiving the save request message, that is, verify the user's save permission for the text input template according to the save request message. When it is determined that the user has the save permission for the text input template, the save request message is sent to the logic processing module for actual logic calculation. The storage module stores a text input template list, which includes all historical text input templates. After receiving the save request message, the logic processing module first retrieves all historical text input templates from the storage module, and then obtains the template identifier of the text input template in the save request message. The second template information of the target historical text input template corresponding to the text input template is obtained in the text input template list through the template identifier, and then the second template information is updated according to the first template information, and the first template information is written back to the storage module, thereby completing the saving of the text input template. Among them, after the logic processing module writes the first template information back to the storage module, the storage module generates a save success signal. At this time, the save success signal is transmitted from the storage module, the logic processing module, and the first management module to the terminal, and the terminal returns the save success signal to the user. For example, refer to Figure 8 When the successful saving signal is transmitted to the terminal, an instruction message for prompting the completion of saving may pop up on the template setting interface of the terminal, such as Figure 8 In the example, a prompt message 810 of “settings saved successfully” is displayed. According to the prompt message 810, the user can determine that the saving operation of the text input template has been completed, thereby helping to improve the user experience.
[0111] Reference Fig. 9In a possible implementation manner, the text input template processing method can also be executed by a server cluster composed of multiple servers. The server cluster can be provided with a first management server, a logic processing server, and a storage server. The terminal can access the first management server. When the terminal sends a save request message for saving the text input template to the first management server, after the first management server receives the save request message, it first verifies the user's save permission for the text input template according to the save request message. When it is determined that the user has the save permission for the text input template, the first management server sends the save request message to the logic processing server for actual logic processing. The storage server stores a text input template list, which includes all historical text input templates. After receiving the save request information, the logic processing server first obtains the text input template list from the storage server, that is, obtains all historical text input templates, and then obtains the template identifier of the text input template in the save request information. The second template information of the target historical text input template corresponding to the text input template is obtained in the text input template list through the template identifier, and then the second template information is updated according to the first template information, and the first template information is written back to the storage server, thereby completing the saving of the text input template. Among them, after the logic processing server writes the first template information back to the storage server, the storage server generates a save success signal. At this time, the save success signal is transmitted from the storage server, the logic processing server, and the first management server to the terminal, and the terminal returns the save success signal to the user. By using a server cluster composed of multiple servers to implement the text input template processing method, the processing pressure of the text input template can be balanced to each server, thereby reducing the information processing pressure of each server and improving the information processing efficiency of each server.
[0112] Step 720: Obtain a first saving time when the text input template is saved, and generate index information corresponding to the text input template, wherein the index information is used to index the first saving time and the first template information.
[0113] It should be noted that when saving the text input template, a first saving time can be obtained, which indicates the update time of the text input template, and index information corresponding to the text input template can be generated at the same time. The first saving time and the first template information can be indexed through the index information, so as to quickly obtain the corresponding template traceability information in subsequent steps. By generating index information corresponding to the text input template, the information query speed can be effectively improved.
[0114] In one embodiment, when generating index information corresponding to a text input template, the index information corresponding to the text input template can be generated according to at least one of the first saving time or the first template information. It can be understood that the index information corresponds to the text input template one by one, and the index information can be generated according to at least one parameter in the first saving time. For example, if the first saving time includes parameters such as year, month, day, hour, minute, second, etc., the index information can be generated by the parameters of year, month, day in the first saving time. Alternatively, the index information can be generated according to at least one information in the first template information. For example, if the text input template is an enterprise document template, the first template information can include information such as template name, template group, template identifier, etc., and the index information can be generated by the template identifier or template name in the first template information, which is not specifically limited. By generating the index information corresponding to the text input template according to at least one of the first saving time or the first template information, the flexibility and security of generating the index information can be improved.
[0115] In a possible implementation, the index information can also be generated by the year parameter and the enterprise logo in the first saving time. Based on the index information, the historical template traceability information of the historical text input template of the target enterprise within the target year can be quickly obtained, thereby meeting the user's traceability needs for the historical text input template.
[0116] In one embodiment, when generating index information corresponding to the text input template, the index information corresponding to the text input template can be randomly generated. It is understandable that the index information can be randomly generated as long as the index information can be guaranteed to correspond to the text input template. For example, a random number generation algorithm can be used to randomly generate index information corresponding to the text input template, thereby improving the flexibility of generating index information and reducing the risk of index information being cracked.
[0117] Step 730: Generate template traceability information of the text input template according to the index information, the first saving time and the first template information, wherein the template traceability information includes the index information, the first saving time and the first template information.
[0118] It is understandable that the template traceability information can record all template data of the text input template, and may specifically include index information, the first saving time and the first template information, so that the template data of a text input template can be traced later.
[0119] In one embodiment, when the template traceability information of the text input template is generated according to the index information, the first saving time and the first template information, a blank information mapping table can be generated first, and then the index information, the first saving time and the first template information are filled into the information mapping table to obtain the template traceability information of the text input template. In this embodiment, the information mapping table is used to store the template traceability information of the text input template, and the information mapping table is used to record the historical versions of the text input template, which can facilitate the subsequent rapid reading and query of the template traceability information.
[0120] In one embodiment, the information mapping table includes key-value items and information items. When filling the index information, the first saving time and the first template information into the information mapping table to obtain the template traceability information of the text input template, the first saving time and the first template information can be first concatenated to obtain the template saving information, and then the index information is filled into the key-value item, and the template saving information is filled into the information item to obtain the template traceability information of the text input template. For example Fig.10 As shown, Fig.10 An exemplary flow chart of generating template traceability information of a text input template according to index information, a first storage time and first template information is provided. Fig.10 In the process, a blank information mapping table can be generated first, and then the template saving information obtained by concatenating the first saving time and the first template information can be filled into the area corresponding to the information item, and the index information can be filled into the area corresponding to the key-value item, so that an information mapping table with template traceability information can be generated. The index information in the information mapping table and the template saving information are in a one-to-one correspondence. The template saving information can be indexed through the index information, thereby effectively improving the query speed of the template saving information.
[0121] Step 740: Save template traceability information.
[0122] It should be noted that after the template traceability information of the text input template is generated, the template traceability information can be saved, that is, the index information, the first saving time and the first template information corresponding to the text input template are saved, so that the memory storage of the text input template can be realized. It is understandable that after each time the user completes the save operation of the text input template, the template traceability information of the current text input template can be saved, so that each type of text input template can be stored with the minimum background consumption cost, ensuring that all historical versions of a certain text input template are recorded, so that the historical version of a certain text input template can be quickly obtained later, improving the user experience.
[0123] In one embodiment, the template traceability information can be saved in an asynchronous processing manner. For example, the asynchronous processing of the template traceability information can be implemented through MQ middleware. The MQ middleware can ensure that the tasks of saving multiple template traceability information are executed in sequence to avoid blockage caused by the simultaneous execution of multiple tasks, effectively alleviate the impact of large traffic, and reduce the loss of template traceability information.
[0124] In a possible implementation, the text input template processing method can be executed by an independent server. In addition to the first management module, the logic processing module and the storage module, the server can also be provided with a queue module and a second management module. After completing the saving of the text input template, the logic processing module can obtain the first saving time when the text input template is saved, and then generate index information corresponding to the text input template, and then generate the template traceability information of the text input template according to the index information, the first saving time and the first template information, and deliver the template traceability information to the queue module. The queue module can use an asynchronous processing method to send the template traceability information to the second management module, and the second management module writes the template traceability information back to the storage module, thereby completing the saving of the template traceability information. When it is necessary to query the historical version of a certain text input template later, the template traceability information of the text input template can be directly obtained, without the need to obtain all historical text input files and aggregate and deduplicate the historical versions of the historical text input files to obtain the historical version of a certain text input template, thereby improving the efficiency of obtaining the text input template.
[0125] Reference Fig.11In one possible implementation, the text input template processing method can be executed by a server cluster composed of multiple servers. In addition to the first management server, the logic processing server, and the storage server, the server cluster can also be provided with a queue server and a second management server. After completing the saving of the text input template, the logic processing server can obtain the first saving time when the text input template is saved, and then generate index information corresponding to the text input template, and then generate template traceability information of the text input template according to the index information, the first saving time and the first template information, and deliver the template traceability information to the queue server. The queue server can transmit the template traceability information to the second management server through asynchronous calls, and the second management module writes the template traceability information back to the storage server, thereby completing the saving of the template traceability information. It is understandable that when the user is editing and updating the content of the text input template, the currently updated text input template can be saved to ensure the normal operation of the template saving operation process. The template traceability information of the text input template can also be memorized and stored. If a historical version of a text input template is required later, the template traceability information of the text input template can be directly obtained without going through tedious steps such as aggregation and deduplication, thereby greatly improving the efficiency of obtaining the text input template. In addition, by using a server cluster composed of multiple servers to implement the text input template processing method, the processing pressure of the text input template can be balanced to each server, thereby reducing the information processing pressure of each server and improving the information processing efficiency of each server.
[0126] In one embodiment, the storage location of the text input template in step 710 and the storage location of the template traceability information in step 740 may be different. For example, they may be stored in different storage spaces respectively, which is conducive to the classified storage of the text input template and the template traceability information, improves the efficiency of obtaining the text input template and the template traceability information in subsequent steps, and can also reduce the complexity of storing the text input template and the template traceability information.
[0127] In this embodiment, through the text input template processing method including the previous steps 710 to 740, after completing the saving of the text input template, the first saving time when the text input template is saved is obtained, and index information corresponding to the text input template is generated for indexing the first saving time and the first template information of the text input template, and then the template traceability information of the text input template is generated according to the index information, the first saving time and the first template information, and the template traceability information of the text input template is saved. In this way, when it is necessary to find a historical version of a text input template within a certain time period, the corresponding template traceability information can be first obtained according to the index information corresponding to the text input template to be found, so that the first saving time and the first template information corresponding to the text input template to be found can be obtained in the obtained template traceability information, and then the historical version of the text input template to be found within the time period can be obtained according to the obtained first saving time and the first template information. Since the historical version of a text input template within a certain time period can be obtained without obtaining all historical text input files and aggregating and deduplicating historical versions of historical text input files, the efficiency of obtaining text input templates can be improved, thereby improving the user experience.
[0128] It should be noted that, since users may make mistakes in updating the text input template, which may cause the template data to change, there is a need to trace the historical version of a text input template within a certain operation time period, so as to facilitate the repair of the template data, or when the user wants to query the settings of the text input template of a historical text input file, it is also necessary to directly obtain the various historical versions of the text input template. Based on this, by saving the template traceability information of the text input template, when it is necessary to find the historical version of a text input template within a certain time period, there is no need to obtain all historical text input files, nor to go through redundant aggregation and deduplication steps. The template traceability information corresponding to the text input template can be directly obtained according to the index information, so as to obtain the first saving time and the first template information in the template traceability information. Based on the first saving time and the first template information, the various historical versions of a text input template within a certain operation time period can be efficiently found.
[0129] In one embodiment, when receiving an acquisition request information for acquiring the first target text input template within the target time period, all the first historical template traceability information that has been saved can be first acquired according to the acquisition request information, and then the target template traceability information within the target time period is acquired from all the first historical template traceability information, and then the third template information of the first target text input template is obtained according to the target template traceability information. It can be understood that when it is necessary to find a historical version of a text input template within a certain time period, in response to receiving the acquisition request information, all the first historical template traceability information of the first target text input template can be first acquired, that is, all the historical versions of the first target text input template are first acquired, and then the target template traceability information within the target time period is filtered out from the first historical template traceability information, and the third template information is obtained from the target template traceability information, so that the purpose of efficiently finding the historical version of the first target text input template within the target time period can be achieved, and the user's traceability requirements for the historical text input template are met, which is conducive to improving the user's experience.
[0130] In one embodiment, when obtaining the target template traceability information within the target time period from all the first historical template traceability information, the second saving time in each first historical template traceability information can be obtained first, and then the target saving time in all the second saving times can be obtained, and then the target template traceability information corresponding to the target saving time can be obtained from all the first historical template traceability information. That is, after obtaining all the first historical template traceability information, it is determined whether the second saving time in the first historical template traceability information is within the target time period. If the second saving time is within the target time period, it indicates that the first historical template traceability information is the target template traceability information, thereby obtaining the target template traceability information. If the second saving time is not within the target time period, it indicates that the first historical template traceability information is not the target template traceability information. It can be understood that by obtaining the second saving time in each first historical template traceability information, the target template traceability information within the target time period can be quickly screened out from the first historical template traceability information, which is beneficial to improving the efficiency of obtaining the target template traceability information. For example Fig.12 As shown, Fig.12 A flowchart of obtaining target template traceability information within a target time period is given as an example. Fig.12In the example, when a request is received for obtaining a leave template within [start_time, end_time] (i.e., the target time period), each template traceability information of the leave template (i.e., the first historical template traceability information) can be obtained based on the request, and then the update time in the first historical template traceability information (i.e., the second save time) can be determined. Then, the target template traceability information with an update time within [start_time, end_time] can be filtered out from all the first historical template traceability information. When it is necessary to find a historical version of a text input template within a certain time period, the first historical template traceability information corresponding to the text input template can be directly obtained, and then the target template traceability information within the target time period can be quickly filtered out based on the second save time. This is different from Figure 4 The acquisition method shown, the text input template processing method can obtain the historical version of a text input template within a certain time period without obtaining all historical text input files and aggregating and deduplicating historical versions of historical text input files. Therefore, it can improve the efficiency of obtaining text input templates, which is beneficial to improving the user experience.
[0131] In one embodiment, after completing the saving of the text input template according to the save request information, when a rollback request information for performing a version rollback on the text input template is received, firstly obtain all the saved second historical template traceability information according to the rollback request information, then sort all the second historical template traceability information in chronological order from recent to far to obtain a template traceability information sequence, and then obtain the fourth template information included in the second second historical template traceability information in the template traceability information sequence to complete the version rollback of the text input template. Since users may make mistakes when editing and updating text input templates, for example, when the text input template is an enterprise document template, the user may delete a control due to a mistake in the process of editing the template, but forget the specific properties of the control. In order to meet the user's needs for rolling back the historical version of the text input template, when a rollback request information is received, the version rollback of the text input template can be implemented. For example Fig.13 As shown, Fig.13A flow chart for implementing version rollback of a text input template is given as an example. It is assumed that a user makes an erroneous operation while editing a leave template. After obtaining all historical versions of the leave template (i.e., the second historical template traceability information), all historical versions (i.e., the second historical template traceability information) are sorted in chronological order from recent to far to obtain a template traceability information sequence, wherein the first historical version in the template traceability information sequence is the version formed after the erroneous operation, and the second historical version is the target historical version that the user wants to restore. By obtaining the target historical version (i.e., the second second historical template traceability information in the template traceability information sequence), the corresponding fourth template information can be obtained, so that the current text input template can be updated according to the fourth template information, so as to achieve the purpose of version rollback of the text input template. When a user makes an error operation while editing or updating a text input template, the user can obtain the saved second historical template traceability information after receiving the rollback request information, and sort all the second historical template traceability information in chronological order from recent to far, so as to quickly obtain the target historical version that the user wants to restore, so as to roll back the text input version and improve the user experience.
[0132] In one embodiment, when all the second historical template traceability information is sorted in time order from near to far to obtain a template traceability information sequence, the third saving time included in each second historical template traceability information can be first obtained, and then all the third saving times are sorted in time order from near to far to obtain a saving time sequence, and then all the second historical template traceability information is sorted according to the saving time sequence to obtain a template traceability information sequence. It can be understood that after obtaining all the second historical template traceability information, the third saving time in the second historical template traceability information is first sorted to obtain a saving time sequence, which is convenient for quickly sorting the second historical template traceability information in subsequent steps, so that the template traceability information sequence can be arranged in time order from near to far. By arranging the template traceability information sequence in time order from near to far, the template traceability information with a closer saving time can be placed in a front position, thereby improving the acquisition efficiency of the text input template with a closer saving time and improving the user experience.
[0133] In one embodiment, when a text input file to be saved is received, a second target text input template corresponding to the text input file is obtained, and then a fourth save time of the second target text input template is obtained, and then the fourth save time is added to the file information of the text input file, and the text input file with the fourth save time added is saved. It can be understood that when a user needs to submit a text input file, the corresponding business data is usually entered on the text input template to generate a text input file to be saved. The fourth save time is the time for saving the second target text input template corresponding to the text input file. By adding the fourth save time to the text input file, it is convenient to query the historical version of the second target text input template corresponding to the fourth save time through the text input file later, which is conducive to meeting the user's need to query the template setting of the text input file and improving the user's experience.
[0134] The text input template processing method provided by the embodiment of the present invention is described in detail below using a specific example.
[0135] Reference Fig.14 As shown, the text input template processing method can be executed by an independent server, and the text input template processing method can include but is not limited to steps 1401 to 1418.
[0136] Step 1401: receiving a save request message for saving a text input template, wherein the save request message includes first template information of the text input template;
[0137] Step 1402: Get a text input template list;
[0138] In this step, the text input template list includes all saved historical text input templates, so as to facilitate obtaining a target historical text input template from all historical text input templates in subsequent steps.
[0139] Step 1403: obtaining the template identifier of the text input template in the save request information, and obtaining the second template information of the target historical text input template corresponding to the text input template according to the template identifier and the text input template list;
[0140] In this step, the saved request information also includes the template identifier of the text input template. The template identifier is used to uniquely identify the text input template. According to the template identifier, the target historical text input template corresponding to the text input template can be quickly matched in the text input template list, and the second template information of the target historical text input template can be determined. By using the template identifier to obtain the second template information, the efficiency of information acquisition can be greatly improved.
[0141] Step 1404: updating the second template information according to the first template information, and completing the saving of the text input template;
[0142] Step 1405: Acquire the first saving time when the text input template is saved, and generate index information corresponding to the text input template;
[0143] In this step, the index information is used to index the first storage time and the first template information, and the index information corresponding to the text input template can be generated according to at least one of the first storage time or the first template information, or the index information corresponding to the text input template can be randomly generated. By generating the index information corresponding to the text input template, the information query speed can be effectively improved.
[0144] Step 1406: Generate a blank information mapping table;
[0145] Step 1407: concatenate the first saving time and the first template information to obtain template saving information, fill the index information into the key value item, and fill the template saving information into the information item to obtain template traceability information of the text input template;
[0146] In this step, the information mapping table includes key items and information items. The information mapping table is used to store the template traceability information of the text input template. The template traceability information includes index information, the first saving time and the first template information. The information mapping table is used to record the historical versions of the text input template to facilitate subsequent reading and query of the template traceability information.
[0147] Step 1408: Save template traceability information;
[0148] In this step, after each saving operation of the text input template is completed, the template traceability information of the current text input template will be saved, so that each modified text input template can be stored with minimal background consumption cost.
[0149] Step 1409: when the operation request information is received, determine the type of the operation request information; if the operation request information is an acquisition request information for acquiring the first target text input template within the target time period, execute step 1410; if the operation request information is a rollback request information for performing a version rollback on the text input template, execute step 1413; if the operation request information is a text input file to be saved, execute step 1416;
[0150] Step 1410: Obtain all first historical template traceability information that has been saved according to the acquisition request information;
[0151] Step 1411: obtaining the second saving time in each first historical template traceability information, obtaining the target saving time in the target time period from all the second saving times, and obtaining the target template traceability information corresponding to the target saving time from all the first historical template traceability information;
[0152] In this step, by obtaining the second saving time, the target template traceability information within the target time period can be quickly screened out from the first historical template traceability information, which is beneficial to improving the efficiency of obtaining the target template traceability information.
[0153] Step 1412: Obtain third template information of the first target text input template according to the target template traceability information;
[0154] In this step, by obtaining the third template information of the first target text input template, the historical version of the text input template to be found within the target time period is obtained. There is no need to obtain all historical text input files and aggregate and deduplicate historical versions of the historical text input files to obtain the historical version of a text input template within a certain time period. This can improve the efficiency of obtaining text input templates, thereby improving the user experience.
[0155] Step 1413: Obtain all saved second historical template traceability information according to the rollback request information;
[0156] Step 1414: obtaining the third saving time included in each second historical template traceability information, sorting all the third saving times in chronological order from recent to far to obtain a saving time sequence, and sorting all the second historical template traceability information according to the saving time sequence to obtain a template traceability information sequence;
[0157] In this step, the third saving time in the second historical template traceability information is first sorted to obtain a saving time sequence, so as to facilitate the rapid sorting of the second historical template traceability information in subsequent steps, so that the template traceability information sequence can be arranged in chronological order from recent to far.
[0158] Step 1415: obtaining the fourth template information included in the second second historical template tracing information in the template tracing information sequence, and completing the version rollback of the text input template;
[0159] In this step, if the user makes an error operation when editing the text input template, the second historical template traceability information in the template traceability information sequence is the target historical version that the user wants to restore. By obtaining the fourth template information and updating the current text input template according to the fourth template information, the user's need to roll back the historical version of the text input template can be met.
[0160] Step 1416: Obtain a second target text input template corresponding to the text input file;
[0161] Step 1417: Obtain the fourth saving time of the second target text input template;
[0162] Step 1418: Add the fourth saving time to the file information of the text input file, and save the text input file with the fourth saving time added.
[0163] In this step, by adding the fourth save time to the text input file, it is convenient to subsequently query the historical version of the second target text input template corresponding to the fourth save time through the text input file, which is beneficial to meeting the user's need to query the template settings of the text input file and improving the user's experience.
[0164] Through the text input template processing method of the above steps 1401 to 1418, after completing the saving of the text input template, the first saving time when the text input template is saved is obtained, and index information corresponding to the text input template is generated for indexing the first saving time and the first template information of the text input template, and then the template traceability information of the text input template is generated according to the index information, the first saving time and the first template information, and the template traceability information of the text input template is saved. In this way, when it is necessary to find a historical version of a text input template within a certain time period, the corresponding template traceability information can be first obtained according to the index information corresponding to the text input template to be found, so that the first saving time and the first template information corresponding to the text input template to be found can be obtained in the obtained template traceability information, and then the historical version of the text input template to be found within the time period can be obtained according to the obtained first saving time and the first template information. Since it is possible to obtain the historical version of a text input template within a certain time period without obtaining all historical text input files and aggregating and deduplicating historical versions of the historical text input files, the efficiency of obtaining the text input template can be improved; in addition, when it is necessary to perform a version rollback on a certain text input template, the saved second historical template traceability information can be obtained after receiving the rollback request information, and then all the second historical template traceability information can be sorted in chronological order from recent to far to obtain a template traceability information sequence, and then the fourth template information included in the second second historical template traceability information in the template traceability information sequence is obtained to complete the version rollback of the text input template and meet the user's need to roll back the historical version of the text input template; in addition, when it is necessary to save a certain text input file, by adding the fourth save time to the file information of the text input file, the user's need to query the template setting status of the text input file can be met, which is beneficial to improving the user experience.
[0165] The text input template processing method provided by the embodiment of the present invention is described in detail below with another specific example.
[0166] Reference Fig.15 As shown, Fig.15 The interactive diagram of a text input template processing method provided by a specific example, the text input template processing method can be executed by a server cluster consisting of multiple servers, and the server cluster can be provided with a first management server, a logic processing server, a storage server, a queue server, and a second management server. Fig.15In the embodiment, when the terminal sends a save request message for saving a text input template to the first management server, after the first management server receives the save request message, it can first verify the user's save permission for the text input template according to the save request message. When it is determined that the user has the save permission for the text input template, the first management server sends the save request message to the logic processing server for actual logic calculation. The storage server stores a text input template list, which includes all historical text input templates. After the logic processing server receives the save request message, it can first obtain the text input template list from the storage server, that is, obtain all historical text input templates, and then obtain the template identifier of the text input template in the save request message. The second template information of the target historical text input template corresponding to the text input template is obtained in the text input template list through the template identifier, which can greatly improve the efficiency of information acquisition. Then, the second template information is updated according to the first template information, and the first template information is written back to the storage server, thereby completing the saving of the text input template. After the logic processing server writes the first template information back to the storage server, the storage server generates a successful save signal. At this time, the successful save signal is transmitted from the storage server, the logic processing server, and the first management server to the terminal, and the terminal returns the successful save signal to the user to prompt the user that the save operation of the text input template has been completed. After completing the save of the text input template, the logic processing server obtains the first save time when the text input template is saved, and then generates index information corresponding to the text input template, and then generates the template traceability information of the text input template according to the index information, the first save time and the first template information, and delivers the template traceability information to the queue server. The queue server transmits the template traceability information to the second management server through asynchronous calls. The use of asynchronous calls can effectively alleviate the impact of large traffic and reduce the loss of template traceability information. The second management server can write the template traceability information back to the storage server, thereby completing the save of the template traceability information, and can store each modified text input template with the minimum background consumption cost. When the terminal sends an acquisition request message to the first management server for acquiring the first target text input template within the target time period, the first management server sends the acquisition request message to the logic processing server after receiving the acquisition request message. The logic processing server first acquires all the saved first historical template traceability information from the storage server according to the acquisition request message, and then acquires the target template traceability information within the target time period from all the first historical template traceability information, and then acquires the third template information of the first target text input template according to the target template traceability information, so as to achieve the purpose of efficiently acquiring the historical version of a text input template within a certain time period.When the terminal sends a rollback request message for version rollback of the text input template to the first management server, the first management server sends the rollback request message to the logic processing server after receiving the rollback request message. The logic processing server first obtains all the saved second historical template traceability information from the storage server according to the rollback request message, and then sorts all the second historical template traceability information in chronological order from recent to far to obtain a template traceability information sequence, and then obtains the fourth template information included in the second second historical template traceability information in the template traceability information sequence to complete the version rollback of the text input template, thereby meeting the user's needs for rolling back the historical version of the text input template. When the terminal sends a text input file to be saved to the first management server, the first management server sends the text input file to the logic processing server after receiving it. The logic processing server first obtains the second target text input template corresponding to the text input file, and then obtains the fourth save time of the second target text input template, and then adds the fourth save time to the file information of the text input file. The text input file with the fourth save time is then sent to the storage server for saving, so as to facilitate the subsequent query of the historical version of the second target text input template corresponding to the fourth save time through the text input file, which is conducive to meeting the user's need to query the template setting of the text input file.
[0167] The text input template processing method is implemented by a server cluster composed of the above-mentioned multiple servers. After the text input template is saved, the first saving time when the text input template is saved is obtained, and index information corresponding to the text input template is generated for indexing the first saving time and the first template information of the text input template, and then the template traceability information of the text input template is generated according to the index information, the first saving time and the first template information, and the template traceability information of the text input template is saved. In this way, when it is necessary to find a historical version of a text input template within a certain time period, the corresponding template traceability information can be obtained first according to the index information corresponding to the text input template to be found, so that the first saving time and the first template information corresponding to the text input template to be found can be obtained in the obtained template traceability information, and then the historical version of the text input template to be found within the time period can be obtained according to the obtained first saving time and the first template information. Since it is possible to obtain the historical version of a text input template within a certain time period without obtaining all historical text input files and aggregating and deduplicating historical versions of the historical text input files, the efficiency of obtaining the text input template can be improved; in addition, when it is necessary to perform a version rollback on a certain text input template, the saved second historical template traceability information can be obtained after receiving the rollback request information, and then all the second historical template traceability information can be sorted in chronological order from recent to far to obtain a template traceability information sequence, and then the fourth template included in the second second historical template traceability information in the template traceability information sequence is obtained. version information, complete the version rollback of the text input template, and meet the user's demand for rolling back the historical version of the text input template; in addition, when a text input file needs to be saved, by adding the fourth save time to the file information of the text input file, the user's demand for querying the template setting of the text input file can be met, which is beneficial to improving the user experience; by adopting a server cluster composed of multiple servers to implement the text input template processing method, the processing pressure of the text input template can be balanced to each server, thereby reducing the information processing pressure of each server and improving the information processing efficiency of each server.
[0168] The following are some practical examples to illustrate the application scenarios of the embodiments of the present invention.
[0169] It should be noted that the text input template processing method provided in the embodiment of the present invention can be applied to different application scenarios such as finding historical versions of enterprise document templates, finding historical versions of auxiliary writing templates, and performing version rollback on enterprise document templates. The following will be explained using the scenarios of finding historical versions of enterprise document templates, finding historical versions of auxiliary writing templates, and performing version rollback on enterprise document templates as examples.
[0170] Scene 1
[0171] The text input template processing method provided in the embodiment of the present invention can be applied to the scenario of searching for historical versions of enterprise document templates. For example, assuming that a user edits and updates an enterprise document template through a user terminal (such as a smart phone), when the user clicks the save button on the template setting interface, the user terminal generates a save request message in response to the user's click operation and sends it to the server. After receiving the save request message, the server obtains a text input template list, which includes all saved historical text input templates, obtains the template identifier of the text input template in the save request message, and obtains the second template information of the target historical text input template corresponding to the text input template according to the template identifier and the text input template list. The save request message includes the first template information of the text input template, and then the second template information is updated according to the first template information, thereby completing the saving and updating of the enterprise document template; by obtaining the first saving time when the text input template is saved, index information corresponding to the text input template is generated, and the index information is used to index the first saving time and the first template information, and then a blank information mapping table is generated, and then the first saving time is saved. The time is spliced with the first template information to obtain the template saving information, the index information is filled into the key value item, and the template saving information is filled into the information item, the template traceability information of the text input template is obtained, and the template traceability information is saved; when the user needs to find the historical version of a certain enterprise document template within a certain time period to analyze the design rationality of the enterprise document template, the server can receive the acquisition request information sent by the user through the user terminal, and then obtain all the saved first historical template traceability information according to the acquisition request information; and obtain the second saving time in each first historical template traceability information, and then obtain the target saving time in the target time period from all the second saving times, and then obtain the target template traceability information corresponding to the target saving time from all the first historical template traceability information; and obtain the third template information of the first target text input template according to the target template traceability information, so as to achieve the purpose of efficiently finding the historical version of the first target text input template within the target time period, and then the number of historical versions of the first target text input template within the target time period can be counted, so as to analyze the user's satisfaction with the design of the first target text input template.
[0172] Scene 2
[0173] The text input template processing method provided in the embodiment of the present invention can be applied to the scenario of searching for historical versions of auxiliary writing templates. For example, assuming that a user edits and updates an auxiliary writing template through a user terminal (such as a computer), the user terminal generates a save request message in response to the user's save operation on the auxiliary writing template and sends it to the server. After receiving the save request message, the server obtains a text input template list, which includes all saved historical text input templates, obtains the template identifier of the text input template in the save request message, and obtains the second template information of the target historical text input template corresponding to the text input template according to the template identifier and the text input template list. The save request message includes the first template information of the text input template, and then the second template information is updated according to the first template information, thereby completing the save and update of the auxiliary writing template; by obtaining the first save time when the text input template is saved, index information corresponding to the text input template is generated, and the index information is used to index the first save time and the first template information, and then a blank information mapping table is generated, and then the first save time and the first template information are indexed. The information is spliced to obtain the template saving information, the index information is filled into the key value item, and the template saving information is filled into the information item, the template traceability information of the text input template is obtained, and the template traceability information is saved; when the user needs to perform data analysis on the historical version of a certain auxiliary writing template within a certain time period to design a new auxiliary writing template, the server can receive the acquisition request information sent by the user through the user terminal, and then obtain all the saved first historical template traceability information according to the acquisition request information; and obtain the second saving time in each first historical template traceability information, and then obtain the target saving time in all the second saving times, and then obtain the target template traceability information corresponding to the target saving time in all the first historical template traceability information; and obtain the third template information of the first target text input template according to the target template traceability information, so as to achieve the purpose of efficiently finding the historical version of the first target text input template within the target time period, and by performing numerical analysis on the template data of the historical version of the first target text input template within the target time period, it is convenient to design an auxiliary writing template that meets the new writing scenario.
[0174] Scene 3
[0175] The text input template processing method provided in the embodiment of the present invention can be applied to the scenario of version rollback of an enterprise document template. For example, assuming that a user edits and updates an enterprise document template through a user terminal (such as a computer), when the user clicks the save button on the template setting interface, the user terminal generates a save request message in response to the user's click operation and sends it to the server. After receiving the save request message, the server obtains a text input template list, which includes all saved historical text input templates, obtains the template identifier of the text input template in the save request message, and obtains the second template information of the target historical text input template corresponding to the text input template according to the template identifier and the text input template list. The save request message includes the first template information of the text input template, and then the second template information is updated according to the first template information, thereby completing the save and update of the enterprise document template; by obtaining the first save time when the text input template is saved, the index information corresponding to the text input template is generated, and the index information is used to index the first save time and the first template information, and then a blank letter information mapping table, then concatenate the first saving time and the first template information to obtain the template saving information, fill the index information into the key value item, fill the template saving information into the information item, obtain the template traceability information of the text input template, and save the template traceability information; when the user deletes a control due to an erroneous operation during the editing and updating of the enterprise document template, but forgets the specific attributes of the control, the server can receive the rollback request information sent by the user through the user terminal, and then obtain all the saved second historical template traceability information according to the rollback request information, and then obtain the third saving time included in each second historical template traceability information, sort all the third saving times in a time order from near to far, obtain the saving time sequence, and sort all the second historical template traceability information according to the saving time sequence to obtain the template traceability information sequence, by obtaining the fourth template information included in the second second historical template traceability information in the template traceability information sequence, the version of the text input template can be rolled back based on the fourth template information, so as to meet the user's demand for rolling back the historical version of the text input template.
[0176] It is to be understood that, although the steps in the above-mentioned various flow charts are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in the present embodiment, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flow charts can include a plurality of steps or a plurality of stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of the steps or stages in other steps or other steps.
[0177] Reference Fig.16 The embodiment of the present invention further discloses a text input template processing device 1600, which can implement the text input template processing method in the previous embodiment. The text input template processing device 1600 includes:
[0178] The first saving unit 1610 is configured to save the text input template according to the saving request information when receiving the saving request information for saving the text input template, wherein the saving request information includes the first template information of the text input template;
[0179] The information processing unit 1620 is used to obtain a first saving time when the text input template is saved, and generate index information corresponding to the text input template, wherein the index information is used to index the first saving time and the first template information;
[0180] An information generating unit 1630 is used to generate template traceability information of the text input template according to the index information, the first saving time and the first template information, wherein the template traceability information includes the index information, the first saving time and the first template information;
[0181] The second storage unit 1640 is used to store the template traceability information.
[0182] In one embodiment, the information generating unit 1630 is further configured to:
[0183] Generate a blank information mapping table;
[0184] The index information, the first saving time and the first template information are filled into the information mapping table to obtain the template traceability information of the text input template.
[0185] In one embodiment, the information mapping table includes key items and information items; the information generating unit 1630 is further used to:
[0186] The first saving time and the first template information are concatenated to obtain the template saving information;
[0187] The index information is filled into the key value item, and the template saving information is filled into the information item to obtain the template traceability information of the text input template.
[0188] In one embodiment, the information processing unit 1620 is further configured to:
[0189] generating index information corresponding to the text input template according to at least one of the first saving time or the first template information;
[0190] Alternatively, index information corresponding to the text input template is randomly generated.
[0191] In one embodiment, the first storage unit 1610 is further used for:
[0192] Obtain a text input template list, wherein the text input template list includes all saved historical text input templates;
[0193] Acquire second template information of a target historical text input template corresponding to the text input template according to the save request information and the text input template list;
[0194] The second template information is updated according to the first template information to complete the saving of the text input template.
[0195] In one embodiment, the save request information further includes a template identifier of the text input template; the first save unit 1610 is further used to:
[0196] Get the template ID of the text input template in the saved request information;
[0197] The second template information of the target historical text input template corresponding to the text input template is acquired according to the template identifier and the text input template list.
[0198] In one embodiment, the text input template processing apparatus 1600 further includes:
[0199] A first information acquisition unit, configured to, upon receiving acquisition request information for acquiring a first target text input template within a target time period, acquire all first historical template traceability information that has been saved according to the acquisition request information;
[0200] A second information acquisition unit is used to acquire target template traceability information within a target time period from all first historical template traceability information;
[0201] The template information acquisition unit is used to obtain third template information of the first target text input template according to the target template tracing information.
[0202] In one embodiment, the second information acquisition unit is further used for:
[0203] Obtaining the second saving time in each first historical template traceability information;
[0204] Obtaining a target saving time within a target time period from among all second saving times;
[0205] The target template tracing information corresponding to the target saving time is obtained from all the first historical template tracing information.
[0206] In one embodiment, the text input template processing apparatus 1600 further includes:
[0207] A third information acquisition unit is configured to, upon receiving rollback request information for performing version rollback on the text input template, acquire all the saved second historical template traceability information according to the rollback request information;
[0208] An information sorting unit, used to sort all the second historical template traceability information in chronological order from recent to far, to obtain a template traceability information sequence;
[0209] The version rollback unit is used to obtain the fourth template information included in the second second historical template traceability information in the template traceability information sequence, and complete the version rollback of the text input template.
[0210] In one embodiment, the information sorting unit is further configured to:
[0211] Obtaining the third storage time included in each second historical template traceability information;
[0212] Sort all third preservation times in chronological order from recent to far to obtain a preservation time sequence;
[0213] All second historical template traceability information is sorted according to the saved time sequence to obtain a template traceability information sequence.
[0214] In one embodiment, the text input template processing apparatus 1600 further includes:
[0215] A template acquisition unit, configured to, upon receiving a text input file to be saved, acquire a second target text input template corresponding to the text input file;
[0216] A time acquisition unit, used to acquire a fourth storage time of the second target text input template;
[0217] The third saving unit is used to add the fourth saving time to the file information of the text input file, and save the text input file with the fourth saving time added.
[0218] It should be noted that since the text input template processing device 1600 of this embodiment can implement the text input template processing method of the previous embodiment, the text input template processing device 1600 of this embodiment and the text input template processing method of the previous embodiment have the same technical principles and the same beneficial effects, and in order to avoid repetition of content, they will not be repeated here.
[0219] Reference Fig.17 The embodiment of the present invention further discloses a text input template processing device, the text input template processing device 1700 comprises:
[0220] at least one processor 1701;
[0221] At least one memory 1702, used to store at least one program;
[0222] When at least one program is executed by at least one processor 1701, the text input template processing method of the previous embodiment is implemented.
[0223] An embodiment of the present invention further discloses a computer-readable storage medium, which stores a computer program executable by a processor. When the computer program executable by the processor is executed by the processor, it is used to implement the text input template processing method as described in the previous embodiment.
[0224] An embodiment of the present invention also discloses a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a text input template processing device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the text input template processing device performs the text input template processing method as in the previous embodiment.
[0225] The terms "first", "second", "third", "fourth", etc. (if any) in the description of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0226] It should be understood that in the present invention, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can represent: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0227] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0228] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0229] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0230] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0231] The step numbers in the above method embodiment are only provided for the convenience of explanation and description, and no limitation is imposed on the order of the steps. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
Claims
1. A text input template processing method, characterized in that: The following steps are involved: When receiving a save request information for saving a text input template, saving the text input template according to the save request information, wherein the save request information includes first template information of the text input template; Acquire a first saving time when the text input template is saved, and generate index information corresponding to the text input template, wherein the index information is used to index the first saving time and the first template information; Generating template traceability information of the text input template according to the index information, the first saving time and the first template information, wherein the template traceability information includes the index information, the first saving time and the first template information; The template traceability information is saved.
2. The text input template processing method according to claim 1, characterized in that: The step of generating the template tracing information of the text input template according to the index information, the first saving time and the first template information includes: Generate a blank information mapping table; The index information, the first saving time and the first template information are filled into the information mapping table to obtain the template tracing information of the text input template.
3. The text input template processing method according to claim 2, characterized in that: The information mapping table includes key items and information items; the index information, the first saving time and the first template information are filled into the information mapping table to obtain the template tracing information of the text input template, including: splicing the first saving time and the first template information to obtain template saving information; The index information is filled into the key-value item, and the template saving information is filled into the information item to obtain the template tracing information of the text input template.
4. The text input template processing method according to claim 1, characterized in that: The generating of index information corresponding to the text input template includes: generating index information corresponding to the text input template according to at least one of the first saving time or the first template information; Alternatively, index information corresponding to the text input template is randomly generated.
5. The text input template processing method according to claim 1, characterized in that: The step of saving the text input template according to the save request information includes: Obtaining a text input template list, wherein the text input template list includes all saved historical text input templates; Acquire second template information of a target historical text input template corresponding to the text input template according to the save request information and the text input template list; The second template information is updated according to the first template information to complete the saving of the text input template.
6. The text input template processing method according to claim 5, characterized in that: The save request information also includes a template identifier of the text input template; The acquiring, according to the save request information and the text input template list, second template information of a target historical text input template corresponding to the text input template comprises: Obtaining the template identifier of the text input template in the save request information; The second template information of the target historical text input template corresponding to the text input template is acquired according to the template identifier and the text input template list.
7. The text input template processing method according to claim 1, characterized in that: The text input template processing method also includes: When receiving an acquisition request information for acquiring a first target text input template within a target time period, acquiring all saved first historical template traceability information according to the acquisition request information; Acquire the target template tracing information within the target time period from all the first historical template tracing information; The third template information of the first target text input template is obtained according to the target template tracing information.
8. The text input template processing method according to claim 7, characterized in that: The acquiring the target template tracing information within the target time period from all the first historical template tracing information includes: Obtaining the second saving time in each of the first historical template traceability information; Acquire a target storage time within the target time period from all the second storage times; The target template tracing information corresponding to the target saving time is obtained from all the first historical template tracing information.
9. The text input template processing method according to claim 1, characterized in that: After the text input template is saved according to the save request information, the text input template processing method further includes: When a rollback request information for performing a version rollback on the text input template is received, all the saved second historical template traceability information is acquired according to the rollback request information; Sorting all the second historical template traceability information in chronological order from recent to far to obtain a template traceability information sequence; The fourth template information included in the second second historical template tracing information in the template tracing information sequence is obtained to complete the version rollback of the text input template.
10. The text input template processing method according to claim 9, characterized in that: The step of sorting all the second historical template traceability information in chronological order from recent to far to obtain a template traceability information sequence includes: Obtaining the third storage time included in each of the second historical template traceability information; Sorting all the third saving times in order from recent to far to obtain a saving time sequence; All the second historical template traceability information is sorted according to the saving time sequence to obtain a template traceability information sequence.
11. The text input template processing method according to claim 1, characterized in that: The text input template processing method also includes: When receiving a text input file to be saved, obtaining a second target text input template corresponding to the text input file; Obtaining a fourth saving time of the second target text input template; The fourth saving time is added to the file information of the text input file, and the text input file to which the fourth saving time is added is saved.
12. A text input template processing device, characterized in that: include: a first saving unit, configured to save the text input template according to the saving request information when receiving the saving request information for saving the text input template, wherein the saving request information includes the first template information of the text input template; an information processing unit, configured to obtain a first saving time when the text input template is saved, and generate index information corresponding to the text input template, wherein the index information is used to index the first saving time and the first template information; An information generating unit, configured to generate template traceability information of the text input template according to the index information, the first saving time and the first template information, wherein the template traceability information includes the index information, the first saving time and the first template information; The second storage unit is used to store the template traceability information.
13. A text input template processing device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the text input template processing method according to any one of claims 1 to 11 is implemented.
14. A computer-readable storage medium, characterized in that: A computer program executable by a processor is stored therein, and when the computer program executable by the processor is executed by the processor, it is used to implement the text input template processing method as described in any one of claims 1 to 11.
15. A computer program product comprising a computer program or computer instructions, characterized in that The computer program or the computer instructions are stored in a computer-readable storage medium, and the processor of the text input template processing device reads the computer program or the computer instructions from the computer-readable storage medium. The processor executes the computer program or the computer instructions, so that the text input template processing device performs the text input template processing method as described in any one of claims 1 to 11.
