[go: up one dir, main page]

CN117312334A - Data dictionary management method, system, equipment and storage medium - Google Patents

Data dictionary management method, system, equipment and storage medium Download PDF

Info

Publication number
CN117312334A
CN117312334A CN202311042666.9A CN202311042666A CN117312334A CN 117312334 A CN117312334 A CN 117312334A CN 202311042666 A CN202311042666 A CN 202311042666A CN 117312334 A CN117312334 A CN 117312334A
Authority
CN
China
Prior art keywords
data
dictionary
type
interface
management system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311042666.9A
Other languages
Chinese (zh)
Inventor
张凯
付坤阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kaidelian Software Technology Co ltd
Original Assignee
Guangzhou Kaidelian Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kaidelian Software Technology Co ltd filed Critical Guangzhou Kaidelian Software Technology Co ltd
Priority to CN202311042666.9A priority Critical patent/CN117312334A/en
Publication of CN117312334A publication Critical patent/CN117312334A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Machine Translation (AREA)

Abstract

本发明实施例公开了一种数据字典管理方法、系统、设备及存储介质,开发人员通过客户端登陆至数据字典管理系统后,数据字典管理系统会在客户端中显示交互界面,并在交互界面上显示类型添加控件、数据类型标签和数据添加控件,开发人员通过分别操作类型添加控件、数据类型标签和数据添加控件,即可实现添加数据字典的字典类型,查看字典类型中的字典数据以及添加数据字典的字典数据。本发明实施例中开发人员可自行通过客户端登录到数据字典管理系统中,并利用数据字典管理系统对数据字典进行查看和修改,无需由特定的数据库管理员在服务端中对数据字典进行管理,提高了对数据字典的管理效率,解决了现有技术中对数据字典的管理效率低下的技术问题。

Embodiments of the present invention disclose a data dictionary management method, system, equipment and storage medium. After developers log in to the data dictionary management system through a client, the data dictionary management system will display an interactive interface in the client, and in the interactive interface The type adding control, data type label and data adding control are displayed on the screen. By operating the type adding control, data type label and data adding control respectively, developers can add the dictionary type of the data dictionary, view the dictionary data in the dictionary type and add Dictionary data for data dictionary. In the embodiment of the present invention, developers can log in to the data dictionary management system through the client and use the data dictionary management system to view and modify the data dictionary. There is no need for a specific database administrator to manage the data dictionary on the server. , improves the management efficiency of the data dictionary, and solves the technical problem of low efficiency of data dictionary management in the existing technology.

Description

一种数据字典管理方法、系统、设备及存储介质A data dictionary management method, system, equipment and storage medium

技术领域Technical field

本申请实施例涉及数据管理领域,尤其涉及一种数据字典管理方法、系统、设备及存储介质。Embodiments of the present application relate to the field of data management, and in particular, to a data dictionary management method, system, device and storage medium.

背景技术Background technique

数据字典是大型系统的基石,主要服务于系统的开发阶段。数据字典用于对数据的数据项、数据结构、数据流、数据存储以及处理逻辑等进行定义和描述,其目的是对数据流图中的各个元素作出详细的说明。现有技术中对数据字典的数据进行管理时,往往需要由特定的数据库管理员在服务端上对数据字典进行改动。然而这种修改方式,会导致非数据库管理员无法参与数据字典的总览与更改,数据字典的更新流程繁琐,且人为手动更新的方式容易出现数据错漏等问题,数据字典的管理效率低下。Data dictionary is the cornerstone of large-scale systems and mainly serves the development phase of the system. The data dictionary is used to define and describe data items, data structures, data flows, data storage, and processing logic. Its purpose is to provide a detailed explanation of each element in the data flow diagram. In the prior art, when managing data in a data dictionary, a specific database administrator often needs to modify the data dictionary on the server. However, this modification method will prevent non-database administrators from participating in the overview and modification of the data dictionary. The update process of the data dictionary is cumbersome, and manual updates are prone to problems such as data errors and omissions, and the management efficiency of the data dictionary is low.

综上所述,现有技术中数据字典的管理方式,存在着管理效率低下的技术问题。To sum up, the management method of data dictionary in the existing technology has the technical problem of low management efficiency.

发明内容Contents of the invention

本发明实施例提供了一种数据字典管理方法、系统、设备以及存储介质,能够提高对数据字典进行管理的效率,解决了现有技术中数据字典的管理效率低下的技术问题。Embodiments of the present invention provide a data dictionary management method, system, equipment and storage medium, which can improve the efficiency of data dictionary management and solve the technical problem of low data dictionary management efficiency in the prior art.

第一方面,本发明实施例提供了一种数据字典管理方法,数据字典管理方法适用于数据字典管理系统,数据字典管理系统通过客户端登录,客户端与储存有数据字典的服务端通信连接,数据字典包括有至少一种字典类型,字典类型用于记录字典数据,数据字典管理方法包括:In the first aspect, embodiments of the present invention provide a data dictionary management method. The data dictionary management method is suitable for a data dictionary management system. The data dictionary management system logs in through a client, and the client communicates with the server that stores the data dictionary. The data dictionary includes at least one dictionary type. The dictionary type is used to record dictionary data. The data dictionary management method includes:

在客户端显示数据字典管理系统的交互界面,交互界面显示有类型添加控件和数据类型标签,每个数据类型标签分别对应一种字典类型;Display the interactive interface of the data dictionary management system on the client. The interactive interface displays type addition controls and data type labels. Each data type label corresponds to a dictionary type;

响应作用于类型添加控件的第一触发操作,显示类型添加子界面;In response to the first trigger operation acting on the type adding control, display the type adding sub-interface;

根据通过类型添加子界面接收的第一输入数据,向数据字典中添加第一字典类型,并更新显示数据类型标签;Add the first dictionary type to the data dictionary according to the first input data received through the type addition sub-interface, and update the display data type label;

响应作用于数据类型标签的第二触发操作,从数据字典中获取与第二字典类型相对应的字典数据并显示于数据显示区,并在数据显示区内显示数据添加控件,第二字典类型根据第二触发操作作用的数据类型标签确认;In response to the second trigger operation acting on the data type label, obtain the dictionary data corresponding to the second dictionary type from the data dictionary and display it in the data display area, and display the data adding control in the data display area. The second dictionary type is based on The data type tag confirmation of the second trigger operation effect;

响应作用于数据添加控件的第三触发操作,显示数据添加子界面;In response to the third trigger operation acting on the data adding control, display the data adding sub-interface;

根据通过数据添加子界面接收的第二输入数据,向数据字典中的第三字典类型添加字典数据并更新显示数据显示区,第三字典类型为数据显示区当前显示的字典数据对应的字典类型。According to the second input data received through the data adding sub-interface, add dictionary data to a third dictionary type in the data dictionary and update the display data display area. The third dictionary type is the dictionary type corresponding to the dictionary data currently displayed in the data display area.

第二方面,本发明实施例提供了一种数据字典管理系统,数据字典管理系统通过客户端登录,客户端与储存有数据字典的服务端通信连接,数据字典包括有至少一种字典类型,字典类型用于记录字典数据;In the second aspect, embodiments of the present invention provide a data dictionary management system. The data dictionary management system logs in through a client. The client communicates with a server that stores a data dictionary. The data dictionary includes at least one dictionary type. Type is used to record dictionary data;

数据字典管理系统用于在客户端显示数据字典管理系统的交互界面,交互界面显示有类型添加控件和数据类型标签,每个数据类型标签分别对应一种字典类型;The data dictionary management system is used to display the interactive interface of the data dictionary management system on the client. The interactive interface displays type addition controls and data type labels. Each data type label corresponds to a dictionary type;

数据字典管理系统用于响应作用于类型添加控件的第一触发操作,显示类型添加子界面;The data dictionary management system is used to respond to the first trigger operation acting on the type adding control and display the type adding sub-interface;

数据字典管理系统用于根据通过类型添加子界面接收的第一输入数据,向数据字典中添加第一字典类型,并更新显示数据类型标签;The data dictionary management system is configured to add the first dictionary type to the data dictionary according to the first input data received through the type adding sub-interface, and update the display data type label;

数据字典管理系统响应作用于数据类型标签的第二触发操作,从数据字典中获取与第二字典类型相对应的字典数据并显示于数据显示区,并在数据显示区内显示数据添加控件,第二字典类型根据第二触发操作作用的数据类型标签确认;The data dictionary management system responds to the second trigger operation acting on the data type tag, obtains the dictionary data corresponding to the second dictionary type from the data dictionary and displays it in the data display area, and displays the data adding control in the data display area. The second dictionary type is confirmed according to the data type tag of the second trigger operation;

数据字典管理系统用于响应作用于数据添加控件的第三触发操作,显示数据添加子界面;The data dictionary management system is used to respond to the third trigger operation acting on the data adding control and display the data adding sub-interface;

数据字典管理系统用于根据通过数据添加子界面接收的第二输入数据,向数据字典中的第三字典类型添加字典数据并更新显示数据显示区,第三字典类型为数据显示区当前显示的字典数据对应的字典类型。The data dictionary management system is used to add dictionary data to the third dictionary type in the data dictionary and update the display data display area according to the second input data received through the data adding sub-interface. The third dictionary type is the dictionary currently displayed in the data display area. The dictionary type corresponding to the data.

第三方面,本发明实施例提供了一种数据字典管理设备,数据字典管理设备包括处理器以及存储器;In a third aspect, embodiments of the present invention provide a data dictionary management device. The data dictionary management device includes a processor and a memory;

存储器用于存储计算机程序,并将计算机程序传输给处理器;Memory is used to store computer programs and transmit computer programs to the processor;

处理器用于根据计算机程序中的指令执行如第一方面的一种数据字典管理方法。The processor is configured to execute a data dictionary management method according to the first aspect according to instructions in the computer program.

第四方面,本发明实施例提供了一种存储计算机可执行指令的存储介质,计算机可执行指令在由计算机处理器执行时用于执行如第一方面的一种数据字典管理方法。In a fourth aspect, embodiments of the present invention provide a storage medium that stores computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to perform a data dictionary management method as in the first aspect.

上述,本发明实施例提供了一种数据字典管理方法,开发人员通过客户端登陆至数据字典管理系统后,数据字典管理系统会在客户端中显示交互界面,并在交互界面上显示类型添加控件、数据类型标签和数据添加控件,开发人员通过分别操作类型添加控件、数据类型标签和数据添加控件,即可实现添加数据字典的字典类型,查看字典类型中的字典数据以及添加数据字典的字典数据。本发明实施例中开发人员可自行通过客户端登录到数据字典管理系统中,并利用数据字典管理系统对数据字典进行查看和修改,无需由特定的数据库管理员在服务端中对数据字典进行管理,对数据字典的管理过程更加灵活,提高了对数据字典的管理效率,解决了现有技术中对数据字典的管理效率低下的技术问题。As mentioned above, the embodiment of the present invention provides a data dictionary management method. After the developer logs in to the data dictionary management system through the client, the data dictionary management system will display the interactive interface on the client and display the type adding control on the interactive interface. , data type label and data adding control. By operating the type adding control, data type label and data adding control respectively, developers can add the dictionary type of the data dictionary, view the dictionary data in the dictionary type and add the dictionary data of the data dictionary. . In the embodiment of the present invention, developers can log in to the data dictionary management system through the client and use the data dictionary management system to view and modify the data dictionary. There is no need for a specific database administrator to manage the data dictionary on the server. , the management process of the data dictionary is more flexible, the management efficiency of the data dictionary is improved, and the technical problem of low efficiency of data dictionary management in the existing technology is solved.

附图说明Description of drawings

图1为本发明实施例提供的一种客户端与服务器的连接示意图。Figure 1 is a schematic diagram of a connection between a client and a server according to an embodiment of the present invention.

图2为本发明实施例提供的一种数据字典管理方法的流程示意图。Figure 2 is a schematic flow chart of a data dictionary management method provided by an embodiment of the present invention.

图3为本发明实施例提供的一种交互界面示意图。Figure 3 is a schematic diagram of an interactive interface provided by an embodiment of the present invention.

图4为本发明实施例提供的一种类型添加子界面的示意图。Figure 4 is a schematic diagram of one type of adding sub-interface provided by an embodiment of the present invention.

图5为本发明实施例提供的另一种类型添加子界面的示意图。Figure 5 is a schematic diagram of another type of adding sub-interface provided by an embodiment of the present invention.

图6为本发明实施例提供的一种数据添加控件的示意图。Figure 6 is a schematic diagram of a data adding control provided by an embodiment of the present invention.

图7为本发明实施例提供的一种数据添加子界面的示意图。Figure 7 is a schematic diagram of a data adding sub-interface provided by an embodiment of the present invention.

图8为本发明实施例提供的另一种数据添加子界面的示意图。FIG. 8 is a schematic diagram of another data adding sub-interface provided by an embodiment of the present invention.

图9为本发明实施例提供的一种数据显示区内显示字典数据的示意图。Figure 9 is a schematic diagram of dictionary data displayed in a data display area according to an embodiment of the present invention.

图10为本发明实施例提供的一种标签编辑控件的示意图。Figure 10 is a schematic diagram of a label editing control provided by an embodiment of the present invention.

图11为本发明实施例提供的一种数据编辑控件以及数据删除控件的示意图。Figure 11 is a schematic diagram of a data editing control and a data deletion control provided by an embodiment of the present invention.

图12为本发明实施例提供的另一种数据字典管理方法的流程示意图。Figure 12 is a schematic flow chart of another data dictionary management method provided by an embodiment of the present invention.

图13为本发明实施例提供的同步环境控件的示意图。Figure 13 is a schematic diagram of a synchronized environment control provided by an embodiment of the present invention.

