A data management method, device, electronic equipment and storage medium

By generating a display interface through interaction between the front-end and back-end to receive user input and values, the problem of frequent modifications to the back-end code is solved. This achieves efficient storage of data attributes and values, as well as interface flexibility, and reduces code bloat and the possibility of errors.

CN119513098BActive Publication Date: 2026-07-31DAWNING CLOUD COMPUTING TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
DAWNING CLOUD COMPUTING TECH CO LTD
Filing Date
2024-11-18
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In existing technologies, to avoid the database consuming too much space resources, data for each specification attribute is not saved, which leads to frequent modifications to the backend code, increasing code bloat and wasting human resources.

Method used

The system receives user input through a first display interface, generates a second display interface and receives the values, and uses front-end and back-end interaction to save the corresponding attributes and values ​​to the database, thus avoiding modification of the back-end code.

Benefits of technology

It enables the saving of data attributes and values ​​to the database without modifying the backend code, reducing code bloat and waste of human resources, and improving the flexibility of the generated display interface and the intuitiveness of data correspondence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119513098B_ABST
    Figure CN119513098B_ABST
Patent Text Reader

Abstract

This application provides a data management method, apparatus, electronic device, and storage medium. It allows receiving first information input by a user through a first display interface and saving the first information to a first form. The first information comprises multiple attributes of the data to be saved. Based on the first information, a second display interface is determined, and the second display interface receives first values ​​input by the user. The first values ​​include parameter values ​​corresponding to each attribute in the first information. The first values ​​are saved to a second form, and the first information in the first form and the first values ​​in the second form are correspondingly saved to a database. This method only requires interaction between the backend and frontend to achieve the corresponding saving of attributes and values ​​of the data to be saved to the database, without modifying the code. This avoids the waste of human resources in modifying backend code and the problem of increasing the bloat of the backend code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a data management method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the development of information technology, data has become increasingly diverse in terms of specifications and attributes. In order to avoid databases consuming too much space, most enterprises or organizations do not save data for every specification and attribute. Instead, they add data as needed based on existing specifications and attributes.

[0003] If the data for each specification attribute is not saved, the backend code needs to be modified to save the corresponding specification attribute data before the corresponding operation can be performed. However, this increases the bloat of the backend code. Summary of the Invention

[0004] To address the problems in the aforementioned related technologies, this application provides a data management method, apparatus, electronic device, and storage medium that can avoid the problem of frequently changing the database during data storage, thereby increasing the bloat of the backend code.

[0005] In a first aspect, embodiments of this application provide a data management method, including:

[0006] The system receives first information input by the user through a first display interface and saves the first information to a first form; the first information includes multiple attributes of the data to be saved.

[0007] Based on the first information, a second display interface is determined and displayed;

[0008] The second display interface receives a first value input by the user; the first value includes the parameter values ​​corresponding to each attribute in the first information.

[0009] The first value is saved to the second form; each attribute of the data to be saved in the first form corresponds one-to-one with the parameter value of each attribute in the second form;

[0010] The first information in the first form and the first value in the second form are saved to the database accordingly.

[0011] The data management method provided in this application allows for the storage of attributes and values ​​of data to be saved to the database through interaction between the backend and the frontend, without requiring code modification. This avoids the waste of human resources in modifying backend code and the problem of increasing the bloat of backend code.

[0012] In one possible implementation, determining the second display interface based on the first information includes:

[0013] Obtain the attribute name of each attribute in the first information;

[0014] Based on the preset template information, the attribute name of each attribute and the corresponding input box are arranged in the corresponding position of the new template to obtain the second display interface;

[0015] The step of receiving the first value input by the user through the second display interface includes:

[0016] In response to the input completion command, the parameter values ​​in multiple input boxes in the second display interface are obtained using a parameter retrieval function, and the parameter values ​​in the multiple input boxes are used as the first value.

