Document content processing method, device, equipment and storage medium

By obtaining and verifying the verification rules for document editing content, ensuring that only valid content updates the document content, it solves the problem of illegal parameter detection when editing documents in the browser, and improves document editing efficiency and security.

CN114139502BActive Publication Date: 2024-12-06PING AN BANK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111443245.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-12-06
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

When editing documents in a browser, illegal parameters cannot be effectively detected and processed, resulting in low efficiency in editing the document content and inability to perform granular storage, and users need to re-edit.

Method used

By obtaining the attribute configuration information associated with the initial document content, performing configuration processing, obtaining verification rules, verifying the permissions of the editing user, and verifying the validity of the document editing content based on the verification rules to ensure that only valid content is available The document content was updated.

Benefits of technology

It improves document editing efficiency, ensures the security and privacy of document content, and avoids the inefficient editing caused by illegal parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114139502B_ABST
    Figure CN114139502B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a document content processing method, device, equipment and storage medium. The method includes: obtaining attribute configuration information associated with the initial document content, configuring and processing the initial document content according to the attribute configuration information, and obtaining the target document content; if an editing operation of the editing user on the target document content is detected, verifying the editing authority of the editing user according to the user attribute information of the editing user; if the editing user has the editing authority to edit the target document content, obtaining the document editing content of the editing user for the target document content; verifying the validity of the document editing content according to the verification rules in the attribute configuration information, and if the document editing content is valid, updating the target document content according to the document editing content. Through this application, the validity of the document editing content of the document content can be verified, thereby improving the efficiency of document content editing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and in particular to a document content processing method, device, equipment and storage medium. Background Art

[0002] With the popularization of computers, people can use office software to record text, write documents and books, which brings great convenience to people in recording information.

[0003] Currently, when editing document content on a browser, there is no support for rich verification of input content. When a user enters illegal parameters, it cannot be detected, resulting in the inability to granularly store the input content containing illegal parameters. The user is required to re-edit the document content, resulting in low editing efficiency of the document content. Summary of the invention

[0004] The technical problem to be solved by the embodiments of the present application is to provide a document content processing method, device, equipment and storage medium, which can verify the validity of the document editing content of the document content and improve the editing efficiency of the document content.

[0005] An embodiment of the present application provides a document content processing method, including:

[0006] Acquire attribute configuration information associated with the initial document content, perform configuration processing on the initial document content according to the attribute configuration information, and obtain target document content; the attribute configuration information includes verification rules for validating the target document content;

[0007] If an editing operation of the editing user on the target document content is detected, the user attribute information of the editing user is obtained, and the editing authority of the editing user is verified according to the user attribute information to obtain an authority verification result;

[0008] If the authority verification result indicates that the editing user has the editing authority to edit the target document content, then obtaining the document editing content of the editing user for the target document content;

[0009] The validity of the edited content of the document is verified according to the verification rule to obtain a validity verification result. If the validity verification result indicates that the edited content of the document is valid, the target document content is updated according to the edited content of the document.

[0010] The process of acquiring configuration information associated with the initial document content and performing configuration processing on the initial document content according to the configuration information to obtain the target document content includes:

[0011] In response to the configuration operation for the initial document content, a document configuration interface is output; the document configuration interface includes M candidate document fields, where M is a positive integer;

[0012] In response to a selection operation on the M candidate document fields, the N candidate document fields selected by the selection operation are determined as N target document fields; N is a positive integer less than or equal to M;

[0013] In response to the attribute configuration operations respectively corresponding to the N target document fields, obtaining the verification rules respectively corresponding to the N target document fields;

[0014] The N target document fields and the verification rules respectively corresponding to the N target document fields are added to the initial document content to obtain the target document content.

[0015] Wherein, the user attribute information includes user type;

[0016] If an editing operation of the editing user on the target document content is detected, the user attribute information of the editing user is obtained, and the editing authority of the editing user is verified according to the user attribute information to obtain an authority verification result, including:

[0017] If an editing operation of the editing user on the target document content is detected, user information of the editing user is obtained, and a user type of the editing user is determined according to the user information of the editing user;

[0018] If the user type of the editing user belongs to the preset user type, determining that the editing user has the editing authority to edit the target document content;

[0019] If the user type of the editing user does not belong to the preset user type, it is determined that the editing user does not have the editing authority to edit the target document content.

[0020] If the authority verification result indicates that the editing user has the editing authority to edit the target document content, obtaining the document editing content of the editing user for the target document content includes:

[0021] If the authority verification result indicates that the editing user has the editing authority to edit the target document content, then obtaining the user ID of the editing user;

[0022] Acquire the associated content corresponding to the user identifier from the database associated with the N target document fields included in the target document content respectively;

[0023] The associated content corresponding to the user identifier is determined as the document editing content of the editing user for the target document content.

[0024] The verification rule includes a standard field format set and a standard field type set;

[0025] The validity of the edited content of the document is verified according to the verification rule to obtain the validity verification result, including:

[0026] Obtain the edit document field corresponding to the edit content of the document, and obtain the target standard field format corresponding to the edit document field from the standard field format set;

[0027] Obtain the target standard field type corresponding to the edit document field from the standard field type set;

[0028] Verify whether the format of the document editing content belongs to the target standard field format, and verify whether the type of the document editing content belongs to the target standard field type;

[0029] If the format of the document edited content belongs to the target standard field format, and the type of the document edited content belongs to the target standard field type, then determining that the document edited content is valid;

[0030] If the format of the document editing content does not belong to the target standard field format, and the type of the document editing content does not belong to the target standard field type, it is determined that the document editing content is not valid.

[0031] Wherein, before detecting an editing operation of the editing user on the target document content, the method further includes:

[0032] Obtaining a target document field and a document field value in the target document content, constructing a field association relationship between the target document field and the document field value, and storing the field association relationship, wherein the field association relationship is used to update the target document content;

[0033] The target document content is page-converted to obtain a document page of the target document content, and the document page is output. The document page is used by the editing user to edit the target document content.

[0034] If the validity check result indicates that the document edited content is valid, then updating the target document content according to the document edited content includes:

[0035] If the validity check result indicates that the document edit content is valid, then obtaining the edit document field corresponding to the document edit content, and obtaining the initial document field value corresponding to the document edit content according to the field association relationship;

[0036] Replace the original document field values ​​with the document edited content.

[0037] An embodiment of the present application provides a document content processing device, including:

[0038] A configuration processing module, used to obtain attribute configuration information associated with the initial document content, and perform configuration processing on the initial document content according to the attribute configuration information to obtain the target document content; the attribute configuration information includes a verification rule for validating the target document content;

[0039] The verification module is used to obtain the user attribute information of the editing user if an editing operation of the editing user on the target document content is detected, and verify the editing authority of the editing user according to the user attribute information to obtain an authority verification result;

[0040] An acquisition module, configured to acquire the document editing content of the target document by the editing user if the permission verification result indicates that the editing user has the editing permission to edit the target document content;