图14为本发明实施例提供的一种同步环境子界面的示意图。Figure 14 is a schematic diagram of a synchronization environment sub-interface provided by an embodiment of the present invention.

图15为本发明实施例提供的一种同步环境的时序图。Figure 15 is a timing diagram of a synchronization environment provided by an embodiment of the present invention.

图16为本发明实施例提供的一种数据字典管理设备的结构示意图。Figure 16 is a schematic structural diagram of a data dictionary management device provided by an embodiment of the present invention.

附图标记:Reference signs:

客户端10、服务端20。Client 10, server 20.

具体实施方式Detailed ways

以下描述和附图充分地示出本申请的具体实施方案,以使本领域的技术人员能够实践它们。实施例仅代表可能的变化。除非明确要求,否则单独的部件和功能是可选的,并且操作的顺序可以变化。一些实施方案的部分和特征可以被包括在或替换其他实施方案的部分和特征。本申请的实施方案的范围包括权利要求书的整个范围,以及权利要求书的所有可获得的等同物。在本文中,各实施方案可以被单独地或总地用术语“发明”来表示,这仅仅是为了方便,并且如果事实上公开了超过一个的发明,不是要自动地限制该应用的范围为任何单个发明或发明构思。本文中,诸如第一和第二等之类的关系术语仅仅用于将一个实体或者操作与另一个实体或操作区分开来,而不要求或者暗示这些实体或操作之间存在任何实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素。本文中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的结构、产品等而言,由于其与实施例公开的部分相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The following description and drawings illustrate specific embodiments of the application sufficiently to enable those skilled in the art to practice them. The examples represent only possible variations. Unless explicitly required, individual components and features are optional and the order of operations may vary. Portions and features of some embodiments may be included in or substituted for those of other embodiments. The scope of embodiments of the present application includes the entire scope of the claims, and all available equivalents of the claims. Each embodiment may be referred to herein, individually or collectively, by the term "invention" for convenience only and is not intended to automatically limit the scope of the application to any one if the fact that more than one invention is disclosed is disclosed. A single invention or inventive concept. Herein, relational terms such as first, second, etc. are used only to distinguish one entity or operation from another entity or operation without requiring or implying that any actual relationship exists between these entities or operations or order. Furthermore, the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that includes a list of elements includes not only those elements, but also others not expressly listed. elements. Each embodiment in this article is described in a progressive manner. Each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the structures, products, etc. disclosed in the embodiments, since they correspond to the parts disclosed in the embodiments, the descriptions are relatively simple. For relevant details, please refer to the description of the method section.

现有技术中,在对数据字典的数据进行管理时,需要由特定的数据库管理员通过特定账号登录服务端中的数据字典后,再对数据字典的数据进行增加以及删减等操作。然而,由于数据字典的数据储存在服务端中,由于服务端中缺少可视化组件的支撑,非数据库管理员难以理解数据字典中各个数据的含义,导致非数据库管理员难以参与到数据字典的总览与更改中。另外,由于只有数据库管理员才能对数据字典进行修改,在项目开发的过程中当需要对数据字典进行修改时,需要开发人员确定数据字典中所需要改动的位置后,再告知数据库管理员,由数据库管理员对数据字典进行修改,数据字典的更新流程繁琐。其次,由于数据库管理员智能手动对数据字典进行修改,在多环境开发的过程中,在需要手动对数据字典进行同步时,十分容易出现数据错漏等问题。In the prior art, when managing the data in the data dictionary, a specific database administrator needs to log in to the data dictionary in the server through a specific account, and then add, delete, and other operations to the data in the data dictionary. However, since the data in the data dictionary is stored on the server, and due to the lack of support from visual components on the server, it is difficult for non-database administrators to understand the meaning of each data in the data dictionary, making it difficult for non-database administrators to participate in the overview and review of the data dictionary. Changing. In addition, since only the database administrator can modify the data dictionary, when the data dictionary needs to be modified during the project development process, the developer needs to determine the location that needs to be modified in the data dictionary and then inform the database administrator. The database administrator modifies the data dictionary, and the update process of the data dictionary is cumbersome. Secondly, because the database administrator intelligently and manually modifies the data dictionary, it is very easy for problems such as data errors and omissions to occur when the data dictionary needs to be manually synchronized during multi-environment development.

基于此,为了解决上述问题,本发明实施例提供了一种数据字典管理方法,数据字典管理方法适用于数据字典管理系统,数据字典管理系统通过客户端登录。Based on this, in order to solve the above problems, embodiments of the present invention provide a data dictionary management method. The data dictionary management method is suitable for a data dictionary management system, and the data dictionary management system is logged in through a client.

其中,客户端是指开发人员使用的开发设备中,用于实现项目开发的本地服务的程序(也可以记为应用程序、软件程序或APP等)。开发人员使用的开发设备包括并不限定于:手机、平板电脑、笔记本电脑以及台式电脑等设备。Among them, the client refers to the program (which can also be recorded as an application, software program or APP, etc.) in the development equipment used by developers to implement local services for project development. The development equipment used by developers includes but is not limited to: mobile phones, tablets, laptops, desktop computers and other devices.

一个实施例中,开发人员使用的开发设备包括处理器、显示屏、存储器以及通信模块。处理器、显示屏、存储器、通信模块可以通过通信总线或其他方式连接。In one embodiment, a development device used by developers includes a processor, a display screen, a memory, and a communication module. The processor, display screen, memory, and communication module can be connected through a communication bus or other means.

其中,处理器可包括应用处理器(application processor,AP)、图形处理器(graphics processing unit,GPU)和中央处理器(central processing unit,CPU)等处理单元。处理器通过运行存储在存储器的计算机可执行程序(如软件程序、指令以及模块等),从而执行开发设备的各种功能应用以及数据处理。比如,处理器运行作为开发人员端的程序,以实现项目开发的功能。The processor may include processing units such as an application processor (AP), a graphics processing unit (GPU), and a central processing unit (CPU). The processor executes various functional applications and data processing of the development device by running computer executable programs (such as software programs, instructions, modules, etc.) stored in the memory. For example, the processor runs a program as a developer to implement project development functions.

存储器可用于存储开发设备的计算机可执行程序等,该计算机可执行程序包括指令。存储器可包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、至少一个功能所需的应用程序。存储数据区可存储根据开发设备的使用所创建的数据等。存储器可以包括高速随机存取存储器,还可以包括非易失性存储器。例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至开发设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may be used to store a computer executable program including instructions for the development device and the like. The memory may include an area for storing programs and an area for storing data. Among them, the stored program area can store the operating system and at least one application program required for the function. The storage data area can store data created based on the use of the development device, etc. The memory may include high-speed random access memory and may also include non-volatile memory. For example, at least one disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the development device through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.

显示屏的数量可以为一个或多个。显示屏可以是液晶显示屏(Liquid CrystalDisplay)、LED显示屏(LED display)、有机发光二极管(organic light-emitting diode,OLED)显示屏或柔性发光二极管(flex light-emitting diode,FLED)显示屏等。显示屏可以基于处理器的指示进行显示。The number of display screens can be one or more. The display screen can be a liquid crystal display (Liquid Crystal Display), an LED display (LED display), an organic light-emitting diode (OLED) display or a flexible light-emitting diode (FLED) display, etc. . The display may display based on instructions from the processor.

一些情况下,显示屏还可具备触控功能,即为触摸显示屏,触摸显示屏包括显示面板和触摸面板。显示面板用于完成视觉输出。触控面板可以是支持红外触摸、电磁触摸、电容触摸或电阻触摸等的组件。触控面板可以将检测到的触摸操作对应的触控数据传递给处理器,并且可由显示面板提供与触摸操作相关的视觉输出。In some cases, the display screen may also have a touch function, which is a touch display screen. The touch display screen includes a display panel and a touch panel. The display panel is used to complete the visual output. The touch panel may be a component that supports infrared touch, electromagnetic touch, capacitive touch, resistive touch, etc. The touch panel can transmit touch data corresponding to the detected touch operation to the processor, and the display panel can provide visual output related to the touch operation.

通信模块可以包括有线通信模块和/或无线通信模块。有线通信模块包括至少一个通信接口,如包括通用串行总线(Universal Serial Bus,USB)接口、网络接口等。无线通信模块包括蓝牙模块、红外模块、无线保真(Wi-Fi)模块以及近场通信(Near FieldCommunication,NFC)模块中的一种或多种。当前,处理器通过通信模块可以与外部设备通信,比如,与后台的服务器通信、与其他设备通信以及与开发设备适配的外置设备通信。其中,外置设备可以是书写笔(也称为智能笔、手写笔等)、键盘以及鼠标等的一种或多种。The communication module may include a wired communication module and/or a wireless communication module. The wired communication module includes at least one communication interface, such as a universal serial bus (Universal Serial Bus, USB) interface, a network interface, etc. The wireless communication module includes one or more of a Bluetooth module, an infrared module, a wireless fidelity (Wi-Fi) module, and a near field communication (Near Field Communication, NFC) module. Currently, the processor can communicate with external devices through the communication module, such as communicating with the background server, communicating with other devices, and communicating with external devices adapted to the development device. The external device may be one or more of a writing pen (also called a smart pen, a stylus, etc.), a keyboard, a mouse, etc.

在上述结构的基础上,开发设备支持至少一类操作系统,其中,该操作系统可以是Android系统、Windows系统、Linux系统、IOS系统或macOS等。开发设备在操作系统下安装至少一个应用程序。其中,应用程序可以是操作系统自带的应用程序,也可以是从第三方设备或服务器中下载的应用程序,比如,开发设备安装有用于实现项目开发的应用程序(即客户端)。Based on the above structure, the development device supports at least one type of operating system, where the operating system can be an Android system, a Windows system, a Linux system, an IOS system, or macOS, etc. The development device has at least one application installed under the operating system. The application program may be an application program that comes with the operating system, or may be an application program downloaded from a third-party device or server. For example, the development device is installed with an application program (i.e., client) used to implement project development.

一些情况下,开发人员使用的开发设备也可以作为客户端。In some cases, the development device used by the developer can also act as a client.

实施例中,开发人员可通过客户端登录至数据字典管理系统,其中登录是指进入数据字典管理系统,开发人员通过客户端登录数据字典管理系统后,才可使用字典管理系统。示例性的,数据字典管理系统为SAAS(Software as a Service,软件运营服务),开发人员可通过客户端上的浏览器登录到数据字典管理系统,从而不需要将数据字典管理系统安装在开发人员的设备上。可理解的是,当前,开发人员需要通过登录账号后登录到数据字典管理系统后,数据字典管理系统才可以被使用。这时,开发人员在注册账号时表明开发人员的身份。在此基础上,不同的开发人员具有不同的功能权限,以保证权限较高的开发人员能够拥有对数据字典管理系统进行控制。In the embodiment, the developer can log in to the data dictionary management system through the client, where logging in refers to entering the data dictionary management system. The developer can use the dictionary management system only after logging in to the data dictionary management system through the client. For example, the data dictionary management system is SAAS (Software as a Service, software operation service). Developers can log in to the data dictionary management system through the browser on the client, so there is no need to install the data dictionary management system on the developer's computer. on the device. It is understandable that currently, developers need to log in to the data dictionary management system through their account before the data dictionary management system can be used. At this time, the developer indicates the identity of the developer when registering an account. On this basis, different developers have different functional permissions to ensure that developers with higher permissions can control the data dictionary management system.

实施例中,数据字典储存在服务端中,服务端用于为客户端提供服务。服务端位于服务器中,服务器是指网络中能对其它机器提供某些服务的计算机系统。服务器可以是一个物理实体,也可以是多个物理实体。实施例中,如图1所示,服务端20与客户端10通信连接,服务端20可以与客户端10进行通信,使得数据字典管理系统能够访问服务端中储存的数据字典,其中,通信的实现方式当前不作限定,服务端与客户端可以使用多种通信方式,并且可以结合不同的通信需求选择不同的实现方式。一个实施例中,数据字典管理系统封装有通用的数据字典模型层,使得数据字典管理系统支持通过超文本传输协议(HyperTextTransfer Protocol,HTTP)获取字典数据。In the embodiment, the data dictionary is stored in the server, and the server is used to provide services to the client. The server is located in the server, which refers to a computer system in the network that can provide certain services to other machines. The server can be one physical entity or multiple physical entities. In the embodiment, as shown in Figure 1, the server 20 is connected to the client 10, and the server 20 can communicate with the client 10, so that the data dictionary management system can access the data dictionary stored in the server, where the communication The implementation method is currently not limited. The server and client can use multiple communication methods, and different implementation methods can be selected based on different communication requirements. In one embodiment, the data dictionary management system is encapsulated with a universal data dictionary model layer, so that the data dictionary management system supports obtaining dictionary data through HyperText Transfer Protocol (HTTP).

数据字典包括有至少一种字典类型,其中字典类型用于记录字典数据,例如字典类型可以是数据类型、标签样式以及标签名称等,字典类型可根据实际需要进行设置,本实施例中不进行具体限定。字典数据用于记录字典类型下具体的数据。示例性的,字典数据包括一个键值对,其中键数据和值数据一一对应,键数据用于在前后端的传输或者在代码中进行逻辑判断,而值数据用于在前端中向开发人员进行展示,以便开发人员理解键所对应的具体含义,其中值数据可根据实际需要进行设置。示例性的,一个键值对的键数据为“string”,值数据为“字符串”;另一个键值对的键数据为“number”,值数据为“数据”等。The data dictionary includes at least one dictionary type, where the dictionary type is used to record dictionary data. For example, the dictionary type can be a data type, a label style, a label name, etc. The dictionary type can be set according to actual needs, and is not detailed in this embodiment. limited. Dictionary data is used to record specific data under dictionary type. For example, the dictionary data includes a key-value pair, in which the key data and the value data correspond one-to-one. The key data is used for transmission in the front-end and back-end or for logical judgment in the code, while the value data is used for making judgments to developers in the front-end. Display so that developers can understand the specific meaning of the key, and the value data can be set according to actual needs. For example, the key data of one key-value pair is "string" and the value data is "string"; the key data of another key-value pair is "number" and the value data is "data", etc.