[0017] The second display interface is generated based on the preset template information and the attribute name of each attribute in the first information. Fixed template information can be used to generate the corresponding second display interface even if the attributes are different each time, so as to receive user input and improve the flexibility of generating the second display interface in this application.

[0018] In one possible implementation, the method further includes:

[0019] After responding to the input completion signal through the second display interface, it detects whether the parameter value of the target attribute has been received, wherein the target attribute is the attribute in the second display interface;

[0020] If so, then continue to obtain the first value;

[0021] If not, prompt the user to continue entering information.

[0022] Validating user input through the front-end page can prevent situations where the parameter value of the target attribute is not received, thus reducing the possibility of errors on the front-end page.

[0023] In one possible implementation, the method further includes:

[0024] After receiving the first value input by the user through the second display interface, it is detected whether the parameter type corresponding to each parameter value in the first value is the target parameter type; the target parameter type is the parameter type corresponding to each attribute in the first information.

[0025] If so, then confirm the reception of the first value;

[0026] If not, prompt the user to re-enter the parameter value whose type is not the same as the attribute corresponding to the target parameter type.

[0027] Validating user input through the front-end page can prevent incorrect parameter types from occurring and reduce the possibility of errors on the front-end page.

[0028] In one possible implementation, the step of saving the first information in the first form and the first value in the second form to the database accordingly includes:

[0029] Save the second form to the first area of ​​the database;

[0030] Perform the following operation on any attribute contained in the first information of the first form:

[0031] Save any attribute and its corresponding key value to the second area of ​​the database; the key value corresponding to any attribute is used to represent the correspondence between any attribute in the first form and a parameter value in the second form.

[0032] This application can use key values ​​to represent the correspondence between the data information of the first form and the second form stored in the database, making the correspondence between the data information of the first form and the second form more intuitive, and the first form and the second form can be expanded at any time.

[0033] In one possible implementation, the method further includes:

[0034] After saving the second form to the first area of ​​the database, obtain the target address where the second form is saved in the first area of ​​the database;

[0035] The key value corresponding to any attribute contained in the first information in the first form is determined by the following method:

[0036] Obtain the target sequence number of the parameter value corresponding to any of the attributes stored in the second form;

[0037] The target address and the target sequence number are combined as the key value corresponding to any of the attributes.

[0038] This application uses the target serial number and target address in the second form to determine the key value stored in the first form, making the key value determination process more accurate and making the correspondence between the data information in the first form and the second form more intuitive.

[0039] In one possible implementation, after saving the first information in the first form and the first value in the second form to the database accordingly, the method further includes:

[0040] Upon receiving a viewing instruction, the system displays the first and second regions of the database and marks the data in the first and second regions that have corresponding relationships using the same identifier.

[0041] By using the same identifier to mark data that have a corresponding relationship, the problem of users not being able to intuitively see which data corresponds to each other after requesting to view the first and second areas can be solved.

[0042] Secondly, embodiments of this application provide a data management device, including:

[0043] The first information receiving unit is configured to receive first information input by the user through a first display interface and save the first information to a first form; the first information includes multiple attributes of the data to be saved;

[0044] The second display interface determining unit is used to determine a second display interface based on the first information and to display the second display interface;

[0045] The first value receiving unit is used to receive a first value input by the user through the second display interface; the first value includes the parameter values ​​corresponding to each attribute in the first information; the first value is saved to the second form; each attribute of the data to be saved in the first form corresponds one-to-one with the parameter values ​​corresponding to each attribute in the second form;

[0046] The data storage unit is used to save the first information in the first form and the first value in the second form to the database.

[0047] Thirdly, embodiments of this application provide an electronic device, including:

[0048] Memory, used to store program instructions;

[0049] A processor is configured to invoke program instructions stored in the memory and execute the steps included in the method described in the first aspect according to the obtained program instructions.

[0050] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method described in the first aspect.

