CN114356304A - Data model configuration method and device, storage medium and computer equipment - Google Patents

Data model configuration method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN114356304A
CN114356304A CN202111670776.0A CN202111670776A CN114356304A CN 114356304 A CN114356304 A CN 114356304A CN 202111670776 A CN202111670776 A CN 202111670776A CN 114356304 A CN114356304 A CN 114356304A
Authority
CN
China
Prior art keywords
model
information
data model
configuration
page
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
CN202111670776.0A
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.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software 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 Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN202111670776.0A priority Critical patent/CN114356304A/en
Publication of CN114356304A publication Critical patent/CN114356304A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a configuration method and device of a data model, a storage medium and computer equipment, and relates to the field of data processing. When the application development is carried out based on the data model, the dynamic expansion of the service capability is carried out on the data model based on the graphic interface, the data model does not need to be modified in a code modifying mode, the time of a function coding link and the test time of codes are saved, the defect of the capability of the data model caused by the difference of personal programming capability in the function coding process is avoided, and the use reliability of the data model is ensured.

Description

Data model configuration method and device, storage medium and computer equipment
Technical Field
The present application relates to the field of data processing, and in particular, to a method and an apparatus for configuring a data model, a storage medium, and a computer device.
Background
The data model carries out a software research and development realization link, and the data model designed according to different requirements has different behaviors, rules and business logics; developers need to encode and realize differentiated processing logic according to specific requirements, the problems of difficulty in repeated development and maintenance of functions are difficult to avoid, the functions can be ensured to be normal only by manual judgment and repeated verification of tests, codes of data models need to be directly modified, and the modification mode has the problems of complex operation and low efficiency.
Disclosure of Invention
The application provides a configuration method and device of a data model, a storage medium and computer equipment, which can solve the problems of complex operation and low efficiency in modifying the data model in the prior art. The technical scheme is as follows:
in a first aspect, the present application provides a method for configuring a data model, the method including:
configuring model project information of a data model through a model editing page;
displaying an expansion configuration page of the data model based on an expansion instruction of a user;
configuring extended configuration information on the extended configuration page based on a configuration instruction of a user;
after configuration is completed, acquiring extended configuration information on the extended configuration page;
and storing the model project information and the extension configuration information into a database.
In a second aspect, the present application provides an apparatus for configuring a data model, the apparatus comprising:
the editing unit is used for configuring model project information of the data model through the model editing page;
the triggering unit is used for displaying an expansion configuration page of the data model based on an expansion instruction of a user;
the extension unit is used for configuring extension configuration information on the extension configuration page based on a configuration instruction of a user;
the acquisition unit is used for acquiring extended configuration information on the extended configuration page after configuration is completed;
and the storage unit is used for storing the model item information and the extension configuration information into a database.
In a third aspect, the present application provides a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to carry out the above-mentioned method steps.
In a fourth aspect, the present application provides a computer device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
when application development is carried out based on the data model, dynamic expansion of service capability is carried out on the data model based on the graphic interface, the data model does not need to be modified in a code modification mode, time of a function coding link and test time of codes are saved, the defect of data model capability caused by personal programming capability difference in function coding is avoided, and the use reliability of the data model is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method for configuring a data model provided herein;
FIG. 2 is a schematic diagram of a model editing page provided herein;
FIG. 3 is a schematic diagram of an extended configuration page provided herein;
FIG. 4 is an interface schematic of configuration-completed model project information and extended configuration information provided herein;
FIG. 5 is a diagram of a centralized cache configuration interface provided by the present application;
FIG. 6 is a schematic diagram of a configuration device of a data model provided in the present application;
fig. 7 is a schematic structural diagram of a computer device provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be noted that, the configuration method of the data model provided in the present application is generally executed by a computer device, and accordingly, the configuration apparatus of the data model is generally disposed in the computer device.
When the computer equipment is hardware, the computer equipment can also be provided with display equipment and a camera, the display equipment can display various equipment capable of realizing the display function, and the camera is used for collecting video streams; for example: the display device may be a cathode ray tube (CR) display, a light-emitting diode (LED) display, an electronic ink screen, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), or the like. The user can utilize the display device on the computer device to view the displayed information such as characters, pictures, videos and the like.
The following describes in detail a configuration method of a data model provided in an embodiment of the present application with reference to fig. 1. The configuration device of the data model in the embodiment of the present application may be a computer device shown in fig. 1.
Referring to fig. 1, a flow chart of a data model configuration method is provided in an embodiment of the present application. As shown in fig. 1, the method of the embodiment of the present application may include the steps of:
and S101, configuring model project information of the data model through the model editing page.
The terminal equipment displays a model editing page through the display unit, and a user executes interactive operation through the model editing page to configure model project information. The number of the model project information in one data model is one or more, and the model project information is used for describing the data structure and the data type in the data model.
For example, referring to the interface diagram shown in fig. 2, the model editing page includes a plurality of controls and a model project table, the model project table includes a plurality of entries, each row is an entry, one entry is model project information, and the model project information includes a project title, a project name, a data type, and the like. The plurality of controls includes: the system comprises an added control, an inserted control, an upward moving control and a downward moving control, wherein the added control is used for creating a data model, the inserted control is used for inserting a new entry into a data item table, the upward moving control is used for moving the entry selected by a user upwards by one line, and the downward moving control is used for moving the entry selected by the user downwards by one line so as to adjust the position of the entry. The selected entry is displayed in a highlighted manner.
In one or more possible embodiments, before S101, the terminal device displays a model attribute configuration page based on a model creation instruction of a user; the creating instruction is triggered by a user through an input device, the input device can be a mouse, a keyboard or a touch screen, and the like, the user configures model attribute information on a model attribute configuration page based on the input device, and after the configuration is completed, the terminal equipment acquires the model attribute information in the model attribute configuration page; wherein the model attribute information includes: category, entity attribution, type ID, display name, and type name.
For example: referring to the interface diagram shown in fig. 2, the terminal device displays a model attribute configuration page based on a creation instruction of a user, where the model attribute configuration page includes a plurality of fields and a numeric value input box for each field, and the plurality of fields include: the method comprises the steps of classifying, attributing an entity, identifying a type, displaying a name and a type name, inputting values of each field in a numerical input box through a keyboard by a user, and storing model attribute information set on a page through a storage control.
S202, displaying an expansion configuration page of the data model based on an expansion instruction of a user.
S203, configuring the extended configuration information on the extended configuration page based on the configuration instruction of the user.
The extension instruction is generated based on a trigger operation on a control included in the model editing page, for example: an extension button is arranged on the model editing page, when a user clicks the extension button by using a mouse, an extension instruction is generated, then an extension configuration page of the data model is displayed through the display unit, the user executes interactive operation through the extension configuration page, the terminal device generates a configuration instruction based on the interactive operation so as to configure extension configuration information of the user, and the extension configuration information is used for extending service capability of the data model, for example: and expanding the service capabilities of rules, operation, check and the like of the data model.
For example, referring to the interface diagram shown in fig. 3, the terminal device displays the extended configuration page of fig. 3 based on the extended instruction triggered on the model editing page, where the extended configuration page includes a function candidate area and an operator candidate area, and the operator candidate area is subdivided into a logical operator candidate area and a mathematical operator candidate area. The function candidate area comprises multiple types of functions, wherein the multiple types of functions are respectively as follows: the document function, the entity function, the mathematic function and the time function, and each function is divided into a plurality of specific subfunctions. The logical operator candidate area is provided with a plurality of logical operators, and the data operator candidate area is provided with a plurality of mathematical operators. The method is used for executing selection operation in each candidate area through an input device to trigger generation of a selection instruction, and combining a function and an operator selected according to the selection instruction into a final expression, wherein the expression is the expansion configuration information of the data model.
And S204, after the configuration is completed, acquiring the extended configuration information on the extended configuration page.
During configuration, traversing each numerical value input box and cell in the extended configuration page to obtain extended configuration information, for example: referring to fig. 4, fig. 4 is a diagram illustrating an extended configuration page and a model editing page after configuration is completed.
And S205, storing the model project information and the extension configuration information into a database.
The model item information and the extended configuration information of the data model are stored in a structured manner.
In one or more possible embodiments, after the data model is expanded, the data model and the application package are associated, and then deployment of the application package and the data model is performed, wherein the deployment process is as follows: acquiring an application package associated with the data model, and deploying the application package on a plurality of nodes; carrying out Hash operation on the project model information and the extended configuration information to obtain summary information; and storing the summary information in a centralized cache.
For example, referring to the interface diagram shown in fig. 6, the item model information and the extended configuration information of the data attribute are stored in the centralized cache in a key-value pair manner, different information corresponds to different keys, each row corresponds to a key-value pair, and a user can insert, delete and reload the key-value pair according to needs.
The application package is deployed on the nodes in a distributed mode, and response speed of the application package can be improved. The item model information and the extension configuration information of the data model are stored in the distributed cache in a key value pair mode, so that the speed of calling the data model by the application package can be improved.
Further, when an access request of the application package is detected, a target node is selected from the multiple nodes to respond to the access request; for example: and selecting a node closest to the visitor terminal from the plurality of nodes as a target node, reading item model information and extended configuration information in the centralized cache through the summary information, responding to the access request based on the read information, and updating the data of the data model.
According to the embodiment of the application, when application development is carried out based on the data model, dynamic expansion of service capacity is carried out on the data model based on the graphic interface, the data model does not need to be modified in a code modifying mode, time of a function coding link and test time of codes are saved, the defect of data model capacity caused by difference of personal programming capacity in function coding is avoided, and the use reliability of the data model is guaranteed.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 6, a schematic structural diagram of a configuration apparatus of a data model provided in an exemplary embodiment of the present application is shown, which is hereinafter referred to as an apparatus 6. The apparatus 6 may be implemented as all or part of a computer device in software, hardware or a combination of both. The device 6 comprises: editing section 601, triggering section 602, extension section 603, acquisition section 604, and storage section 605.
An editing unit 601 configured to configure model item information of the data model through a model editing page;
a triggering unit 602, configured to display an extension configuration page of the data model based on an extension instruction of a user;
an extension unit 603, configured to configure extension configuration information on the extension configuration page based on a configuration instruction of a user;
an obtaining unit 604, configured to obtain extended configuration information on the extended configuration page after configuration is completed;
a storage unit 605, configured to store the model item information and the extended configuration information in a database editing unit.
In one or more possible embodiments, the model edit page includes a model project table including a plurality of entries, each entry including a project title, a project name, a data type, and a plurality of controls including an add control, an insert control, an up control, and a down control.
In one or more possible embodiments, the method further comprises:
the creating unit is used for displaying a model attribute configuration page based on a model creating instruction of a user;
obtaining model attribute information in the model attribute configuration page; wherein the model attribute information includes: category, entity attribution, type ID, display name, and type name.
In one or more possible embodiments, the extended configuration information includes: an expression; the extended configuration page comprises a function candidate area and an operator candidate area; the expression is composed of a function selected by a user in the function selection area and an operator selected in the operator candidate area.
In one or more possible embodiments, the function candidate region includes: document functions, entity functions, mathematical functions, and time functions.
In one or more possible embodiments, the method further comprises:
the deployment unit is used for acquiring the application packages associated with the data models and deploying the application packages on a plurality of nodes;
carrying out Hash operation on the project model information and the extended configuration information to obtain summary information;
and storing the summary information in a centralized cache.
In one or more possible embodiments, the method further comprises:
a response unit, configured to select a target node from the multiple nodes to respond to an access request of the application package when the access request is detected;
reading item model information and extended configuration information in the centralized cache through the summary information, responding to the access request based on the read information, and updating the data model.
It should be noted that, when the apparatus 6 provided in the foregoing embodiment executes the method for configuring a data model, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the configuration apparatus of the data model provided in the above embodiments and the configuration method embodiment of the data model belong to the same concept, and details of the implementation process are referred to in the method embodiment, and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps in the embodiment shown in fig. 1, and a specific execution process may refer to a specific description of the embodiment shown in fig. 1, which is not described herein again.
The present application further provides a computer program product storing at least one instruction, which is loaded and executed by the processor to implement the configuration method of the data model according to the above embodiments.
Referring to fig. 7, a schematic structural diagram of a computer device is provided in an embodiment of the present application. As shown in fig. 7, the computer device 700 may include: at least one processor 701, at least one network interface 704, a user interface 703, memory 705, at least one communication bus 702.
Wherein a communication bus 702 is used to enable connective communication between these components.
The user interface 703 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 703 may also include a standard wired interface and a standard wireless interface.
The network interface 704 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 701 may include one or more processing cores, among other things. The processor 701 connects various parts within the overall terminal 700 using various interfaces and lines, and performs various functions of the terminal 700 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 705, as well as calling data stored in the memory 705. Optionally, the processor 701 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable gate Array (FPGA), and Programmable Logic Array (PLA). The processor 701 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 701, and may be implemented by a single chip.
The Memory 705 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 705 includes a non-transitory computer-readable medium. The memory 705 may be used to store instructions, programs, code sets, or instruction sets. The memory 705 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 705 may optionally be at least one memory device located remotely from the processor 701. As shown in fig. 7, the memory 705, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an application program.
In the computer device 700 shown in fig. 7, the user interface 703 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the processor 701 may be configured to call the application program stored in the memory 705 and specifically execute the method shown in fig. 1, and the specific process may refer to fig. 1 and is not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A method for configuring a data model, comprising:
configuring model project information of a data model through a model editing page;
displaying an expansion configuration page of the data model based on an expansion instruction of a user;
configuring extended configuration information on the extended configuration page based on a configuration instruction of a user;
after configuration is completed, acquiring extended configuration information on the extended configuration page;
and storing the model project information and the extension configuration information into a database.
2. The method of claim 1, wherein the model editing page comprises a model project table and a plurality of controls, wherein the model project table comprises a plurality of entries, each entry comprises a project title, a project name, a data type, and wherein the plurality of controls comprises an add control, an insert control, an move up control, and a move down control.
3. The method according to claim 1 or 2, wherein before the configuring the model project information of the data model through the model editing page, further comprising:
displaying a model attribute configuration page based on a model creating instruction of a user;
obtaining model attribute information in the model attribute configuration page; wherein the model attribute information includes: category, entity attribution, type ID, display name, and type name.
4. The method of claim 3, wherein the extended configuration information comprises: an expression; the extended configuration page comprises a function candidate area and an operator candidate area; the expression is composed of a function selected by a user in the function selection area and an operator selected in the operator candidate area.
5. The method of claim 4, wherein the function candidate region comprises: document functions, entity functions, mathematical functions, and time functions.
6. The method of claim 5, further comprising:
acquiring an application package associated with the data model, and deploying the application package on a plurality of nodes;
carrying out Hash operation on the project model information and the extended configuration information to obtain summary information;
and storing the summary information in a centralized cache.
7. The method of claim 5, further comprising:
when an access request of the application package is detected, selecting a target node from a plurality of nodes to respond to the access request;
reading item model information and extended configuration information in the centralized cache through the summary information, responding to the access request based on the read information, and updating the data model.
8. An apparatus for configuring a data model, comprising:
the editing unit is used for configuring model project information of the data model through the model editing page;
the triggering unit is used for displaying an expansion configuration page of the data model based on an expansion instruction of a user;
the extension unit is used for configuring extension configuration information on the extension configuration page based on a configuration instruction of a user;
the acquisition unit is used for acquiring extended configuration information on the extended configuration page after configuration is completed;
and the storage unit is used for storing the model item information and the extension configuration information into a database.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
10. A computer device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN202111670776.0A 2021-12-31 2021-12-31 Data model configuration method and device, storage medium and computer equipment Pending CN114356304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111670776.0A CN114356304A (en) 2021-12-31 2021-12-31 Data model configuration method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111670776.0A CN114356304A (en) 2021-12-31 2021-12-31 Data model configuration method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN114356304A true CN114356304A (en) 2022-04-15

Family

ID=81106120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111670776.0A Pending CN114356304A (en) 2021-12-31 2021-12-31 Data model configuration method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN114356304A (en)

Similar Documents

Publication Publication Date Title
CN111045655B (en) Page rendering method and device, rendering server and storage medium
CN102135873B (en) A kind of method and apparatus creating user interface
WO2017000898A1 (en) Software icon display method and apparatus
CN113268303A (en) Interface element configuration method and device, storage medium and electronic equipment
CN111191412A (en) Method, device, storage medium and terminal for editing formula
CN112819926A (en) Data editing method, device, equipment and storage medium
CN114356761A (en) Test case document generation method and device, storage medium and computer equipment
CN113449498A (en) Method and device for generating form, storage medium and electronic equipment
CN115617441A (en) Method and device for binding model and primitive, storage medium and computer equipment
CN114356304A (en) Data model configuration method and device, storage medium and computer equipment
CN115495362A (en) Method, device, storage medium and computer equipment for generating test code
CN114995931A (en) Display method and device of project bulletin board, storage medium and computer equipment
CN115359145A (en) Method and device for drawing process graphics primitives, storage medium and computer equipment
CN114385155A (en) vue project visualization tool generation method, device, equipment and storage medium
CN113407598A (en) Method and device for generating demand document, storage medium and electronic equipment
CN115248891A (en) Page display method and device, electronic equipment and storage medium
CN113407078A (en) Method and device for editing character icon, storage medium and terminal
CN111581932A (en) Data-driven big data analysis method, system, device, storage medium and terminal
CN113763497B (en) Link relation management method, device, computer equipment and storage medium
CN114816379A (en) Programming method and device of computer vision algorithm, storage medium and computer equipment
CN115730096A (en) Primitive customization method and device, storage medium and computer equipment
CN116992095A (en) Query method and device for data model, storage medium and terminal equipment
CN116149653A (en) Method and device for constructing list page, storage medium and computer equipment
KR100974915B1 (en) Method for processing hierarchy graphic resources
CN112749168B (en) Method, device, equipment and storage medium for generating model tree structure

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