一个实施例中,数据字典管理系统封装有通用字典翻译方法,在传入数据字典以及数据字典中待转换的键数据后,数据字典管理系统通过调用通用字典翻译方法即可完成键数据到值数据之间的转换。另一个实施例中,数据字典管理系统还还封装有通用的React组件,其中组件,即封装起来的具有独立功能的界面部件,React组件将界面上每一个功能相对独立的模块定义成组件,然后将小的组件通过组合或者嵌套的方式构成大的组件,最终完成整体界面的构建。数据字典管理系统支持通过传入字典类型即可消费<DictSelectkey={DictionaryType.PropertyDataType}/>,即从字典类型中查找键数据。In one embodiment, the data dictionary management system is encapsulated with a universal dictionary translation method. After inputting the data dictionary and the key data to be converted in the data dictionary, the data dictionary management system can complete the conversion from key data to value data by calling the universal dictionary translation method. conversion between. In another embodiment, the data dictionary management system also encapsulates general React components, where components are encapsulated interface components with independent functions. React components define each module with relatively independent functions on the interface as a component, and then Small components are combined or nested to form large components, and finally the overall interface is constructed. The data dictionary management system supports consuming <DictSelectkey={DictionaryType.PropertyDataType}/> by passing in the dictionary type, that is, searching for key data from the dictionary type.

如图2所示,图2为本发明实施例提供的数据字典管理方法的流程示意图,本发明实施例提供的数据字典管理方法包括步骤110-步骤160:As shown in Figure 2, Figure 2 is a schematic flow chart of the data dictionary management method provided by the embodiment of the present invention. The data dictionary management method provided by the embodiment of the present invention includes steps 110 to 160:

步骤110、在客户端显示数据字典管理系统的交互界面,交互界面显示有类型添加控件和数据类型标签,每个数据类型标签分别对应一种字典类型。Step 110: Display the interactive interface of the data dictionary management system on the client. The interactive interface displays type adding controls and data type labels. Each data type label corresponds to a dictionary type.

开发人员通过客户端登录到数据字典管理系统后,数据字典管理系统会在客户端中显示交互界面,交互界面为开发人员与数据字典管理系统进行交互的界面。示例性的,交互界面可以是图形用户界面(Graphical User Interface,GUI)图形用户界面是指采用图形方式显示的计算机操作界面,开发人员可通过使用鼠标或者触控板等输入设备操纵图形用户界面上的图标、控件或菜单选项,以控制数据字典管理系统执行相应的功能,例如执行对数据字典中的字典数据进行添加、删除或者编辑等功能。实施例中,当数据字典管理系统为SAAS,客户端为电子设备上的浏览器,开发人员通过浏览器登录数据字典管理系统后,则数据字典管理系统所显示的交互界面为浏览器中通过网页打开的界面。After developers log in to the data dictionary management system through the client, the data dictionary management system will display an interactive interface on the client. The interactive interface is the interface for developers to interact with the data dictionary management system. For example, the interactive interface may be a graphical user interface (GUI). A graphical user interface refers to a computer operation interface displayed graphically. Developers can manipulate the graphical user interface by using input devices such as a mouse or a trackpad. icons, controls or menu options to control the data dictionary management system to perform corresponding functions, such as adding, deleting or editing dictionary data in the data dictionary. In the embodiment, when the data dictionary management system is SAAS, the client is a browser on an electronic device, and after the developer logs in to the data dictionary management system through the browser, the interactive interface displayed by the data dictionary management system is a web page in the browser. Open interface.

实施例中,数据字典管理系统的交互界面上显示有类型添加控件和数据类型标签,其中控件是开发人员可通过交互设备与之交互以输入或操作数据的对象,开发人员与控件进行交互的方式可根据实际需要进行设置,例如开发人员可通过鼠标点击控件或者是通过手势操作控件等,在本实施例中不进行具体限定。实施例中类型添加控件用于添加字典类型,数据类型标签用于选中字典类型,其中每个数据类型标签分别对应一种字典类型,即开发人员通过操作不同的数据类型标签,即可选中相对应的字典类型。一个实施例中,开发人员在启动数据字典管理系统后,数据字典管理系统所显示的初始界面如图3所示,图3中的类型添加控件为“添加类型”,“A字典类型”“B字典类型”……“N字典类型”则为数据类型标签。In the embodiment, the interactive interface of the data dictionary management system displays type adding controls and data type labels, where the control is an object that developers can interact with through an interactive device to input or operate data, and the way developers interact with the control It can be set according to actual needs. For example, the developer can click the control with the mouse or operate the control with gestures, etc., which are not specifically limited in this embodiment. In the embodiment, the type adding control is used to add a dictionary type, and the data type label is used to select a dictionary type. Each data type label corresponds to a dictionary type, that is, the developer can select the corresponding dictionary type by operating different data type labels. dictionary type. In one embodiment, after the developer starts the data dictionary management system, the initial interface displayed by the data dictionary management system is as shown in Figure 3. The type addition controls in Figure 3 are "Add Type", "A Dictionary Type" and "B Dictionary type"..."N dictionary type" is the data type tag.

步骤120、响应作用于类型添加控件的第一触发操作,显示类型添加子界面。Step 120: In response to the first trigger operation acting on the type adding control, display the type adding sub-interface.

实施例中,当开发人员需要在数据字典中添加字典类型时,可以在交互界面中对类型添加控件执行第一触发操作,其中第一触发操作是指触发类型添加控件的操作,例如开发人员可以通过操作鼠标在交互界面中点击类型添加控件,从而对类型添加控件执行第一触发操作。数据字典管理系统在监听到作用于类型添加控件的第一触发操作后对其进行响应,显示添加子界面,其中类型添加子界面用于供开发人员输入所需要添加的字典类型。In the embodiment, when the developer needs to add a dictionary type to the data dictionary, he or she can perform a first triggering operation on the type adding control in the interactive interface, where the first triggering operation refers to an operation of triggering the type adding control. For example, the developer can Click the type adding control in the interactive interface by operating the mouse, thereby performing the first triggering operation on the type adding control. The data dictionary management system responds to the first trigger operation acting on the type adding control and displays the adding sub-interface, where the type adding sub-interface is used for developers to input the dictionary type that needs to be added.

步骤130、根据通过类型添加子界面接收的第一输入数据,向数据字典中添加第一字典类型,并更新显示数据类型标签。Step 130: Add the first dictionary type to the data dictionary according to the first input data received through the type adding sub-interface, and update the display data type label.

数据字典管理系统在显示了类型添加子界面后,开发人员即可在类型添加子界面中输入第一输入数据,其中第一输入数据用于设置新增的字典类型。示例性的,如图4所示,类型添加子界面中显示有用于输入字典类型的第一输入框,开发人员在第一输入框中输入了第一字典类型,再触发“确定”控件,即可向数据字典管理系统发送第一输入数据(包括第一字典类型)。数据字典管理系统接收到第一输入数据后,确定出开发人员所输入的第一字典类型,通过调用服务端中用于修改数据字典的接口,向服务端所储存的数据字典中添加开发人员所输入的第一字典类型,同时对当前所显示的数据类型标签进行更新,添加并显示与新增的第一字典类型相对应的数据类型标签。一个实施例中,数据字典管理系统可直接在数据类型标签上显示第一字典类型;另一个实施例中,为了使其他开发人员更容易对数据类型标签进行区分和辨认,类型添加子界面上还显示有用于输入字典类型中文名称的第二输入框,如图5所示,开发人员在第一输入框中输入了第一字典类型以及在第二输入框中输入了第一字典类型相对应的第一字典类型中文名称后,再触发“确定”控件向数据字典管理系统发送第一输入数据(包括第一字典类型和第一字典类型中文名称)。数据字典管理系统接收到第一输入数据后,确定第一字典类型和第一字典类型中文名称之间的映射关系,并在更新显示数据类型标签时,在与第一字典类型相对应的数据类型标签上显示与第一字典类型相关联的第一字典类型中文名称。数据字典管理系统也可以将第一字典类型和第一字典类型中文名称一起保存至数据字典中,后续在获取第一字典类型时,再一同获取第一字典类型中文名称。After the data dictionary management system displays the type adding sub-interface, the developer can enter the first input data in the type adding sub-interface, where the first input data is used to set the new dictionary type. For example, as shown in Figure 4, the first input box for entering the dictionary type is displayed in the type adding sub-interface. The developer enters the first dictionary type in the first input box and then triggers the "OK" control, that is The first input data (including the first dictionary type) may be sent to the data dictionary management system. After receiving the first input data, the data dictionary management system determines the first dictionary type input by the developer, and adds the developer's information to the data dictionary stored on the server by calling the interface for modifying the data dictionary in the server. The input first dictionary type is updated at the same time, and the currently displayed data type label is updated, and a data type label corresponding to the newly added first dictionary type is added and displayed. In one embodiment, the data dictionary management system can directly display the first dictionary type on the data type label; in another embodiment, in order to make it easier for other developers to distinguish and identify the data type label, the type adding sub-interface also has A second input box for inputting the Chinese name of the dictionary type is displayed. As shown in Figure 5, the developer entered the first dictionary type in the first input box and entered the corresponding name of the first dictionary type in the second input box. After the Chinese name of the first dictionary type, the "OK" control is triggered to send the first input data (including the first dictionary type and the Chinese name of the first dictionary type) to the data dictionary management system. After receiving the first input data, the data dictionary management system determines the mapping relationship between the first dictionary type and the Chinese name of the first dictionary type, and when updating the display data type label, in the data type corresponding to the first dictionary type The Chinese name of the first dictionary type associated with the first dictionary type is displayed on the label. The data dictionary management system can also save the first dictionary type and the Chinese name of the first dictionary type together in the data dictionary, and subsequently obtain the Chinese name of the first dictionary type together when obtaining the first dictionary type.

可理解,图4以及图5中的类型添加子界面显示于交互界面上,图4和图5只是对类型添加子界面的示例,本实施例中并不对类型添加子界面进行具体限定。It can be understood that the type adding sub-interface in Figures 4 and 5 is displayed on the interactive interface. Figures 4 and 5 are just examples of the type adding sub-interface. The type adding sub-interface is not specifically limited in this embodiment.

步骤140、响应作用于数据类型标签的第二触发操作,从数据字典中获取与第二字典类型相对应的字典数据并显示于数据显示区,并在数据显示区内显示数据添加控件,第二字典类型根据第二触发操作作用的数据类型标签确认。Step 140: In response to the second trigger operation acting on the data type label, obtain the dictionary data corresponding to the second dictionary type from the data dictionary and display it in the data display area, and display the data adding control in the data display area. Second The dictionary type is determined based on the data type tag acted upon by the second triggering operation.

对于不同字典类型所包含的字典数据,开发人员可通过操作与字典类型相对应的数据类型标签的方式来查看字典数据。具体的,对于交互界面上所显示的数据类型标签,开发人员可通过操作数据类型标签的方式来选中数据类型标签。例如开发人员可通过鼠标点击交互界面上所显示的数据类型标签来选中数据类型标签,从而向数据字典管理系统发送第二触发操作。数据字典管理系统在接收第二触发操作后对其进行响应,确定第二触发操作所作用的数据类型标签,并确定出与该数据类型标签相对应的第二字典类型。For dictionary data contained in different dictionary types, developers can view the dictionary data by operating the data type tag corresponding to the dictionary type. Specifically, for the data type labels displayed on the interactive interface, developers can select the data type labels by operating the data type labels. For example, the developer can select the data type label by clicking the data type label displayed on the interactive interface with the mouse, thereby sending the second trigger operation to the data dictionary management system. The data dictionary management system responds to the second trigger operation after receiving it, determines the data type tag acted upon by the second trigger operation, and determines the second dictionary type corresponding to the data type tag.

在确定出第二字典类型后,数据字典管理系统可从数据字典中获取与第二字典类型相对应的字典数据,并在交互界面的数据显示区上,显示与第二字典类型相对应的字典数据,以及显示数据添加控件,数据添加控件用于添加字典数据。其中数据显示区是指用于显示字典数据的区域,数据显示区的位置和面积可在数据字典管理系统开发的过程中进行设置,例如可以在交互界面的右侧设置数据显示区,如图6所示,图6中的数据添加控件为“添加数据”。可理解,本实施例中不对数据显示区的位置和面积进行具体限定。After determining the second dictionary type, the data dictionary management system can obtain dictionary data corresponding to the second dictionary type from the data dictionary, and display the dictionary corresponding to the second dictionary type on the data display area of the interactive interface data, and display the data adding control, which is used to add dictionary data. The data display area refers to the area used to display dictionary data. The location and area of the data display area can be set during the development process of the data dictionary management system. For example, the data display area can be set on the right side of the interactive interface, as shown in Figure 6 As shown, the data adding control in Figure 6 is "Add Data". It can be understood that the position and area of the data display area are not specifically limited in this embodiment.

步骤150、响应作用于数据添加控件的第三触发操作,显示数据添加子界面。Step 150: In response to the third trigger operation acting on the data adding control, display the data adding sub-interface.