[0051] This application provides a data management method, apparatus, electronic device, and storage medium. It can receive first information input by a user through a first display interface and save the first information to a first form. The first information consists of multiple attributes of the data to be saved. Based on the first information, a second display interface is determined and displayed. The second display interface receives a first value input by the user, which includes parameter values ​​corresponding to each attribute in the first information. The first value is saved to a second form. Each attribute of the data to be saved in the first form corresponds one-to-one with the parameter values ​​corresponding to each attribute in the second form. The first information in the first form and the first value in the second form are correspondingly saved to a database. This method only requires interaction between the backend and frontend to achieve the corresponding saving of attributes and values ​​of the data to be saved to the database, without modifying the code. This avoids the waste of human resources in modifying backend code and the problem of increasing the bloat of the backend code. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a schematic diagram illustrating an application scenario of a data management method provided in an embodiment of this application.

[0054] Figure 2 A flowchart illustrating a data management method provided in an embodiment of this application;

[0055] Figure 3 A schematic diagram of a first display interface provided in an embodiment of this application;

[0056] Figure 4 A schematic diagram of a second display interface provided in an embodiment of this application;

[0057] Figure 5 A detailed flowchart of a data management method provided in an embodiment of this application;

[0058] Figure 6 A structural block diagram of a data management device provided in an embodiment of this application;

[0059] Figure 7 This is a structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0060] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0061] In the description of the embodiments of this application, unless otherwise stated, "and" means "or", for example, A / B can mean A or B; "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.

[0062] Specifically, in the description of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. Furthermore, the terms "connection" and "linkage" used in this application, unless otherwise specified, include both direct and indirect connections (linkages).

[0063] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.

[0064] The present application will now be described in further detail with reference to the accompanying drawings and specific embodiments.

[0065] In one possible embodiment, Figure 1 This illustration shows an application scenario diagram of a data management method provided in an embodiment of this application. See also: Figure 1 As shown, Figure 1The system includes two electronic devices, namely electronic device 1 100 and electronic device 2 200. Electronic device 2 200 can store the database described in this application embodiment. Electronic device 1 100 can be used to execute a data management method provided in this application embodiment. After receiving the first information input by the user, electronic device 1 100 can generate a corresponding second display interface for the first information and display it on electronic device 1 100. At the same time, the first information is sent to electronic device 2 200. The user can input a first value on the second display interface. After verifying the first value, the first value is sent to electronic device 2 200. After receiving the first value sent by electronic device 1 100, electronic device 2 200 can verify the first value again. After successful verification, electronic device 2 200 can store the first information and the first value sent by electronic device 1 100 in its database.

[0066] In another possible embodiment, the database can also be stored in the electronic device 1 100, so that the electronic device 1 100 can complete the data management method provided in this application embodiment, as well as some database-related operations.

[0067] The classification and extraction method provided by the exemplary embodiments of this application will be described below with reference to the accompanying drawings and the application scenarios described above. It should be noted that the application scenarios described above are only shown to facilitate understanding of the spirit and principles of this application, and the embodiments of this application are not limited in any way in this respect.

[0068] Figure 2 A flowchart of a data management method provided in an embodiment of this application is shown, such as... Figure 2 As shown, the method may include the following steps:

[0069] Step S201: Receive the first information input by the user through the first display interface and save the first information to the first form.

[0070] In one possible embodiment, the first information includes information related to multiple attributes of the data to be saved, such as attribute names, etc. The first interface can be generated based on a specification attribute definition table, wherein the specification attribute definition table is predefined by the user. The specification attribute definition table can include information related to the attributes of the data to be saved, such as attribute names, attribute key values, attribute types, etc., as shown in Table 1 below. The specification attribute definition table can include the following contents:

[0071] Attribute Name String 255 yes Unique key-value pair String 255 yes Attribute data type String 255 yes Attribute necessity Integer 2 yes dropdown options String 255 no Attribute Description String 255 no

[0072] Table 1. Examples of Specification Attribute Definitions

