CN117931195A - Data dictionary processing method and device, electronic equipment and storage medium - Google Patents

Data dictionary processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117931195A
CN117931195A CN202311766041.7A CN202311766041A CN117931195A CN 117931195 A CN117931195 A CN 117931195A CN 202311766041 A CN202311766041 A CN 202311766041A CN 117931195 A CN117931195 A CN 117931195A
Authority
CN
China
Prior art keywords
application
dictionary
data dictionary
data
identification
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
CN202311766041.7A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202311766041.7A priority Critical patent/CN117931195A/en
Publication of CN117931195A publication Critical patent/CN117931195A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a processing method and device of a data dictionary, electronic equipment and a storage medium, and relates to the technical fields of code development, operation and the like. The specific implementation scheme is as follows: when the application is exported, generating a dictionary file based on a data dictionary used in the code of the application; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application; wherein, the application package called by the interface in the code of the application. The technology can effectively reduce the size of the page of the application and the size of the application package of the application, and reduce the storage space of the application package of the application; and the updating efficiency of the application can be effectively improved.

Description

Data dictionary processing method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of computers, in particular to the technical fields of code development, code running and the like, and particularly relates to a data dictionary processing method, a data dictionary processing device, electronic equipment and a storage medium.
Background
In the code development process of an application, a data dictionary is a very important existence.
The function of the data dictionary is similar to that of a database, in the use process, the contents in the data dictionary need to be continuously added, deleted and revised, the dictionary contents in the data dictionary can be used when an application page is built, and the export function can be used after the building is completed. In the current derived application, the dictionary content used is extracted from the data written in the page.
Disclosure of Invention
The disclosure provides a data dictionary processing method, a data dictionary processing device, electronic equipment and a storage medium.
According to an aspect of the present disclosure, there is provided a method for processing a data dictionary, including:
When the application is exported, generating a dictionary file based on a data dictionary used in the code of the application; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application; the data dictionary is used in the mode of interface calling in the code of the application;
and exporting the dictionary file and the codes of the application together to obtain an application package of the application.
According to another aspect of the present disclosure, there is provided a method for processing a data dictionary, including:
in the running of the application, a proprietary data requester is adopted to detect and intercept a request interface of a data dictionary in the application;
acquiring the level and the identification of the data dictionary from a request interface of the data dictionary;
Based on the level and the identification of the data dictionary, acquiring the content of the corresponding data dictionary from a dictionary file to realize the function of the data dictionary in the application; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application. According to still another aspect of the present disclosure, there is provided a processing apparatus for a data dictionary, applied to a development platform of an application, including:
the file generation module is used for generating dictionary files based on a data dictionary used in the codes of the application when the application is exported; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application; the data dictionary is used in the mode of interface calling in the code of the application;
And the export module is used for exporting the dictionary file and the codes of the application together to obtain an application package of the application.
According to still another aspect of the present disclosure, there is provided a processing apparatus of a data dictionary, applied to an operation platform of an application, including:
The detection module is used for detecting and intercepting a request interface of a data dictionary in the application by adopting a proprietary data requester in the running of the application;
The acquisition module is used for acquiring the level and the identification of the data dictionary from the request interface of the data dictionary;
The acquisition module is further used for acquiring the content of the corresponding data dictionary from the dictionary file based on the level and the identification of the data dictionary so as to realize the function of the data dictionary in the application; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application.
According to still another aspect of the present disclosure, there is provided an electronic apparatus including:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the aspects and methods of any one of the possible implementations described above.
According to yet another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method of the aspects and any possible implementation described above.
According to yet another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of the aspects and any one of the possible implementations described above.
According to the technology disclosed by the invention, the size of the page of the application and the size of the application package of the application can be effectively reduced; and the updating efficiency of the application can be effectively improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present disclosure;
FIG. 2 is a schematic diagram according to a second embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a request interface using a data dictionary in an interface of an application provided by the present disclosure;
FIG. 4 is a schematic diagram according to a third embodiment of the present disclosure;
FIG. 5 is a schematic diagram according to a fourth embodiment of the present disclosure;
FIG. 6 is a schematic diagram according to a fifth embodiment of the present disclosure;
FIG. 7 is a schematic diagram according to a sixth embodiment of the present disclosure;
FIG. 8 is a schematic diagram according to a seventh embodiment of the present disclosure;
FIG. 9 is a schematic diagram according to an eighth embodiment of the present disclosure;
Fig. 10 is a block diagram of an electronic device for implementing the methods of embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It will be apparent that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments in this disclosure without inventive faculty, are intended to be within the scope of this disclosure.
It should be noted that, the terminal device in the embodiments of the present disclosure may include, but is not limited to, smart devices such as a mobile phone, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), a wireless handheld device, and a Tablet Computer (Tablet Computer); the display device may include, but is not limited to, a personal computer, a television, or the like having a display function.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In the prior art, in the page development process of an application, the contents of a data dictionary used in the application need to be written into the data of the page of the application, and even if different pages use the same data dictionary, the contents of the same data dictionary need to be written into different page data respectively. Thus, when the application is exported, the page is oversized, and the application package of the application is also bigger.
FIG. 1 is a schematic diagram according to a first embodiment of the present disclosure; as shown in fig. 1, the present embodiment provides a method for processing a data dictionary, which specifically includes the following steps:
S101, generating a dictionary file based on a data dictionary used in codes of an application when the application is exported; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application; wherein, the data dictionary is used in the code of the application in the mode of interface call;
in this embodiment, the level of the data dictionary may be at an organization level or an application level. The identification of the digital dictionary may be referred to as a coded identification. Since the data dictionary identifications corresponding to different levels may be identical, the levels and identifications of the data dictionary are used together to uniquely identify the data dictionary in this embodiment. Wherein the application-level data dictionary refers to a data dictionary that can be shared in one application. An organization level data dictionary refers to a data dictionary that can be shared by all applications within an organization. In a practical scenario, multiple applications may be included within an organization.
S102, exporting the dictionary file and the codes of the application together to obtain an application package of the application.
The processing method of the data dictionary of the embodiment can be applied to a development platform of an application, for example, the development platform of the application can be a low-code platform for processing the data dictionary used in the developed application.
In the scenario of the present embodiment, one dictionary file is generated from the data dictionary used in the codes of all pages of the application. The level, identity and content of the digital dictionary used in the application are included in the dictionary file.
Whether it is an application level data dictionary or an organization level data dictionary. The number of data dictionaries used for all pages in one application, that is, the number of data dictionaries included in dictionary text is not limited to one, and two or more may exist. For example, an animal type data dictionary, a plant type data dictionary, a series of animation type data dictionaries, and so forth may be included. A plurality of pieces of data may be included in the contents of each type of data dictionary, and one piece of data may also be referred to as one dictionary item, or one piece of dictionary data. Each piece of data can also comprise corresponding coded identification, content, descriptive information and the like. As in the animal type data dictionary, a piece of data, coded as cat, with cat content, and correspondingly, other descriptive information, such as at least one of background, font color, font format, font size, etc., at the time of presentation of the piece of data in the page of the application may be included.
The data dictionary is used in the code of the application in an interface calling mode, so that the size of a page using the data dictionary in the application can be reduced, and the size of a derived application package can be further reduced. In addition, in the embodiment, the dictionary file and the codes of the application are exported together to generate the application package of the application, so that the data dictionary used in the application can be obtained from the dictionary file when the application runs, and the normal use of the data dictionary function in the application can be ensured.
Particularly, when the same data dictionary is used for different pages in the application, the data dictionary is used in the pages in an interface calling mode, and the content of the data dictionary is not written into each page, so that the size of the pages and the size of an application package of the application exported in export can be effectively reduced.
The processing method of the data dictionary can effectively reduce the size of the page of the application and the size of the application package of the application, and reduce the storage space of the application package of the application.
In addition, according to the processing method of the data dictionary, when the content of the data dictionary is updated, such as adding, deleting, changing and the like of the content of the digital dictionary, only the dictionary file is updated, and the method does not need to update all pages using the data dictionary like the prior art, so that the error rate of codes of an application using the data dictionary can be effectively reduced, and the updating efficiency of the application can be effectively improved.
FIG. 2 is a schematic diagram according to a second embodiment of the present disclosure; the present embodiment provides a method for processing a data dictionary, which further describes the technical solution of the present disclosure in more detail on the basis of the technical solution of the embodiment shown in fig. 1, and as shown in fig. 2, the method for processing a data dictionary of the present embodiment may specifically include the following steps:
s201, configuring a request interface of a data dictionary based on the level and the identification of the data dictionary when the data dictionary is used in the application development process;
S202, embedding a request interface of a data dictionary into a page of an application to use the data dictionary in the page of the application;
For example, fig. 3 is a schematic diagram of a request interface using a data dictionary in an interface of an application provided by the present disclosure. In the page of the application shown in fig. 3, there are two request interfaces using the data dictionary, for example, the request interface of the data dictionary in the first place is expressed as follows:
app: /(dictionary/running/listlevel =1 & encoded=animals; where level=1 indicates that the level of the data dictionary is at the organization level, and encoded=animals indicates that the identification of the data dictionary in the organization level is animals.
For another example, the request interface of the data dictionary at the second place may be expressed as follows:
app: /(dictionary/running/listlevel =2 & encoded= provinces; where level=2 indicates that the level of the data dictionary is at the application level, and encoded= provinces indicates that the identification of the data dictionary in the organization level is provinces. In this way, the request interface of the data dictionary can be called as a common interface.
S203, acquiring the level of a data dictionary and a corresponding identifier used in codes of all pages of the application in a traversing manner when the application is exported;
s204, acquiring the content of the corresponding data dictionary from the database based on the acquired level of the data dictionary and the corresponding identification;
in this embodiment, the dictionary may be stored in the database according to the level and the identification. In particular, the levels include an organization level and an application level. An organizational-level dictionary refers to a dictionary that can be shared by all applications on the platform. And an application-level dictionary refers to a dictionary that can be shared by a given application on the platform. Considering that the identities of the dictionaries at different levels may be identical,
S205, writing the level and the identification of each data dictionary and the content of the corresponding data dictionary into a dictionary file;
Steps S203-S205 are one implementation of step S101 in the embodiment shown in fig. 1. By the method, the dictionary file can be comprehensively, efficiently and accurately acquired.
In addition, optionally, in the embodiment of the present disclosure, when the dictionary file is generated, statistical information of the data dictionary used by the application may also be obtained from the database at the same time and stored in the dictionary file. For example, the statistical information of each data dictionary may include the number of pieces of dictionary data included in the data dictionary, modification record information of the dictionary data, and the like. In addition, the number of pieces of the data dictionary of each level included and the like may be recorded in the dictionary file.
S206, generating a hash mark;
s207, configuring the hash mark as the name of the dictionary file.
In this embodiment, the hash identifier hashId is randomly generated, and the purpose is to generate a unique identifier as the name of the dictionary file, so as to avoid the collision between the name of the dictionary file and other names.
Alternatively, steps S206-S207 may also be located before step S203, and in any case, a unique identifier name can be set for the dictionary file.
S208, exporting the dictionary file and the codes of the application together to obtain an application package of the application.
For example, in a specific implementation, hashId may be generated as the name of the dictionary file, and then, in the manner of step S205, the level, the identifier of each data dictionary and the content of the corresponding data dictionary are written into the direct- { hashId }.
The processing method of the data dictionary can accurately and effectively generate the dictionary file, and derive the dictionary file and the codes of the application together to generate the application package of the application. By adopting the mode of the embodiment, the size of the page of the application and the size of the application package of the application can be effectively reduced, and the storage space of the application package of the application can be reduced. And the error rate of codes of the application using the data dictionary can be effectively reduced, and the updating efficiency of the application can be effectively improved.
FIG. 4 is a schematic diagram according to a third embodiment of the present disclosure; the present embodiment provides a method for processing a data dictionary, as shown in fig. 4, where the method for processing a data dictionary includes:
s401, detecting and intercepting a request interface of a data dictionary in an application by adopting a proprietary data requester in the running of the application;
s402, acquiring the level and the identification of the data dictionary from a request interface of the data dictionary;
S403, based on the level and the identification of the data dictionary, acquiring the content of the corresponding data dictionary from the dictionary file so as to realize the function of the data dictionary in the application; the dictionary file includes the level, identity and content of the data dictionary used in the application.
Unlike the embodiments shown in fig. 1 and 2 described above, this embodiment describes the technical solution of the present disclosure at the operation stage of the application. For example, the method for processing the data dictionary of the embodiment may be applied to an application running platform, and is used for implementing processing on the data dictionary used in the application to be run. That is, the technical solution of the present embodiment may be used as the downstream solution of the embodiment shown in fig. 1 or fig. 2, and after the application package of the application is obtained in the embodiment shown in fig. 1 or fig. 2, the processing method of the present embodiment is adopted to continue to run the derived application package, and enable the data dictionary function in the page of the application after running to be normally used.
The processing method of the data dictionary can load the functions of the data dictionary used in the application in the operation stage of the application, and effectively ensures the normal use of the functions of the data dictionary in the application.
FIG. 5 is a schematic diagram according to a fourth embodiment of the present disclosure; the processing method of the data dictionary of the present embodiment further describes the technical solution of the present disclosure in more detail on the basis of the technical solution of the embodiment shown in fig. 4, and as shown in fig. 5, the present embodiment provides a processing method of the data dictionary, which includes:
S501, before the application runs, judging whether an application package of the application carries dictionary files or not;
s502, loading dictionary files into an application running environment in response to carrying;
That is, in the app.load () initialization phase of an application, it is first determined whether the current application has a direct- { hashId }, json is a dictionary file, and if so, the dictionary file is loaded from the json file to the running environment. If not, the mobile terminal can be operated according to the common application package operation mode.
S503, configuring a proprietary data requester for the application to replace a default data requester, so that the proprietary data requester can intercept a request interface of a data dictionary in a code of the application;
s504, detecting and intercepting a request interface of a data dictionary in the application by adopting a proprietary data requester in the running of the application;
s505, acquiring the level and the identification of the data dictionary from a request interface of the data dictionary;
s506, acquiring the content of the corresponding data dictionary from the dictionary file based on the level and the identification of the data dictionary so as to realize the function of the data dictionary in the application; the dictionary file includes the level, identity and content of the data dictionary used in the application.
The processing method of the data dictionary can effectively load the functions of the data dictionary used in the application in the operation stage of the application, and effectively ensure the normal use of the functions of the data dictionary in the application. Furthermore, loading the dictionary file into the application's runtime environment may also be included prior to runtime to ensure that data dictionary functions can be loaded in subsequent runs.
By adopting the processing method of the data dictionary, all pages in the application can share the same data dictionary, so that reusability is effectively improved, and the volume of the whole application is reduced. When the data dictionary is changed, only the dictionary file json needs to be updated, and the page json configuration does not need to be changed, so that the stability of the system can be effectively improved.
FIG. 6 is a schematic diagram according to a fifth embodiment of the present disclosure; the present embodiment provides a processing apparatus 600 of a data dictionary, which is applied to a development platform of an application, and includes:
A file generating module 601, configured to generate a dictionary file based on a data dictionary used in a code of an application when the application is exported; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application; the data dictionary is used in the mode of interface calling in the code of the application;
And the export module 602 is configured to export the dictionary file and the code of the application together to obtain an application package of the application.
The processing device 600 for a data dictionary of the present embodiment implements the implementation principle and the technical effect of the processing of the data dictionary by adopting the above modules, which are the same as the implementation of the above related method embodiments, reference may be made to the description of the above related method embodiments for details, and details are not repeated here.
FIG. 7 is a schematic diagram according to a sixth embodiment of the present disclosure; the processing device 700 of the data dictionary provided in this embodiment includes the same-name and same-function modules shown in fig. 6 described above: a file generation module 701 and an export module 702.
As shown in fig. 7, the processing apparatus 700 of the data dictionary provided in this embodiment further includes:
A configuration module 703, configured to configure a request interface of the data dictionary based on a level and an identifier of the data dictionary when the data dictionary is used in the application development process;
an embedding module 704, configured to embed the request interface of the data dictionary in a page of an application, so as to use the data dictionary in the page of the application.
Further alternatively, in one embodiment of the present disclosure, the file generation module 701 is configured to:
Acquiring the level and the corresponding identification of a data dictionary used in codes of all pages of the application in a traversing manner;
acquiring the content of the corresponding data dictionary from a database based on the acquired level of the data dictionary and the corresponding identification;
And writing the level and the identification of each data dictionary and the content of the corresponding data dictionary into the dictionary file.
Further alternatively, as shown in fig. 7, in an embodiment of the present disclosure, the processing apparatus 700 of the data dictionary further includes:
the identifier generating module 705 is configured to generate a hash identifier;
And a processing module 706, configured to use the hash identifier as a name of the dictionary file.
The processing device 700 for the data dictionary of the present embodiment implements the implementation principle and the technical effect of the processing of the data dictionary by adopting the above modules, which are the same as the implementation of the above related method embodiments, reference may be made to the description of the above related method embodiments for details, and details are not repeated here.
FIG. 8 is a schematic diagram according to a seventh embodiment of the present disclosure; the present embodiment provides a processing apparatus 800 of a data dictionary, which is applied to an operation platform of an application, and includes:
the detection module 801 is configured to detect and intercept a request interface of a data dictionary in an application by using a proprietary data requester during running of the application;
an obtaining module 802, configured to obtain a level and an identifier of the data dictionary from a request interface of the data dictionary;
The obtaining module 802 is further configured to obtain, from a dictionary file, content of a corresponding data dictionary based on the level and the identifier of the data dictionary, so as to implement a function of the data dictionary in the application; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application.
The processing device 800 for the data dictionary of the present embodiment implements the implementation principle and the technical effect of the processing of the data dictionary by adopting the above modules, which are the same as the implementation of the above related method embodiments, reference may be made to the description of the above related method embodiments for details, and details are not repeated here.
FIG. 9 is a schematic diagram according to an eighth embodiment of the present disclosure; the present embodiment provides a processing apparatus 900 for a data dictionary, which includes the same-name and same-function modules shown in fig. 8: detection module 901, acquisition module 902.
As shown in fig. 9, the processing apparatus 900 of the data dictionary of the present embodiment further includes:
The judging module 903 is configured to judge whether an application package of the application carries a dictionary file before the application runs;
and the loading module 904 is used for loading the dictionary file into the running environment of the application in response to carrying.
As a further alternative, as shown in fig. 9, the processing apparatus 900 of the data dictionary of the present embodiment further includes:
The configuration module 905 is configured to configure a proprietary data requester for the application, instead of a default data requester, so that the proprietary data requester can intercept a request interface of a data dictionary in a code of the application.
The processing device 900 for a data dictionary in this embodiment, by adopting the above modules to implement the implementation principle and the technical effect of the processing of the data dictionary, is the same as the implementation of the above related method embodiment, and reference may be made to the description of the above related method embodiment for details, which are not repeated here.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 10 shows a schematic block diagram of an example electronic device 1000 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 10, the apparatus 1000 includes a computing unit 1001 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
Various components in device 1000 are connected to I/O interface 1005, including: an input unit 1006 such as a keyboard, a mouse, and the like; an output unit 1007 such as various types of displays, speakers, and the like; a storage unit 1008 such as a magnetic disk, an optical disk, or the like; and communication unit 1009 such as a network card, modem, wireless communication transceiver, etc. Communication unit 1009 allows device 1000 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks.
The computing unit 1001 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 1001 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1001 performs the various methods and processes described above, such as the above-described methods of the present disclosure. For example, in some embodiments, the above-described methods of the present disclosure may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 1008. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 1000 via ROM 1002 and/or communication unit 1009. When the computer program is loaded into RAM 1003 and executed by computing unit 1001, one or more steps of the above-described methods of the present disclosure described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to perform the above-described methods of the present disclosure in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (17)

1. A method of processing a data dictionary, comprising:
When the application is exported, generating a dictionary file based on a data dictionary used in the code of the application; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application; the data dictionary is used in the mode of interface calling in the code of the application;
and exporting the dictionary file and the codes of the application together to obtain an application package of the application.
2. The method of claim 1, wherein prior to generating the dictionary file based on the data dictionary used in the code of the application, the method further comprises:
When the data dictionary is used in the application development process, configuring a request interface of the data dictionary based on the level and the identification of the data dictionary;
embedding a request interface of the data dictionary in a page of an application to use the data dictionary in the page of the application.
3. The method of claim 1, wherein generating a dictionary file based on a data dictionary used in the code of the application comprises:
Acquiring the level and the corresponding identification of a data dictionary used in codes of all pages of the application in a traversing manner;
acquiring the content of the corresponding data dictionary from a database based on the acquired level of the data dictionary and the corresponding identification;
And writing the level and the identification of each data dictionary and the content of the corresponding data dictionary into the dictionary file.
4. The method of claim 1, wherein the method further comprises:
Generating a hash mark;
And configuring the hash identification as the name of the dictionary file.
5. A method of processing a data dictionary, comprising:
in the running of the application, a proprietary data requester is adopted to detect and intercept a request interface of a data dictionary in the application;
acquiring the level and the identification of the data dictionary from a request interface of the data dictionary;
Based on the level and the identification of the data dictionary, acquiring the content of the corresponding data dictionary from a dictionary file to realize the function of the data dictionary in the application; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application.
6. The method of claim 5, wherein the method further comprises:
Before the application runs, judging whether an application package of the application carries dictionary files or not;
and in response to carrying, loading the dictionary file into the running environment of the application.
7. The method of claim 6, wherein after loading the dictionary file into a runtime environment, prior to execution of an application, the method further comprises:
And configuring a proprietary data requester for the application to replace a default data requester so that the proprietary data requester can intercept a request interface of a data dictionary in a code of the application.
8. A processing device of a data dictionary is applied to a development platform of an application, and comprises:
the file generation module is used for generating dictionary files based on a data dictionary used in the codes of the application when the application is exported; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application; the data dictionary is used in the mode of interface calling in the code of the application;
And the export module is used for exporting the dictionary file and the codes of the application together to obtain an application package of the application.
9. The apparatus of claim 8, wherein the apparatus further comprises:
The configuration module is used for configuring a request interface of the data dictionary based on the level and the identification of the data dictionary when the data dictionary is used in the application development process;
and the embedding module is used for embedding the request interface of the data dictionary into the page of the application so as to use the data dictionary in the page of the application.
10. The apparatus of claim 8, wherein the file generation module is configured to:
Acquiring the level and the corresponding identification of a data dictionary used in codes of all pages of the application in a traversing manner;
acquiring the content of the corresponding data dictionary from a database based on the acquired level of the data dictionary and the corresponding identification;
And writing the level and the identification of each data dictionary and the content of the corresponding data dictionary into the dictionary file.
11. The apparatus of claim 8, wherein the apparatus further comprises:
the identification generation module is used for generating a hash identification;
and the processing module is used for configuring the hash mark as the name of the dictionary file.
12. A processing device of a data dictionary is applied to an application running platform and comprises:
The detection module is used for detecting and intercepting a request interface of a data dictionary in the application by adopting a proprietary data requester in the running of the application;
The acquisition module is used for acquiring the level and the identification of the data dictionary from the request interface of the data dictionary;
The acquisition module is further used for acquiring the content of the corresponding data dictionary from the dictionary file based on the level and the identification of the data dictionary so as to realize the function of the data dictionary in the application; the dictionary file comprises the level, the identification and the content of the digital dictionary used in the application.
13. The apparatus of claim 12, wherein the apparatus further comprises:
The judging module is used for judging whether the dictionary file is carried in an application package of the application before the application runs;
and the loading module is used for loading the dictionary file into the running environment of the application in response to carrying.
14. The apparatus of claim 13, wherein the apparatus further comprises:
And the configuration module is used for configuring the exclusive data requester for the application to replace a default data requester so that the exclusive data requester can intercept a request interface of a data dictionary in the code of the application.
15. An electronic device, comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202311766041.7A 2023-12-20 2023-12-20 Data dictionary processing method and device, electronic equipment and storage medium Pending CN117931195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311766041.7A CN117931195A (en) 2023-12-20 2023-12-20 Data dictionary processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311766041.7A CN117931195A (en) 2023-12-20 2023-12-20 Data dictionary processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117931195A true CN117931195A (en) 2024-04-26

Family

ID=90760124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311766041.7A Pending CN117931195A (en) 2023-12-20 2023-12-20 Data dictionary processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117931195A (en)

Similar Documents

Publication Publication Date Title
CN113342345A (en) Operator fusion method and device of deep learning framework
CN112597754A (en) Text error correction method and device, electronic equipment and readable storage medium
CN113836462A (en) Page description file generation method, device, equipment and storage medium
CN113904943A (en) Account detection method and device, electronic equipment and storage medium
US20190196794A1 (en) Visual programming method, system and terminal device
CN116302218B (en) Function information adding method, device, equipment and storage medium
CN112947916A (en) Method, device, equipment and storage medium for realizing online canvas
CN114330718B (en) Method and device for extracting causal relationship and electronic equipment
CN113138760B (en) Page generation method and device, electronic equipment and medium
CN117931195A (en) Data dictionary processing method and device, electronic equipment and storage medium
CN114386577A (en) Method, apparatus, and storage medium for executing deep learning model
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN114816467B (en) Upgrade file generation method and device and electronic equipment
CN112817990B (en) Data processing method, device, electronic equipment and readable storage medium
CN114579520B (en) Mirror image data processing method, mirror image data loading method and device
CN116431108B (en) Object type processing method and device, electronic equipment and storage medium
CN113656038B (en) Editing processing method and device
CN113342413B (en) Method, apparatus, device, medium, and article for processing components
CN112560462B (en) Event extraction service generation method, device, server and medium
CN113361235A (en) HTML file generation method and device, electronic equipment and readable storage medium
CN116048519A (en) Front-end business embedding method and device, electronic equipment and storage medium
CN113360407A (en) Function positioning method and device, electronic equipment and readable storage medium
CN118069141A (en) Method, device, equipment and storage medium for determining code change influence range
CN113961775A (en) Data visualization method and device, electronic equipment and readable storage medium
CN117591145A (en) Updating method and device of interface document, electronic equipment and storage medium

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