实施例中,当交互界面的数据显示区内显示有字典数据时,开发人员还可以进一步增加字典数据。具体的,开发人员在操作了与第三字典类型相对应的数据类型标签后,数据字典管理系统在数据显示区中显示与第三字典类型相对应的字典数据。此时,开发人员可进一步操作数据显示区上显示的数据添加控件,以添加第三字典类型中的字典数据。示例性的,开发人员可通过鼠标点击数据显示区上显示的数据添加控件,从而向数据字典管理系统发送第三触发操作。数据字典管理系统在接收第三触发操作后对其进行响应,在交互界面上显示数据添加子界面,其中数据添加子界面用于供开发人员输入所需要添加的字典数据。In the embodiment, when dictionary data is displayed in the data display area of the interactive interface, the developer can further add dictionary data. Specifically, after the developer operates the data type tag corresponding to the third dictionary type, the data dictionary management system displays the dictionary data corresponding to the third dictionary type in the data display area. At this time, the developer can further operate the data adding control displayed on the data display area to add dictionary data in the third dictionary type. For example, the developer can click the data adding control displayed on the data display area with the mouse, thereby sending the third triggering operation to the data dictionary management system. The data dictionary management system responds to the third trigger operation after receiving it, and displays a data adding sub-interface on the interactive interface, where the data adding sub-interface is used for developers to input the dictionary data that needs to be added.

步骤160、根据通过数据添加子界面接收的第二输入数据,向数据字典中的第三字典类型添加字典数据并更新显示数据显示区,第三字典类型为数据显示区当前显示的字典数据对应的字典类型。Step 160: According to the second input data received through the data adding sub-interface, add dictionary data to the third dictionary type in the data dictionary and update the display data display area. The third dictionary type is corresponding to the dictionary data currently displayed in the data display area. Dictionary type.

当交互界面上显示了数据添加子界面后,开发人员即可在数据添加子界面中输入第二输入数据,其中第二输入数据用于设置新增的字典数据。实施例中,数据添加子界面中显示有用于输入字典数据的输入框,如图7所示,开发人员在输入框中输入字典数据并确认后,即可向数据字典管理系统发送在输入框中输入的第二输入数据。数据字典管理系统通过数据添加子界面接收到第二输入数据,确定第二输入数据中的字典数据,并在数据字典的第三字典类型中,添加开发人员所新增的字典数据。数据字典管理系统在数据字典中新增了字典数据后,数据字典管理系统会重新对数据显示区内的字典数据进行更新,以便显示新增后的字典数据。When the data adding sub-interface is displayed on the interactive interface, the developer can enter the second input data in the data adding sub-interface, where the second input data is used to set the newly added dictionary data. In the embodiment, an input box for inputting dictionary data is displayed in the data adding sub-interface, as shown in Figure 7. After the developer inputs the dictionary data in the input box and confirms it, the developer can send it to the data dictionary management system in the input box. Enter the second input data. The data dictionary management system receives the second input data through the data adding sub-interface, determines the dictionary data in the second input data, and adds the dictionary data added by the developer to the third dictionary type of the data dictionary. After the data dictionary management system adds new dictionary data to the data dictionary, the data dictionary management system will re-update the dictionary data in the data display area to display the newly added dictionary data.

可理解,图7中的数据添加子界面显示于交互界面上,图7只是对数据添加子界面的示例,本实施例中并不对数据添加子界面进行具体限定。另外,需要说明的是,本发明实施例所提供的数据字典管理方法的步骤并没有严格的先后执行顺序,例如开发人员在数据字典管理系统启动后,也可直接执行步骤140,本实施例中不对步骤的执行顺序进行严格限定。It can be understood that the data adding sub-interface in Figure 7 is displayed on the interactive interface. Figure 7 is only an example of the data adding sub-interface. In this embodiment, the data adding sub-interface is not specifically limited. In addition, it should be noted that the steps of the data dictionary management method provided by the embodiment of the present invention do not have a strict execution sequence. For example, the developer can also directly execute step 140 after the data dictionary management system is started. In this embodiment The execution order of the steps is not strictly limited.

上述,本发明实施例提供了一种数据字典管理方法,开发人员通过客户端登陆至数据字典管理系统后,数据字典管理系统会在客户端中显示交互界面,并在交互界面上显示类型添加控件、数据类型标签和数据添加控件,开发人员通过分别操作类型添加控件、数据类型标签和数据添加控件,即可实现添加数据字典的字典类型,查看字典类型中的字典数据以及添加数据字典的字典数据。本发明实施例中开发人员可自行通过客户端登录到数据字典管理系统中,并利用数据字典管理系统对数据字典进行查看和修改,无需由特定的数据库管理员在服务端中对数据字典进行管理,对数据字典的管理过程更加灵活,提高了对数据字典的管理效率,解决了现有技术中对数据字典的管理效率低下的技术问题。As mentioned above, the embodiment of the present invention provides a data dictionary management method. After the developer logs in to the data dictionary management system through the client, the data dictionary management system will display the interactive interface on the client and display the type adding control on the interactive interface. , data type label and data adding control. By operating the type adding control, data type label and data adding control respectively, developers can add the dictionary type of the data dictionary, view the dictionary data in the dictionary type and add the dictionary data of the data dictionary. . In the embodiment of the present invention, developers can log in to the data dictionary management system through the client and use the data dictionary management system to view and modify the data dictionary. There is no need for a specific database administrator to manage the data dictionary on the server. , the management process of the data dictionary is more flexible, the management efficiency of the data dictionary is improved, and the technical problem of low efficiency of data dictionary management in the existing technology is solved.

在基于上述的数据字典管理方法对数据字典进行管理的过程中发现,对于开发人员而言,由于开发人员的专业知识不如数据库管理员,即使在数据显示区内显示了字典数据后,开发人员也可能难以对字典数据进行阅读和理解,基于此,本发明提供了另一种实施例,在本实施例中字典数据包括键数据以及值数据。In the process of managing the data dictionary based on the above data dictionary management method, it was found that for developers, because the developer's professional knowledge is not as good as that of the database administrator, even after the dictionary data is displayed in the data display area, the developer cannot It may be difficult to read and understand the dictionary data. Based on this, the present invention provides another embodiment. In this embodiment, the dictionary data includes key data and value data.

本实施例中,为了字典数据在数据显示区内进行显示时,开发人员能够明确字典数据所对应的含义,字典数据内包括键数据和值数据,开发人员在新增字典数据时,需要在数据添加子界面输入键数据和值数据。示例性的,如图8所示,数据添加子界面中包括有用于输入键数据的第三输入框和用于输入值数据的第四输入框,开发人员分别在第三输入框和第四输入框中输入键数据和值数据后,点击确定按钮,即可向数据字典管理系统发送第二输入数据(包括了键数据和值数据),以使得数据字典管理系统将键数据和值数据添加至数据字典相对应的字典类型中。In this embodiment, when the dictionary data is displayed in the data display area, the developer can clarify the corresponding meaning of the dictionary data. The dictionary data includes key data and value data. When adding dictionary data, the developer needs to add the dictionary data to the data display area. Add sub-interface to input key data and value data. For example, as shown in Figure 8, the data adding sub-interface includes a third input box for entering key data and a fourth input box for entering value data. The developer enters the third input box and the fourth input box respectively. After entering the key data and value data into the box, click the OK button to send the second input data (including key data and value data) to the data dictionary management system, so that the data dictionary management system can add the key data and value data to In the dictionary type corresponding to the data dictionary.

步骤140中从数据字典中获取与第二字典类型相对应的字典数据并显示于数据显示区,包括:In step 140, dictionary data corresponding to the second dictionary type is obtained from the data dictionary and displayed in the data display area, including:

步骤141、从数据字典中获取与第二字典类型相对应的键数据以及值数据。Step 141: Obtain key data and value data corresponding to the second dictionary type from the data dictionary.

步骤142、在数据显示区中显示与第二字典类型相对应的键数据以及值数据。Step 142: Display key data and value data corresponding to the second dictionary type in the data display area.

相应的,本实施例中在获取字典数据时,则需要获取与第二字典类型相对应的键数据以及值数据,并在数据显示区中显示键数据和值数据。本实施例中通过在数据显示区内同时显示键数据和值数据,使得开发人员通过查看数据显示区内的值数据,即可得知相应的键数据的具体含义,方便开发人员理解数据字典的具体内容,从而对于非数据库管理员也可以参与数据字典的修改和管理。一个实施例中,数据显示区域在现实字典数据时,还显示有字典数据所属的字典类型以及字典数据的ID(Identity document,身份标识),示例性的,如图9所示,图9中当前选中的数据类型标签为数据类型,数据类型所对应的字典类型为PropertyDataType。Correspondingly, when obtaining dictionary data in this embodiment, it is necessary to obtain key data and value data corresponding to the second dictionary type, and display the key data and value data in the data display area. In this embodiment, key data and value data are displayed simultaneously in the data display area, so that developers can know the specific meaning of the corresponding key data by viewing the value data in the data display area, which facilitates developers to understand the data dictionary. Specific content, so that non-database administrators can also participate in the modification and management of the data dictionary. In one embodiment, when displaying dictionary data, the data display area also displays the dictionary type to which the dictionary data belongs and the ID (Identity document) of the dictionary data. For example, as shown in Figure 9, the current document in Figure 9 The selected data type label is the data type, and the dictionary type corresponding to the data type is PropertyDataType.

在上述实施例的基础上,数据字典管理方法还包括:Based on the above embodiments, the data dictionary management method also includes:

步骤170、响应作用于数据类型标签的第三触发操作,显示类型管理界面,类型管理界面包括类型编辑控件以及类型删除控件。Step 170: In response to the third trigger operation acting on the data type tag, display the type management interface. The type management interface includes a type editing control and a type deletion control.

一个实施例中,对于数据字典中已经存在的字典类型,开发人员还可以进一步对字典类型进行管理。具体的,开发人员可以对交互界面上所显示的数据类型标签执行第三触发操作,以使得数据字典管理系统显示类型管理界面,类型管理界面用于开发人员对第三触发操作所作用的数据类型标签相对应的字典类型进行管理。示例性的,开发人员可使用鼠标双击或者右键点击数据类型标签,从而对数据类型标签执行第三触发操作。另一个实施例中,每个数据类型标签上还对应显示有标签编辑控件,开发人员也可以通过触发标签编辑控件的方式,对数据类型标签执行第三触发操作。In one embodiment, developers can further manage dictionary types that already exist in the data dictionary. Specifically, the developer can perform the third trigger operation on the data type label displayed on the interactive interface, so that the data dictionary management system displays the type management interface. The type management interface is used by the developer to perform the third trigger operation on the data type. The dictionary type corresponding to the label is managed. For example, the developer can use the mouse to double-click or right-click the data type label to perform a third triggering operation on the data type label. In another embodiment, each data type label is also correspondingly displayed with a label editing control, and developers can also perform a third triggering operation on the data type label by triggering the label editing control.

数据字典管理系统接收到作用于数据类型标签的第三触发操作后,会显示类型管理界面,其中类型管理界面包括类型编辑控件以及类型删除控件,类型编辑控件用于对于字典类型进行编辑,而类型删除控件用于删除字典类型。如图10所示,图10中在数据类型标签后所显示的“…”即为标签编辑控件,点击标签编辑控件后,则数据字典管理系统会显示类型管理界面,类型管理界面中“编辑”为类型编辑控件,“删除”为类型删除控件。After the data dictionary management system receives the third trigger operation that acts on the data type tag, it will display the type management interface. The type management interface includes a type editing control and a type deletion control. The type editing control is used to edit dictionary types, and the type The delete control is used to delete dictionary types. As shown in Figure 10, the "..." displayed after the data type label in Figure 10 is the label editing control. After clicking the label editing control, the data dictionary management system will display the type management interface. In the type management interface, "Edit" "Delete" is the type to edit the control, and "Delete" is the type to delete the control.

步骤180、响应作用于类型编辑控件的第四触发操作,显示类型编辑子界面。Step 180: In response to the fourth trigger operation acting on the type editing control, display the type editing sub-interface.

数据字典管理系统显示类型管理界面后,开发人员可通过交互设备对类型编辑控件执行第四触发操作,数据字典管理系统对作用于类型编辑控件的第四触发操作进行相应,并进一步显示类型编辑子界面,类型编辑子界面用于对字典类型进行编辑。After the data dictionary management system displays the type management interface, the developer can perform the fourth triggering operation on the type editing control through the interactive device. The data dictionary management system responds to the fourth triggering operation on the type editing control and further displays the type editing subroutine. Interface, the type editing sub-interface is used to edit dictionary types.

步骤190、根据通过类型编辑子界面接收的第三输入数据,对数据字典中的第四字典类型进行编辑,并更新显示数据类型标签,第四字典类型根据第三触发操作作用的数据类型标签确认。Step 190: Edit the fourth dictionary type in the data dictionary according to the third input data received through the type editing sub-interface, and update the display data type label. The fourth dictionary type is confirmed according to the data type label of the third trigger operation. .

数据字典管理系统显示类型编辑子界面后,开发人员即可在类型编辑子界面中重新对第三触发操作作用的数据类型标签相对应的第四字典类型进行编辑。示例性的,类型编辑子界面上显示有用于重新输入字典类型的第五输入框以及用于重新输入字典类型中文名称的第六输入框,与图5的界面类似,开发人员在第五输入框中输入了字典类型以及在第六输入框中输入了字典类型中文名称后,再触发“确定”控件向数据字典管理系统发送第三输入数据(包括输入的字典类型以及输入的字典类型中文名称)。数据字典管理系统接收到第三输入数据后,即可根据第三输入数据中的字典类型对数据字典中的第四字典类型进行修改编辑,同时根据第三输入数据中的字典类型中文名称,对交互界面上所显示的与第四字典类型相对应的数据类型标签进行更新显示。After the data dictionary management system displays the type editing sub-interface, the developer can re-edit the fourth dictionary type corresponding to the data type label affected by the third triggering operation in the type editing sub-interface. Exemplarily, the type editing sub-interface displays a fifth input box for re-entering the dictionary type and a sixth input box for re-entering the Chinese name of the dictionary type. Similar to the interface in Figure 5, the developer enters the fifth input box in the fifth input box. After the dictionary type is entered in and the Chinese name of the dictionary type is entered in the sixth input box, the "OK" control is triggered to send the third input data (including the entered dictionary type and the entered Chinese name of the dictionary type) to the data dictionary management system. . After receiving the third input data, the data dictionary management system can modify and edit the fourth dictionary type in the data dictionary according to the dictionary type in the third input data, and at the same time, according to the Chinese name of the dictionary type in the third input data, The data type label corresponding to the fourth dictionary type displayed on the interactive interface is updated and displayed.