[0073] Table 1 shows that for each attribute of the data to be saved, the corresponding attribute name, unique key value, data type, necessity, drop-down list options, and attribute description can be determined separately. Among them, the attribute name is a required field, and its corresponding type is string with a length of no more than 255; the unique key value is a required field, and its corresponding type is string with a length of no more than 255; the data type is a required field, and its corresponding type is string with a length of no more than 255; the necessity is a required field, and its corresponding type is string with a length of no more than 2; the drop-down list options are not required fields, and their corresponding types are strings with a length of no more than 255; the attribute description is not required fields, and its corresponding type is string with a length of no more than 255.

[0074] In one possible embodiment, Figure 3 A schematic diagram of a first display interface provided in an embodiment of this application is shown, such as... Figure 3 As shown, the first display interface generated according to Table 1 can include the required fields and non-required fields from Table 1. The attribute-related information can be arranged in the first display interface, with an input box after each piece of information. A "Required" message is displayed after the input boxes for required fields, while no message is displayed after the input boxes for non-required fields. Two buttons, "OK" and "Cancel," can be placed below all relevant information and their corresponding input boxes. If the user clicks the "OK" button after completing the input, the relevant information will be submitted to the backend. If the user clicks the "Cancel" button, the user will return to the previous menu. It should be noted that if the user does not enter any information for a required field, a corresponding message will be generated after the user clicks the "OK" button. The message can specify which required field was not filled, such as "Please fill in: Attribute Name". It should be noted that the first display interface may differ from the layout described above. For example, the information may be arranged in a line, or it may be scattered in the first display interface. The two buttons may be replaced with other interactive components. This application does not limit the layout of the first display interface. The function of the first display interface is to receive the first information input by the user.

[0075] Specifically, if the user targets the attribute of "hierarchy"... Figure 3The first display interface shows the user's input of initial information. In the "Attribute Name" field, the user can enter "Layer"; in the "Attribute Unique Key Value" field, they can enter "lb_type" as the identifier for the "Layer" attribute; in the "Attribute Data Type" field, they can enter "String" to indicate that the data format type corresponding to the "Layer" attribute is string; and in the "Drop-down Options" field, they can enter "layer7, layer4". The attribute description field explains the two options in the drop-down list: "Load balancing layer classification: Application layer (layer7) load balancing, Transport layer (layer4) load balancing". The initial information is the content entered by the user in the input box. After the user enters the initial information in the first display interface, the electronic device can receive the user's input and save it to the first form.

[0076] Step S202: Determine the second display interface based on the first information, and display the second display interface.

[0077] In one possible embodiment, the second display interface can be determined based on the first information as follows: The attribute name of each attribute in the first information is obtained; according to preset template information, the attribute name of each attribute and its corresponding input box are arranged in their corresponding positions on a new template to obtain the second display interface. The preset template information includes the positions of different numbers of attributes on the template, and the positions of the input boxes corresponding to each attribute on the template, as shown in Table 2 below. The first form may include the following content:

[0078]

[0079] Table 2 Example of the first form

[0080] As can be seen from Table 2, there are three types of first information received from the user through the first display interface: the attribute with the unique key value "Max_rule_num", which represents the maximum total number of rules that can be created in the load balancer, and the corresponding data type is integer and is required; the attribute with the unique key value "Min_rule_num", which represents the minimum total number of rules that can be created in the load balancer, and the corresponding data type is integer and is required; and the attribute with the unique key value "lb_type", which represents the hierarchical classification of the load balancer, and the corresponding data type is string and is required.