[0041] The update module is used to verify the validity of the document editing content according to the verification rule to obtain a validity verification result. If the validity verification result indicates that the document editing content is valid, the target document content is updated according to the document editing content.

[0042] Among them, the configuration processing module includes:

[0043] An output unit, configured to respond to a configuration operation on the initial document content and output a document configuration interface; the document configuration interface includes M candidate document fields, where M is a positive integer;

[0044] A first determining unit is configured to respond to a selection operation on the M candidate document fields and determine the N candidate document fields selected by the selection operation as N target document fields; N is a positive integer less than or equal to M;

[0045] A first acquisition unit, configured to respond to attribute configuration operations corresponding to the N target document fields respectively, and acquire verification rules corresponding to the N target document fields respectively;

[0046] The adding unit is used to add the N target document fields and the verification rules respectively corresponding to the N target document fields to the initial document content to obtain the target document content.

[0047] Wherein, the user attribute information includes user type;

[0048] The verification modules include:

[0049] A second determining unit is configured to obtain user information of the editing user if an editing operation of the editing user on the target document content is detected, and determine a user type of the editing user according to the user information of the editing user;

[0050] A third determining unit, configured to determine that the editing user has editing authority to edit the target document content if the user type of the editing user belongs to a preset user type;

[0051] The fourth determining unit is configured to determine that the editing user does not have the editing authority to edit the target document content if the user type of the editing user does not belong to the preset user type.

[0052] The acquisition module includes:

[0053] A second acquisition unit is used to acquire a user identifier of the editing user if the authority verification result indicates that the editing user has the editing authority to edit the target document content;

[0054] A third acquisition unit is used to acquire the associated content corresponding to the user identifier from the database associated with the N target document fields included in the target document content;

[0055] The fifth determining unit is used to determine the associated content corresponding to the user identifier as the document editing content of the editing user for the target document content.

[0056] The verification rule includes a standard field format set and a standard field type set;

[0057] Update modules include:

[0058] A fourth acquisition unit is used to acquire an edit document field corresponding to the edit content of the document, and acquire a target standard field format corresponding to the edit document field from the standard field format set;

[0059] A fifth acquiring unit, configured to acquire a target standard field type corresponding to the edit document field from the standard field type set;

[0060] A verification unit, used to verify whether the format of the document editing content belongs to the target standard field format, and verify whether the type of the document editing content belongs to the target standard field type;

[0061] a sixth determining unit, configured to determine that the document edited content is valid if the format of the document edited content belongs to the target standard field format and the type of the document edited content belongs to the target standard field type;

[0062] The seventh determination unit is configured to determine that the document editing content is not valid if the format of the document editing content does not belong to the target standard field format and the type of the document editing content does not belong to the target standard field type.

[0063] Wherein, before detecting the editing operation of the editing user on the target document content, the document content processing method further includes:

[0064] A storage module is used to obtain a target document field and a document field value in the target document content, construct a field association relationship between the target document field and the document field value, and store the field association relationship, where the field association relationship is used to update the target document content;

[0065] The output module is used to perform page conversion on the target document content, obtain a document page of the target document content, and output the document page, which is used by the editing user to edit the target document content.

[0066] An embodiment of the present application provides a computer device, including: a processor and a memory;

[0067] The processor is connected to the memory, wherein the memory is used to store a computer program. When the computer program is executed by the processor, the computer device executes the method provided in the embodiment of the present application.

[0068] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method provided by the embodiment of the present application.

[0069] In one aspect, the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in the present application.

[0070] In an embodiment of the present application, by acquiring the attribute configuration information associated with the initial document content, the initial document content is configured and processed according to the attribute configuration information to obtain the target document content, and the attribute configuration information includes a verification rule for verifying the validity of the target document content. If an editing operation of the editing user on the target document content is detected, the user attribute information of the editing user is obtained, and the editing authority of the editing user is verified according to the user attribute information to obtain a permission verification result. By verifying the editing authority of the editing user, it is possible to effectively manage the editing of the target document content, and at the same time, the security and privacy of the editing of the target document content can be guaranteed. If the permission verification result indicates that the editing user has the editing authority to edit the target document content, the document editing content of the editing user for the target document content is obtained. The validity of the document editing content is verified according to the verification rule to obtain a validity verification result. If the validity verification result indicates that the document editing content is valid, the target document content is updated according to the document editing content. It can be seen that this solution can verify the validity of the document editing content in real time through the verification rules in the attribute configuration information, and can ensure that the editing user enters valid document editing content. The target document content is updated only when the document editing content is valid. This can improve the efficiency of document editing and avoid the problem of inability to update and store the target document content according to the document editing content when there is invalid content in the document editing content, which in turn leads to low editing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0072] Figure 1 It is a schematic diagram of the architecture of a document content processing system provided in an embodiment of the present application;

[0073] Figure 2 It is a flowchart of a document content processing method provided by an embodiment of the present application;

[0074] Figure 3 It is a schematic diagram of an attribute configuration of a target document field provided in an embodiment of the present application;

[0075] Figure 4 It is a flowchart of another document content processing method provided by an embodiment of the present application;

[0076] Figure 5It is a structural diagram of a document content processing device provided in an embodiment of the present application;

[0077] Figure 6 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0078] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0079] See Figure 1 , Figure 1 Schematic diagram of the structure of a document content processing system provided by an embodiment of the present application. Figure 1 As shown, the document content processing system may include a server 10 and a user terminal cluster. The user terminal cluster may include one or more user terminals, and the number of user terminals is not limited here. Figure 1 As shown, it may specifically include user terminal 100a, user terminal 100b, user terminal 100c, ..., user terminal 100n. Figure 1 As shown, the user terminal 100a, the user terminal 100b, the user terminal 100c, ..., the user terminal 100n can respectively establish a network connection with the server 10, so that each user terminal can exchange data with the server 10 through the network connection.

[0080] Each user terminal in the user terminal cluster may include: smart phones, tablet computers, laptop computers, desktop computers, wearable devices, smart homes, head-mounted devices, vehicle-mounted terminals and other smart terminals with document content processing functions. Figure 1 Each user terminal in the user terminal cluster shown in FIG. 1 may be installed with a target application (i.e., an application client). When the application client runs in each user terminal, it may be respectively connected to the above-mentioned Figure 1 The servers 10 shown here interact with each other.

[0081] Among them, Figure 1 As shown, the server 10 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or 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, as well as big data and artificial intelligence platforms.