步骤1100、响应作用于类型删除控件的第五触发操作,对数据字典中的第四字典类型以及与第四字典类型相对应的字典数据进行删除,并更新显示数据类型标签以及数据显示区。Step 1100: In response to the fifth trigger operation acting on the type deletion control, delete the fourth dictionary type and the dictionary data corresponding to the fourth dictionary type in the data dictionary, and update the display data type label and data display area.

另外,开发人员也可以在显示类型管理界面中删除字典类型。具体的,开发人员可通过交互设备对类型删除控件执行第五触发操作,例如通过鼠标点击类型删除控件等,数据字典管理系统对作用于类型删除控件的第五触发操作进行响应,在数据字典中,对第三触发操作作用的数据类型标签相对应的第四字典类型以及与第四字典类型相对应的字典数据进行删除,并同时对交互界面上所显示的数据类型标签以及数据显示区进行更新显示。In addition, developers can also delete dictionary types in the display type management interface. Specifically, the developer can perform the fifth trigger operation on the type delete control through the interactive device, such as clicking the type delete control with the mouse, etc. The data dictionary management system responds to the fifth trigger operation on the type delete control. In the data dictionary , delete the fourth dictionary type corresponding to the data type label of the third trigger operation and the dictionary data corresponding to the fourth dictionary type, and at the same time update the data type label and data display area displayed on the interactive interface show.

在上述实施例的基础上,数据显示区内还显示有与每个字典数据相对应的数据编辑控件以及数据删除控件。On the basis of the above embodiment, a data editing control and a data deleting control corresponding to each dictionary data are also displayed in the data display area.

实施例中,开发人员也能够在数据字典管理系统中对数据显示区内显示的字典数据进行管理,例如编辑和删除等。具体的,数据显示区内还显示有与每个字典数据相对应的数据编辑控件以及数据删除控件,其中数据编辑控件用于对于字典数据进行编辑,数据删除控件用于对字典数据进行显示,数据编辑控件以及数据删除控件在数据显示区内的显示位置可以根据实际需要进行设置,例如可以显示在字典数据的头部,或者显示在字典数据的尾部,本实施例中不进行具体限定,如图11所示,图11在每个字典数据的尾部所显示的“编辑”和“删除”则分别为数据编辑控件以及数据删除控件。In embodiments, developers can also manage the dictionary data displayed in the data display area in the data dictionary management system, such as editing and deleting. Specifically, the data display area also displays a data editing control and a data deletion control corresponding to each dictionary data. The data editing control is used to edit the dictionary data, and the data deletion control is used to display the dictionary data. The display positions of the edit control and the data deletion control in the data display area can be set according to actual needs. For example, they can be displayed at the head of the dictionary data or at the tail of the dictionary data. There are no specific limitations in this embodiment, as shown in Figure As shown in Figure 11, the "edit" and "delete" displayed at the end of each dictionary data in Figure 11 are data editing controls and data deleting controls respectively.

数据字典管理方法还包括:Data dictionary management methods also include:

步骤1110、响应作用于数据编辑控件的第六触发操作,显示数据编辑子界面。Step 1110: In response to the sixth trigger operation acting on the data editing control, display the data editing sub-interface.

本实施例中,开发人员可通过操作数据显示区上所显示的数据编辑控件的方式,来对字典数据进行编辑。具体的,开发人员可通过交互设备对数据编辑控件执行第六触发操作,例如通过鼠标点击数据编辑控件等。数据字典管理系统对作用于数据编辑控件的第六触发操作进行响应,显示数据编辑子界面,其中数据编辑子界面用于开发人员对于第六触发操作所作用的数据编辑控件相对应的第一字典数据进行编辑。In this embodiment, the developer can edit the dictionary data by operating the data editing control displayed on the data display area. Specifically, the developer can perform the sixth triggering operation on the data editing control through an interactive device, such as clicking the data editing control with a mouse. The data dictionary management system responds to the sixth trigger operation acting on the data editing control and displays the data editing sub-interface, where the data editing sub-interface is used by the developer to display the first dictionary corresponding to the data editing control acted on by the sixth triggering operation. Data is edited.

步骤1120、根据通过数据编辑子界面接收的第四输入数据,对数据字典中的第一字典数据进行编辑,并更新显示数据显示区,第一字典数据根据第六触发操作作用的数据编辑控件确认。Step 1120: Edit the first dictionary data in the data dictionary according to the fourth input data received through the data editing sub-interface, and update the display data display area. The first dictionary data is confirmed according to the data editing control functioned by the sixth trigger operation. .

在数据字典管理系统显示了数据编辑子界面后,开发人员即可在数据编辑子界面中重新对第一字典数据进行编辑。示例性的,数据编辑子界面上显示有用于重新输入键数据的第七输入框以及用于重新输入值数据的第八输入框,与图8类似,开发人员在第七输入框中输入了键数据以及在第八输入框中输入了值数据后,再触发“确定”控件向数据字典管理系统发送第四输入数据(包括输入的值数据和键数据)。数据字典管理系统接收到第四输入数据后,即可根据第四输入数据中的值数据和键数据,对数据字典中的第一字典数据进行修改编辑,并对交互界面的数据显示区进行更新显示。After the data dictionary management system displays the data editing sub-interface, the developer can re-edit the first dictionary data in the data editing sub-interface. Exemplarily, the data editing sub-interface displays a seventh input box for re-entering key data and an eighth input box for re-entering value data. Similar to Figure 8, the developer enters the key in the seventh input box. After the data and value data are entered in the eighth input box, the "OK" control is triggered to send the fourth input data (including the input value data and key data) to the data dictionary management system. After receiving the fourth input data, the data dictionary management system can modify and edit the first dictionary data in the data dictionary based on the value data and key data in the fourth input data, and update the data display area of the interactive interface. show.

步骤1130、响应作用于数据删除控件的第七触发操作,对数据字典中的第二字典数据进行删除,并更新显示数据显示区,第二字典数据根据第七触发操作作用的数据删除控件确认。Step 1130: In response to the seventh trigger operation acting on the data deletion control, delete the second dictionary data in the data dictionary and update the display data display area. The second dictionary data is confirmed according to the data deletion control acting on the seventh trigger operation.

另外,当开发人员需要对字典数据进行删除时,开发人员可通过操作数据显示区向与字典数据相对应的数据删除控件来实现。具体的,对于所需要删除的第二字典数据,开发人员可通过操作对于第二字典数据相对应的数据删除控件执行第七触发操作,数据字典管理系统对作用于数据删除控件的第七触发操作进行相应,在数据字典中将第二字典数据删除,并对数据显示区进行更新显示。In addition, when developers need to delete dictionary data, developers can do so by operating the data display area to the data deletion control corresponding to the dictionary data. Specifically, for the second dictionary data that needs to be deleted, the developer can perform the seventh trigger operation on the data deletion control corresponding to the second dictionary data, and the data dictionary management system performs the seventh trigger operation on the data deletion control. Correspondingly, delete the second dictionary data in the data dictionary, and update the data display area.

上述,当开发人员需要对数据字典中的字典类型进行管理时,开发人员可通过对数据字典管理系统上所显示的数据类型标签执行第三触发操作,以使数据字典管理系统显示类型管理界面,开发人员进一步触发类型管理界面中的类型编辑控件以及类型删除控件,即可对数据字典中的字典类型进行编辑以及删除。另外,数据字典管理系统的数据显示区内还显示有与每个字典数据相对应的数据编辑控件以及数据删除控件,开发人员通过触发数据编辑控件以及数据删除控件,即可对数据字典中的字典数据进行编辑以及删除。本发明实施例中开发人员可通过数据字典管理系统对数据字典中的字典类型以及字典数据进行管理,无需由特定的数据库管理员在服务端中对数据字典进行管理,进一步提高了对数据字典的管理效率。As mentioned above, when the developer needs to manage the dictionary types in the data dictionary, the developer can perform the third triggering operation on the data type label displayed on the data dictionary management system, so that the data dictionary management system displays the type management interface. Developers can further trigger the type editing control and type deletion control in the type management interface to edit and delete the dictionary types in the data dictionary. In addition, the data display area of the data dictionary management system also displays data editing controls and data deletion controls corresponding to each dictionary data. Developers can modify the dictionary in the data dictionary by triggering the data editing controls and data deletion controls. Data can be edited and deleted. In the embodiment of the present invention, developers can manage dictionary types and dictionary data in the data dictionary through the data dictionary management system. There is no need for a specific database administrator to manage the data dictionary on the server, which further improves the efficiency of the data dictionary. Management efficiency.

在一个项目开发到发布的整个过程中,会使用多个环境进行项目的测试和运行,该环境即为项目环境。在多项目环境开发的过程中,随着项目的进展,对于不同的项目环境,开发人员需要设置与不同项目环境相对应的数据字典,例如与开发环境相对应的数据字典,与测试环境相对应的数据字典以及与生产环境相对应的数据字典等。在项目的开发过程中,经常需要对不同项目环境的数据字典进行同步,同步不同项目环境的数据字典可以保证不同项目环境下的数据一致性,避免因为数据不一致而导致的错误和异常。现有技术中对多项目环境下的数据字典进行同步时,一般需要由数据库管理员手动进行同步,这种同步方式十分容易出现错漏,导致数据字典同步失败。基于此,本发明实施例还提供了另一种数据字典管理方法,图12所示的流程图中的数据字典管理方法是对前述数据字典管理方法进行具体化。在本实施例中,服务端中存储有与不同项目环境相对应的字典数据,交互界面还显示有同步环境控件,如图13中的“同步环境”即为同步环境控件,同步环境控件用于对不同项目环境相对应的字典数据进行同步,其中同步的目的是使得两个字典数据相同,该数据字典管理方法包括步骤210-步骤290:During the entire process from development to release of a project, multiple environments will be used to test and run the project, and this environment is the project environment. In the process of multi-project environment development, as the project progresses, for different project environments, developers need to set up data dictionaries corresponding to different project environments, such as a data dictionary corresponding to the development environment, and a data dictionary corresponding to the test environment. The data dictionary and the data dictionary corresponding to the production environment, etc. During the development process of the project, it is often necessary to synchronize the data dictionaries of different project environments. Synchronizing the data dictionaries of different project environments can ensure data consistency in different project environments and avoid errors and exceptions caused by data inconsistency. In the prior art, when synchronizing data dictionaries in a multi-project environment, the database administrator generally needs to perform manual synchronization. This synchronization method is very prone to errors and omissions, resulting in data dictionary synchronization failure. Based on this, embodiments of the present invention also provide another data dictionary management method. The data dictionary management method in the flow chart shown in FIG. 12 is a specific embodiment of the aforementioned data dictionary management method. In this embodiment, the server stores dictionary data corresponding to different project environments, and the interactive interface also displays synchronization environment controls. The "synchronization environment" in Figure 13 is the synchronization environment control. The synchronization environment control is used to Synchronize dictionary data corresponding to different project environments, where the purpose of synchronization is to make the two dictionary data the same. The data dictionary management method includes steps 210 to 290:

步骤210、在客户端显示数据字典管理系统的交互界面,交互界面显示有类型添加控件和数据类型标签,每个数据类型标签分别对应一种字典类型。Step 210: Display the interactive interface of the data dictionary management system on the client. The interactive interface displays type adding controls and data type labels. Each data type label corresponds to a dictionary type.

步骤220、响应作用于类型添加控件的第一触发操作,显示类型添加子界面。Step 220: In response to the first trigger operation acting on the type adding control, display the type adding sub-interface.

步骤230、根据通过类型添加子界面接收的第一输入数据,向数据字典中添加第一字典类型,并更新显示数据类型标签。Step 230: Add the first dictionary type to the data dictionary according to the first input data received through the type adding sub-interface, and update the display data type label.

步骤240、响应作用于数据类型标签的第二触发操作,从数据字典中获取与第二字典类型相对应的字典数据并显示于数据显示区,并在数据显示区内显示数据添加控件,第二字典类型根据第二触发操作作用的数据类型标签确认。Step 240: In response to the second trigger operation acting on the data type label, obtain the dictionary data corresponding to the second dictionary type from the data dictionary and display it in the data display area, and display the data adding control in the data display area. Second The dictionary type is determined based on the data type tag acted upon by the second triggering operation.

步骤250、响应作用于数据添加控件的第三触发操作,显示数据添加子界面。Step 250: In response to the third trigger operation acting on the data adding control, display the data adding sub-interface.

步骤260、根据通过数据添加子界面接收的第二输入数据,向数据字典中的第三字典类型添加字典数据并更新显示数据显示区,第三字典类型为数据显示区当前显示的字典数据对应的字典类型。Step 260: According to the second input data received through the data adding sub-interface, add dictionary data to the third dictionary type in the data dictionary and update the display data display area. The third dictionary type is corresponding to the dictionary data currently displayed in the data display area. Dictionary type.

步骤270、响应作用于同步环境控件的第八触发操作,显示同步环境子界面。Step 270: In response to the eighth trigger operation acting on the synchronization environment control, display the synchronization environment sub-interface.