[0081] In one possible embodiment, the corresponding second display interface can be determined based on the first information in Table 2. Figure 4 A schematic diagram of a second display interface provided in an embodiment of this application is shown, such as... Figure 4As shown, the second display interface generated according to Table 2 can include the three attributes contained in Table 2, as well as corresponding input boxes and drop-down lists. It should be noted that if the drop-down list options in Table 2 are empty, an input box can be set after the attribute name to receive user input; if the drop-down list options in Table 2 are not empty, a drop-down list can be set after the attribute name to receive user input. When the user moves the cursor to the attribute name, the corresponding description can be displayed. For example, when the user moves the cursor to the maximum number of rules, the description will be displayed. Figure 4 The second display interface can show a prompt message stating "the maximum total number of rules that can be created in the load balancer". It should be noted that, similar to the first display interface, the second display interface can have a different layout. For example, the attributes can be arranged in a line, scattered throughout the first display interface, or the two buttons can be replaced with other interactive components. This application does not limit the layout of the second display interface; its function is to receive the first value input by the user.

[0082] Step S203: Receive the first value input by the user through the second display interface, and save the first value to the second form.

[0083] In one possible embodiment, in response to an input completion command, the parameter values ​​in multiple input boxes on the second display interface can be obtained using a parameter retrieval function, and these parameter values ​​can be used as the first value. Specifically, the user can click... Figure 4 The "Confirm" button sends an input completion command. After the user sends the input completion command, it can check whether the parameter value of the target attribute has been received. The target attribute is a required attribute in the second display interface. If the parameter value of the target attribute has been received, it continues to retrieve the first value; if the parameter value of the target attribute has not been received, it prompts the user to continue inputting. For example, in... Figure 4 In the second display interface shown, both the maximum number of rules and the minimum number of rules are required fields. If the user only enters the maximum number of rules and not the minimum number of rules, a prompt message "Please continue to enter the minimum number of rules" will pop up after the user clicks the "Confirm" button. The prompt message can be automatically closed after a set time. If the user enters both required fields, the user can continue to the following steps to obtain the first value after clicking the "Confirm" button.

[0084] In one possible embodiment, after responding to the input completion command and determining that the user has entered the parameter value of the target attribute, the parameter values ​​in multiple input boxes on the second display interface can be obtained using a parameter retrieval function, and these values ​​can be used as the first value. It's important to note that the parameter retrieval function is not always necessary to obtain the parameter values ​​from the input boxes. Different implementation methods can be chosen depending on the development environment of the second display interface. For example, in web development, HTML tags can be used to create input boxes, and the `getInput` function in JavaScript can be used to retrieve user input. With React as the front-end framework, the `handleChange` function can be used to update the input value each time the user inputs, thereby achieving the goal of obtaining user input.

[0085] In one possible embodiment, after obtaining the parameter values ​​in the input box, it can be detected whether the parameter type corresponding to each parameter value in the first value is the target parameter type. The target parameter type is stored in the first information of the first form. If the parameter type corresponding to each parameter value is the target parameter type, it can be determined that the first value has been received. If the parameter type corresponding to any parameter value is not the target parameter type, the user can be prompted to re-enter a parameter value whose parameter type is not the attribute corresponding to the target parameter type. For example, the target parameter type corresponding to the maximum number of rules should be an integer type. If the parameter type corresponding to the parameter value entered by the user is a string, a prompt "Please re-enter the maximum number of rules" can be displayed on the second display interface. If each parameter value entered by the user corresponds to the target parameter type, it can be determined that the first value has been received and the first value is saved to the second form.

[0086] Step S204: Save the first information in the first form and the first value in the second form to the database.