[0082] For ease of understanding, the embodiments of the present application can be Figure 1 A user terminal is selected from the multiple user terminals shown as the target user terminal, and the target user terminal may include: a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, and other smart terminals with document content processing functions. For example, for ease of understanding, the embodiment of the present application may Figure 1 The user terminal 100a shown is used as a target user terminal. The user terminal 100a can obtain the attribute configuration information associated with the initial document content. The initial document content may refer to a blank document. The attribute configuration information may refer to the target document field in the initial document content, and the verification rules for validating the field value of each target document field. The user terminal 100a can send the attribute configuration information associated with the initial document content to the server 10. The server 10 can configure and process the initial document content according to the attribute configuration information to obtain the target document content. The server 10 can return the target document content to the user terminal 100a, and the user terminal 100a can output the target document content. When the user terminal 100a detects the editing operation of the editing user on the target document content, the user attribute information of the editing user is obtained. The user attribute information may refer to the user's position information, credit information, affiliated organization information, and user type, etc. The user terminal 100a can verify the editing authority of the editing user according to the user attribute information to obtain the authority verification result. When the user terminal 100a determines that the permission verification result indicates that the editing user has the editing permission, the editing user is allowed to edit the target document content, and the editing user's document editing content for the target document content is obtained. The user terminal 100a can verify the validity of the document editing content according to the verification rules in the target document content to obtain the validity verification result. If the validity result indicates that the document editing content is valid, the user terminal 100a sends the document editing content to the server 10, and the server 10 updates the target document content according to the valid document editing content. The present application can verify the editing permission of the editing user when the editing user edits the document in the browser, and verify the validity of the document editing content entered by the editing user. This can ensure the security of document content editing, and can also ensure that the editing user enters valid document editing content, so as to quickly granularly store the document editing content and improve document editing efficiency.

[0083] See also Figure 2 , Figure 2 1 is a flowchart of a document content processing method provided by an embodiment of the present application. The document content processing method can be executed by a computer device, which can be a server (such as the above-mentioned Figure 1 Server 10 in the example above) or a user terminal (such as the one described above) Figure 1 Any user terminal in a user terminal cluster), or a system consisting of a server and a user terminal, which is not limited in this application. Figure 2 As shown, the document content processing method may include steps S101-S104.

[0084] S101, acquiring attribute configuration information associated with initial document content, and performing configuration processing on the initial document content according to the attribute configuration information to obtain target document content.

[0085] Specifically, the computer device can verify the editing rights of the editing user and the validity of the document editing content of the editing user for the target document content, so as to ensure the security of the document content editing while ensuring that the editing user inputs valid document editing content, so that the editing user input by the editing user can be quickly stored in a granular manner, thereby improving the efficiency of document content editing. Specifically, the computer device can obtain attribute configuration information associated with the initial document content, and the attribute configuration information y is used to configure the initial document content, and can include the verification rules for validating the target document content included in the attribute configuration information, and the attribute configuration information can also include one or more target document fields, and the initialization method, storage method and style of each target document field. The attribute configuration information associated with the initial document content can be set by a programmer, such as the programmer can determine which target document fields (i.e., chapter elements) are required for the initial document content, and set the initialization method, storage method (such as storing the field value of the target document field in an associated database), style, editing form and verification rules of each target document field. The verification rule of each target document field may refer to the standard length, standard format and standard type of the document field value of each target document field. Only when the document field value of each target document content meets the corresponding standard length, standard format and standard type, the corresponding document field value is valid. Otherwise, the corresponding document field value is invalid. The computer device can configure the initial document content according to the attribute configuration to obtain the target document content.

[0086] Optionally, the computer device obtains configuration information associated with the initial document content, and performs configuration processing on the initial document content according to the configuration information. The specific method of obtaining the target document content may include: responding to a configuration operation on the initial document content, outputting a document configuration interface; the document configuration interface includes M candidate document fields, where M is a positive integer. Responding to a selection operation on the M candidate document fields, determining the N candidate document fields selected by the selection operation as N target document fields; N is a positive integer less than or equal to M. Responding to an attribute configuration operation corresponding to the N target document fields, respectively, obtaining the verification rules corresponding to the N target document fields. Adding the N target document fields and the verification rules corresponding to the N target document fields to the initial document content, the target document content is obtained.

[0087] Specifically, the computer device can use a rich text editor to output a visual document configuration interface for configuring the initial document content. The programmer can configure the initial document content in the visual interface. In this way, the programmer no longer needs to configure the initial document content through complex and cumbersome code writing, which reduces the document content configuration pressure of the programmer and improves the document content configuration efficiency. Specifically, the programmer can click the create button to configure the initial document content and obtain the target document content. The computer device can respond to the programmer's configuration operation on the initial document content and output the document configuration interface, which includes M candidate document fields, M is a positive integer, such as M can be 1,2,3... The programmer can select the target document field from the M candidate document fields and layout the target document field in the initial document content by dragging. Of course, the programmer can also re-establish the target document field (chapter element) in the initial document content and write the initial field value corresponding to each target document field, that is, the programmer can write each chapter element in the chapter content of the initial document content to achieve hot deployment of the chapter content and template in the initial document content, while releasing the code writing pressure of the programmer. The computer device can respond to the selection operation of the programmer on the M candidate document fields, and determine the N candidate document fields determined by the selection operation as N target document fields, where N is a positive integer less than or equal to M, such as M can be 1, 2, 3, ..., which is less than or equal to M. The computer device can continuously enrich the candidate document fields to adapt to complex and changing business scenarios, thereby improving the applicability and diversification of the initial document content configuration.

[0088] The computer device may output a field attribute configuration interface, which includes attribute information (such as initialization method, storage method, style, editing form, and verification rules) for configuring each target document field. The programmer may determine the database associated with each target document field in the field attribute configuration interface, so that the document field value corresponding to each target document field can be stored in the corresponding database, and the document field value of the target document field can also be initialized according to the corresponding database. The field attribute configuration interface also includes multiple candidate field styles, and the target field style used to configure each target document field can be determined from the multiple candidate field styles. The programmer may also set the verification rules corresponding to each target document field in the field attribute configuration interface, such as the standard format, standard length, and standard type of the document field value corresponding to each target document content. The computer device may respond to the programmer's attribute configuration operation for each target document field and obtain the verification rules corresponding to N target document fields. For example, the document field value corresponding to the target document field 1 can be set to be an editable type and a numeric type (that is, the document field value of the target document field can be edited, and the input content of the target document field 1 is a numeric type, and cannot be other types such as text), and the length does not exceed 8 bits. Among them, the initial document content can refer to a blank document or a document including some basic fields, which can be selected from the document library. The document library includes document templates corresponding to multiple business fields, such as the document template corresponding to the enterprise project funding application business, the document model corresponding to the personal loan application business, etc. The document templates in the document library can be set according to specific needs.

[0089] Among them, the N target document fields can have one or more of the three editing forms (i.e., design form, edit form, and read-only form). The programmer with configuration authority can configure or modify the properties of the initial document field with the design form. If the target document field has an edit form, the editing user with editing authority can edit it, that is, enter the document field value of the target document field. If the read-only form of the target document field is for review users, it is used to view the content filled in by the editing user, and the document field value of the target document field cannot be edited.