实施例中,当开发人员需要对不同项目环境的字典数据进行同步时,开发人员可对交互界面上所显示的同步环境控件执行第八触发操作,例如通过鼠标点击同步环境控件等。数据字典管理系统对作用于同步环境控件的第八触发操作进行响应,显示同步环境子界面,同步环境子界面用于供开发人员选择所需要进行同步的数据字典。In the embodiment, when the developer needs to synchronize the dictionary data of different project environments, the developer can perform the eighth triggering operation on the synchronization environment control displayed on the interactive interface, such as clicking the synchronization environment control through the mouse. The data dictionary management system responds to the eighth trigger operation acting on the synchronization environment control and displays the synchronization environment sub-interface. The synchronization environment sub-interface is used for developers to select the data dictionary that needs to be synchronized.

步骤280、根据通过同步环境子界面接收的第五输入数据,确定第一项目环境和第二项目环境。Step 280: Determine the first project environment and the second project environment according to the fifth input data received through the synchronization environment sub-interface.

数据字典管理系统在显示了同步环境子界面后,开发人员即可通过在同步环境子界面中输入第五输入数据的方式,选择所需要进行同步的两个开发环境的字典数据。示例性的,同步环境子界面中显示有第一项目环境的选择框和第二项目环境的选择框,如图14所示,开发人员可通过鼠标点击选择框,在选择框下所显示的下拉列表中选择第一项目环境和第二项目环境。可理解,第一项目环境和第二项目环境均为服务端存储的字典数据相对应的项目环境。开发人员选择第一项目环境和第二项目环境后,即可在同步环境子界面中点击“确认”按钮,从而向数据字典管理系统发送第五输入数据(包括所选择的第一项目环境和第二项目环境)。数据字典管理系统根据接收到的第五输入数据,确定出所需要同步的第一项目环境和第二项目环境。After the data dictionary management system displays the synchronization environment sub-interface, developers can select the dictionary data of the two development environments that need to be synchronized by entering the fifth input data in the synchronization environment sub-interface. For example, the synchronization environment sub-interface displays a selection box for the first project environment and a selection box for the second project environment. As shown in Figure 14, the developer can click the selection box with the mouse, and the drop-down displayed under the selection box Select the first project environment and the second project environment from the list. It can be understood that both the first project environment and the second project environment are project environments corresponding to the dictionary data stored on the server. After the developer selects the first project environment and the second project environment, he can click the "Confirm" button in the synchronization environment sub-interface to send the fifth input data (including the selected first project environment and the second project environment) to the data dictionary management system. 2 project environment). The data dictionary management system determines the first project environment and the second project environment that need to be synchronized based on the received fifth input data.

可理解,图14中的同步环境子界面显示于交互界面上,图14只是对同步环境子界面的示例,本实施例中并不对同步环境子界面进行具体限定。It can be understood that the synchronization environment sub-interface in Figure 14 is displayed on the interactive interface. Figure 14 is only an example of the synchronization environment sub-interface. In this embodiment, the synchronization environment sub-interface is not specifically limited.

步骤290、将服务端中与第二项目环境相对应的第二数据字典同步为与第一项目环境相对应的第一数据字典。Step 290: Synchronize the second data dictionary corresponding to the second project environment in the server to the first data dictionary corresponding to the first project environment.

数据字典管理系统在确定出所需要同步的第一项目环境和第二项目环境后,即可在服务端中,将与第二项目环境相对应的二数据字典同步为与第一项目环境相对应的第一数据字典,以使第二数据字典与第一数据字典相同。示例性的,在对第一数据字典和第二数据字典进行同步的过程中,数据字典管理系统可在第一数据字典以及在第二数据字典中,获取与不同字典类型相对应的字典数据,并比对第一数据字典以及第二数据字典中同一个字典类型相对应的字典数据的差异,得到比对结果,根据比对结果对第二数据字典中的字典数据进行修改,使得第二数据字典中的字典数据与第一数据字典中的字典数据相同。After the data dictionary management system determines the first project environment and the second project environment that need to be synchronized, the data dictionary management system can synchronize the second data dictionary corresponding to the second project environment to the first project environment corresponding to the server. first data dictionary so that the second data dictionary is the same as the first data dictionary. For example, in the process of synchronizing the first data dictionary and the second data dictionary, the data dictionary management system can obtain dictionary data corresponding to different dictionary types in the first data dictionary and the second data dictionary, And compare the differences between the dictionary data corresponding to the same dictionary type in the first data dictionary and the second data dictionary, obtain the comparison result, and modify the dictionary data in the second data dictionary according to the comparison result, so that the second data The dictionary data in the dictionary is the same as the dictionary data in the first data dictionary.

在上述实施例的基础上,步骤290中将服务端中与第二项目环境相对应的第二数据字典同步为与第一项目环境相对应的第一数据字典,包括:Based on the above embodiment, in step 290, the second data dictionary corresponding to the second project environment in the server is synchronized to the first data dictionary corresponding to the first project environment, including:

步骤291、分别获取与第一项目环境的第一数据字典相对应的第一登录凭证,以及与第二项目环境的第二数据字典相对应的第二登录凭证。Step 291: Obtain the first login credentials corresponding to the first data dictionary of the first project environment and the second login credentials corresponding to the second data dictionary of the second project environment.

本实施例中,数据字典管理系统可通过直接登录服务器中的数据字典的方式,来获取数据字典,但考虑到直接登录数据字典的方式安全系数较差,且有被限制请求来源的风险。因此本实施例中提出了新的登录方式来获取数据字典,其实现原理是模拟登录流程,通过数据字典的登录凭证来获取数据字典,其中登录凭证为数据字典用于区分不同开发人员身份的凭证。实施例中,登录凭证可以是token或者cookie,其中Cookie是在客户端存储的小型文本文件,由服务器在HTTP响应头中设置并发送到客户端,客户端收到Cookie后会自动存储在本地。而Token是一段经过加密处理的字符串,通常存储在客户端的浏览器缓存中,也可以存储在服务器中。In this embodiment, the data dictionary management system can obtain the data dictionary by directly logging in to the data dictionary in the server. However, considering that the method of directly logging in to the data dictionary has a poor security factor and risks being restricted from the request source. Therefore, this embodiment proposes a new login method to obtain the data dictionary. The implementation principle is to simulate the login process and obtain the data dictionary through the login credentials of the data dictionary, where the login credentials are the credentials used by the data dictionary to distinguish the identities of different developers. . In embodiments, the login credentials can be tokens or cookies, where cookies are small text files stored on the client. They are set by the server in the HTTP response header and sent to the client. After the client receives the cookie, it will be automatically stored locally. Token is an encrypted string that is usually stored in the client's browser cache or can also be stored in the server.

具体的,在同步过程中,数据字典管理系统首先需要分别获取与第一项目环境的第一数据字典相对应的第一登录凭证,以及与第二项目环境的第二数据字典相对应的第二登录凭证。实施例中,数据字典管理系统可调用无头浏览器访问服务器中的第一数据字典和第二数据字典,启用无头浏览器的内核最高权限,从而获取携带有httponly属性的第一登录凭证和第二登录凭证,其中httponly属性用于告知无头浏览器第一登录凭证和第二登录凭证不允许其他设备读取,禁止无头浏览器开放第一登录凭证和第二登录凭证,从而避免第一登录凭证和第二登录凭证泄露,保证数据安全。Specifically, during the synchronization process, the data dictionary management system first needs to obtain the first login credentials corresponding to the first data dictionary of the first project environment, and the second login credentials corresponding to the second data dictionary of the second project environment. Login credentials. In the embodiment, the data dictionary management system can call the headless browser to access the first data dictionary and the second data dictionary in the server, enable the highest kernel authority of the headless browser, and thereby obtain the first login credentials carrying the httponly attribute and The second login credential, where the httponly attribute is used to inform the headless browser that the first login credential and the second login credential are not allowed to be read by other devices, prohibiting the headless browser from opening the first login credential and the second login credential, thereby avoiding the third login credential. The first and second login credentials are leaked to ensure data security.

在上述实施例的基础上,步骤291中分别获取与第一项目环境的第一数据字典相对应的第一登录凭证,以及与第二项目环境的第二数据字典相对应的第二登录凭证,包括:Based on the above embodiment, in step 291, the first login credentials corresponding to the first data dictionary of the first project environment and the second login credentials corresponding to the second data dictionary of the second project environment are respectively obtained, include:

步骤2911、获取第一项目环境中的第一账号以及第二项目环境中的第二账号,第一账号和第二账号只拥有数据字典同步权限。Step 2911: Obtain the first account in the first project environment and the second account in the second project environment. The first account and the second account only have data dictionary synchronization permissions.

一个实施例中,在获取第一登录凭证以及第二登录凭证时,数据字典管理系统可获取第一项目环境中的第一账号以及第二项目环境中的第二账号,其中第一账号和第二账号分别用于访问第一数据字典和第二数据字典,且第一账号和第二账号只拥有数据字典同步权限,数据字典同步权限即用于对数据字典进行同步的权限。第一账号和第二账号可预先由开发人员在项目开发的过程中分别在第一项目环境和第二项目环境中申请得到。In one embodiment, when obtaining the first login credential and the second login credential, the data dictionary management system may obtain the first account in the first project environment and the second account in the second project environment, where the first account and the second account are The second account is used to access the first data dictionary and the second data dictionary respectively, and the first account and the second account only have data dictionary synchronization permissions. The data dictionary synchronization permissions are the permissions for synchronizing the data dictionary. The first account and the second account can be applied for in advance by the developer in the first project environment and the second project environment respectively during the project development process.

步骤2912、通过第一账号登陆第一数据字典,获取第一数据字典的第一登录凭证。Step 2912: Log in to the first data dictionary through the first account, and obtain the first login credentials of the first data dictionary.

步骤2913、通过第二账号登陆第二数据字典,获取第二数据字典的第二登录凭证。Step 2913: Log in to the second data dictionary through the second account, and obtain the second login credentials of the second data dictionary.

在获取到第一账号和第二账号后,数据字典管理系统即可分别通过第一账号和第二账号登录到第一数据字典和第二数据字典中,从而获取第一数据字典的登录凭证和第二数据字典的登录凭证。After obtaining the first account and the second account, the data dictionary management system can log in to the first data dictionary and the second data dictionary through the first account and the second account respectively, thereby obtaining the login credentials and credentials of the first data dictionary. Login credentials for the second data dictionary.

以上即为获取登录凭证的具体过程。The above is the specific process of obtaining login credentials.

步骤292、根据第一登录凭证在服务端中获取与第一数据字典相对应的第一字典类型列表,根据第二登录凭证在服务端中获取与第二数据字典相对应的第二字典类型列表,字典类型列表中包括有数据字典的字典类型。Step 292: Obtain the first dictionary type list corresponding to the first data dictionary from the server based on the first login credential, and obtain the second dictionary type list corresponding to the second data dictionary from the server based on the second login credential. , the dictionary type list includes the dictionary type that contains the data dictionary.

在获取到第一数据字典的第一登录凭证以及第二数据字典的第二登录凭证后,数据字典管理系统即可根据第一登录凭证,在服务端中获取与第一数据字典相对应的第一字典类型列表,以及根据第二登录凭证,在服务端中获取与第二数据字典相对应的第二字典类型列表。其中,需要说明的是,字典类型列表中包括有数据字典的所有字典类型。即第一字典类型列表包括有第一数据字典的所有字典类型,而第二字典类型列表包括有第二数据字典的所有字典类型。After obtaining the first login credential of the first data dictionary and the second login credential of the second data dictionary, the data dictionary management system can obtain the third login credential corresponding to the first data dictionary from the server based on the first login credential. a dictionary type list, and obtaining a second dictionary type list corresponding to the second data dictionary in the server according to the second login credentials. Among them, it should be noted that the dictionary type list includes all dictionary types of data dictionaries. That is, the first dictionary type list includes all dictionary types of the first data dictionary, and the second dictionary type list includes all dictionary types of the second data dictionary.

步骤293、根据第一字典类型列表和第二字典类型列表,将服务端中的第二数据字典同步为第一数据字典。Step 293: Synchronize the second data dictionary in the server to the first data dictionary according to the first dictionary type list and the second dictionary type list.

数据管理系统在获取到第一字典类型列表和第二字典类型列表,即可根据第一字典类型列表和第二字典类型列表,比对第一数据字典和第二数据字典在不同字典类型下的字典数据,得到比对结果,比对结果包括了第一数据字典和第二数据字典在每一个字典类型下的字典数据的差异。最后数据管理系统即可根据比对结果在服务端中修改第二数据字典中的字典数据,从而使得第二数据字典与第一数据字典保持同步。After the data management system obtains the first dictionary type list and the second dictionary type list, it can compare the first data dictionary and the second data dictionary under different dictionary types based on the first dictionary type list and the second dictionary type list. Dictionary data is obtained to obtain a comparison result, which includes the difference in dictionary data between the first data dictionary and the second data dictionary under each dictionary type. Finally, the data management system can modify the dictionary data in the second data dictionary in the server based on the comparison result, thereby keeping the second data dictionary synchronized with the first data dictionary.

在上述实施例的基础上,步骤293中根据第一字典类型列表和第二字典类型列表,将服务端中的第二数据字典同步为第一数据字典,包括:Based on the above embodiment, in step 293, the second data dictionary in the server is synchronized to the first data dictionary according to the first dictionary type list and the second dictionary type list, including:

步骤2931、根据第一字典类型列表,获取第一数据字典每一种字典类型下的第三字典数据。Step 2931: Obtain the third dictionary data under each dictionary type of the first data dictionary according to the first dictionary type list.

在得到第一字典类型列表后,数据字典管理系统即可遍历第一字典类型列表中的每一个字典类型,从而获取每一个字典类型下的第三字典数据。After obtaining the first dictionary type list, the data dictionary management system can traverse each dictionary type in the first dictionary type list, thereby obtaining the third dictionary data under each dictionary type.