[0087] In one possible embodiment, after executing steps S201 to S203, a first form and a second form are obtained. The second form can be saved to a first area of ​​the database firstly. Then, for any attribute contained in the first information in the first form, the following operation is performed: the attribute and its corresponding key value are saved to a second area of ​​the database. The key value corresponding to any attribute is used to represent the correspondence between any attribute in the first form and a parameter value in the second form. Specifically, since the second form has already been saved to the first area of ​​the database, the target address of each piece of data saved in the second form in the first area of ​​the database can be obtained. If it is necessary to determine the key value corresponding to any attribute contained in the first information in the first form, the target sequence number of the parameter value corresponding to any attribute saved in the second form can be obtained, and the target address and target sequence number can be combined as the key value corresponding to any attribute. For example, if the data stored in the second form is {"lb_type":"layer 7", "Max_rule_num":4", "Min_rule_num":2}, and the target sequence number of the data stored in the second form is N1, and the address of the data stored in the second form in the database is aaa, then it can be determined that the key value corresponding to layer7 in the first form shown in Table 2 should be N1aaa, and the key value corresponding to layer7 can be stored after layer7; similarly, the key value corresponding to layer4 can also be stored after layer4.

[0088] In one possible embodiment, during the process of saving the second form, although the front-end page has already screened the data in the second form, in order to avoid potential problems during the saving process, the JSONObject flavorFields field in the database can be used to receive all the data contained in the second form, and all the data can be traversed to verify whether the data contains all the required attributes and the corresponding data types. If the verification passes, the data management method in this application is completed; if the verification fails, the user can be asked to re-enter the data, or a request can be sent to the front-end to inform the front-end to resend the corresponding data content to the back-end database.

[0089] In one possible embodiment, after saving the first form to the second area of ​​the database and the second form to the first area of ​​the database, if a viewing instruction is received from the user, both the first and second areas of the database can be displayed to the user simultaneously, and data with corresponding relationships in the first and second areas can be marked using the same identifier. Specifically, during the display process, corresponding data can be marked using the same color, or corresponding data can be connected using lines; this application does not limit the specific marking method.

[0090] In one possible embodiment, after saving the first form to the second area of ​​the database and the second form to the first area of ​​the database, data addition, deletion, modification, and query can be achieved by calling relevant JSON operation functions of the database. The forms saved in the first or second area can be added, deleted, modified, and queried directly according to the operation functions entered by the user.

[0091] In one possible embodiment, Figure 5 A detailed flowchart of a data management method provided in an embodiment of this application is shown, such as... Figure 5 As shown, the method includes the following steps:

[0092] Step S501: Receive the first information input by the user through the first display interface and save the first information to the first form.

[0093] Step S502: Obtain the attribute name of each attribute in the first information, and arrange the attribute name of each attribute and the corresponding input box in the corresponding position of the new template according to the preset template information to obtain the second display interface.

[0094] Step S503: In response to the input completion command, check whether the parameter value of the target attribute has been received. If yes, proceed to step S504; otherwise, proceed to step S505.

[0095] Step S504: Continue to obtain the first value, and check whether the parameter type corresponding to each parameter value in the first value is the target parameter type. If yes, proceed to step S506; otherwise, proceed to step S507.

[0096] Step S505 prompts the user to continue inputting information.

[0097] Step S506: Confirm receipt of the first value and save the second form to the first area of ​​the database. Then proceed to step S508.

[0098] Step S507 prompts the user to re-enter the parameter value whose parameter type is not the same as the attribute corresponding to the target parameter type.

[0099] Step S508: For any attribute contained in the first information in the first form, perform the following: save any attribute and its corresponding key value to the second area of ​​the database.

[0100] Step S509: After receiving the viewing instruction, display the first region and the second region in the database, and use the same identifier to mark the data that have a corresponding relationship in the first region and the second region.

[0101] Based on the same inventive concept Figure 6 A structural block diagram of a data management device provided in an embodiment of this application is shown below. Figure 6 As shown, the data management device 600 may include:

[0102] The first information receiving unit 601 is used to receive first information input by the user through a first display interface and save the first information to a first form; the first information includes multiple attributes of the data to be saved;

[0103] The second display interface determination unit 602 is used to determine a second display interface based on the first information and to display the second display interface.

[0104] The first value receiving unit 603 is used to receive a first value input by the user through the second display interface; the first value includes the parameter values ​​corresponding to each attribute in the first information; the first value is saved to the second form; each attribute of the data to be saved in the first form corresponds one-to-one with the parameter values ​​corresponding to each attribute in the second form;

[0105] The data storage unit 604 is used to save the first information in the first form and the first value in the second form to the database.

[0106] In one possible implementation, the second display interface determining unit 602 is specifically used to obtain the attribute name of each attribute in the first information;

[0107] Based on the preset template information, the attribute name of each attribute and the corresponding input box are arranged in the corresponding position of the new template to obtain the second display interface;

[0108] The step of receiving the first value input by the user through the second display interface includes:

[0109] In response to the input completion command, the parameter values ​​in multiple input boxes in the second display interface are obtained using a parameter retrieval function, and the parameter values ​​in the multiple input boxes are used as the first value.

[0110] In one possible implementation, the second display interface determining unit 602 is further configured to detect whether a parameter value of a target attribute has been received after responding to an input completion command through the second display interface, wherein the target attribute is a required attribute in the second display interface.

[0111] If so, then continue to obtain the first value;

[0112] If not, prompt the user to continue entering information.

[0113] In one possible implementation, the second display interface determining unit 602 is further configured to, after receiving the first value input by the user through the second display interface, detect whether the parameter type corresponding to each parameter value in the first value is a target parameter type; the target parameter type is the parameter type corresponding to each attribute in the first information.

[0114] If so, then confirm the reception of the first value;

[0115] If not, prompt the user to re-enter the parameter value whose type is not the same as the attribute corresponding to the target parameter type.

[0116] In one possible implementation, the data storage unit 604 is specifically used to save the second form to a first area of ​​the database;

[0117] Perform the following operation on any attribute contained in the first information of the first form:

[0118] Save any attribute and its corresponding key value to the second area of ​​the database; the key value corresponding to any attribute is used to represent the correspondence between any attribute in the first form and a parameter value in the second form.

[0119] In one possible implementation, the data storage unit 604 is further configured to obtain the target address of the second form stored in the first area of ​​the database after saving the second form to the first area of ​​the database;

[0120] The key value corresponding to any attribute contained in the first information in the first form is determined by the following method:

[0121] Obtain the target sequence number of the parameter value corresponding to any of the attributes stored in the second form;

[0122] The target address and the target sequence number are combined as the key value corresponding to any of the attributes.

[0123] In one possible implementation, the data storage unit 604 is further configured to, upon receiving a viewing instruction, display a first region and a second region in the database, and use the same identifier to mark data that have a corresponding relationship in the first region and the second region.

[0124] Based on the same inventive concept, this application provides an electronic device that can realize the functions of the data management method described above. Please refer to... Figure 7 The electronic device 700 includes a memory 701, a processor 702, and a bus 703.

[0125] The memory 701 is used to store computer programs executed by the processor 702. The memory 701 may mainly include a program storage area and a data storage area. The program storage area may store the operating system and programs required to run instant messaging functions, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0126] Memory 701 may be volatile memory, such as random-access memory (RAM); memory 701 may also be non-volatile memory, such as read-only memory, flash memory, hard disk drive (HDD), or solid-state drive (SSD); or memory 701 may be any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 701 may be a combination of the above-described memories.

