Data dictionary generation method, device, equipment, storage medium and program product
By generating a data dictionary, the problem of inconsistent naming of configuration items by different developers is solved, ensuring configuration consistency, reducing code maintenance costs, and improving the centralization and controllability of data management.
Patent Information
- Application Number
- CN202411290490.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-09-14
AI Technical Summary
Different developers may have different names and interpretations of the same configuration item, resulting in multiple essentially identical configuration item definitions with different names in the code, which increases the complexity and cost of code maintenance.
By generating a data dictionary, it is ensured that only authorized users can access the configuration interface, providing a unified configuration interface and preset controls, reducing differences in user understanding, and ensuring the consistency of data item configuration for data objects.
It achieves consistency in data item configuration, reduces the complexity and cost of code maintenance, simplifies the maintenance process, and improves the centralization and controllability of data management.
Smart Images

Figure CN119127294B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data processing technology, and in particular relates to a data dictionary generation method, apparatus, device, storage medium and program product. Background Technology
[0002] With the development of information technology, software development has become a highly complex and rapidly iterative process. As projects expand in scale and the number of developers involved increases, the complexity and difficulty of project management have significantly increased.
[0003] However, different developers may have different names and understandings of 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 increase the complexity and cost of code maintenance. Summary of the Invention
[0004] This application provides a data dictionary generation method, apparatus, device, storage medium, and program product that can maintain the consistency of data item configuration, thereby reducing the complexity and cost of code maintenance.
[0005] In a first aspect, embodiments of this application provide a data dictionary generation method, which includes:
[0006] Obtain user permission information;
[0007] If the permission information indicates that the user has the necessary permissions, then receive the user's first input.
[0008] In response to the first input, a first configuration interface is displayed. The first configuration interface includes preset controls for each of the multiple data objects. The preset controls are used to configure the data items of the corresponding data objects.
[0009] In response to the user’s second input to the target preset control corresponding to the first target data object among multiple data objects, the first configuration information of the data item of the first target data object is obtained;
[0010] Based on 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] Secondly, embodiments of this application provide a data dictionary generation apparatus, which includes:
[0013] The first acquisition module is used to acquire the user's permission information;
[0014] The first receiving module is used to receive the user's first input when the permission information indicates that the user has the operation permission;
[0015] The first response module is used to respond to the first input and display the first configuration interface. The first configuration interface includes preset controls for each of the multiple data objects. The preset controls are used to configure the data items of the corresponding data objects.
[0016] The second response module is used to respond to the user's second input to the target preset control corresponding to the first target data object among multiple data objects, and to obtain the first configuration information of the data items of the first target data object;
[0017] The first configuration module is used to configure the data items of the first target data object according to the first configuration information, so as to obtain the configured first target data object.
[0018] The generation module is used to generate a data dictionary based on the configured first target data object.
[0019] Thirdly, embodiments of this application provide an electronic device, the device comprising: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements a data dictionary generation method as described in any of the first aspects.
[0020] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the data dictionary generation method as described in any of the first aspects.
[0021] Fifthly, embodiments of this application provide a computer program product, which includes a computer program or instructions that, when executed by a processor, implement the data dictionary generation method as described in any of the first aspects.
[0022] The data dictionary generation method, apparatus, device, storage medium, and program product of this application embodiment, through access control, ensures that only authorized users can access the first configuration interface to configure data items of data objects, effectively preventing unauthorized users from accessing sensitive configuration information and enhancing the controllability of data object configuration. Next, by providing users with a unified first configuration interface and preset controls, users can view and configure all related data objects in a centralized interface, helping to reduce the possibility of data items of data objects being repeatedly defined in different locations. Subsequently, users input configuration information through preset controls, which have been preset according to the characteristics of the data objects, reducing the space for user misunderstanding. Then, the business end generates a data dictionary based on the configured data objects input by the user, effectively ensuring the consistency and accuracy of the configuration of data items of data objects. In this way, even if different developers participate in the configuration of data items of data objects, the consistency of data item configuration can be maintained, thereby reducing the complexity and cost of code maintenance. Attached Figure Description
[0023] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 A flowchart illustrating a data dictionary generation method provided in some embodiments of this application is shown;
[0025] Figure 2 A schematic diagram of a first configuration interface in a data dictionary generation method provided in some embodiments of this application is shown;
[0026] Figure 3 A flowchart illustrating a specific implementation of step 140 provided in some embodiments of this application is shown;
[0027] Figure 4 A flowchart illustrating a specific implementation of step 1401 provided in some embodiments of this application is shown;
[0028] Figure 5 A schematic diagram of an initial configuration interface in a data dictionary generation method provided in some embodiments of this application is shown;
[0029] Figure 6 This illustration shows a schematic diagram of a second configuration interface corresponding to a first configuration method in one of the data dictionary generation methods provided in some embodiments of this application;
[0030] Figure 7This illustration shows a schematic diagram of a second configuration interface corresponding to a second configuration method in one of the data dictionary generation methods provided in some embodiments of this application;
[0031] Figure 8 This paper illustrates a flowchart of configuring newly added data objects in a data dictionary generation method provided in some embodiments of this application;
[0032] Figure 9 A schematic diagram of a third configuration interface in a data dictionary generation method provided in some embodiments of this application is shown;
[0033] Figure 10 This illustration shows a diagram of the first configuration information displayed in a list in a data dictionary generation method provided in some embodiments of this application;
[0034] Figure 11 This illustration shows a schematic diagram of the first configuration information displayed in a tree model in a data dictionary generation method provided in some embodiments of this application;
[0035] Figure 12 A flowchart illustrating a data dictionary generation method provided in other embodiments of this application is shown;
[0036] Figure 13 The diagram shows a schematic representation of the data dictionary generation apparatus provided in some embodiments of this application.
[0037] Figure 14 The diagram shows a schematic representation of the structure of an electronic device provided in some embodiments of this application. Detailed Implementation
[0038] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0039] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0040] It should be noted that the acquisition, storage, use, and processing of data in this application embodiment all comply with the relevant provisions of national laws and regulations.
[0041] Furthermore, it is worth noting that in the specific embodiments of this application, certain software, components, models, and other existing solutions in the industry may be mentioned. These should be considered as exemplary, and their purpose is only to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.
[0042] To address the problems in the aforementioned related technologies, embodiments of this application provide a data dictionary generation method, apparatus, device, storage medium, and program product. The following description, in conjunction with the appendix... Figure 1 To be continued Figure 11 The data dictionary generation method provided in this application will be described in detail through specific embodiments and application scenarios.
[0043] Figure 1 A flowchart illustrating a data dictionary generation method provided in some embodiments of this application is shown. For example... Figure 1 As shown, the data dictionary generation method may include steps 110 to 160.
[0044] Step 110: Obtain the user's permission information.
[0045] Step 120: If the permission information indicates that the user has the operation permission, receive the user's first input.
[0046] Step 130: In response to the first input, a first configuration interface is displayed. The first configuration interface includes preset controls for each of the multiple data objects. The preset controls are used to configure the data items of the corresponding data object.
[0047] Step 140: In response to the user's second input to the target preset control corresponding to the first target data object among multiple data objects, obtain the first configuration information of the data item of the first target data object.
[0048] Step 150: Configure the 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] Therefore, access control ensures that only authorized users can access the primary configuration interface to configure data items for data objects, effectively preventing unauthorized users from accessing sensitive configuration information and enhancing the controllability of data object configuration. Next, by providing users with a unified primary configuration interface and preset controls, users can view and configure all related data objects from a centralized interface, helping to reduce the possibility of data items being repeatedly defined in different locations. Subsequently, users input configuration information through preset controls, which are pre-defined based on the characteristics of the data objects, reducing the space for user misunderstanding. Then, the business side generates a data dictionary based on the configured data objects input by the user, effectively ensuring the consistency and accuracy of data item configuration for data objects. In this way, even if different developers participate in configuring data items for data objects, consistency in data item configuration can be maintained, thereby reducing the complexity and cost of code maintenance.
[0051] Understandably, the data dictionary provides a unified configuration location for all data objects, allowing users to collectively follow the data structure configurations within the data dictionary to reduce inconsistencies in data item definitions. Through the data dictionary, all data objects can be centrally managed and maintained. When a data item of a data object needs modification, only a single update in the data dictionary is required, which is automatically applied to all places referencing that data object without requiring large-scale code modifications, greatly simplifying the maintenance process.
[0052] The steps described above are explained in detail below.
[0053] First, regarding step 110, permission information refers to the information used by the business side to determine whether a user has the right to perform a specific operation. Permission information may include the user's role, permission level, list of accessible resources, etc.
[0054] Secondly, regarding step 120, the first input refers to the user's initial operation input, used to trigger the subsequent configuration process. Exemplarily, the aforementioned first input includes, but is not limited to: touch input from the user via a finger or stylus to the configuration button, 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 usage needs; this embodiment of the invention does not limit this. The specific gesture in this application embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture; the click input in this application embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the aforementioned first input can be a long-press input from the user on the configuration button.
[0055] Therefore, before receiving a user's operation request, such as clicking the "Start Configuration" button, the system first obtains the user's permission information to verify whether the user has the necessary permissions to perform the operation. If the user has the required permissions, the system continues processing the user's initial input and executes the corresponding business logic. If the user does not have the required permissions, appropriate measures should be taken according to the business logic design, such as displaying an error message to the user, redirecting them to the login page, or the permission upgrade page.
[0056] Next, regarding step 130, the first configuration interface refers to the interface provided to the user for configuring the various data objects in the data dictionary. A data object is a data structure unit defined in the data dictionary. Figure 2 The example demonstrates a typical scenario for managing data object diversity, involving multiple data objects including but not limited to gender, relationship type, on / off status, and data type. To enhance 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 options for users to choose from, and checkboxes that allow users to select multiple options by checking them.
[0057] by Figure 2 For example, the preset controls provided for each data object may specifically include:
[0058] View data item 201. Through this control, users can browse or retrieve related data items of a specific data object, enabling quick location and understanding of that specific data object.
[0059] The newly added data item 202 provides users with an entry point for adding new data records, making the data item addition operation simple and direct, and promoting the dynamic updating and expansion of specific data objects.
[0060] Edit data item 203: This control allows you to edit and modify data items of a specific data object.
[0061] The "Delete Data Item 204" control allows you to delete unwanted data items, thereby optimizing data management and preventing the accumulation of redundant data.
[0062] In this way, through this one-to-one configuration method, where each data object is equipped with a set of interactive controls including viewing, adding, editing, and deleting, not only is the flexibility and efficiency of user operations improved, but the comprehensiveness and accuracy of data management are also ensured.
[0063] Furthermore, regarding step 140, the first target data object refers to the specific data object configured by the user during the current configuration process. The target preset control refers to the preset control associated with the first target data object, through which the user can input or select the first configuration information of the data items of the first target data object.
[0064] The second input is input to the target preset control. The first input is used to display the first configuration interface, and the second input can be input to the first target data object on the first configuration interface. Exemplarily, the second input includes, but is not limited to: touch input from the user using a finger or stylus, voice commands input by the user, specific gestures input by the user, or other feasible inputs, which can be determined according to actual usage needs and are not limited in this embodiment. Specific gestures in this application embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-click gesture; the click input in this application embodiment can be a single-click input, a double-click input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the 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 or selecting an option.
[0065] Thus, 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 data item name, data item identifier, sort number, whether to set it as the default value, whether to enable it, etc.
[0066] In some embodiments of this application, a target preset control is used to trigger an operation for detailed configuration of a 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 data item 202, editing a data item 203, and deleting a data item 204. Based on this, such as Figure 3As shown, the aforementioned step 140 may specifically include steps 1401 to 1402.
[0067] Step 1401: In response to the user's first sub-input to the target object configuration control, display the second configuration interface.
[0068] In this configuration, users can further configure various data items of the first target data object by clicking or selecting the target object configuration control. The second configuration interface is the interface displayed after the user makes the first sub-input to the target object configuration control. This interface provides configuration options directly related to the data items of the first target data object, i.e., data item configuration controls. Data item configuration controls are the controls located on the second configuration interface. There can be multiple data item configuration controls, each corresponding to a data item of the first target data object, allowing users to configure that data item through the controls, such as setting the data item name, data item identifier, data item sort number, whether it is a default value, and whether it is enabled.
[0069] For example, when a user clicks or selects a target object configuration control, the business logic responds to the operation and displays a second configuration interface. The second configuration interface lists data items related to the first target data object, and each data item has one or more corresponding data item configuration controls for the user to configure the data items of a specific data object.
[0070] Step 1402: In response to the user's second sub-input to the data item configuration control on the second configuration interface, obtain the first configuration information of the data item of the first target data object.
[0071] The second sub-input refers to the input operation performed by the user on the data item configuration control on the second configuration interface, which is used to specify or modify the specific configuration information of the data item of the first target data object.
[0072] For example, on the second configuration interface, the user enters or selects specific configuration information for each data item of the first target data object by clicking or filling in the data item configuration control. The business side captures this input as the first configuration information and prepares it for use in the subsequent data item configuration process.
[0073] Therefore, by setting up target object configuration controls and data item configuration controls, users can directly and precisely configure the data items of the first target data object. Specifically, through the data item configuration controls, users can easily set the attributes of each data item, such as data item name, data item identifier, and whether it is enabled, effectively enhancing the flexibility of user configuration and the manageability of data.
[0074] In some embodiments of this application, before triggering the display of the second configuration interface, in order to optimize the user experience, an operation of selecting the configuration method of the data items of the data object may 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, step 1401 can specifically include steps 14011 to 14013.
[0075] Step 14011: In response to user input on the first control, the initial configuration interface is displayed.
[0076] The first control refers to a specific control within the target object's configuration controls, used to trigger the display of the initial configuration interface. User input to the first control refers to the user's input operation on the first control, also used to trigger the display of the initial configuration interface. The initial configuration interface is the interface displayed after the user performs input on the first control; it may include some basic configuration options or an overview to guide the user to the next configuration selection.
[0077] For example, when a user clicks or selects the first control, the business logic responds to this action and displays the initial configuration interface. The initial configuration interface can be found in [reference needed]. 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 users understand the following configuration process or make initial choices.
[0078] Step 14012: In response to the user's input to the second control, obtain the user's configuration method for the data items of the first target data object.
[0079] The second control refers to another specific control within the target object configuration control. It is used to obtain the user's selection of the configuration method for the data items of the first target data object. This selection determines how the data items are subsequently configured. The user's input to the second control is used to specify or select the configuration method for the data items of the first target data object.
[0080] For example, on the initial configuration interface, the user clicks or selects a second control and enters or selects a specific configuration method. The business logic captures this input as the user's selection of the configuration method for a data item in the first target data object. (Continue to refer to...) Figure 5 The second control can refer to the control corresponding to the first configuration method and the second configuration method.
[0081] Step 14013: Display the second configuration interface according to the user's configuration method for the data items of the first target data object.
[0082] The second configuration interface refers to the interface displayed after the user selects the configuration method for the data items. This interface displays the corresponding data item configuration controls according to the selected configuration method, allowing the user to perform detailed data item configuration.
[0083] For example, when a user selects a first configuration method and chooses a second control corresponding to the first configuration method from the second control options, the second configuration interface presented is as follows: Figure 6 As shown. When the user selects the second configuration method and chooses the second control corresponding to the second configuration method from the second control options, the second configuration interface is displayed as follows. Figure 7 As shown.
[0084] Therefore, users can choose the most suitable configuration method according to their needs and preferences, and the business side can flexibly generate and display a second configuration interface based on the user's configuration method. This flexibility not only improves the user experience but also makes the data item configuration process more intuitive and efficient, thus helping to complete the data item configuration work quickly and accurately.
[0085] Then, in step 150, if the first configuration information indicates that new data items need to be added, then according to the data name and other information in the first configuration information, the corresponding attributes or fields are added to the target data object. If the target data object already has some data items, but needs to be modified according to the new first configuration information, such as changing the data type or setting default values, then the attributes of these existing data items are updated.
[0086] In some embodiments of this application, such as Figure 5 As shown, the first configuration information of the data items of the first target data object includes the configuration information of each data item among the multiple data items of the first target data object. The configuration method may include a first configuration method and a second configuration method. The first configuration method is used to configure multiple data items one by one. The second configuration method is used to configure multiple data items in batches. Based on this, in some embodiments of this application, step 150 may specifically include, when the configuration method is determined to be the first configuration method, configuring each of the multiple data items of the first target data object 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 among the multiple data items of the first target data object, to obtain the configured first target data object.
[0087] The first configuration method refers to configuring each data item in the first target data object one by one. In the first configuration method, the user can configure each data item of the first target data object in detail, as shown in the following example. Figure 6The configuration information for each data item can include the data item name, data item identifier, sort number, whether it is set as the default value, and whether it is enabled. A data item refers to a specific attribute or value in a data object. Taking gender as the first target data object as an example, the data items can be "male", "female", and "unknown".
[0088] Next, we will explain in detail the meaning and related functions of data item name, data item identifier, sort number, whether it is set as default value, and whether it is enabled.
[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] A data item identifier is a unique identifier for a data item, typically used for internal reference within the business logic. In this scenario, the data item identifier is generated by automatically translating the data item name into English, using an underscore-separated naming convention.
[0091] The sort number is used to control the order in which data items are displayed. For example, the smaller the sort number, the earlier the data item appears in the list.
[0092] Setting a data item as a default value indicates whether it should be used as the default value for the data object. If no default value is set, the data object may default to empty or display a preset default value.
[0093] Enable or disable indicates whether the data item is available. If set to disabled, the data item will not be displayed to the user in the relevant list.
[0094] Understandably, in the configuration-by-configuration approach, 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] For example, to ensure the accuracy and validity of data item configuration in a step-by-step configuration approach, the first association rule may specifically include:
[0096] Naming rules are established to ensure that the names and identifiers of data items conform to established naming conventions, such as using English translations of data item identifiers separated by underscores.
[0097] Uniqueness rules ensure that the identifier of each data item is unique within the first target data object, thus avoiding configuration conflicts.
[0098] The order rule determines the order in which data items are displayed or processed based on the sort number set by the user.
[0099] The default value rule states that if a data item is set to a default value, then that data item's value will be 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 for the first configuration method are as follows:
[0102] Users enter the configuration interface and add data items for the "Gender" data object, entering a data item name such as male.
[0103] The business side automatically generates English labels based on the data item names and provides them to users for modification, such as setting the male label to "male".
[0104] The business logic automatically generates a sort number, such as 1, but allows users to modify it as needed.
[0105] Users can choose whether to set the data item as the default value and whether to enable the data item.
[0106] The business side stores the user's configuration information and configures the data items one by one based on this information.
[0107] In this way, the configuration-by-one approach provides higher configuration precision and flexibility, making it suitable for scenarios with strict requirements on data items or those requiring special configuration.
[0108] In some other embodiments of this application, step 150 may specifically include, when the configuration method is determined to be the second configuration method, batch configuring multiple data items of the first target data object 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 multiple data items of the first target data object, to obtain the configured first target data object.
[0109] The second configuration method refers to batch configuration of multiple data items in the first target data object. In this method, users can input a set of data items separated by delimiters to set basic configuration information for multiple data items at once, improving configuration efficiency.
[0110] Understandably, in the batch configuration method, the second association rule is used to ensure that the configuration information of a group of data items is applied to the first target data object in batches efficiently, while maintaining the accuracy and consistency of the configuration.
[0111] For example, the second association rule may include the following rules:
[0112] Delimiter rules define delimiters, such as commas and pauses, used to separate input strings of batch data items so that the business side can correctly parse the input and generate multiple data items.
[0113] The automatic processing rules specify how to automatically generate attributes such as data item identifiers and sort numbers when adding data in batches. For example, data item identifiers can be automatically generated based on the data item names, and sort numbers are automatically assigned according to the order in which they are entered.
[0114] Batch enable rules: By default, data items added in batches are enabled unless the user explicitly specifies that certain data items should not be enabled.
[0115] Error handling rules define the handling mechanism when errors such as invalid input or duplicate identifiers are encountered during batch configuration, such as prompting errors, ignoring error items, or interrupting the batch configuration process.
[0116] In this way, these second association rules collectively support the efficiency and accuracy of batch configuration, enabling 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 using the second configuration method are as follows:
[0118] Users enter the batch configuration interface and input data item names separated by commas or semicolons, such as "Male, Female, Unknown";
[0119] The business logic splits the input string into multiple data items based on the delimiter and automatically generates English labels for each data item, such as "male", "female", and "unknown".
[0120] The business side assigns sort numbers, such as 1, 2, 3, to each data item according to the order of entry, and enables all sorting by default;
[0121] Users can modify the attributes of data items in batches, such as sort number and whether it is enabled, but batch modification of data item names and identifiers is generally not supported.
[0122] The business side stores the user's configuration information and configures the gender data item in batches based on this information.
[0123] Therefore, batch configuration significantly improves configuration efficiency and is suitable for scenarios requiring rapid setup of basic configurations for a large number of data items. Thus, whether configuring one by one or in batches, it provides users with a flexible and efficient way to configure data items within a data object.
[0124] Finally, regarding step 160, a data dictionary is a data structure used to define and describe data objects and their data items to facilitate the storage, exchange, and processing of data.
[0125] In some embodiments of this application, the first configuration interface further includes a new object control. Based on this, after displaying the first configuration interface in response to the first input, as follows: Figure 8 As shown, the data dictionary generation method further includes steps 810 to 850.
[0126] Step 810: In response to the user's third input on the newly added object control, a third configuration interface is displayed. The third configuration interface includes object configuration controls corresponding to data object configuration items and attribute configuration controls corresponding to attribute configuration items. The attribute configuration items are associated with the data object configuration items.
[0127] The "Add Object" control, located in the first configuration interface, is used to trigger the operation of adding a new data object. Clicking or selecting this control triggers the display of the third configuration interface. The third configuration interface is used to configure the new data object and its attribute information. This interface includes object configuration controls and attribute configuration controls for users to define new data objects and their related attributes. Data object configuration items, located in the third configuration interface, instruct the user to input the corresponding configuration information using the data object control. Attribute configuration items are associated with data object configuration items and instruct the user to input the corresponding configuration information using the attribute configuration control. Figure 9 Taking the third configuration interface as an example, the attribute configuration items can include data object identifier, data type, relationship type, whether to enable, and remarks.
[0128] For example, when a user clicks the "Add Object" control, the business logic responds and displays a third configuration interface. This 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 user's fourth input to the object configuration control, obtain the object configuration information corresponding to the data object configuration item.
[0130] Among them, object configuration information refers to the basic information of the data object entered by the user through the object configuration control, such as the data object name and data object identifier.
[0131] Step 830: In response to the user's fifth input to the property configuration control, obtain the property configuration information corresponding to the property configuration item.
[0132] Among them, attribute configuration information refers to the data object attribute information entered by the user through the attribute configuration control, such as data type, relationship type, whether it is enabled, etc.
[0133] Step 840: If the newly added object is determined to be the second target data object based on the object configuration information, configure the second target data object according to the attribute configuration information.
[0134] The second target data object refers to the newly added data object determined based on the object configuration information input by the user.
[0135] For example, the business logic determines whether the user has successfully defined a new data object, i.e., the second target data object, based on the object configuration information. If the confirmation is correct, the second target data object is configured according to the attribute configuration information, including setting the data type, relationship type, and whether it is enabled.
[0136] Step 850: Display the attribute configuration information of the second target data object and the second target data object on the first configuration interface.
[0137] For example, after configuring the second target data object, the business side can display the second target data object and its attribute configuration information on the first configuration interface so that the user can view and perform further operations.
[0138] It is worth noting that regarding the specific implementation methods of the third, fourth, and fifth inputs, given that the implementation methods of the first and second inputs have already been clearly explained, these implementation methods often share commonalities and similarities in logic and structure. Therefore, to avoid unnecessary repetition, their specific implementation methods will not be elaborated here; please refer to the detailed explanations of the first and second inputs above.
[0139] Therefore, by adding object controls and a 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, enabling users to quickly build data objects that meet business scenarios based on actual needs.
[0140] In some embodiments of this application, the preset control further includes a data item display control, such as... Figure 3 View data item 201 in the dictionary. Based on this, after step 150, the data dictionary generation method may further include step 910.
[0141] Step 910: In response to the user's sixth input to the data item display control of the first target data object, display the first configuration information of the data item of the first target data object.
[0142] Therefore, for example, taking gender as the primary target data object, Figure 10 For example, if the data object contains three data items: "Male", "Female", and "Unknown", when users view the configuration information of these data items through the data item display control, they 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 a 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, enabling users to clearly understand the specific configuration of each data item under the data object. Furthermore, users do not need to perform complex queries or navigation operations to find the configuration information of data items; they can quickly obtain the required information simply by clicking or selecting the corresponding data item display control for the data object. This convenient operation method significantly improves the user experience and reduces the user's learning cost and operation time.
[0144] In some embodiments of this application, prior to step 510, the data dictionary generation method may further include obtaining attribute configuration information of a first target data object. The attribute configuration information of the first target data object includes the relation type of the first target data object. The relation type is used to characterize the data organization structure between the various data items of the first target data object, such as a list or tree. It is worth noting that the attribute configuration information of the first target data object can be configured in detail following the process of steps 410 to 450. Therefore, the specific details of this 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 the first configuration information of the data items 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, wherein the data relationship model is 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 the 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, for example, taking the hierarchical relationship as the primary target data object and the corresponding data relationship model as a tree model, such as... Figure 11 As shown, this displays the first configuration information of the data items corresponding to the hierarchical relationship. This representation 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 expand / collapse, thereby meeting different viewing and management needs.
[0148] Therefore, based on the relationship type of the first target data object and the corresponding data relationship model, the business side dynamically generates and displays the first configuration information corresponding to the data item. With the support of the data relationship model, users can quickly understand the internal structure of the data object through the displayed first configuration information without manual querying or navigation, thereby improving the convenience and efficiency of user operations.
[0149] In some embodiments of this application, after step 150 above, such as Figure 12 As shown, the data dictionary generation method further includes steps 1210 to 1220.
[0150] Step 1210: Receive the user's search instruction for the data item of the first target data object. The search instruction includes keywords.
[0151] For example, during project development, as the project scales up, the number of data items and configuration information accumulated in the data dictionary also increases. Therefore, in order to quickly locate the configuration information of a specific data item, the data dictionary can perform data item retrieval for a specific data object through user-inputted search commands that guide the business end to find the specific data item in the data dictionary. Specifically, the search commands include keywords used to match 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 from the name, identifier, type, or description of the data item, or business terms associated with the data item.
[0152] Step 1220: In response to the search command, retrieve the data item configuration information that matches the keyword from the data dictionary.
[0153] The data dictionary refers to a configured and updated data structure that contains detailed configuration information for data objects and their data items. Data item configuration information refers to a detailed description of the data item's attributes, relationships, and other information, used to guide the use and presentation of the data.
[0154] For example, once the business unit receives a user's search instruction, it will immediately initiate the search process. This process involves traversing all data item configuration information stored in the data dictionary and using intelligent matching algorithms such as fuzzy matching and exact matching to identify data items that match the keywords. After a successful match, the business unit will present the configuration information of these data items to the user in a list, table, or other visual format for further viewing and use.
[0155] As a result, users can customize data objects and data items according to their business needs and manage them centrally through a data dictionary. Meanwhile, the addition of search functionality further enhances the convenience and efficiency of data use, making the flow and sharing of data throughout the entire business process smoother.
[0156] In a specific example, the business logic builds a unified data dictionary at the global level. This data dictionary includes a series of data objects such as gender and level. It aims to provide a centralized and standardized data source to meet the diverse needs of business development. By embedding this data dictionary into the global state management mechanism, data consistency and accessibility are ensured, while simplifying the data management process. For example, in user interface development, users can directly inject this data dictionary from the global state management and efficiently access its internal data objects and attribute values using computed properties or getters. This approach not only reduces 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, resulting in a more consistent and seamless user experience.
[0157] In another concrete example, taking user interface development as an example, the filtering function of a form or data list in the user interface allows users to filter and search for information based on specific conditions. To improve the flexibility and accuracy of filtering, a data dictionary is typically used to dynamically generate filter items. Specifically, a data dictionary containing various data objects such as gender and grade is defined globally by the business side and managed in the global state management. Next, in the component that needs to implement the filtering function, this data dictionary is obtained by accessing the global state management. Then, a preset template syntax is used to traverse the specific data objects in the data dictionary, creating a UI element for each option, and using the attribute values of the data object as the display text and value of the option. In this way, users can set filter conditions by selecting options from the drop-down list. Therefore, when the data in the data dictionary changes, such as adding a gender option, the filter options are automatically updated without modifying the component code.
[0158] In one example, when displaying data, it's often necessary to map data keys, such as field names or internal identifiers in a database, to corresponding values—user-readable text—for a more intuitive information presentation. Specifically, first, a generic key-value mapping component is created. This component converts data keys, such as identifiers stored in a data dictionary, into corresponding displayable values, such as user-friendly text. This component accepts two parameters: a set of key-value pairs and the data item to be mapped. Second, when displaying the value of a data item, the corresponding subset of data from the data dictionary and the key of the current data item, such as a user's level identifier, are passed as attributes to a preset mapping component. The preset mapping component internally has mapping logic that iterates through each key-value pair in the data dictionary, comparing the key of each pair with the key of the current data item. Once a matching key is found, the corresponding value is removed and displayed to the user. If no matching key is found, a default value or an empty value can be displayed.
[0159] Therefore, for example, when it's necessary to display user level information, user levels may be stored in the database as numbers or codes, but on the user interface, we want to display the corresponding level names such as "Beginner," "Intermediate," and "Advanced." In this scenario, the user would pass the level dictionary and the key of their current user level to a preset mapping component. After receiving these parameters, the preset mapping component would 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 embodiments, this application also provides specific implementations of a data dictionary generation apparatus. Please refer to the following embodiments.
[0161] See Figure 13 The data dictionary generation apparatus 1300 provided in this application embodiment includes:
[0162] The first acquisition module 1310 is used to acquire the user's permission information;
[0163] The first receiving module 1320 is used to receive the user's first input when the permission information indicates that the user has the operation permission;
[0164] The first response module 1330 is used to respond to the first input and display the first configuration interface. The first configuration interface includes preset controls for each of the multiple data objects. The preset controls are used to configure the data items of the corresponding data objects.
[0165] The second response module 1340 is used to respond to the second input from the user to the target preset control corresponding to the first target data object among multiple data objects, and to obtain the first configuration information of the data item of the first target data object;
[0166] The first configuration module 1350 is used to configure the data items of the first target data object according to the first configuration information, so as to obtain the configured first target data object;
[0167] The generation module 1360 is used to generate a data dictionary based on the configured first target data object.
[0168] Therefore, by acquiring user permissions through the first acquisition module 1310 and controlling permissions through the first receiving module 1320, it is ensured that only authorized users can access the first configuration interface to configure data items of data objects, effectively preventing unauthorized users from accessing sensitive configuration information and enhancing the controllability of data object configuration. Next, the first response module 1330 provides the user with a unified first configuration interface and preset controls, allowing the user to view and configure all related data objects in a centralized interface, helping to reduce the possibility of data items of data objects being 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 objects, reducing the space for user misunderstanding. Then, the business side uses the generation module 1360 to generate a data dictionary based on the configured data objects input by the user, effectively ensuring the consistency and accuracy of the configuration of data items of data objects. In this way, even if different developers participate in the configuration of data items of data objects, the consistency of data item configuration can be maintained, thereby reducing the complexity and cost of code maintenance.
[0169] In some embodiments of this application, the second response module 1340 can be used to display a second configuration interface in response to the user's first sub-input on 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 to obtain the first configuration information of the data item of the first target data object in response to the user's second sub-input on the data item configuration control on the second configuration interface.
[0170] In some embodiments of this application, the second response module 1340 can also be used to, in the case that the target object configuration control includes 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, 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 items 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 items of the first target data object.
[0171] In some embodiments of this application, the first configuration module 1350 can be used to configure the first configuration information of the data items of the first target data object, which includes the configuration information of each data item among the multiple data items of the first target data object. The configuration method includes a first configuration method, which is used to configure the multiple data items one by one. When the configuration method is determined to be 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 among the multiple data items of the first target data object to obtain the configured first target data object.
[0172] In some embodiments of this application, the first configuration module 1350 may also be used to configure the first configuration information of the data items of the first target data object, which includes the configuration information of each data item among the multiple data items of the first target data object, and the configuration method includes a second configuration method. The second configuration method is used to perform batch configuration of multiple data items, and when the configuration method is determined to be 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 among the multiple data items of the first target data object to obtain the configured first target data object.
[0173] In some embodiments of this application, the data dictionary generation apparatus 1300 may further include:
[0174] The third response module is used to respond to the user's third input on the newly added object control when the first configuration interface also includes a newly added object control, and to display the third configuration interface. The third configuration interface includes an object configuration control corresponding to the data object configuration item and an attribute configuration control corresponding to the attribute configuration item. The attribute configuration item is associated with the data object configuration item.
[0175] The fourth response module is used to respond to the user's fourth input to the object configuration control and obtain the object configuration information corresponding to the data object configuration item;
[0176] The fifth response module is used to respond to the user's fifth input to the property configuration control and obtain the property configuration information corresponding to the property configuration item;
[0177] The second configuration module is used 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 attribute configuration information of the second target data object and the second target data object in the first configuration interface.
[0179] In some embodiments of this application, the preset control further includes a data item display control; after 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, the data dictionary generation device 1300 may further include:
[0180] The sixth response module is 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.
[0181] In some embodiments of this application, the data dictionary generation apparatus 1300 may further include:
[0182] The second acquisition module is used to acquire the attribute configuration information of the first target data object before the first configuration information step of displaying the data items 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 attribute configuration information of the first target data object includes the relationship type of the first target data object. The relationship type is used to characterize the data organization structure between the various data items 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. According to the relationship type of the first target data object and the data relationship model corresponding to the relationship type, it displays the first configuration information of the data items of the first target data object. The data relationship model is used to represent the data structure relationship between the various data items of the first target data object.
[0184] In some embodiments of this application, the data dictionary generation apparatus 1300 may further include:
[0185] The second receiving module is used to receive a user's retrieval instruction for data items of the first target data object after the step of generating a data dictionary based on the configured first target data object. The retrieval instruction includes keywords.
[0186] The seventh response module is used to respond to search commands by retrieving data item configuration information that matches the keywords from the data dictionary.
[0187] The various modules of the data dictionary generation device 1300 provided in this application embodiment can achieve Figures 1 to 12 The functions of each step in the provided data dictionary generation method, and the corresponding technical effects they achieve, will not be elaborated here for the sake of brevity.
[0188] Figure 14 The diagram shows a schematic representation of the hardware structure of an electronic device provided in some embodiments of this application.
[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), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0191] Memory 1402 may include mass storage for data or instructions. For example, and not limitingly, memory 1402 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 1402 may include removable or non-removable (or fixed) media. Where appropriate, memory 1402 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 1402 is non-volatile solid-state memory.
[0192] In certain embodiments, memory 1402 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, typically, memory 1402 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) 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 this application.
[0193] The processor 1401 implements any 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 also include a communication interface 1403 and a bus 1410. Wherein, as... Figure 14 As shown, the processor 1401, memory 1402, and communication interface 1403 are connected through bus 1410 and complete communication with each other.
[0195] The communication interface 1403 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0196] Bus 1410 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 1410 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.
[0197] The electronic device can execute the data dictionary generation method in the embodiments of this application, thereby achieving the combination Figures 1 to 13 The described data dictionary generation method and apparatus.
[0198] Furthermore, in conjunction with the data dictionary generation methods in the above embodiments, this application embodiment can provide a computer-readable storage medium for implementation. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the data dictionary generation methods in the above embodiments. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, etc.
[0199] Furthermore, in conjunction with the data dictionary generation methods in the above embodiments, this application embodiment can provide a computer program product for implementation. This program product is stored in a storage medium and may specifically include a computer program or instructions. When executed by a processor, the computer program or instructions implement any of the data dictionary generation methods in the above embodiments. This program product is executed by at least one processor to implement the various processes as described in the above data processing method embodiments, and can achieve the same technical effects. To avoid repetition, further details are omitted here.
[0200] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this 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, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on 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, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0202] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. 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 embodiments, or in a different order, or several steps can be performed simultaneously.
[0203] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in 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, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. 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 is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0204] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A method for generating a data dictionary, characterized in that, include: Obtain user permission information; If the permission information indicates that the user has the operation permission, the user's first input is received; In response to the first input, a first configuration interface is displayed. The first configuration interface includes a preset control for each of the multiple data objects. The preset control is used to configure the data items of the corresponding data object. In response to the user’s second input to the target preset control corresponding to the first target data object among the plurality of data objects, the first configuration information of the data item of the first target data object is obtained; Based on 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 step of obtaining first configuration information of the data items of the first target data object in response to the user's second input to the target preset control corresponding to the first target data object among the plurality of data objects includes: In response to the user's first sub-input to the target object configuration control, a second configuration interface is displayed; In response to the user's second sub-input to the data item configuration control on the second configuration interface, the first configuration information of the data item of the first target data object is obtained.
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 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; The step of displaying a second configuration interface in response to the user's first sub-input to the configuration control of the target object includes: In response to the user's input to the first control, the initial configuration interface is displayed; In response to the user's input to the second control, the configuration method of the data items of the first target data object by the user is obtained; The second configuration interface is displayed according to the user's configuration method for the data items of the first target data object.
4. The method according to claim 3, characterized in that, The first configuration information of the data items of the first target data object includes the configuration information of each data item among the multiple data items of the first target data object, and the configuration method includes a first configuration method, which is used to configure the multiple 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 the configuration method is determined to be 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.
5. The method according to claim 3, characterized in that, The first configuration information of the data items of the first target data object includes the configuration information of each data item among the multiple data items of the first target data object, and the configuration method includes a second configuration method, which 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 the configuration method is determined to be the second configuration method, the multiple data items of the first target data object are configured in batches 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.
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 on the newly added object control, a third configuration interface is displayed. The third configuration interface includes an object configuration control corresponding to the data object configuration item and an attribute configuration control corresponding to the attribute configuration item. The attribute configuration item is associated with the data object configuration item. In response to the user's fourth input to the object configuration control, obtain the object configuration information corresponding to the data object configuration item; In response to the user's fifth input to the attribute configuration control, obtain the attribute configuration information corresponding to the attribute configuration item; If the newly added object is determined to be the second target data object based on the object configuration information, the second target data object is configured according to the attribute configuration information; The first configuration interface displays the second target data object and its attribute configuration information.
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 the user's sixth input to the data item display control of the first target data object, the 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 from the user to the data item display control of the first target data object, the method further includes: Obtain the attribute configuration information of the first target data object. The attribute configuration information of the first target data object includes the relationship type of the first target data object. The relationship type is used to characterize the data organization structure between the various data items of the first target data object. The step of displaying first configuration information of the data items 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 includes: In response to the user's sixth input to the data item display control of the first target data object, the first configuration information of the data items 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. The data relationship model is used to represent the data structure relationship between the various 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: Receive a user's retrieval instruction for a data item of the first target data object, wherein the retrieval instruction includes keywords; In response to the search instruction, the data item configuration information that matches the keyword is retrieved from the data dictionary.
10. A data dictionary generation apparatus, characterized in that, The device includes: The first acquisition module is used to acquire the user's permission information; The first receiving module is configured to receive the user's first input when the permission information indicates that the user has operation permissions; A first response module is used to respond to the first input and display a first configuration interface. The first configuration interface includes a preset control for each of a plurality of data objects. The preset control is used to configure the data items of the corresponding data object. The second response module is used to respond to the user's second input to the target preset control corresponding to the first target data object among the plurality of data objects, and to obtain the first configuration information of the data item of the first target data object; The first configuration module is used to configure the data items of the first target data object according to the first configuration information, so as to obtain the configured first target data object. The generation 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 includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the data dictionary generation method as described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the data dictionary generation method as described in any one of claims 1-9.
13. A computer program product, characterized in that, Includes a computer program, which, when executed, implements the data dictionary generation method according to any one of claims 1-9.
Citation Information
Patent Citations
Configuration information modification method and device, storage medium and electronic equipment
CN115495197A
Data dictionary management method, system and device and storage medium
CN117312334A