步骤2932、根据第二字典类型列表,获取第二数据字典每一种字典类型下的第四字典数据。Step 2932: Obtain the fourth dictionary data under each dictionary type of the second data dictionary according to the second dictionary type list.

同理,在得到第二字典类型列表后,数据字典管理系统即可遍历第二字典类型列表中的每一个字典类型,从而获取每一个字典类型下的第四字典数据。Similarly, after obtaining the second dictionary type list, the data dictionary management system can traverse each dictionary type in the second dictionary type list, thereby obtaining the fourth dictionary data under each dictionary type.

步骤2933、比对每一种字典类型下的第三字典数据和第四字典数据,得到比对结果。Step 2933: Compare the third dictionary data and the fourth dictionary data under each dictionary type to obtain the comparison result.

在得到每一种字典类型下的第三字典数据和第四字典数据,数据管理即可对比每一种字典类型下的第三字典数据和第四字典数据,确定每一种字典类型下的第三字典数据和第四字典数据的差异,差异的类型包括字典数据多余、字典数据缺失以及字典数据不同等,其中字典数据多余即同一种字典类型下的第三字典数据要多于第四字典数据,字典数据缺失即同一种字典类型下的第三字典数据要少于第四字典数据,字典数据不同即同一种字典类型下与第三字典数据相对应的第四字典数据的数值不相同。在一个实施例中,数据字典管理系统可同时比对多种字典类型下的第三字典数据和第四字典数据的差异,以加快比对效率,可理解,可同时比对的字典类型的数量由服务端的算力所决定。After obtaining the third dictionary data and the fourth dictionary data under each dictionary type, data management can compare the third dictionary data and the fourth dictionary data under each dictionary type to determine the third dictionary data under each dictionary type. The difference between the third dictionary data and the fourth dictionary data. The types of differences include redundant dictionary data, missing dictionary data, and different dictionary data. Redundant dictionary data means that the third dictionary data of the same dictionary type is more than the fourth dictionary data. , the dictionary data is missing, that is, the third dictionary data under the same dictionary type is less than the fourth dictionary data, and the dictionary data is different, that is, the values of the fourth dictionary data corresponding to the third dictionary data under the same dictionary type are different. In one embodiment, the data dictionary management system can compare the differences between the third dictionary data and the fourth dictionary data under multiple dictionary types at the same time to speed up the comparison efficiency. It is understandable that the number of dictionary types that can be compared at the same time is Determined by the computing power of the server.

步骤2934、根据比对结果对服务端中的第二数据字典进行同步,以使第二数据字典与第一数据字典相同。Step 2934: Synchronize the second data dictionary in the server according to the comparison result, so that the second data dictionary is the same as the first data dictionary.

在得到比对结果后,数据字典管理系统即可根据比对结果,分别请求服务器中的接口对第二数据字典进行进行修改,完成第二数据字典和第一数据字典之间的同步,从而使得第一数据字典和第二数据字典相同。示例性的,对于字典数据多余的差异类型,则数据字典管理系统可在第二数据字典中新增缺少的字典数据,对于数据字典缺失的差异类型,则数据字典管理系统可在第二数据字典中删除多余的字典数据,对于数据字典不同的差异类型,则数据字典管理系统可在第二数据字典中将不同的字典数据修改为与第一数据字典中的字典数据相同。一个实施例中,在调用服务器的接口对第二数据字典进行修改后,数据字典管理系统还可以进一步统计每个接口对第二数据字典进行修改的成功失败情况,并根据成功失败情况生成同步报告,开发人员通过查看同步报告即可得知数据字典的同步结果。After obtaining the comparison results, the data dictionary management system can respectively request the interface in the server to modify the second data dictionary according to the comparison results to complete the synchronization between the second data dictionary and the first data dictionary, so that The first data dictionary and the second data dictionary are the same. For example, for the difference types that are redundant in the dictionary data, the data dictionary management system can add the missing dictionary data in the second data dictionary. For the difference types that are missing from the data dictionary, the data dictionary management system can add the missing dictionary data in the second data dictionary. Delete redundant dictionary data in the data dictionary. For different difference types in the data dictionary, the data dictionary management system can modify the different dictionary data in the second data dictionary to be the same as the dictionary data in the first data dictionary. In one embodiment, after calling the server's interface to modify the second data dictionary, the data dictionary management system can further count the success and failure of each interface in modifying the second data dictionary, and generate a synchronization report based on the success and failure. , developers can know the synchronization results of the data dictionary by viewing the synchronization report.

以上即为对数据字典进行同步的具体过程。The above is the specific process of synchronizing the data dictionary.

在另一个实施例中,在对第一数据字典和第二数据字典进行同步时,数据管理系统也可以调用预设脚本,使预设脚本将服务端中与第二项目环境相对应的第二数据字典同步为与第一项目环境相对应的第一数据字典,其中预设脚本是指预先设置的脚本,脚本为使用一种特定的描述性语言,依据一定的格式编写的可执行文件,开发人员可预先将对数据字典进行同步的步骤写入预设脚本中,从而使得预设脚本能够自动执行对数据字典进行同步的步骤,时序图如图15所示。可理解,预设脚本同步第一数据字典和第二数据字典的过程与上述同步的过程相同,具体可参考上述同步过程,在本实施例中不再进行赘述。In another embodiment, when synchronizing the first data dictionary and the second data dictionary, the data management system can also call a preset script to cause the preset script to synchronize the second data dictionary corresponding to the second project environment in the server. The data dictionary is synchronized to the first data dictionary corresponding to the first project environment, where the preset script refers to a preset script. The script is an executable file written in a certain format using a specific descriptive language. Development Personnel can write the steps for synchronizing the data dictionary into a preset script in advance, so that the preset script can automatically execute the steps for synchronizing the data dictionary. The sequence diagram is shown in Figure 15. It can be understood that the process of synchronizing the first data dictionary and the second data dictionary by the preset script is the same as the above-mentioned synchronization process. For details, reference can be made to the above-mentioned synchronization process, which will not be described again in this embodiment.

另外,需要说明的是,本发明实施例所提供的数据字典管理方法的步骤并没有严格的先后执行顺序,例如开发人员在数据字典管理系统启动后,也可直接执行步骤270,从而执行对数据字典进行同步的过程,本实施例中不对步骤的执行顺序进行严格限定。In addition, it should be noted that the steps of the data dictionary management method provided by the embodiment of the present invention do not have a strict execution sequence. For example, after the data dictionary management system is started, the developer can also directly execute step 270 to perform data processing. In the process of dictionary synchronization, the execution order of the steps is not strictly limited in this embodiment.

上述,本发明实施例的数据字典管理系统还具备对不同环境下的数据字典进行同步的功能,开发人员只需要在交互界面上输入所需要同步的两个数据字典后,数据字典管理系统即可自动对两个数据字典进行同步,在同步的过程中无需人为参与,大大提高了数据字典进行进行同步的概率,避免重复手动输入字典数据导致出现数据不一致的问题。此外,自动同步字典数据还可以提高项目开发过程中的可维护性,减少维护成本。As mentioned above, the data dictionary management system of the embodiment of the present invention also has the function of synchronizing data dictionaries in different environments. Developers only need to input the two data dictionaries that need to be synchronized on the interactive interface, and the data dictionary management system can The two data dictionaries are automatically synchronized without human intervention during the synchronization process, which greatly improves the probability of synchronization of the data dictionaries and avoids the problem of data inconsistency caused by repeated manual input of dictionary data. In addition, automatic synchronization of dictionary data can also improve maintainability during project development and reduce maintenance costs.

本发明实施例还提供了一种数据字典管理系统,数据字典管理系统通过客户端登录,客户端与储存有数据字典的服务端通信连接,数据字典包括有至少一种字典类型,字典类型用于记录字典数据。Embodiments of the present invention also provide a data dictionary management system. The data dictionary management system logs in through a client. The client communicates with the server that stores the data dictionary. The data dictionary includes at least one dictionary type. The dictionary type is used for Record dictionary data.

数据字典管理系统用于在客户端显示数据字典管理系统的交互界面,交互界面显示有类型添加控件和数据类型标签,每个数据类型标签分别对应一种字典类型。The data dictionary management system is used to display the interactive interface of the data dictionary management system on the client. The interactive interface displays type adding controls and data type labels. Each data type label corresponds to a dictionary type.

数据字典管理系统用于响应作用于类型添加控件的第一触发操作,显示类型添加子界面。The data dictionary management system is configured to respond to the first trigger operation acting on the type adding control and display the type adding sub-interface.

数据字典管理系统用于根据通过类型添加子界面接收的第一输入数据,向数据字典中添加第一字典类型,并更新显示数据类型标签。The data dictionary management system is configured to add a first dictionary type to the data dictionary according to the first input data received through the type adding sub-interface, and update the display data type label.

数据字典管理系统用于响应作用于数据类型标签的第二触发操作,从数据字典中获取与第二字典类型相对应的字典数据并显示于数据显示区,并在数据显示区内显示数据添加控件,第二字典类型根据第二触发操作作用的数据类型标签确认。The data dictionary management system is used to respond to the second trigger operation acting on the data type tag, obtain the dictionary data corresponding to the second dictionary type from the data dictionary and display it in the data display area, and display the data adding control in the data display area. , the second dictionary type is confirmed according to the data type tag acted upon by the second triggering operation.

数据字典管理系统用于响应作用于数据添加控件的第三触发操作,显示数据添加子界面。The data dictionary management system is used to respond to the third trigger operation acting on the data adding control and display the data adding sub-interface.

数据字典管理系统用于根据通过数据添加子界面接收的第二输入数据,向数据字典中的第三字典类型添加字典数据并更新显示数据显示区,第三字典类型为数据显示区当前显示的字典数据对应的字典类型。The data dictionary management system is used to add dictionary data to the third dictionary type in the data dictionary and update the display data display area according to the second input data received through the data adding sub-interface. The third dictionary type is the dictionary currently displayed in the data display area. The dictionary type corresponding to the data.

可理解,本发明实施例所提供的数据字典管理系统能够用于执行上述的数据字典管理方法,具体过程可参考上述实施例所描述的数据字典管理方法,在本实施例中不再进行赘述。It can be understood that the data dictionary management system provided by the embodiment of the present invention can be used to execute the above-mentioned data dictionary management method. For the specific process, reference can be made to the data dictionary management method described in the above-mentioned embodiment, which will not be described again in this embodiment.

本实施例还提供了一种数据字典管理设备,如图16所示,图16为本发明实施例提供的数据字典管理设备的结构示意图,数据字典管理设备30包括处理器300以及存储器301;This embodiment also provides a data dictionary management device, as shown in Figure 16. Figure 16 is a schematic structural diagram of the data dictionary management device provided by this embodiment of the present invention. The data dictionary management device 30 includes a processor 300 and a memory 301;

存储器301用于存储计算机程序302,并将计算机程序302传输给处理器300;The memory 301 is used to store the computer program 302 and transmit the computer program 302 to the processor 300;

处理器300用于根据计算机程序302中的指令执行上述的一种数据字典管理方法实施例中的步骤。The processor 300 is configured to execute the steps in the above-mentioned data dictionary management method embodiment according to the instructions in the computer program 302.

示例性的,计算机程序302可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器301中,并由处理器300执行,以完成本申请。一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述计算机程序302在数据字典管理设备30中的执行过程。For example, the computer program 302 can be divided into one or more modules/units, and one or more modules/units are stored in the memory 301 and executed by the processor 300 to complete the present application. One or more modules/units may be a series of computer program instruction segments capable of completing specific functions. The instruction segments are used to describe the execution process of the computer program 302 in the data dictionary management device 30 .

数据字典管理设备30可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。数据字典管理设备30可包括,但不仅限于,处理器300、存储器301。本领域技术人员可以理解,图16仅仅是数据字典管理设备30的示例,并不构成对数据字典管理设备30的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如数据字典管理设备30还可以包括输入输出设备、网络接入设备、总线等。The data dictionary management device 30 can be a computing device such as a desktop computer, a notebook, a handheld computer, a cloud server, etc. The data dictionary management device 30 may include, but is not limited to, a processor 300 and a memory 301. Those skilled in the art can understand that FIG. 16 is only an example of the data dictionary management device 30 and does not constitute a limitation on the data dictionary management device 30. It may include more or fewer components than shown in the figure, or some components may be combined. Or different components, for example, the data dictionary management device 30 may also include input and output devices, network access devices, buses, etc.

所称处理器300可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 300 may be a central processing unit (CPU), or other general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Ready-made field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

存储器301可以是数据字典管理设备30的内部存储单元,例如数据字典管理设备30的硬盘或内存。存储器301也可以是数据字典管理设备30的外部存储设备,例如数据字典管理设备30上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(SecureDigital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器301还可以既包括数据字典管理设备30的内部存储单元也包括外部存储设备。存储器301用于存储计算机程序以及数据字典管理设备30所需的其他程序和数据。存储器301还可以用于暂时地存储已经输出或者将要输出的数据。The memory 301 may be an internal storage unit of the data dictionary management device 30 , such as a hard disk or memory of the data dictionary management device 30 . The memory 301 can also be an external storage device of the data dictionary management device 30, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SD) card, or a flash memory equipped on the data dictionary management device 30. Flash Card, etc. Further, the memory 301 may also include both an internal storage unit of the data dictionary management device 30 and an external storage device. The memory 301 is used to store computer programs and other programs and data required by the data dictionary management device 30 . The memory 301 can also be used to temporarily store data that has been output or is to be output.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separate. A component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储计算机程序的介质。Integrated units may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as independent products. Based on this understanding, the technical solution of the present invention is essentially or contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store computer programs. .