[0090] Optionally, when the computer device configures the initial document content through the visualization of the programmer and obtains the attribute configuration information associated with the initial document content, the computer device can verify the configuration authority of the programmer, and only the programmer with the configuration authority can configure the initial document content. In this way, the configuration processing of the initial document content can be effectively managed to ensure the security of the initial document content configuration. Among them, the computer device can obtain the attribute information of the programmer and verify the configuration authority of the programmer according to the attribute information of the programmer. If the computer device determines that the programmer has the configuration authority, the configuration information of the programmer for the initial document is obtained, and the initial document content is configured according to the configuration information to obtain the target document content. If the computer device determines that the programmer does not have the configuration authority according to the attribute information of the programmer, a prompt message is output to prompt the programmer that the programmer does not have the configuration authority and cannot configure the initial document content.

[0091] Optionally, the attribute information of the programmer may include a first user identifier, a first user position, etc. The computer device may obtain multiple matching degrees between the first user identifier of the programmer and multiple sample user identifiers in the configuration library. If a matching degree greater than or equal to a target threshold exists among the multiple matching degrees, it may be determined that the programmer has configuration authority, and the multiple sample user identifiers in the configuration library are user identifiers of persons with configuration authority.

[0092] Optionally, the computer device may verify whether the programmer has the configuration authority to configure the initial document based on the programmer's first user position. For example, the programmers may be divided into primary, intermediate and advanced levels, and only intermediate and advanced programmers may have the configuration authority to configure the initial document, while primary programmers do not have the configuration authority to configure the initial document.

[0093] like Figure 3 As shown, Figure 3 is a schematic diagram of an attribute configuration of a target document field provided by an embodiment of the present application, such as Figure 3 As shown, the programmer can determine that the initial document content includes the target document field "Company Name", the target document field "Application Description", the target document field "Application Project Amount" and the target document field "Department". The computer device can respond to the programmer's target document field addition operation and add the target document field to the initial document content. When the programmer triggers the attribute configuration operation of the target document field, the computer device can respond to the programmer's attribute configuration operation and enter the field attribute configuration interface of the target document field. Figure 3 As shown, when the programmer triggers the attribute configuration operation of the target document field "Company Name", the computer device can output the field attribute configuration interface of the target document field "Company Name". Figure 3 As shown, the attribute information of the target document field "Company Name" can be configured in the field attribute configuration interface of the target document field "Company Name". For example, the permission of the target document field "Company Name" can be determined to be editable, the field ID of the target document field "Company Name" can be determined to be 10023, the field type of the target document field "Company Name" can be determined to be a numeric type, and the data source of the target document field "Company Name" (i.e., the database associated with it) can be determined to be database 1, etc. In this way, the attributes of each target document field in the target document content can be configured to obtain the initialization method, storage method (such as storing the field value of the target document field in the associated database), style, editing form, and verification rules of each target document field.

[0094] S102: If an editing operation of an editing user on the target document content is detected, user attribute information of the editing user is obtained, and the editing authority of the editing user is verified according to the user attribute information to obtain an authority verification result.

[0095] Specifically, the computer device can output the target document content in the browser, and the editing user can browse and edit the target document content in the browser. If the computer device detects the editing user's editing operation on the target document content, the user attribute information of the editing user is obtained, and the user attribute information may refer to the editing user's position information, credit information, affiliated organization information, and user type. The computer device can verify the editing user's editing authority based on the editing user's user attribute information to obtain an authority verification result, and the authority verification result may include that the editing user has the editing authority to edit the target document content, or that the editing user does not have the editing authority to edit the target document content. Among them, the authority verification result may also include the authority information that the editor has for the target document content, such as the editing user may have the editing authority for a certain document content in the target document content, but does not have the editing authority for another document content in the target document content, that is, only has read-only authority.

[0096] Optionally, the user attribute information of the editing user includes a user type. If the computer device detects an editing operation of the editing user on the target document content, the user attribute information of the editing user is obtained, and the editing authority of the editing user is verified according to the user attribute information. The specific method of obtaining the authority verification result may include: if the editing operation of the editing user on the target document content is detected, the user information of the editing user is obtained, and the user type of the editing user is determined according to the user information of the editing user. If the user type of the editing user belongs to a preset user type, it is determined that the editing user has the editing authority to edit the target document content. If the user type of the editing user does not belong to the preset user type, it is determined that the editing user does not have the editing authority to edit the target document content.

[0097] Specifically, the user attribute information of the editing user may include a user type, and the computer device may predetermine the preset user type corresponding to the target document content, that is, only the editing user of the preset user type can edit the target document content. For example, the preset user type corresponding to the information statistics document content in institution A is the user currently employed by institution A, that is, only the employees of institution A can edit the target document content. For example, the preset user type corresponding to the company regulations document content may refer to a user whose leadership level is greater than or equal to the target level, that is, only the user whose leadership level is greater than or equal to the target level can edit the target document content. Among them, when the computer device detects the editing operation of the editing user on the target document content, the user information of the editing user can be obtained, and the user information may refer to the user's occupation information, the user's leadership work information, the user's credit information, etc. The computer device can determine the user type of the editing user based on the user information of the editing user, and determine whether the editing user has the editing authority to edit the target document content based on the user type. If the user type of the editing user belongs to the preset user type, it is determined that the editing user has the editing authority to edit the target document content. If the user type of the editing user does not belong to the preset user type, it is determined that the editing user does not have the editing authority to edit the target document content. For example, the preset user type corresponding to the target document content is a user whose leadership level is greater than or equal to the target level. When the computer device detects the editing operation of the editing user 1 on the target document content, the user ID of the editing user 1 is obtained, and the position information of the editing user 1 is queried from the archive of the institution A according to the user ID of the editing user 1, and the leadership level corresponding to the position information is determined. If the leadership level of the editing user 1 is greater than the target level, it is determined that the editing user 1 can edit the target document content.

[0098] Optionally, when the target document content is the identity information statistics document content, the computer device can obtain the user attribute information of the editing user, determine the target document part associated with the editing user in the target document content, determine the editing authority that the editing user can edit the target document part, and encrypt other document contents in the target document content other than the target document part. Among them, the computer device can determine the user identification associated with each document part in the target document content when configuring the target document content. At the same time, the computer device can encrypt other document parts in the target document content other than the target document part, so as to protect the privacy of other users and the security of private information editing. For example, when the computer device detects the editing operation of the editing user 1 on the identity information statistics document content, the user identification of the editing user 1 can be obtained, and the target document part associated with the editing user 1 in the identity information statistics document content can be determined according to the user identification. The computer device can determine that the editing user has the editing authority to edit the target document part associated with the editing user 1, and the computer device can also encrypt other parts in the target document content other than the target document part. In this way, editing user 1 can only view and edit the target document part, but cannot view and edit other document parts in the target document content, which can protect the privacy of other users and ensure the security and privacy of private information editing.

[0099] S103: If the authority verification result indicates that the editing user has the editing authority to edit the target document content, then the document editing content of the editing user for the target document content is obtained.

[0100] Specifically, if the computer device determines that the authority verification result indicates that the editing user has the editing authority to edit the target document content, the document editing content of the editing user for the target document content can be obtained. The document editing content may refer to the document editing content obtained by the editing user editing the target document content, or the document editing content may refer to the document content associated with the editing user determined by the computer device based on the target document field in the target document content and the user identifier of the editing user (i.e., the document field value corresponding to the target document field).

[0101] Optionally, the specific manner in which the computer device obtains the document editing content of the editing user for the target document content may include: if the editing user has the editing authority to edit the target document content, the computer device may allow the editing user to edit the target document content, that is, the editing user may edit each target document field in the target document content and input the document field value corresponding to each target document field. The computer device may respond to the editing operation of the editing user on the target document field in the target document content and obtain the document editing content carried by the editing operation (that is, the document field value corresponding to the target document field in the target document content).

[0102] Optionally, if the computer device authority verification result indicates that the editing user has the editing authority to edit the target document content, then the specific method of obtaining the document editing content of the editing user for the target document content may include: if the authority verification result indicates that the editing user has the editing authority to edit the target document content, then obtaining the user ID of the editing user. Obtaining the associated content corresponding to the user ID from the database associated with the N target document fields included in the target document content respectively. Determining the associated content corresponding to the user ID as the document editing content of the editing user for the target document content.

[0103] Specifically, if the computer device determines that the authority verification result indicates that the editing user has the editing authority to edit the target document content, the user ID of the editing user can be obtained, and according to the user ID of the editing user, the associated content corresponding to the user ID of the editing user is obtained from the database associated with the N target document fields included in the target document content. The associated content corresponding to the user ID of the editing user is used to determine the document editing content of the editing user for the target document content. Among them, the computer device can configure the database (i.e., data source) associated with each target document field and the returned data field value (i.e., the value returned when accessing the interface of the associated database), that is, the computer device can bind each target document field to the corresponding database, so that the document field value of each target document field can be initialized according to the database associated with it. For example, when performing identity information statistics, the target document content can refer to the identity information statistics document content. When the computer device determines that the editing user 1 has the editing authority to edit the target document content, the user ID 1 of the editing user 1 can be obtained. The computer device can also obtain the database associated with each target document field in the identity information statistics document content, such as the database associated with the target document field "ID number" can be database 1. Of course, the database associated with the target document field "ID number" in other target document contents can also be database 1, that is, the same target document field in multiple target document contents can correspond to the same database. The computer device can query the associated content corresponding to the user identification 1 from the database 1 associated with the target document field "ID number". The content in the database is the edited content that the editing user has filled in historically, that is, the computer device can store the valid edited content obtained from the historical editing corresponding to the target document field in the corresponding database.

[0104] Optionally, the computer device can automatically fill in the target document content by introducing the document field values ​​of each target document field in the target document content through multiple channels according to the user ID of the editing user, thereby avoiding manual and repeated entry and improving the efficiency of document editing. For example, the computer device can automatically introduce the document field values ​​of each target document field in the target document content through internal automatic introduction (determining the document field values ​​of each target document field based on internal existing data), third-party automatic introduction (determining the document field values ​​of each target document field by referencing third-party data), calculation introduction (i.e. determining the document field values ​​of each target document field by a preset calculation method), and importing history (i.e. determining the document field values ​​of each target document field by the data that the editing user has filled in historically).

[0105] S104, verifying the validity of the edited content of the document according to the verification rules to obtain a validity verification result. If the validity verification result indicates that the edited content of the document is valid, updating the target document content according to the edited content of the document.

[0106] Specifically, the computer device can verify the validity of the document editing content according to the verification rule of the target document content to obtain the validity verification result. The verification rule can refer to the verification rule corresponding to each target document field in the target document content, that is, one verification rule corresponding to one target document field. In this way, the accuracy of the verification of each target document field can be achieved. If the computer device determines that the validity verification result indicates that the document editing content is valid, the target document content can be updated according to the document editing content. If the computer device determines that the validity verification result indicates that the document editing content is not valid, the document editing content is deleted, that is, the invalid document editing content entered by the editing user is eliminated, and a prompt message is output at the same time to prompt the editing user to re-edit the target document content.

[0107] Optionally, the verification rule may refer to a rule pre-configured by the computer device for each target document field in the target document content, such as a rule obtained by a programmer pre-configuring the attributes of each target document field, which may include preset rules in terms of format, length, and type. Among them, the verification rule may include a standard field format set, which may include target standard field formats corresponding to multiple target document fields in the target document content, and the verification rule may also include a standard field type set, which may include target standard field types corresponding to multiple target document fields in the target document content. Specifically, the computer device may obtain the edited document field corresponding to the document edited content, that is, the document edited content is the target document field edited by the editing user in the target document content. The computer device may obtain the target standard field format corresponding to the edited document field from the standard field format set, obtain the target standard field type corresponding to the edited document field from the standard field type set, and verify whether the format of the document edited content belongs to the target standard field format, and verify whether the type of the document edited content belongs to the target standard field type. If the computer device determines that the format of the document edited content belongs to the target standard field format corresponding to the edited document field, and the type of the document edited content belongs to the target standard field type, it is determined that the document edited content is valid. If the computer device determines that the format of the document editing content does not belong to the target standard field format corresponding to the edited document field, and the type of the document editing content does not belong to the target standard field type, it is determined that the document editing content is not valid.

[0108] For example, if the editing document fields corresponding to the document editing content are field 1 and field 2, the target standard field format corresponding to field 1 is that the length must not exceed 8 bytes, and the target standard field type corresponding to field 1 is a digital type. The target standard field format of field 2 is that the pixel size must not exceed 900KB, and the target standard field type of field 2 is an image type. If the length of the document editing content entered by the editing user for field 1 is 5 bytes and is a digital type, it can be determined that the document editing content entered by the editing user for field 1 is valid, and the valid document editing content is stored in the database associated with field 1, and the field value of field 1 is updated according to the valid document editing content. If the length of the document editing content entered by the editing user for field 1 is 10 bytes and is a text type, it can be determined that the document editing content entered by the editing user for field 1 is not valid, and a prompt message can be output to prompt the editing user to re-enter the field value of field 1. Similarly, if the document editing content entered by the editing user for field 2 is of image type and has a pixel size of 500KB, it can be determined that the document editing content entered by the editing user for field 2 is valid, and the valid document editing content can be stored in the database associated with field 2, and the field value of field 2 can be updated according to the valid document editing content. If the document editing content entered by the editing user for field 2 is of video type and has a pixel size of 2000KB, it can be determined that the document editing content entered by the editing user for field 2 is not valid, and a prompt message can be output to prompt the editing user to re-enter the field value of field 2.

[0109] In an embodiment of the present application, by acquiring the attribute configuration information associated with the initial document content, the initial document content is configured and processed according to the attribute configuration information to obtain the target document content, and the attribute configuration information includes a verification rule for verifying the validity of the target document content. If an editing operation of the editing user on the target document content is detected, the user attribute information of the editing user is obtained, and the editing authority of the editing user is verified according to the user attribute information to obtain a permission verification result. By verifying the editing authority of the editing user, it is possible to effectively manage the editing of the target document content, and at the same time, the security and privacy of the editing of the target document content can be guaranteed. If the permission verification result indicates that the editing user has the editing authority to edit the target document content, the document editing content of the editing user for the target document content is obtained. The validity of the document editing content is verified according to the verification rule to obtain a validity verification result. If the validity verification result indicates that the document editing content is valid, the target document content is updated according to the document editing content. It can be seen that this solution can verify the validity of the document editing content in real time through the verification rules in the attribute configuration information, and can ensure that the editing user inputs valid document editing content. The target document content is updated only when the document editing content is valid. This can improve the efficiency of document editing and avoid the problem that when there is invalid content in the document editing content, the target document content cannot be updated and stored according to the document editing content, which leads to low editing efficiency. In addition, this solution uses a visual document configuration interface, and programmers can configure the attribute configuration information of the initial document content in the visual document configuration interface. In this way, programmers no longer need to configure the initial document content through complex and cumbersome code writing, which can reduce the document content configuration pressure of programmers and improve the document content configuration efficiency.

[0110] See also Figure 4 , Figure 4 1 is a flowchart of a document content processing method provided by an embodiment of the present application. The document content processing method can be executed by a computer device, which can be a server (such as the above-mentioned Figure 1 Server 10 in the example above) or a user terminal (such as the one described above) Figure 1 Any user terminal in a user terminal cluster), or a system consisting of a server and a user terminal, which is not limited in this application. Figure 4 As shown, the document content processing method may include steps S201-S206.

[0111] S201, acquiring attribute configuration information associated with initial document content, and performing configuration processing on the initial document content according to the attribute configuration information to obtain target document content.

[0112] Specifically, the specific content of step S201 in the embodiment of the present application can be found in the above Figure 2 The content of step S101 in this embodiment of the present application will not be repeated again.

[0113] S202, obtaining target document fields and document field values ​​in the target document content, constructing a field association relationship between the target document fields and the document field values, and storing the field association relationship.

[0114] Specifically, the computer device can obtain each target document field in the target document content and the document field value corresponding to each target document field. The document field value can be zero or empty, or the edited content obtained by the historical editing user editing the target document field. The computer device can construct a field association relationship between each target document field and the document field value, and store the field association relationship, which is used to update the target document content. For example, a JSON storage method can be used, each target document field in the target document content is used as a "key", and the document field value corresponding to each target document field is used as a "value" to obtain N key-value pairs, and a key-value pair table (i.e., field association relationship) is generated based on the N key-value pairs. The full name of JSON is "JavaScript Object Notation", which is a text-based, language-independent lightweight data exchange format. In this way, by storing each target document field and the corresponding document field value in the target document content in JSON, it is convenient to update and reuse the target document content according to the valid edited content later. At the same time, storing the target document fields and the corresponding document field values ​​in the target document content in JSON format can facilitate the storage of attribute configuration information such as the type, length, and format attribute requirement information corresponding to each target document field in the target document content, and also facilitate programmers with configuration permissions to subsequently modify and update the target document fields and the corresponding document field values ​​in the target document content.

[0115] S203, performing page conversion on the target document content to obtain a document page of the target document content, and outputting the document page.

[0116] Specifically, the computer device can perform page conversion on the target document content to obtain a document page of the target document content, and the document page is used to display in the display interface so that the editing user can edit the target document content. For example, the computer device can perform unstructured web page conversion on the target document content, such as the computer device can convert the target document content in HTML mode, obtain the document page and save it in the database and Redis cache. Redis is a network-supported, memory-based, distributed, and optionally persistent key-value pair (Key-Value) storage database, and provides APIs (i.e., data interfaces) in multiple languages. HTML (full name HyperText Markup Language) means that "hypertext" means that the page can contain pictures, links, and even non-text elements such as music and programs. Storing the target document content in HTML storage mode can achieve fast loading when the editing user needs to edit the target document content, so as to shorten the loading time of the document content and improve the user's experience of editing the target document content. For example, the programmer designs the field "company name" and designs the input box for the company name. The computer device can save the field "company name" and the input box for the company name as HTML static resources. When the user edits the target document content, the computer device quickly reads the pre-stored HTML static resources, and the user can enter a specific value in the edit box corresponding to the field "Company Name" to shorten the loading time of the document content and improve the user's experience in editing the target document content.

[0117] S204: If an editing operation of the editing user on the target document content in the document page is detected, the user attribute information of the editing user is obtained, and the editing authority of the editing user is verified according to the user attribute information to obtain an authority verification result.

[0118] S205: If the authority verification result indicates that the editing user has the editing authority to edit the target document content, then the document editing content of the editing user for the target document content is obtained.

[0119] Specifically, the specific contents of steps S204-S205 in the embodiment of the present application can be found in Figure 2 The contents of steps S102-S103 in the embodiment of the present application will not be repeated here.

[0120] S206, verify the validity of the document editing content according to the verification rules and field association relationship to obtain a validity verification result. If the validity verification result indicates that the document editing content is valid, update the target document content according to the document editing content.

[0121] Specifically, the computer device can verify the validity of the document editing content according to the verification rule to obtain a validity verification result. The content of the validity verification of the document editing content can be referred to above. Figure 2 The content of step S104 in the embodiment of the present application will not be repeated here. If the validity check result indicates that the document editing content is valid, the target document content is updated according to the document editing content.

[0122] Specifically, if the computer device determines that the validity check result indicates that the document editing content is valid, the editing document field corresponding to the document editing content can be obtained, that is, the target document fields in the target document content that the editing user edited to obtain the document editing content. The computer device can obtain the initial document field value corresponding to the document editing field according to the above field association relationship, and replace the initial document field value with the document editing content, thereby updating the target document content.

[0123] In the embodiment of the present application, by acquiring the attribute configuration information associated with the initial document content, the initial document content is configured and processed according to the attribute configuration information to obtain the target document content, and the attribute configuration information includes a verification rule for validating the target document content. The target document field and document field value in the target document content are obtained, the field association relationship between the target document field and the document field value is constructed, and the field association relationship is stored, so that the target document content can be quickly updated according to the field association relationship. The target document content is page converted to obtain the document page of the target document content, and the document page is output, so that when the editing user needs to edit the target document content, the output document page can be quickly loaded to shorten the loading time of the document content and improve the user's experience of editing the target document content. If the editing operation of the editing user on the target document content is detected, the user attribute information of the editing user is obtained, and the editing authority of the editing user is verified according to the user attribute information to obtain the authority verification result. By verifying the editing authority of the editing user, the editing of the target document content can be effectively managed, and the security and privacy of the editing of the target document content can be guaranteed. If the authority verification result indicates that the editing user has the editing authority to edit the target document content, then the document editing content of the editing user for the target document content is obtained. The document editing content is verified for validity according to the verification rules to obtain the validity verification result. If the validity verification result indicates that the document editing content is valid, the target document content is updated according to the document editing content. It can be seen that this scheme can verify the validity of the document editing content in real time through the verification rules in the attribute configuration information, which can ensure that the editing user inputs valid document editing content. The target document content is updated only when the document editing content is valid. This can improve the efficiency of document editing and avoid the problem that when there is invalid content in the document editing content, the target document content cannot be updated and stored according to the document editing content, which leads to low editing efficiency. In addition, this scheme uses a visual document configuration interface, and programmers can configure the attribute configuration information of the initial document content in the visual document configuration interface. In this way, programmers no longer need to configure the initial document content through complex and cumbersome code writing, which can reduce the document content configuration pressure of programmers and improve the document content configuration efficiency.

[0124] See also Figure 5 , Figure 5 : is a schematic diagram of the structure of a document content processing device provided in an embodiment of the present application. The document content processing device may be a computer program (including program code) running in a computer device, for example, the document content processing device is an application software; the document content processing device may be used to execute the corresponding steps in the document content processing method provided in an embodiment of the present application. Figure 5 As shown, the document content processing device may include: a configuration processing module 11, a verification module 12, an acquisition module 13, an update module 14, a storage module 15 and an output module 16.

[0125] The configuration processing module 11 is used to obtain the attribute configuration information associated with the initial document content, and perform configuration processing on the initial document content according to the attribute configuration information to obtain the target document content; the attribute configuration information includes a verification rule for validating the target document content;

[0126] The verification module 12 is used to obtain the user attribute information of the editing user if an editing operation of the editing user on the target document content is detected, and verify the editing authority of the editing user according to the user attribute information to obtain an authority verification result;

[0127] The acquisition module 13 is used to acquire the document editing content of the target document by the editing user if the authority verification result indicates that the editing user has the editing authority to edit the target document content;

[0128] The updating module 14 is used to verify the validity of the edited content of the document according to the verification rule to obtain a validity verification result. If the validity verification result indicates that the edited content of the document is valid, the target document content is updated according to the edited content of the document.

[0129] The configuration processing module 11 includes:

[0130] The output unit 1101 is used to respond to the configuration operation on the initial document content and output a document configuration interface; the document configuration interface includes M candidate document fields, where M is a positive integer;

[0131] The first determining unit 1102 is configured to respond to the selection operation on the M candidate document fields and determine the N candidate document fields selected by the selection operation as N target document fields; N is a positive integer less than or equal to M;

[0132] The first acquisition unit 1103 is used to respond to the attribute configuration operations respectively corresponding to the N target document fields and acquire the verification rules respectively corresponding to the N target document fields;

[0133] The adding unit 1104 is used to add the N target document fields and the verification rules respectively corresponding to the N target document fields to the initial document content to obtain the target document content.

[0134] Wherein, the user attribute information includes user type;

[0135] The verification module 12 includes:

[0136] The second determining unit 1201 is configured to obtain user information of the editing user if an editing operation of the editing user on the target document content is detected, and determine the user type of the editing user according to the user information of the editing user;

[0137] The third determining unit 1202 is used to determine whether the editing user has the editing authority to edit the target document content if the user type of the editing user belongs to the preset user type;

[0138] The fourth determining unit 1203 is configured to determine that the editing user does not have the editing authority to edit the target document content if the user type of the editing user does not belong to the preset user type.

[0139] Wherein, the acquisition module 13 includes:

[0140] The second acquisition unit 1301 is used to acquire the user identification of the editing user if the authority verification result indicates that the editing user has the editing authority to edit the target document content;

[0141] The third acquisition unit 1302 is used to acquire the associated content corresponding to the user identifier from the database associated with the N target document fields included in the target document content;

[0142] The fifth determining unit 1303 is configured to determine the associated content corresponding to the user identifier as the document editing content of the editing user for the target document content.

[0143] The verification rule includes a standard field format set and a standard field type set;

[0144] The update module 14 includes:

[0145] The fourth acquiring unit 1401 is used to acquire the edit document field corresponding to the edit content of the document, and acquire the target standard field format corresponding to the edit document field from the standard field format set;

[0146] A fifth acquiring unit 1402 is configured to acquire a target standard field type corresponding to the edit document field from the standard field type set;

[0147] A verification unit 1403 is used to verify whether the format of the document editing content belongs to the target standard field format, and verify whether the type of the document editing content belongs to the target standard field type;

[0148] A sixth determining unit 1404, configured to determine that the document editing content is valid if the format of the document editing content belongs to the target standard field format and the type of the document editing content belongs to the target standard field type;

[0149] The seventh determining unit 1405 is configured to determine that the document editing content is not valid if the format of the document editing content does not belong to the target standard field format and the type of the document editing content does not belong to the target standard field type.

[0150] Wherein, before detecting the editing operation of the editing user on the target document content, the document content processing method further includes:

[0151] The storage module 15 is used to obtain the target document field and the document field value in the target document content, construct a field association relationship between the target document field and the document field value, and store the field association relationship, which is used to update the target document content;

[0152] The output module 16 is used to perform page conversion on the target document content to obtain a document page of the target document content and output the document page, which is used by the editing user to edit the target document content.

[0153] Among them, the update module 14 includes:

[0154] The sixth acquisition unit 1406 is configured to acquire the edited document field corresponding to the edited document content if the validity check result indicates that the edited document content is valid, and acquire the initial document field value corresponding to the edited document content according to the field association relationship;

[0155] The replacing unit 1407 is used to replace the initial document field value with the document edited content.

[0156] In an embodiment of the present application, by acquiring the attribute configuration information associated with the initial document content, the initial document content is configured and processed according to the attribute configuration information to obtain the target document content, and the attribute configuration information includes a verification rule for verifying the validity of the target document content. If an editing operation of the editing user on the target document content is detected, the user attribute information of the editing user is obtained, and the editing authority of the editing user is verified according to the user attribute information to obtain a permission verification result. By verifying the editing authority of the editing user, it is possible to effectively manage the editing of the target document content, and at the same time, the security and privacy of the editing of the target document content can be guaranteed. If the permission verification result indicates that the editing user has the editing authority to edit the target document content, the document editing content of the editing user for the target document content is obtained. The validity of the document editing content is verified according to the verification rule to obtain a validity verification result. If the validity verification result indicates that the document editing content is valid, the target document content is updated according to the document editing content. It can be seen that this solution can verify the validity of the document editing content in real time through the verification rules in the attribute configuration information, which can ensure that the editing user enters valid document editing content. The target document content is updated only when the document editing content is valid. This can improve the efficiency of document editing and avoid the problem that when there is invalid content in the document editing content, the target document content cannot be updated and stored according to the document editing content, which leads to low editing efficiency. In addition, through the visual document configuration interface, the program no longer needs to write complex and cumbersome code to configure the initial document content, which can reduce the programmer's document content configuration pressure and improve the document content configuration efficiency.

[0157] See also Figure 6 , Figure 6 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 6As shown, the above-mentioned computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Figure 6 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0158] exist Figure 6 In the computer device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the target user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0159] Acquire attribute configuration information associated with the initial document content, perform configuration processing on the initial document content according to the attribute configuration information, and obtain target document content; the attribute configuration information includes verification rules for validating the target document content;

[0160] If an editing operation of the editing user on the target document content is detected, the user attribute information of the editing user is obtained, and the editing authority of the editing user is verified according to the user attribute information to obtain an authority verification result;

[0161] If the authority verification result indicates that the editing user has the editing authority to edit the target document content, then obtaining the document editing content of the editing user for the target document content;

[0162] The validity of the edited content of the document is verified according to the verification rule to obtain a validity verification result. If the validity verification result indicates that the edited content of the document is valid, the target document content is updated according to the edited content of the document.

[0163] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 2or Figure 4 The description of the document content processing method in the corresponding embodiment can also be performed as described above. Figure 5 The description of the document content processing device in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here either.

[0164] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the document content processing device mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above-mentioned document content processing device. Figure 2 or Figure 4 The description of the document content processing method in the corresponding embodiment will therefore not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, program instructions may be deployed on a computing device for execution, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network. Multiple computing devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.

[0165] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or a computer program, which may include computer instructions, and the computer instructions may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor may execute the computer instructions, so that the computer device executes the above Figure 2 or Figure 4 The description of the document content processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0166] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0167] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

[0168] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

[0169] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0170] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A document content processing method, characterized in that: include: Acquire attribute configuration information associated with the initial document content, and perform configuration processing on the initial document content according to the attribute configuration information to obtain target document content; the attribute configuration information includes a verification rule for validating the target document content; the verification rule includes a standard field format set and a standard field type set; If an editing operation of an editing user on the target document content is detected, obtaining user information of the editing user, and determining a user type of the editing user according to the user information of the editing user; If the user type of the editing user belongs to the preset user type, generating a permission verification result indicating that the editing user has the editing permission to edit the target document content; If the user type of the editing user does not belong to the preset user type, generating a permission verification result indicating that the editing user does not have the editing permission to edit the target document content; If the authority verification result indicates that the editing user has the editing authority to edit the target document content, then obtaining the document editing content of the editing user for the target document content; Obtaining the edit document field corresponding to the document edit content, obtaining the target standard field format corresponding to the edit document field from the standard field format set; obtaining the target standard field type corresponding to the edit document field from the standard field type set; Verifying whether the format of the document editing content belongs to the target standard field format, and verifying whether the type of the document editing content belongs to the target standard field type; If the format of the document editing content belongs to the target standard field format, and the type of the document editing content belongs to the target standard field type, generating a validity verification result indicating that the document editing content has validity; If the format of the document editing content does not belong to the target standard field format, and the type of the document editing content does not belong to the target standard field type, a validity verification result is generated indicating that the document editing content is not valid; if the validity verification result indicates that the document editing content is valid, the target document content is updated according to the document editing content.

2. The method according to claim 1, characterized in that: The acquiring of attribute configuration information associated with the initial document content, and performing configuration processing on the initial document content according to the attribute configuration information to obtain the target document content includes: In response to the configuration operation for the initial document content, a document configuration interface is output; the document configuration interface includes M candidate document fields, where M is a positive integer; In response to a selection operation on the M candidate document fields, the N candidate document fields selected by the selection operation are determined as N target document fields; N is a positive integer less than or equal to M; In response to the attribute configuration operations respectively corresponding to the N target document fields, obtaining the verification rules respectively corresponding to the N target document fields; The N target document fields and the verification rules respectively corresponding to the N target document fields are added to the initial document content to obtain the target document content.

3. The method according to claim 1, characterized in that If the authority verification result indicates that the editing user has the editing authority to edit the target document content, obtaining the document editing content of the editing user for the target document content includes: If the authority verification result indicates that the editing user has the editing authority to edit the target document content, obtaining the user ID of the editing user; Acquire the associated content corresponding to the user identifier from databases associated with N target document fields included in the target document content respectively; The associated content corresponding to the user identifier is determined as the document editing content of the editing user for the target document content.

4. The method according to any one of claims 1 to 3, characterized in that: Before detecting an editing operation of the editing user on the target document content, the method further includes: Acquire a target document field and a document field value in the target document content, construct a field association relationship between the target document field and the document field value, and store the field association relationship, wherein the field association relationship is used to update the target document content; The target document content is page-converted to obtain a document page of the target document content, and the document page is outputted. The document page is used by the editing user to edit the target document content.

5. The method according to claim 4, characterized in that If the validity verification result indicates that the document editing content is valid, updating the target document content according to the document editing content includes: If the validity verification result indicates that the document edited content is valid, obtaining the edited document field corresponding to the document edited content, and obtaining the initial document field value corresponding to the document edited content according to the field association relationship; The original document field values ​​are replaced with the document edited content.

6. A document content processing device, characterized in that: include: A configuration processing module, used to obtain attribute configuration information associated with the initial document content, and perform configuration processing on the initial document content according to the attribute configuration information to obtain target document content; the attribute configuration information includes a verification rule for validating the target document content; the verification rule includes a standard field format set and a standard field type set; A verification module, configured to obtain user information of the editing user if an editing operation of the editing user on the target document content is detected, and determine a user type of the editing user according to the user information of the editing user; If the user type of the editing user belongs to the preset user type, generating a permission verification result indicating that the editing user has the editing permission to edit the target document content; If the user type of the editing user does not belong to the preset user type, generating a permission verification result indicating that the editing user does not have the editing permission to edit the target document content; an acquisition module, configured to acquire the document editing content of the target document by the editing user if the authority verification result indicates that the editing user has the editing authority to edit the target document content; An updating module, used for obtaining an edit document field corresponding to the document edit content, obtaining a target standard field format corresponding to the edit document field from the standard field format set; and obtaining a target standard field type corresponding to the edit document field from the standard field type set; Verifying whether the format of the document editing content belongs to the target standard field format, and verifying whether the type of the document editing content belongs to the target standard field type; If the format of the document editing content belongs to the target standard field format, and the type of the document editing content belongs to the target standard field type, generating a validity verification result indicating that the document editing content has validity; If the format of the document editing content does not belong to the target standard field format, and the type of the document editing content does not belong to the target standard field type, a validity verification result is generated indicating that the document editing content is not valid; if the validity verification result indicates that the document editing content is valid, the target document content is updated according to the document editing content.

7. A computer device, characterized in that: include: Processor and memory; The processor is connected to a memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Document editing method and device, computer equipment and storage medium

    CN113449501A

  • Systems and methods for managing suggested edits in a collaborative document editing environment

    US20150370769A1