[0127] The processor 702 may include one or more central processing units (CPUs) or digital processing units, etc. The processor 702 is used to implement the data management method described above when it invokes a computer program stored in the memory 701.

[0128] This application embodiment does not limit the specific connection medium between the memory 701 and the processor 702 described above. This application embodiment... Figure 7 The memory 701 and the processor 702 are connected via a bus 703, and the bus 703 is in Figure 7 The connections between other components are shown in bold lines only and are not intended to be limiting. The 703 bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, Figure 7The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0129] Based on the same inventive concept, embodiments of this application provide a computer-readable storage medium. The computer program product includes computer program code, which, when executed on a computer, causes the computer to perform any of the data management methods discussed above. Since the principle of the computer-readable storage medium in solving the problem is similar to the testing method, the implementation of the computer-readable storage medium can be found in the implementation of the method; repeated details will not be elaborated further.

[0130] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0131] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0132] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0133] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0134] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A data management method, characterized in that, include: The system receives first information input by the user through a first display interface and saves the first information to a first form. The first information contains multiple attributes of the data to be saved; Based on the first information, a second display interface is determined and displayed; The second display interface receives a first value input by the user; the first value includes the parameter values ​​corresponding to each attribute in the first information. Save the first value to the second form; Each attribute of the data to be saved in the first form corresponds one-to-one with the parameter values ​​of each attribute in the second form; The first information in the first form and the first value in the second form are saved to the database accordingly; The step of saving the first information in the first form and the first value in the second form to the database accordingly includes: Save the second form to the first area of ​​the database; Perform the following operation on any attribute contained in the first information of the first form: Save any attribute and its corresponding key value to the second area of ​​the database; the key value corresponding to any attribute is used to represent the correspondence between any attribute in the first form and a parameter value in the second form; The method further includes: After saving the second form to the first area of ​​the database, obtain the target address where the second form is saved in the first area of ​​the database; The key value corresponding to any attribute contained in the first information in the first form is determined by the following method: Obtain the target sequence number of the parameter value corresponding to any of the attributes stored in the second form; The target address and the target sequence number are combined as the key value corresponding to any of the attributes.

2. The method according to claim 1, characterized in that, Determining the second display interface based on the first information includes: Obtain the attribute name of each attribute in the first information; Based on the preset template information, the attribute name of each attribute and the corresponding input box are arranged in the corresponding position of the new template to obtain the second display interface; The step of receiving the first value input by the user through the second display interface includes: In response to the input completion command, the parameter values ​​in multiple input boxes in the second display interface are obtained using a parameter retrieval function, and the parameter values ​​in the multiple input boxes are used as the first value.

3. The method according to claim 2, characterized in that, The method further includes: After responding to the input completion command through the second display interface, it checks whether the parameter value of the target attribute has been received, wherein the target attribute is a required attribute in the second display interface; If so, then continue to obtain the first value; If not, prompt the user to continue entering information.

4. The method according to claim 2, characterized in that, The method further includes: After receiving the first value input by the user through the second display interface, it is detected whether the parameter type corresponding to each parameter value in the first value is the target parameter type; the target parameter type is the parameter type corresponding to each attribute in the first information. If so, then confirm the reception of the first value; If not, prompt the user to re-enter the parameter value whose type is not the same as the attribute corresponding to the target parameter type.

5. The method according to claim 1, characterized in that, After saving the first information in the first form and the first value in the second form to the database accordingly, the method further includes: Upon receiving a viewing instruction, the system displays the first and second regions of the database and marks the data in the first and second regions that have corresponding relationships using the same identifier.

6. A data management device, characterized in that, include: The first information receiving unit is used to receive first information input by the user through the first display interface and save the first information to the first form; The first information contains multiple attributes of the data to be saved; The second display interface determining unit is used to determine a second display interface based on the first information and to display the second display interface; The first value receiving unit is used to receive a first value input by the user through the second display interface; the first value includes the parameter values ​​corresponding to each attribute in the first information; and the first value is saved to the second form; Each attribute of the data to be saved in the first form corresponds one-to-one with the parameter values ​​of each attribute in the second form; The data storage unit is used to save the first information in the first form and the first value in the second form to the database accordingly; The step of saving the first information in the first form and the first value in the second form to the database accordingly includes: Save the second form to the first area of ​​the database; Perform the following operation on any attribute contained in the first information of the first form: Save any attribute and its corresponding key value to the second area of ​​the database; the key value corresponding to any attribute is used to represent the correspondence between any attribute in the first form and a parameter value in the second form; The method further includes: After saving the second form to the first area of ​​the database, obtain the target address where the second form is saved in the first area of ​​the database; The key value corresponding to any attribute contained in the first information in the first form is determined by the following method: Obtain the target sequence number of the parameter value corresponding to any of the attributes stored in the second form; The target address and the target sequence number are combined as the key value corresponding to any of the attributes.

7. An electronic device, characterized in that, include: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the steps of the method according to any one of claims 1-5.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the method of any one of claims 1-5.