本发明实施例还提供一种包含计算机可执行指令的存储介质,计算机可执行指令在由计算机处理器执行时用于执行一种数据字典管理方法,适用于数据字典管理系统,数据字典管理系统通过客户端登录,客户端与储存有数据字典的服务端通信连接,数据字典包括有至少一种字典类型,字典类型用于记录字典数据,数据字典管理方法包括:Embodiments of the present invention also provide a storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to execute a data dictionary management method, which is suitable for a data dictionary management system. The data dictionary management system adopts The client logs in, and the client communicates with the server that stores the data dictionary. The data dictionary includes at least one dictionary type. The dictionary type is used to record dictionary data. The data dictionary management method includes:

在客户端显示数据字典管理系统的交互界面,交互界面显示有类型添加控件和数据类型标签,每个数据类型标签分别对应一种字典类型;Display the interactive interface of the data dictionary management system on the client. The interactive interface displays type addition controls and data type labels. Each data type label corresponds to a dictionary type;

响应作用于类型添加控件的第一触发操作,显示类型添加子界面;In response to the first trigger operation acting on the type adding control, display the type adding sub-interface;

根据通过类型添加子界面接收的第一输入数据,向数据字典中添加第一字典类型,并更新显示数据类型标签;Add the first dictionary type to the data dictionary according to the first input data received through the type addition sub-interface, and update the display data type label;

响应作用于数据类型标签的第二触发操作,从数据字典中获取与第二字典类型相对应的字典数据并显示于数据显示区,并在数据显示区内显示数据添加控件,第二字典类型根据第二触发操作作用的数据类型标签确认;In response to the second trigger operation acting on the data type label, obtain the dictionary data corresponding to the second dictionary type from the data dictionary and display it in the data display area, and display the data adding control in the data display area. The second dictionary type is based on The data type tag confirmation of the second trigger operation effect;

响应作用于数据添加控件的第三触发操作,显示数据添加子界面;In response to the third trigger operation acting on the data adding control, display the data adding sub-interface;

根据通过数据添加子界面接收的第二输入数据,向数据字典中的第三字典类型添加字典数据并更新显示数据显示区,第三字典类型为数据显示区当前显示的字典数据对应的字典类型。According to the second input data received through the data adding sub-interface, add dictionary data to a third dictionary type in the data dictionary and update the display data display area. The third dictionary type is the dictionary type corresponding to the dictionary data currently displayed in the data display area.

注意,上述仅为本发明实施例的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明实施例不限于这里的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明实施例的保护范围。因此,虽然通过以上实施例对本发明实施例进行了较为详细的说明,但是本发明实施例不仅仅限于以上实施例,在不脱离本发明实施例构思的情况下,还可以包括更多其他等效实施例,而本发明实施例的范围由所附的权利要求范围决定。Note that the above are only the preferred embodiments and the technical principles used in the embodiments of the present invention. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments here. Various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention have been described in detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may also include more other equivalents without departing from the concept of the embodiments of the present invention. embodiments, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims (12)

1. The data dictionary management method is suitable for a data dictionary management system, the data dictionary management system logs in through a client, the client is in communication connection with a server storing a data dictionary, the data dictionary comprises at least one dictionary type, the dictionary type is used for recording dictionary data, and the data dictionary management method comprises the following steps:
Displaying an interactive interface of the data dictionary management system at a client, wherein the interactive interface is provided with a type adding control and data type labels, and each data type label corresponds to one dictionary type respectively;
responding to a first triggering operation acting on the type adding control, and displaying a type adding sub-interface;
adding a first dictionary type into the data dictionary according to the first input data received through the type adding sub-interface, and updating and displaying the data type label;
responding to a second triggering operation acting on the data type label, acquiring dictionary data corresponding to a second dictionary type from the data dictionary, displaying the dictionary data in a data display area, and displaying a data adding control in the data display area, wherein the second dictionary type is confirmed according to the data type label acted by the second triggering operation;
responding to a third triggering operation acting on the data adding control, and displaying a data adding sub-interface;
and adding dictionary data to a third dictionary type in the data dictionary according to the second input data received through the data adding sub-interface, and updating and displaying the data display area, wherein the third dictionary type is the dictionary type corresponding to the dictionary data currently displayed in the data display area.
2. The method of claim 1, wherein the dictionary data includes key data and value data;
the obtaining dictionary data corresponding to the second dictionary type from the data dictionary and displaying the dictionary data in a data display area includes:
acquiring key data and value data corresponding to the second dictionary type from the data dictionary;
and displaying key data and value data corresponding to the second dictionary type in the data display area.
3. The data dictionary management method of claim 1, further comprising:
responding to a third triggering operation acting on the data type label, and displaying a type management interface, wherein the type management interface comprises a type editing control and a type deleting control;
responding to a fourth triggering operation acting on the type editing control, and displaying a type editing sub-interface;
editing a fourth dictionary type in the data dictionary according to third input data received through the type editing sub-interface, updating and displaying the data type label, and confirming the fourth dictionary type according to the data type label with the third triggering operation function;
And deleting a fourth dictionary type and dictionary data corresponding to the fourth dictionary type in the data dictionary in response to a fifth triggering operation acting on the type deleting control, and updating and displaying the data type label and the data display area.
4. The data dictionary management method of claim 1, wherein the data display area further displays a data editing control and a data deleting control corresponding to each dictionary data, and the data dictionary management method further comprises:
responding to a sixth triggering operation acting on the data editing control, and displaying a data editing sub-interface;
editing first dictionary data in the data dictionary according to fourth input data received through the data editing sub-interface, updating and displaying the data display area, and confirming the first dictionary data according to the data editing control with the sixth triggering operation function;
and deleting the second dictionary data in the data dictionary in response to a seventh triggering operation acting on the data deleting control, updating and displaying the data display area, and confirming the second dictionary data according to the data deleting control acting on the seventh triggering operation.
5. The data dictionary management method of claim 1, wherein dictionary data corresponding to different project environments are stored in the server, the interactive interface further displays a synchronous environment control, and the data dictionary management method further comprises:
responding to an eighth triggering operation acting on the synchronous environment control, and displaying a synchronous environment sub-interface;
determining a first project environment and a second project environment according to fifth input data received through the synchronous environment sub-interface;
and synchronizing the second data dictionary corresponding to the second project environment in the server to be the first data dictionary corresponding to the first project environment.
6. The method according to claim 5, wherein synchronizing the second data dictionary corresponding to the second project environment in the server to the first data dictionary corresponding to the first project environment comprises:
and calling a preset script, and enabling the preset script to synchronize a second data dictionary corresponding to the second project environment in the server to be a first data dictionary corresponding to the first project environment.
7. The method according to claim 5, wherein synchronizing the second data dictionary corresponding to the second project environment in the server to the first data dictionary corresponding to the first project environment comprises:
respectively acquiring a first login credential corresponding to a first data dictionary of the first project environment and a second login credential corresponding to a second data dictionary of the second project environment;
acquiring a first dictionary type list corresponding to the first data dictionary from the server according to the first login credential, and acquiring a second dictionary type list corresponding to the second data dictionary from the server according to the second login credential, wherein the dictionary type list comprises dictionary types of the data dictionary;
and synchronizing the second data dictionary in the server to the first data dictionary according to the first dictionary type list and the second dictionary type list.
8. The method according to claim 7, wherein the acquiring the first login credentials corresponding to the first data dictionary of the first project environment and the second login credentials corresponding to the second data dictionary of the second project environment, respectively, comprises:
Acquiring a first account in the first project environment and a second account in the second project environment, wherein the first account and the second account only have data dictionary synchronization rights;
logging in the first data dictionary through the first account number to obtain a first login credential of the first data dictionary;
and logging in the second data dictionary through the second account number to obtain a second login certificate of the second data dictionary.
9. The method of claim 7, wherein synchronizing the second data dictionary in the server as the first data dictionary based on the first dictionary type list and the second dictionary type list, comprises:
acquiring third dictionary data of each dictionary type of the first data dictionary according to the first dictionary type list;
acquiring fourth dictionary data of each dictionary type of the second data dictionary according to the second dictionary type list;
comparing the third dictionary data with the fourth dictionary data under each dictionary type to obtain a comparison result;
and synchronizing a second data dictionary in the server according to the comparison result so that the second data dictionary is identical to the first data dictionary.
10. The data dictionary management system is characterized in that the data dictionary management system logs in through a client, the client is in communication connection with a server storing a data dictionary, the data dictionary comprises at least one dictionary type, and the dictionary type is used for recording dictionary data;
the data dictionary management system is used for displaying an interactive interface of the data dictionary management system on a client, wherein the interactive interface is displayed with a type adding control and data type labels, and each data type label corresponds to one dictionary type respectively;
the data dictionary management system is used for responding to a first trigger operation acting on the type adding control and displaying a type adding sub-interface;
the data dictionary management system is used for adding a first dictionary type into the data dictionary according to the first input data received through the type adding sub-interface, and updating and displaying the data type label;
the data dictionary management system responds to a second triggering operation acting on the data type label, dictionary data corresponding to a second dictionary type are obtained from the data dictionary and displayed in a data display area, a data adding control is displayed in the data display area, and the second dictionary type is confirmed according to the data type label acted by the second triggering operation;
The data dictionary management system is used for responding to a third triggering operation acting on the data adding control and displaying a data adding sub-interface;
and the data dictionary management system is used for adding dictionary data to a third dictionary type in the data dictionary according to the second input data received through the data adding sub-interface and updating and displaying the data display area, wherein the third dictionary type is the dictionary type corresponding to the dictionary data currently displayed in the data display area.
11. A data dictionary management apparatus, characterized in that the data dictionary management apparatus comprises a processor and a memory;
the memory is used for storing a computer program and transmitting the computer program to the processor;
the processor is configured to perform a data dictionary management method according to any one of claims 1-9 according to instructions in the computer program.
12. A storage medium storing computer executable instructions which, when executed by a computer processor, are adapted to carry out a data dictionary management method according to any one of claims 1-9.
CN202311042666.9A 2023-08-17 2023-08-17 Data dictionary management method, system, equipment and storage medium Pending CN117312334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311042666.9A CN117312334A (en) 2023-08-17 2023-08-17 Data dictionary management method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311042666.9A CN117312334A (en) 2023-08-17 2023-08-17 Data dictionary management method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117312334A true CN117312334A (en) 2023-12-29

Family

ID=89283752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311042666.9A Pending CN117312334A (en) 2023-08-17 2023-08-17 Data dictionary management method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117312334A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119127294A (en) * 2024-09-14 2024-12-13 中国建设银行股份有限公司 Data dictionary generation method, device, equipment, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569298A (en) * 2019-09-12 2019-12-13 成都中科大旗软件股份有限公司 data docking and visualization method and system
CN113360666A (en) * 2021-05-31 2021-09-07 珠海大横琴科技发展有限公司 Data dictionary management method and device, electronic equipment and storage medium
CN115080616A (en) * 2022-06-13 2022-09-20 京东方科技集团股份有限公司 Dictionary data acquisition method and device, storage medium and electronic equipment
CN115495073A (en) * 2022-08-30 2022-12-20 海尔优家智能科技(北京)有限公司 Method, device, storage medium and electronic device for determining target form control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569298A (en) * 2019-09-12 2019-12-13 成都中科大旗软件股份有限公司 data docking and visualization method and system
CN113360666A (en) * 2021-05-31 2021-09-07 珠海大横琴科技发展有限公司 Data dictionary management method and device, electronic equipment and storage medium
CN115080616A (en) * 2022-06-13 2022-09-20 京东方科技集团股份有限公司 Dictionary data acquisition method and device, storage medium and electronic equipment
CN115495073A (en) * 2022-08-30 2022-12-20 海尔优家智能科技(北京)有限公司 Method, device, storage medium and electronic device for determining target form control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119127294A (en) * 2024-09-14 2024-12-13 中国建设银行股份有限公司 Data dictionary generation method, device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
CN110378593B (en) Applied communication status regarding compliance policy updates
US20250110933A1 (en) Integrated transition control center
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
US9430449B2 (en) Systems, methods, and media for managing editable previews of webpages
TWI556168B (en) External service application discovery method
EP3005084B1 (en) Driver installation for targeted and not-connected devices
US9787798B2 (en) Generating collapsed user interface interaction sequence controls in mobile applications
CN105264492B (en) Automatic Discovery of System Behavior
CN111475757A (en) Page update method and device
JP2014525092A (en) Methods for associating third-party content with online document signatures
US20170177194A1 (en) Link file sharing and synchronization
US9996381B1 (en) Live application management workflow using metadata capture
US20160316020A1 (en) Web page information presentation method and system
JP2014522542A (en) Automatic conversion and code generation for user interface objects
CN103079020A (en) Terminal control system and terminal control method
CN116893807A (en) System and method for designing a robotic flow automation robot using a browser
CN115700453A (en) A method and device for transmitting target objects across systems
WO2012174022A2 (en) Techniques for adapting an interpretive run time application to multiple clients
AU2012271775A1 (en) Techniques for adapting an interpretive run time application to multiple clients
US10135684B2 (en) Differential staging of devices in bulk enrollment
US20140189526A1 (en) Changing log file content generation
CN117312334A (en) Data dictionary management method, system, equipment and storage medium
CN113010811B (en) Webpage acquisition method and device, electronic equipment and computer readable storage medium
CN115454857A (en) Test case editing method, device, electronic device and readable storage medium
JP5385991B2 (en) SYSTEM, PROGRAM, AND METHOD FOR FORMING CONFIGURATION INFORMATION OF COMPONENTS OF SYSTEMS INCLUDING COMPONENTS WHICH OBTAINED CONFIGURATION INFORMATION

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination