Data dictionary generation method and device, equipment, storage medium and program product
Through permission control and unified configuration interface, the code complexity problem caused by different developers' understanding of configuration item naming is solved, and the configuration consistency and maintenance cost of data objects are reduced.
Patent Information
- Application Number
- CN202411290490.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-09-14
AI Technical Summary
In the complex program development process, due to different naming and understanding of configuration items by different developers, multiple configuration item definitions with substantially the same but different names appear in the code, which increases the complexity and maintenance cost of code maintenance.
Through permission control, ensure that only users with permission can access the configuration interface to configure data items of data objects, providing a unified configuration interface and preset controls. Users can view and configure all relevant data objects in a centralized interface to reduce data objects data items The possibility of being repeatedly defined at different locations and ensuring configuration consistency of data items in data objects is ensured by generating data dictionaries.
It effectively reduces the complexity and maintenance cost of code maintenance, ensures the configuration consistency and accuracy of data objects data items, reduces configuration differences between developers, and simplifies the code management and maintenance process.
Smart Images

Figure CN119127294A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a data dictionary generation method, device, equipment, storage medium and program product. Background Art
[0002] With the development of information technology, program development has become a highly complex and rapidly iterative process. The scale of the project continues to expand, and the number of developers involved has also increased, which has led to a significant increase in the complexity and difficulty of project management.
[0003] However, different developers may have different names and understandings for the same configuration item, resulting in multiple configuration item definitions that are essentially the same but have different names in the code. Such duplicate definitions of configuration items will lead to the complexity of code maintenance and increased maintenance costs. Summary of the invention
[0004] The embodiments of the present application provide a data dictionary generation method, apparatus, device, storage medium and program product, which can maintain the consistency of data item configuration, thereby reducing the complexity and maintenance cost of code maintenance.
[0005] In a first aspect, an embodiment of the present application provides a method for generating a data dictionary, the method comprising:
[0006] Get the user's permission information;
[0007] In a case where the permission information indicates that the user has the operation permission, receiving a first input from the user;
[0008] In response to the first input, displaying a first configuration interface, the first configuration interface including a preset control for each data object of the plurality of data objects, the preset control being used to configure a data item of the corresponding data object;
[0009] In response to a second input of a user to a target preset control corresponding to a first target data object among the multiple data objects, obtaining first configuration information of a data item of the first target data object;
[0010] According to the first configuration information, configure the data items of the first target data object to obtain the configured first target data object;
[0011] A data dictionary is generated based on the configured first target data object.
[0012] In a second aspect, an embodiment of the present application provides a data dictionary generating device, the data dictionary generating device comprising:
[0013] The first acquisition module is used to obtain the user's permission information;
[0014] A first receiving module, configured to receive a first input from a user when the permission information indicates that the user has the operation permission;
[0015] A first response module, configured to display a first configuration interface in response to a first input, wherein the first configuration interface includes a preset control for each data object of the plurality of data objects, and the preset control is used to configure a data item of the corresponding data object;
[0016] A second response module, configured to obtain first configuration information of a data item of the first target data object in response to a second input of a user to a target preset control corresponding to a first target data object among the multiple data objects;
[0017] A first configuration module, configured to configure data items of a first target data object according to first configuration information to obtain a configured first target data object;
[0018] The generating module is used to generate a data dictionary based on the configured first target data object.
[0019] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, a data dictionary generation method as described in any one of the first aspects is implemented.
[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, a data dictionary generation method as described in any one of the first aspects is implemented.
[0021] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, a data dictionary generation method as described in any one of the first aspects is implemented.
[0022] The data dictionary generation method, device, equipment, storage medium and program product of the embodiment of the present application, through permission control, ensure that only authorized users can access the first configuration interface to configure the data items of the data object, effectively prevent unauthorized users from accessing sensitive configuration information, and enhance the controllability of the data object configuration. Then, by providing the user with a unified first configuration interface and preset controls, the user can view and configure all relevant data objects in a centralized interface, which helps to reduce the possibility of data items of the data object being repeatedly defined in different locations. Subsequently, the user enters the configuration information through the preset controls, which have been preset according to the characteristics of the data object, reducing the space for user understanding differences. Then, the business end generates a data dictionary based on the configured data object input by the user, effectively ensuring the consistency and accuracy of the configuration of the data items of the data object. In this way, even if different developers participate in the configuration of the data items of the data object, the consistency of the data item configuration can be maintained, thereby reducing the complexity and maintenance cost of code maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0024] Figure 1 A schematic diagram showing a flow chart of a data dictionary generation method provided in some embodiments of the present application;
[0025] Figure 2 A schematic diagram showing a first configuration interface in a data dictionary generation method provided in some embodiments of the present application;
[0026] Figure 3 A flowchart showing a specific implementation of step 140 provided in some embodiments of the present application is shown;
[0027] Figure 4 A flowchart showing a specific implementation of step 1401 provided in some embodiments of the present application is shown;
[0028] Figure 5 A schematic diagram showing an initial configuration interface in a data dictionary generation method provided in some embodiments of the present application;
[0029] Figure 6 A schematic diagram showing a second configuration interface corresponding to a first configuration mode in a data dictionary generation method provided in some embodiments of the present application is shown;
[0030] Figure 7A schematic diagram showing a second configuration interface corresponding to a second configuration mode in a data dictionary generation method provided in some embodiments of the present application is shown;
[0031] Figure 8 A schematic diagram of the process of configuring a newly added data object in a data dictionary generation method provided in some embodiments of the present application is shown;
[0032] Fig. 9 A schematic diagram showing a third configuration interface in a data dictionary generation method provided in some embodiments of the present application;
[0033] Fig.10 A schematic diagram showing the first configuration information in the data dictionary generation method provided in some embodiments of the present application is displayed through a list;
[0034] Fig.11 A schematic diagram showing the first configuration information in the data dictionary generation method provided by some embodiments of the present application is displayed through a tree model;
[0035] Fig.12 A schematic diagram showing a flow chart of a data dictionary generation method provided in some other embodiments of the present application;
[0036] Fig.13 A schematic diagram showing the structure of a data dictionary generating device provided in some embodiments of the present application is shown;
[0037] Fig.14 A schematic diagram of the structure of an electronic device provided in some embodiments of the present application is shown. DETAILED DESCRIPTION
[0038] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0039] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0040] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.
[0041] In addition, it is worth noting that in the specific embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned. They should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0042] In order to solve the problems in the above-mentioned related technologies, the embodiments of the present application provide a data dictionary generation method, device, equipment, storage medium and program product. Figure 1 To Attachment Fig.11 , the data dictionary generation method provided in the embodiment of the present application is described in detail through specific embodiments and their application scenarios.
[0043] Figure 1 FIG. 1 is a flow chart showing a method for generating a data dictionary according to some embodiments of the present application. Figure 1 As shown, the data dictionary generation method may include steps 110 to 160.
[0044] Step 110, obtaining the user's permission information.
[0045] Step 120: When the authority information indicates that the user has the operation authority, receive a first input from the user.
[0046] Step 130: In response to the first input, display a first configuration interface, wherein the first configuration interface includes a preset control for each data object among the plurality of data objects, and the preset control is used to configure data items of the corresponding data object.
[0047] Step 140 , in response to a second input of a user to a target preset control corresponding to a first target data object among the multiple data objects, first configuration information of a data item of the first target data object is obtained.
[0048] Step 150: configure data items of the first target data object according to the first configuration information to obtain the configured first target data object.
[0049] Step 160: Generate a data dictionary based on the configured first target data object.
[0050] Thus, through permission control, it is ensured that only authorized users can access the first configuration interface to configure the data items of the data object, which effectively prevents unauthorized users from accessing sensitive configuration information and enhances the controllability of the data object configuration. Then, by providing users with a unified first configuration interface and preset controls, users can view and configure all relevant data objects in a centralized interface, which helps to reduce the possibility of data items of data objects being repeatedly defined in different locations. Subsequently, users enter configuration information through preset controls, which have been preset according to the characteristics of the data object, reducing the space for user understanding differences. Then, the business end generates a data dictionary based on the configured data object input by the user, effectively ensuring the consistency and accuracy of the configuration of the data items of the data object. In this way, even if different developers participate in the configuration of the data items of the data object, the consistency of the data item configuration can be maintained, thereby reducing the complexity and maintenance cost of code maintenance.
[0051] It is understandable that the data dictionary provides a unified configuration location for all data objects. Users can follow the configuration of the data structure in the data dictionary to reduce the problem of inconsistent data item definitions. Through the data dictionary, all data objects can be centrally managed and maintained. When the data items of a data object need to be modified, only one update is required in the data dictionary, which can be automatically applied to all places that reference the data object without large-scale modification of the code, greatly simplifying the maintenance process.
[0052] The above steps are described in detail below, as shown below.
[0053] First, in step 110, permission information refers to information used by the business end to determine whether a user has the right to perform a specific operation. The permission information may include the user's role, permission level, and a list of accessible resources.
[0054] Secondly, involving step 120, the first input refers to the first operation input performed by the user, which is used to trigger the subsequent configuration process. Exemplarily, the above-mentioned first input includes but is not limited to: the user's touch input of the configuration button through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the above-mentioned first input can be a long press input of the configuration button by the user.
[0055] In this way, before receiving the user's operation request, such as clicking the "Start Configuration" button, the user's permission information is first obtained to verify whether the user has the required permission to perform the operation. If the user has the required permission, the user's first input is processed and the corresponding business logic is executed. If the user does not have the required permission, appropriate measures should be taken according to the business-side design, such as displaying an error message to the user, redirecting to the login page or permission upgrade page, etc.
[0056] Next, step 130 is involved. The first configuration interface refers to an interface provided to the user for configuring each data object of the data dictionary. A data object refers to a data structure unit defined in the data dictionary. Figure 2 The example shows a typical scenario of data object diversity management, in which multiple data objects involved include but are not limited to gender, relationship type, switch status, and data type. In order to improve the convenience and intuitiveness of user interaction, a series of controls are preset on the first configuration interface for each data object. Specifically, the preset controls include but are not limited to text boxes for inputting or displaying text information, drop-down lists for providing a list of options for users to choose from, check boxes that allow users to select multiple options by checking, etc.
[0057] by Figure 2 For example, the preset controls equipped for each data object may specifically include:
[0058] View data item 201, through which the user can browse or retrieve related data items of a specific data object, so as to realize the rapid location and understanding of the specific data object;
[0059] The newly added data item 202 provides the user with an entry for adding a new data record through the control, making the operation of adding a data item simple and direct, and promoting the dynamic update and expansion of a specific data object.
[0060] Edit data item 203, through which the data item of a specific data object can be edited and modified.
[0061] Delete data item 204. Through this control, data items that are no longer needed can be deleted, thereby optimizing data management and avoiding the accumulation of redundant data.
[0062] In this way, through such a one-to-one configuration method, each data object is equipped with a set of interactive controls including viewing, adding, editing, and deleting, which not only improves the flexibility and efficiency of user operations, but also ensures the comprehensiveness and accuracy of data management.
[0063] Furthermore, in step 140, the first target data object refers to a specific data object configured by the user in the current configuration process. The target preset control refers to a preset control associated with the first target data object, through which the user can input or select the first configuration information of the data item of the first target data object.
[0064] The second input is an input to the target preset control. The above-mentioned first input is used to display the first configuration interface, and the second input can be an input to the first target data object on the first configuration interface. Exemplarily, the above-mentioned second input includes but is not limited to: the user's touch input to the first control through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the above-mentioned second input can be an operation input performed by the user on the target preset control on the first configuration interface, such as filling in text, selecting options, etc.
[0065] In this way, the first configuration information refers to the configuration information provided by the user for the first target data object through the second input, such as the data item name, data item identifier, sort number, whether to set to the default value, whether to enable, etc.
[0066] In some embodiments of the present application, the target preset control is used to trigger an operation of performing detailed configuration on the first target data object associated with the target preset control. Specifically, the target preset control may include a target object configuration control and a data item configuration control. Figure 2 For example, the target object configuration control may include at least one of the following: adding a new data item 202, editing a data item 203, and deleting a data item 204. Based on this, Figure 3As shown, the aforementioned step 140 may specifically include step 1401 to step 1402.
[0067] Step 1401: In response to a first sub-input of a user to configure a target object control, a second configuration interface is displayed.
[0068] Among them, the user can further configure each data item of the first target data object by clicking or selecting the target object configuration control. The second configuration interface refers to the interface displayed after the user makes a first sub-input to the target object configuration control, which provides configuration options directly related to the data items of the first target data object, namely, the data item configuration control. The data item configuration control refers to the control located on the second configuration interface. There can be multiple data item configuration controls, and each control can correspond to a data item of the first target data object, so as to allow the user to configure the data item through the control, such as setting the data item name, data item identifier, data item sort number, whether it is the default value, whether it is enabled, etc.
[0069] Exemplarily, when the user clicks or selects the target object configuration control, the business end responds to the operation and displays the second configuration interface. The second configuration interface lists data items related to the first target data object, and each data item is correspondingly provided with one or more data item configuration controls for the user to configure the data items of the specific data object.
[0070] Step 1402: In response to a second sub-input of a user to a data item configuration control on a second configuration interface, first configuration information of a data item of a first target data object is obtained.
[0071] The second sub-input refers to an input operation performed by a user on a data item configuration control on the second configuration interface, and is used to specify or modify specific configuration information of the data item of the first target data object.
[0072] Exemplarily, the user enters or selects specific configuration information of each data item of the first target data object by clicking or filling in the data item configuration control on the second configuration interface. The business end captures these inputs as first configuration information and prepares them for subsequent data item configuration processes.
[0073] Thus, by setting the target object configuration control and the data item configuration control, the user is allowed to directly and accurately configure the data item of the first target data object. Specifically, through the data item configuration control, the user can conveniently set the properties of each data item, such as the data item name, data item identifier, whether to enable, etc., which effectively enhances the flexibility of user configuration and the manageability of data.
[0074] In some embodiments of the present application, before triggering the operation of displaying the second configuration interface, in order to optimize the user experience, an operation of selecting a data item configuration mode of the data object may also be included. Based on this, the target object configuration control may include a first control and a second control, and the user's first sub-input to the target object configuration control includes the user's input to the first control and the user's input to the second control. Figure 4 As shown, the above step 1401 may specifically include steps 14011 to 14013.
[0075] Step 14011: In response to the user's input to the first control, an initial configuration interface is displayed.
[0076] The first control refers to a specific control in the target object configuration control, which is used to trigger the operation of displaying the initial configuration interface. The user input to the first control refers to the input operation performed by the user on the first control, which is used to trigger the display of the initial configuration interface. The initial configuration interface refers to the interface displayed after the user performs the input to the first control, and may include some basic configuration options or overviews to guide the user to make the next configuration selection.
[0077] Exemplarily, when the user clicks or selects the first control, the business end responds to this operation and displays the initial configuration interface. Figure 5 ,The initial configuration interface may include some basic ,configuration options or information prompts, such as data item name, data item identifier, ,sort number, whether it is the default value, whether it is enabled, etc., which helps the user understand the ,next configuration process or make a preliminary choice.
[0078] Step 14012: In response to the user's input to the second control, obtain the user's configuration method for the data item of the first target data object.
[0079] The second control refers to another specific control in the target object configuration control, which is used to obtain the user's configuration method selection for the first target data object data item, and this selection determines how to configure the data item later. The user's input operation on the second control is used to specify or select the configuration method of the first target data object data item.
[0080] Exemplarily, on the initial configuration interface, the user clicks or selects the second control and enters or selects a specific configuration method. The business end captures this input as the user's selection of the configuration method for the first target data object data item. Figure 5 The second control may refer to a control corresponding to the first configuration mode and the second configuration mode.
[0081] Step 14013: display a second configuration interface according to the user's configuration method for the data items of the first target data object.
[0082] Among them, the second configuration interface refers to the interface displayed after the user selects the configuration method of the data item. The interface displays the corresponding data item configuration controls according to the selected configuration method, allowing the user to perform detailed data item configuration.
[0083] Exemplarily, when the user selects the first configuration mode and selects the second control corresponding to the first configuration mode from the second control options, the second configuration interface presented is as follows: Figure 6 When the user selects the second configuration mode and selects the second control corresponding to the second configuration mode from the second control options, the second configuration interface is presented as shown in FIG. Figure 7 shown.
[0084] Thus, users can choose the most suitable configuration method according to their needs and preferences, and the business end can flexibly generate and display the second configuration interface according to the user's configuration method selection. This flexibility not only improves the user experience, but also makes the configuration process of data items more intuitive and efficient, thereby helping to quickly and accurately complete the configuration of data items.
[0085] Then, in step 150, if the first configuration information indicates that a new data item needs to be added, then the corresponding attribute or field is added to the target data object according to the data name and other information in the first configuration information. If the target data object already has some data items, but they need to be modified according to the new first configuration information, such as changing the data type, setting the default value, etc., then the attributes of these existing data items are updated.
[0086] In some embodiments of the present application, Figure 5 As shown, the first configuration information of the data item of the first target data object includes the configuration information of each data item in the multiple data items of the first target data object. The configuration mode may include a first configuration mode and a second configuration mode. The first configuration mode is used to configure the multiple data items one by one. The second configuration mode is used to configure the multiple data items in batches. Based on this, in some embodiments of the present application, the above step 150 may specifically include, when it is determined that the configuration mode is the first configuration mode, configuring the multiple data items of the first target data object one by one according to the first configuration mode, the first association rule corresponding to the first configuration mode, and the configuration information of each data item in the multiple data items of the first target data object, to obtain the configured first target data object.
[0087] The first configuration mode refers to a mode of configuring multiple data items in the first target data object one by one. In the first configuration mode, the user can configure each data item of the first target data object in detail. Figure 6,The configuration information of each data item may include the data item name, data item identifier, sort number, whether to set to default value, whether to enable, etc. A data item refers to a specific attribute or value in a data object. Taking the first target data object as gender as an example, the data item can be "male", "female" and "unknown".
[0088] Next, the meaning and related functions of the data item name, data item identifier, sort number, whether it is set to the default value, and whether it is enabled will be explained in detail.
[0089] The data item name refers to the Chinese name of the data item, which is used to describe the specific content of the data item.
[0090] The data item ID is a unique identifier for a data item, usually used for internal reference on the business side. In this scenario, the data item ID is generated based on the English translation of the data item name, separated by underscores.
[0091] The sort number is used to control the order in which the data items are displayed. For example, the smaller the sort number, the higher the position of the data item in the list.
[0092] Whether to set as the default value refers to marking whether the data item is used as the default value of the data object. If no default value is set, the data object may default to empty or display a preset default value.
[0093] Whether to enable refers to whether the data item is available. If it is set to not enabled, the data item will not be displayed to the user in the relevant list.
[0094] It can be understood that, in a one-by-one configuration mode, the first association rule is used to ensure that the configuration information of each data item, such as the configuration item name, identifier, sort number, whether it is set to the default value, whether it is enabled, etc., can be accurately mapped to the corresponding attributes of the first target data object.
[0095] Exemplarily, in order to ensure the accuracy and effectiveness of data item configuration in a one-by-one configuration mode, the first association rule may specifically include:
[0096] Naming rules to ensure that the names of data items and identifiers comply with established naming conventions, such as data item identifiers using English translations and separated by underscores.
[0097] Uniqueness rules ensure that the identifier of each data item is unique in the first target data object to avoid configuration conflicts.
[0098] Sequential rules determine the order in which data items are displayed or processed based on the sorting numbers set by the user.
[0099] Default value rule: If a data item is set to a default value, the value of the data item is used as the default option when no specific value is specified.
[0100] Enable state rules to determine whether a data item is available or displayed in the current context based on the user's selection.
[0101] For example, refer to Figure 6 , the specific steps for configuring data items in the first configuration mode are as follows:
[0102] The user enters the configuration interface one by one, adds a data item for the "gender" data object, and enters the data item name such as male;
[0103] The business end automatically generates an English identifier based on the data item name and provides it to the user for modification, such as setting the male identifier to "male";
[0104] The business end automatically generates a sort number such as 1, but allows the user to modify it as needed;
[0105] The user chooses whether to set the data item as the default value and sets whether to enable the data item;
[0106] The business end saves the user's configuration information and configures data items one by one based on this information.
[0107] In this way, the one-by-one configuration method provides higher configuration accuracy and flexibility, and is suitable for scenarios with strict requirements on data items or that require special configuration.
[0108] In some other embodiments of the present application, the above-mentioned step 150 may specifically include, when it is determined that the configuration mode is the second configuration mode, batch configuring multiple data items of the first target data object according to the second configuration mode, a second association rule corresponding to the second configuration mode, and the configuration information of each data item in the multiple data items of the first target data object to obtain the configured first target data object.
[0109] The second configuration mode refers to a mode of batch configuration of multiple data items in the first target data object. In the second configuration mode, the user can input a group of data items separated by separators to set basic configuration information for multiple data items at one time, thereby improving configuration efficiency.
[0110] It can be understood that, in the batch configuration mode, the second association rule is used to ensure that the configuration information of a group of data items is efficiently applied to the first target data object in batches while maintaining the accuracy and consistency of the configuration.
[0111] Exemplarily, the second association rule may include the following rules:
[0112] Delimiter rules define delimiters such as commas and semicolons used to separate input strings of batch data items, so that the business end can correctly parse the input and generate multiple data items.
[0113] Automatic processing rules specify how to automatically generate data item identifiers, sort numbers and other attributes when adding in batches. For example, data item identifiers can be automatically translated and generated based on data item names, and sort numbers are automatically assigned based on the order in which they are entered.
[0114] Batch enablement rules: By default, all the data items added in batches are enabled by default, unless the user explicitly specifies that some data items should not be enabled.
[0115] Error handling rules define the handling mechanism when errors such as invalid input and duplicate identifiers are encountered during the batch configuration process, such as prompting errors, ignoring error items, or interrupting the batch configuration process.
[0116] In this way, these second association rules jointly support the efficiency and accuracy of the batch configuration method, allowing users to quickly set basic configuration information for a large number of data items.
[0117] For example, refer to Figure 7 , the specific steps for configuring data items in the second configuration method are as follows:
[0118] The user enters the batch configuration interface and enters the data item names separated by commas or semicolons, such as "Male, Female, Unknown";
[0119] The business end splits the input string into multiple data items based on the delimiter and automatically generates an English identifier for each data item, such as "male", "female", and "unknown";
[0120] The business end assigns a sequence number such as 1, 2, 3 to each data item in the order in which it is entered, and all are enabled by default;
[0121] Users can batch modify the properties of data items such as sort number, whether to enable, etc., but batch modification of data item names and identifiers is generally not supported;
[0122] The business end saves the user's configuration information and configures gender data items in batches based on this information.
[0123] Therefore, the batch configuration method greatly improves the configuration efficiency and is suitable for quickly setting basic configurations for a large number of data items. In this way, whether it is configuration one by one or batch configuration, it provides users with a flexible and efficient way to configure the data items of a data object.
[0124] Finally, referring to step 160, a data dictionary is a data structure used to define and describe data objects and their data items to facilitate data storage, exchange and processing.
[0125] In some embodiments of the present application, the first configuration interface further includes a newly added object control. Based on this, after the first configuration interface is displayed in response to the first input, as shown in FIG. Figure 8 As shown, the data dictionary generation method also includes steps 810 to 850.
[0126] Step 810, in response to the user's third input to the newly added object control, display a third configuration interface, the third configuration interface includes an object configuration control corresponding to the data object configuration item and a property configuration control corresponding to the property configuration item, and the property configuration item is associated with the data object configuration item.
[0127] Among them, the new object control is a control in the first configuration interface that is used to trigger the operation of adding a new data object. When the user clicks or selects the control, it will trigger the operation of displaying the third configuration interface. The third configuration interface is an interface for configuring new data objects and their attribute information, which includes object configuration controls and attribute configuration controls for users to define new data objects and their related attributes. A data object configuration item refers to a control in the third configuration interface that is used to instruct users to use the data object control corresponding to the data object configuration item to input configuration information corresponding to the data object configuration item. An attribute configuration item is associated with a data object configuration item, and is used to instruct users to use the attribute configuration control corresponding to the attribute configuration item to input configuration information corresponding to the attribute configuration item. Fig. 9 Taking the third configuration interface shown as an example, the property configuration items may include data object identifier, data type, relationship type, whether to enable, and remarks.
[0128] Exemplarily, when the user clicks on the new object control, the business end responds and displays a third configuration interface. The third configuration interface may include controls corresponding to data object configuration items and attribute configuration items, allowing the user to input relevant information about the new data object and its attributes.
[0129] Step 820: In response to the fourth input of the user to the object configuration control, obtain object configuration information corresponding to the data object configuration item.
[0130] The object configuration information refers to the basic information of the data object input by the user through the object configuration control, such as the data object name, data object identifier, etc.
[0131] Step 830: In response to the user's fifth input to the property configuration control, obtain property configuration information corresponding to the property configuration item.
[0132] The property configuration information refers to the data object property information input by the user through the property configuration control, such as data type, relationship type, whether to enable, etc.
[0133] Step 840: When it is determined according to the object configuration information that the newly added object is the second target data object, configure the second target data object according to the attribute configuration information.
[0134] The second target data object refers to a newly added data object determined according to the object configuration information input by the user.
[0135] Exemplarily, the business end determines whether the user has successfully defined a new data object, namely the second target data object, according to the object configuration information. If confirmed to be correct, the second target data object is configured according to the attribute configuration information, including setting the data type, relationship type, whether to enable, etc. of the second target data object.
[0136] Step 850: Display the second target data object and the attribute configuration information of the second target data object on the first configuration interface.
[0137] Exemplarily, after completing the configuration of the second target data object, the service end may display the second target data object and its attribute configuration information on the first configuration interface for the user to view and further operate.
[0138] It is worth noting here that, regarding the specific implementations of the third input, the fourth input, and the fifth input, given that the specific implementations of the first input and the second input have been clearly described above, these implementations often have commonality and similarity in logic and structure. Therefore, in order to avoid unnecessary repetition, their specific implementations will not be described one by one here, and specific reference can be made to the specific description of the first input and the second input above.
[0139] Therefore, through the design of new object controls and the third configuration interface, users can flexibly define new data objects and their attribute information without relying on preset data object templates. This approach effectively improves the flexibility and scalability of the data dictionary, allowing users to quickly build data objects that meet business scenarios based on actual needs.
[0140] In some embodiments of the present application, the preset control also includes a data item display control, such as Figure 3 Based on this, after step 150, the data dictionary generation method may further include step 910.
[0141] Step 910: In response to a sixth input of the user to the data item display control of the first target data object, first configuration information of the data item of the first target data object is displayed.
[0142] Therefore, for example, taking gender as the first target data object, Fig.10 For example, if the data object contains three data items, "Male", "Female" and "Unknown". When the user views the configuration information of these data items through the data item display control, he can clearly see the configuration details of each data item, such as the data item name, data item identifier, sort number, and whether it is the default value.
[0143] In this way, through the data item display control, users can intuitively view the configuration information of all data items under the first target data object. This instant feedback mechanism increases the transparency of the data dictionary, allowing users to clearly understand the specific configuration of each data item under the data object. In addition, users do not need to use complex query or navigation operations to find the configuration information of data items. They only need to click or select the data item display control corresponding to the data object to quickly obtain the required information. This convenient operation method significantly improves the user experience and reduces the user's learning cost and operation time.
[0144] In some embodiments of the present application, before step 510, the data dictionary generation method may further include obtaining attribute configuration information of the first target data object, the attribute configuration information of the first target data object includes a relationship type of the first target data object, and the relationship type is used to characterize the data organization structure between various data items of the first target data object, such as a list, a tree, etc. It is worth noting that the attribute configuration information of the first target data object can be configured in detail by following the process of the previous steps 410 to 450, so the specific content of the configuration process will not be repeated here.
[0145] Based on this, step 510 may specifically include, in response to the user's sixth input to the data item display control of the first target data object, displaying first configuration information related to the data item of the first target data object according to the relationship type of the first target data object and the data relationship model corresponding to the relationship type, the data relationship model being used to represent the data structure relationship between the various data items of the first target data object.
[0146] Among them, the data relationship model refers to a model of the organizational structure or logical relationship between data items defined according to the relationship type, which is used to guide the display, storage and retrieval of data items.
[0147] Therefore, illustratively, taking the hierarchical relationship as the first target data object and the corresponding data relationship model as a tree model, as an example, Fig.11 As shown, the first configuration information of the data items corresponding to the hierarchical relationship is displayed. This representation method helps users quickly identify the position of each data item in the overall structure, and also allows users to dynamically adjust the hierarchical structure through intuitive operations such as expansion / collapse to meet different viewing and management needs.
[0148] Thus, according to the relationship type of the first target data object and the corresponding data relationship model, the business end dynamically generates and displays the first configuration information corresponding to the data item. With the support of the data relationship model, the user can quickly understand the internal structure of the data object through the displayed first configuration information without manual query or navigation, thereby improving the convenience and efficiency of user operation.
[0149] In some embodiments of the present application, after the above step 150, as Fig.12 As shown, the data dictionary generation method also includes steps 1210 to 1220.
[0150] Step 1210: Receive a user's search instruction for a data item of a first target data object, where the search instruction includes a keyword.
[0151] For example, during the project development process, as the project scale grows, the data items and configuration information accumulated in the data dictionary will also increase. Therefore, in order to quickly locate the configuration information of a specific data item, the data dictionary can retrieve data items of a specific data object through a search instruction input by the user to guide the business end to find a specific data item in the data dictionary. Specifically, the search instruction includes keywords for matching data objects or data items of data objects. Keywords refer to one or more user-defined words used to search for relevant configuration information in the data dictionary. Specifically, they can be a word in the name, identifier, type, description of a data item, or a business term associated with a data item.
[0152] Step 1220: In response to the search instruction, search the data dictionary for data item configuration information that matches the keyword.
[0153] The data dictionary refers to a configured and updated data structure that contains detailed configuration information of data objects and their data items. Data item configuration information refers to a detailed description of data item attributes, relationships, and other information, which is used to guide the use and display of data.
[0154] Exemplarily, once the business end receives the user's search instruction, it will immediately start the search process. This process involves traversing all data item configuration information stored in the data dictionary, and identifying data items that match the keywords through intelligent matching algorithms such as fuzzy matching and exact matching. After a successful match, the business end will present the configuration information of these data items to the user in a list, table or other visual form for further viewing and use by the user.
[0155] As a result, users can customize data objects and data items according to business needs and centrally manage them through data dictionaries. At the same time, the addition of search functions further improves the convenience and efficiency of data use, making the circulation and sharing of data in the entire business end smoother.
[0156] In a specific example, the business side will build a unified data dictionary at the global level, which includes a series of data objects such as gender, grade, etc. The data dictionary is designed to provide a centralized and standardized data source to meet the wide range of needs in business development. By embedding this data dictionary in the global state management mechanism, data consistency and accessibility can be ensured while simplifying the data management process. For example, in the development of the user interface, users can directly inject this data dictionary from the global state management and use mechanisms such as calculated properties or getters to efficiently access the data objects and attribute values inside it. This approach not only reduces the redundant work of repeatedly defining the same data objects in each component, but also promotes code reusability and maintainability. Through a unified data interface, different components can easily obtain the required data, thereby achieving a more consistent and smooth user experience.
[0157] In another specific example, take the development of the user interface as an example. In the user interface, the filtering function of the form or data list allows the user to filter and find information according to specific conditions. In order to improve the flexibility and accuracy of the filtering, a data dictionary is usually used to dynamically generate filtering items. Specifically, a data dictionary containing multiple data objects such as gender, grade, etc. is defined globally through the business end and managed in the global state management. Secondly, in the component that needs to implement the filtering function, this data dictionary is obtained by accessing the global state management. Then, the specific data objects in the data dictionary are traversed using the preset template syntax, an interface element is created for each option, and the attribute value of the data object is used as the display text and value of the option. In this way, the user can set the filtering condition by selecting the option in the drop-down list. As a result, when the data in the data dictionary changes, such as adding a gender option, the filtering option will be automatically updated without modifying the component code.
[0158] In one example, when displaying data, it is usually necessary to map the data key, such as the field name or internal identifier in the database, to the corresponding value, i.e., user-readable text, so as to display the information more intuitively. Specifically, first, a general data key-value mapping component is created, which is used to convert the data key, such as the identifier stored in the data dictionary, into the corresponding displayable value, such as user-friendly text, and the component receives two parameters, including a data set of key-value pairs and the data item currently to be mapped. Secondly, when it is necessary to display the value of a certain data item, the corresponding data subset in the data dictionary and the key of the current data item, such as the user's level identifier, are passed as attributes to the preset mapping component. The preset mapping component has a mapping logic inside, which traverses each key-value pair in the data dictionary, compares the key of each key-value pair with the key of the current data item passed in, and once a matching key is found, removes the corresponding value and displays it to the user. If no matching key is found, a default value or an empty value can be selected to be displayed.
[0159] Therefore, for example, when the user's level information needs to be displayed. The user level may be stored in the database in the form of numbers or codes, but on the user interface, we hope to display the corresponding level name such as "beginner", "intermediate", "advanced", etc. In this scenario, the user will pass the level dictionary and the key of the current user level to the preset mapping component. After receiving these parameters, the preset mapping component will execute the mapping logic, find the corresponding level name, and render it to the user interface.
[0160] Based on the data dictionary generation method provided in the above embodiment, the present application also provides a specific implementation of a data dictionary generation device. Please refer to the following embodiment.
[0161] See also Fig.13 , the data dictionary generating device 1300 provided in the embodiment of the present application includes:
[0162] The first acquisition module 1310 is used to acquire the user's authority information;
[0163] The first receiving module 1320 is used to receive a first input from a user when the permission information indicates that the user has the operation permission;
[0164] A first response module 1330, configured to display a first configuration interface in response to a first input, wherein the first configuration interface includes a preset control for each data object of the plurality of data objects, and the preset control is used to configure a data item of the corresponding data object;
[0165] The second response module 1340 is used to obtain first configuration information of a data item of the first target data object in response to a second input of a user to a target preset control corresponding to a first target data object among the multiple data objects;
[0166] A first configuration module 1350, configured to configure data items of a first target data object according to first configuration information to obtain a configured first target data object;
[0167] The generating module 1360 is used to generate a data dictionary based on the configured first target data object.
[0168] Thus, the user authority is obtained through the first acquisition module 1310, and the authority control is performed through the first receiving module 1320, ensuring that only users with authority can access the first configuration interface and configure the data items of the data object, effectively preventing unauthorized users from accessing sensitive configuration information, and enhancing the controllability of the data object configuration. Then, the first response module 1330 provides the user with a unified first configuration interface and preset controls, so that the user can view and configure all related data objects in a centralized interface, which helps to reduce the possibility that the data items of the data object are repeatedly defined in different locations. Subsequently, the user uses the second response module 1340 to input configuration information through preset controls, which have been preset according to the characteristics of the data object, reducing the space for user understanding differences. Then, the business end uses the generation module 1360 to generate a data dictionary based on the configured data object input by the user, effectively ensuring the consistency and accuracy of the configuration of the data items of the data object. In this way, even if different developers participate in the configuration of the data items of the data object, the consistency of the data item configuration can be maintained, thereby reducing the complexity and maintenance cost of code maintenance.
[0169] In some embodiments of the present application, the second response module 1340 can be used to display a second configuration interface in response to a user's first sub-input to the target object configuration control when the target preset control includes a target object configuration control and a data item configuration control, and the second input includes a first sub-input and a second sub-input; and obtain first configuration information of a data item of the first target data object in response to a user's second sub-input to the data item configuration control on the second configuration interface.
[0170] In some embodiments of the present application, the second response module 1340 can also be used to display an initial configuration interface in response to the user's input to the first control; obtain the user's configuration method for the data item of the first target data object in response to the user's input to the second control; and display a second configuration interface according to the user's configuration method for the data item of the first target data object.
[0171] In some embodiments of the present application, the first configuration module 1350 can be used to include first configuration information of a data item of a first target data object, configuration information of each data item in multiple data items of the first target data object, and the configuration method includes a first configuration method, the first configuration method is used to configure the multiple data items one by one, and when it is determined that the configuration method is the first configuration method, the multiple data items of the first target data object are configured one by one according to the first configuration method, the first association rule corresponding to the first configuration method, and the configuration information of each data item in the multiple data items of the first target data object to obtain the configured first target data object.
[0172] In some embodiments of the present application, the first configuration module 1350 can also be used to, when the first configuration information of the data item of the first target data object includes configuration information of each data item in multiple data items of the first target data object, the configuration method includes a second configuration method, the second configuration method is used to batch configure the multiple data items, and when it is determined that the configuration method is the second configuration method, the multiple data items of the first target data object are batch configured according to the second configuration method, the second association rule corresponding to the second configuration method, and the configuration information of each data item in the multiple data items of the first target data object to obtain the configured first target data object.
[0173] In some embodiments of the present application, the data dictionary generating device 1300 may further include:
[0174] A third response module is used to display a third configuration interface in response to a third input of the user on the newly added object control when the first configuration interface also includes a newly added object control, the third configuration interface including an object configuration control corresponding to the data object configuration item and a property configuration control corresponding to the property configuration item, the property configuration item being associated with the data object configuration item;
[0175] A fourth response module, configured to obtain object configuration information corresponding to the data object configuration item in response to a fourth input of the user to the object configuration control;
[0176] A fifth response module, configured to obtain attribute configuration information corresponding to the attribute configuration item in response to a fifth input of the user to the attribute configuration control;
[0177] A second configuration module, configured to configure the second target data object according to the attribute configuration information when the newly added object is determined to be the second target data object according to the object configuration information;
[0178] The display module is used to display the second target data object and the attribute configuration information of the second target data object on the first configuration interface.
[0179] In some embodiments of the present application, the preset control further includes a data item display control; after the step of configuring the data item of the first target data object according to the first configuration information to obtain the configured first target data object, the data dictionary generating device 1300 may further include:
[0180] The sixth response module is used to display the first configuration information of the data item of the first target data object in response to the sixth input of the user to the data item display control of the first target data object.
[0181] In some embodiments of the present application, the data dictionary generating device 1300 may further include:
[0182] A second acquisition module is used to acquire attribute configuration information of the first target data object before displaying the first configuration information of the data item of the first target data object in response to a sixth input of the user to the data item display control of the first target data object, wherein the attribute configuration information of the first target data object includes a relationship type of the first target data object, and the relationship type is used to characterize a data organization structure between each data item of the first target data object;
[0183] Based on this, the sixth response module is specifically used to respond to the user's sixth input to the data item display control of the first target data object, and display the first configuration information of the data item of the first target data object according to the relationship type of the first target data object and the data relationship model corresponding to the relationship type, and the data relationship model is used to represent the data structure relationship between the data items of the first target data object.
[0184] In some embodiments of the present application, the data dictionary generating device 1300 may further include:
[0185] A second receiving module is used to receive a user's search instruction for a data item of the first target data object after the step of generating a data dictionary based on the configured first target data object, wherein the search instruction includes a keyword;
[0186] The seventh response module is used to respond to the search instruction and find out the data item configuration information matching the keyword from the data dictionary.
[0187] The various modules of the data dictionary generating device 1300 provided in the embodiment of the present application can be implemented Figures 1 to 12 The functions of each step of the provided data dictionary generation method and its ability to achieve corresponding technical effects are described briefly and will not be elaborated here.
[0188] Fig.14 A schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application is shown.
[0189] The electronic device may include a processor 1401 and a memory 1402 storing computer program instructions.
[0190] Specifically, the processor 1401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0191] The memory 1402 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1402 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1402 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1402 is a non-volatile solid-state memory.
[0192] In a particular embodiment, the memory 1402 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory 1402 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the data processing method according to the first aspect of the present application.
[0193] The processor 1401 implements any one of the data dictionary generation methods in the above embodiments by reading and executing computer program instructions stored in the memory 1402 .
[0194] In one example, the electronic device may further include a communication interface 1403 and a bus 1410. Fig.14 As shown, the processor 1401, the memory 1402, and the communication interface 1403 are connected via a bus 1410 and communicate with each other.
[0195] The communication interface 1403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0196] Bus 1410 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1410 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0197] The electronic device can execute the data dictionary generation method in the embodiment of the present application, thereby realizing the combination Figures 1 to 13 The invention describes a method and device for generating a data dictionary.
[0198] In addition, in combination with the data dictionary generation method in the above embodiment, the embodiment of the present application may provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the data dictionary generation methods in the above embodiment is implemented. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as portable disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, etc.
[0199] In addition, in combination with the data dictionary generation method in the above embodiment, the embodiment of the present application can provide a computer program product for implementation. The program product is stored in a storage medium, and may specifically include a computer program or instruction, which implements any one of the data dictionary generation methods in the above embodiment when executed by a processor. The program product is executed by at least one processor to implement the various processes of the above data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0200] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0201] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0202] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0203] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0204] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for generating a data dictionary, characterized in that: include: Get the user's permission information; In a case where the permission information indicates that the user has the operation permission, receiving a first input from the user; In response to the first input, displaying a first configuration interface, the first configuration interface including a preset control for each data object of the plurality of data objects, the preset control being used to configure a data item of the corresponding data object; In response to a second input by the user to a target preset control corresponding to a first target data object among the multiple data objects, acquiring first configuration information of a data item of the first target data object; According to the first configuration information, configure the data items of the first target data object to obtain the configured first target data object; A data dictionary is generated based on the configured first target data object.
2. The data dictionary generation method according to claim 1, characterized in that: The target preset control includes a target object configuration control and a data item configuration control, and the second input includes a first sub-input and a second sub-input; The acquiring, in response to the user's second input to a target preset control corresponding to a first target data object among the multiple data objects, first configuration information of a data item of the first target data object comprises: In response to a first sub-input of the user to the target object configuration control, displaying a second configuration interface; In response to a second sub-input of the user to the data item configuration control on the second configuration interface, first configuration information of the data item of the first target data object is acquired.
3. The data dictionary generation method according to claim 2, characterized in that: The target object configuration control includes a first control and a second control, and the first sub-input of the user to the target object configuration control includes the input of the user to the first control and the input of the user to the second control; The displaying of a second configuration interface in response to the user's first sub-input on the target object configuration control comprises: In response to the user's input to the first control, displaying an initial configuration interface; In response to the user's input to the second control, acquiring the user's configuration mode for the data item of the first target data object; A second configuration interface is displayed according to the configuration mode of the data item of the first target data object by the user.
4. The method according to claim 3, characterized in that The first configuration information of the data item of the first target data object includes configuration information of each data item of the plurality of data items of the first target data object, and the configuration mode includes a first configuration mode, and the first configuration mode is used to configure the plurality of data items one by one; The step of configuring the data items of the first target data object according to the first configuration information to obtain the configured first target data object includes: When it is determined that the configuration mode is the first configuration mode, the multiple data items of the first target data object are configured one by one according to the first configuration mode, the first association rule corresponding to the first configuration mode, and the configuration information of each data item in the multiple data items of the first target data object to obtain the configured first target data object.
5. The method according to claim 3, characterized in that: The first configuration information of the data item of the first target data object includes configuration information of each data item of the multiple data items of the first target data object, and the configuration mode includes a second configuration mode, and the second configuration mode is used to perform batch configuration on the multiple data items; The step of configuring the data items of the first target data object according to the first configuration information to obtain the configured first target data object includes: When it is determined that the configuration mode is the second configuration mode, the multiple data items of the first target data object are batch configured according to the second configuration mode, the second association rule corresponding to the second configuration mode, and the configuration information of each data item in the multiple data items of the first target data object to obtain the configured first target data object.
6. The method according to any one of claims 1 to 5, characterized in that: The first configuration interface also includes a new object control; After displaying the first configuration interface in response to the first input, the method further includes: In response to the user's third input to the newly added object control, displaying a third configuration interface, the third configuration interface including an object configuration control corresponding to a data object configuration item and a property configuration control corresponding to a property configuration item, the property configuration item being associated with the data object configuration item; In response to a fourth input of the user to the object configuration control, acquiring object configuration information corresponding to the data object configuration item; In response to a fifth input of the user to the property configuration control, acquiring property configuration information corresponding to the property configuration item; In a case where it is determined according to the object configuration information that the newly added object is a second target data object, configuring the second target data object according to the attribute configuration information; The second target data object and the attribute configuration information of the second target data object are displayed on the first configuration interface.
7. The method according to claim 1, characterized in that The preset control also includes a data item display control; After configuring the data items of the first target data object according to the first configuration information to obtain the configured first target data object, the method further includes: In response to a sixth input by the user to the data item display control of the first target data object, first configuration information of the data item of the first target data object is displayed.
8. The method according to claim 7, characterized in that Before displaying the first configuration information of the data item of the first target data object in response to the sixth input of the user to the data item display control of the first target data object, the method further includes: Acquire attribute configuration information of the first target data object, where the attribute configuration information of the first target data object includes a relationship type of the first target data object, where the relationship type is used to characterize a data organization structure between various data items of the first target data object; The step of displaying first configuration information of the data item of the first target data object in response to the user's sixth input to the data item display control of the first target data object comprises: In response to the user's sixth input to the data item display control of the first target data object, first configuration information of the data item of the first target data object is displayed according to the relationship type of the first target data object and the data relationship model corresponding to the relationship type, wherein the data relationship model is used to represent the data structure relationship between the respective data items of the first target data object.
9. The method according to claim 2, characterized in that: After generating a data dictionary based on the configured first target data object, the method further includes: receiving a user's search instruction for a data item of the first target data object, wherein the search instruction includes a keyword; In response to the search instruction, data item configuration information matching the keyword is searched from the data dictionary.
10. A data dictionary generating device, characterized in that: The device comprises: The first acquisition module is used to obtain the user's permission information; A first receiving module, configured to receive a first input from the user when the permission information indicates that the user has operation permission; A first response module, configured to display a first configuration interface in response to the first input, wherein the first configuration interface includes a preset control for each data object of the plurality of data objects, wherein the preset control is used to configure a data item of the corresponding data object; A second response module, configured to obtain first configuration information of a data item of a first target data object in response to a second input of the user to a target preset control corresponding to the first target data object among the multiple data objects; A first configuration module, configured to configure data items of the first target data object according to the first configuration information to obtain a configured first target data object; A generating module is used to generate a data dictionary based on the configured first target data object.
11. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the data dictionary generation method as described in any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the data dictionary generation method according to any one of claims 1 to 9 is implemented.
13. A computer program product, characterized in that It includes a computer program, which, when executed, implements the data dictionary generation method described in any one of claims 1 to 9.
Citation Information
Patent Citations
Configuration information modification method and device, storage medium and electronic equipment
CN115495197A
Data processing method and device, electronic equipment and storage medium
CN115599360A
Data dictionary management method, system and device and storage medium
CN117312334A
Dynamic composite data dictionary to facilitate data operations via computerized tools configured to access collaborative datasets in a networked computing platform
US20190065569A1
