CN112612540B - Data model configuration method, device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN112612540B
CN112612540B CN202011511945.1A CN202011511945A CN112612540B CN 112612540 B CN112612540 B CN 112612540B CN 202011511945 A CN202011511945 A CN 202011511945A CN 112612540 B CN112612540 B CN 112612540B
Authority
CN
China
Prior art keywords
data
component
model
data model
interface
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.)
Active
Application number
CN202011511945.1A
Other languages
Chinese (zh)
Other versions
CN112612540A (en
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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011511945.1A priority Critical patent/CN112612540B/en
Publication of CN112612540A publication Critical patent/CN112612540A/en
Application granted granted Critical
Publication of CN112612540B publication Critical patent/CN112612540B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

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

Abstract

The disclosure relates to a data model configuration method, a data model configuration device, electronic equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: associating the configuration file of the data container with the data of the newly added component; when the data container is operated, converting the data of the components associated with the configuration file to obtain a data model of the components, wherein the associated components at least comprise newly added components; loading the data model into a data container; the data model of the component comprises data of the component and a model calling interface, the model calling interface is used for calling other data models in the data container, and the data of other components are called through the model calling interface.

Description

Data model configuration method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a data model configuration method, a device, an electronic device and a storage medium.
Background
Pages commonly used are composed of a plurality of components, and with the development of computer technology, the functions of the pages are more and more abundant, and the components are more and more contained. When updating the functionality of a page, it may be necessary to add new components in the page.
In the related art, data of multiple components in multiple pages of an application are generally stored in one data container, and data sharing relationships between different components are configured to realize data sharing between different components. However, if the data of a new component is to be added to the data container and the data needs to be data-shared with other components in the page, all the data in the data container needs to be reconfigured, resulting in a lower development efficiency of the application.
Disclosure of Invention
The disclosure provides a data model configuration method, a data model configuration device, electronic equipment and a storage medium, and application development efficiency is improved.
According to an aspect of the embodiments of the present disclosure, there is provided a data model configuration method including:
associating the configuration file of the data container with the data of the newly added component;
when the data container is operated, converting the data of the components associated with the configuration file to obtain a data model of the components, wherein the associated components at least comprise the newly added components;
loading the data model into the data container;
the data model of the component comprises data of the component and a model calling interface, wherein the model calling interface is used for calling other data models in the data container.
In some embodiments, the data model further comprises a subscription component identification indicating a subscription component that invoked the data model;
the method further comprises the steps of:
and when the data container is operated, responding to the change of the data in the data model, and sending a data update message to a subscription component corresponding to the subscription component identification in the data model, wherein the data update message indicates the subscription component to recall the data model.
In some embodiments, the data model includes a scheduler having the subscription component identification stored therein;
the sending, in response to a change in data in the data model, a data update message to a subscription component corresponding to a subscription component identifier in the data model, including:
and responding to the change of the data in the data model, and sending the data update message to a subscription component in the data model by identifying the corresponding subscription component based on a scheduler in the data model.
In some embodiments, the data model includes a data update interface and a data processing interface, the method further comprising:
receiving a data update request through a data processing interface in the data model, wherein the data update request carries update data of the data model;
Calling the data updating interface through the data processing interface;
and updating the data in the data model based on the updating data through the data updating interface.
In some embodiments, the data model further comprises a data storage interface for storing data in the data model;
the updating, by the data updating interface, the data in the data model based on the update data includes:
and updating the data in the data storage interface based on the update data through the data update interface.
In some embodiments, the loading the data model into the data container comprises:
the data model is stored in the data container in correspondence with the component identification of the corresponding component.
In some embodiments, the method further comprises:
receiving a model call message sent by any component through an index interface of the data container, wherein the model call message comprises a component identifier corresponding to a data model requested to be called by the component;
querying the data model corresponding to the component identifier in the data container;
And sending the queried data model to the component through the index interface.
In some embodiments, the data model is a data model of the component, the method further comprising:
calling a model calling interface in the data model through the component;
and calling other data models indicated by the model calling interface through the model calling interface.
In some embodiments, the configuration file is stored in a designated directory, and the associating the configuration file of the data container with the data of the newly added component includes:
storing a new component file named by the component identifier of the new component under the appointed directory, wherein the new component file comprises the data of the new component;
and adding the component identification of the newly added component in the configuration file.
In some embodiments, the method further comprises:
and when the target application is started, running the data container of the target application.
According to still another aspect of the embodiments of the present disclosure, there is provided a data model configuration apparatus including:
an association unit configured to perform association of the configuration file of the data container with the data of the newly added component;
The conversion unit is configured to convert the data of the components associated with the configuration file when the data container is operated, so as to obtain a data model of the components, wherein the associated components at least comprise the newly added components;
a loading unit configured to perform loading of the data model into the data container;
the data model of the component comprises data of the component and a model calling interface, wherein the model calling interface is used for calling other data models in the data container.
In some embodiments, the data model further comprises a subscription component identification indicating a subscription component that invoked the data model;
the apparatus further comprises:
and the sending unit is configured to send a data update message to a subscription component corresponding to the subscription component identification in the data model in response to the change of the data in the data model when the data container is operated, wherein the data update message indicates the subscription component to recall the data model.
In some embodiments, the data model includes a scheduler having the subscription component identification stored therein;
The sending unit is configured to perform sending the data update message to a subscription component in the data model, based on a scheduler in the data model, corresponding to the subscription component identification in the data model in response to a change of the data in the data model.
In some embodiments, the data model includes a data update interface and a data processing interface, the apparatus further comprising:
a first receiving unit configured to perform receiving a data update request through a data processing interface in the data model, the data update request carrying update data of the data model;
a calling unit configured to execute calling the data update interface through the data processing interface;
and the updating unit is configured to update the data in the data model based on the updating data through the data updating interface.
In some embodiments, the data model further comprises a data storage interface for storing data in the data model;
the updating unit is configured to update data in the data storage interface based on the update data through the data updating interface.
In some embodiments, the loading unit is configured to perform storing the data model in the data container in correspondence with the component identification of the corresponding component.
In some embodiments, the apparatus further comprises:
the receiving unit is configured to execute a model call message sent by any component through an index interface of the data container, wherein the model call message comprises a component identifier corresponding to the data model requested to be called by the component;
a query unit configured to execute in the data container, query the data model corresponding to the component identifier;
and a transmitting unit configured to execute the data model which is queried to the component through the index interface.
In some embodiments, the data model is a data model of the component, the apparatus further comprising:
a calling unit configured to execute a model calling interface in the data model by the component;
the calling unit is configured to execute the other data models indicated by the model calling interface through the model calling interface.
In some embodiments, the configuration file is stored under a specified directory, and the association unit is configured to execute storing a new component file named with a component identifier of the new component under the specified directory, where the new component file includes data of the new component; and adding the component identification of the newly added component in the configuration file.
In some embodiments, the apparatus further comprises:
and an execution unit configured to execute the data container that runs the target application when the target application is started.
According to still another aspect of the embodiments of the present disclosure, there is provided an electronic device including:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the data model configuration method of the above aspect.
According to yet another aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the data model configuration method of the above aspect.
According to yet another aspect of embodiments of the present disclosure, there is provided a computer program product, which when executed by a processor of an electronic device, enables the electronic device to perform the data model configuration method of the above aspect.
According to the data model configuration method, the device, the electronic equipment and the storage medium, when the data of the newly-added component is added into the data container, the data model of the newly-added component can be generated in the data container only by associating the configuration file of the data container with the data of the newly-added component, and the data model comprises the model calling interface for calling other data models in the data container, so that the data of other components can be called through the model calling interface.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of data model configuration according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of data model configuration according to an exemplary embodiment.
FIG. 3 is a schematic diagram of a reaction framework, shown according to an example embodiment.
FIG. 4 is a flowchart illustrating a component invocation data model, according to an example embodiment.
Fig. 5 is a block diagram illustrating a data model configuration apparatus according to an example embodiment.
Fig. 6 is a block diagram illustrating a data model configuration apparatus according to an example embodiment.
Fig. 7 is a block diagram of a terminal according to an exemplary embodiment.
Fig. 8 is a block diagram of a server, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description of the present disclosure and the claims and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terms "at least one," "a plurality," "each," "any" as used herein, at least one includes one, two or more, a plurality includes two or more, and each refers to each of a corresponding plurality, any of which refers to any of the plurality. For example, the plurality of data models includes 3 data models, and each refers to each of the 3 data models, and any one refers to any one of the 3 data models, which may be the first, the second, or the third.
The user information (including but not limited to user equipment information, user personal information, etc.) related to the present disclosure is information authorized by the user or sufficiently authorized by each party.
The data model configuration method provided by the embodiment of the disclosure can be applied to computer equipment. In some embodiments, the computer device is a terminal, for example, the terminal is a mobile phone, a tablet computer, a computer, or other types of terminals. In some embodiments, the computer device is a server, for example, the server is a server, or a server cluster composed of several servers, or a cloud computing service center.
The following embodiments are a brief description of the principles of the present disclosure, and fig. 1 is a flowchart illustrating a data model configuration method according to an exemplary embodiment, and referring to fig. 1, the method is applied to a computer device, and includes the following steps:
101. the computer device associates the configuration file of the data container with the data of the newly added component.
The data container is used for storing a data model of the component, the data model comprises data of the component, and the configuration file of the data container is used for storing a component identifier of the component associated with the data container. By associating the configuration file of the data container with the data of the newly added component, the data model of the newly added component can be generated in the data container for the data of the newly added component when the data container is operated subsequently.
102. And when the computer equipment runs the data container, converting the data of the components associated with the configuration file to obtain a data model of the components.
Wherein the associated components include at least the newly added component. The data model of the component comprises data of the component and a model calling interface, and the model calling interface is used for calling other data models in the data container.
The data of the related components are converted into the data models of the components by running the data container, and the obtained data models not only comprise the data of the components, but also comprise model calling interfaces for calling other data models, so that the data models can be called by subsequent components, and the data and the model calling interfaces in the data models are obtained.
103. The computer device loads the data model into a data container.
The computer device loads the data model into a data container for subsequent components to invoke the corresponding data model from the data container.
According to the method provided by the embodiment of the disclosure, when the data of the newly added component is added in the data container, all the data in the data container are not required to be reconfigured, only the configuration file of the data container is required to be associated with the data of the newly added component, the data model of the newly added component can be generated in the data container, and the data model comprises the model calling interfaces for calling other data models in the data container, so that the data of other components can be called through the model calling interfaces.
In some embodiments, the data model further includes a subscription component identification indicating a subscription component that invoked the data model;
the method further comprises the steps of:
when the data container is operated, responding to the change of data in the data model, sending a data update message to a subscription component corresponding to the subscription component identification in the data model, wherein the data update message indicates the subscription component to recall the data model.
In some embodiments, the data model includes a scheduler having a subscription component identification stored therein;
responsive to a change in data in the data model, sending a data update message to a subscription component in the data model that identifies the corresponding subscription component, comprising:
responsive to a change in data in the data model, a data update message is sent to a subscription component in the data model identifying a corresponding subscription component based on a scheduler in the data model.
In some embodiments, the data model includes a data update interface and a data processing interface, the method further comprising:
receiving a data update request through a data processing interface in the data model, wherein the data update request carries update data of the data model;
calling a data updating interface through a data processing interface;
And updating the data in the data model based on the update data through the data update interface.
In some embodiments, the data model further comprises a data storage interface for storing data in the data model;
updating, by the data update interface, data in the data model based on the update data, including:
and updating the data in the data storage interface based on the updated data through the data updating interface.
In some embodiments, loading the data model into the data container includes:
the data model is stored in a data container in correspondence with the component identification of the corresponding component.
In some embodiments, the method further comprises:
receiving a model call message sent by any component through an index interface of a data container, wherein the model call message comprises a component identifier corresponding to a data model requested to be called by the component;
in the data container, the query component identifies the corresponding data model;
the queried data model is sent to the component via an index interface.
In some embodiments, the data model is a data model of the component, the method further comprising:
calling a model calling interface in the data model through the component;
And calling other data models indicated by the model calling interface through the model calling interface.
In some embodiments, the configuration file is stored under a specified directory, and associating the configuration file of the data container with the data of the newly added component includes:
storing a new component file named by a component identifier of the new component under a specified directory, wherein the new component file comprises data of the new component;
and adding the component identification of the newly added component in the configuration file.
In some embodiments, the method further comprises:
and when the target application is started, running a data container of the target application.
FIG. 2 is a flowchart illustrating a method of data model configuration, see FIG. 2, for use in a computer device, according to an exemplary embodiment, comprising the steps of:
201. the computer device stores the new component file named with the component identifier of the new component under the specified directory.
In the embodiment of the disclosure, the page of the application is generally composed of a plurality of components, each component has corresponding data, and the presentation of the page can be realized by running the data of the components included in the page. When a new component is required to be added in the page, a data model can be generated for the associated component by associating the newly added component file of the newly added component with the configuration file of the data container, and then the associated component can be used for calling the data model in the data container by the subsequent component when the data container runs, so that the page is displayed.
The newly added component is any component, for example, the newly added component is a component providing a search function, or a component providing a sliding operation, etc. The component identifier of the newly added component is a unique identifier for indicating the newly added component, and in the embodiment of the present disclosure, the component identifiers of different components are different. The new component file is a storage form of data, and includes data of the new component. In some embodiments, the added component file is stored in script form.
The component files used for storing components under the specified directory are, in some embodiments, directories corresponding to pages to which the added component belongs. That is, under the specified directory, not only the newly added component file of the newly added component but also component files of other components in the page to which the newly added component belongs are stored. In some embodiments, the specified directory is a directory corresponding to a plurality of pages, where the plurality of pages includes a page to which the new component belongs. Under the specified directory, not only component files of other components in the page to which the new component belongs, but also component files of components in other pages may be stored.
The new component file is named by the component identification of the new component and is stored under the designated directory, so that the new component file can be associated with the data container later, and the data container can generate a data model for the new component based on the new component file.
202. The computer device adds the component identification of the newly added component in the configuration file of the data container.
Because the newly added component file is named by the component identifier of the newly added component under the specified directory, the configuration file of the data container is associated with the newly added component file by adding the component identifier of the newly added component in the configuration file of the data container, so that the newly added component file can be operated through the configuration file when the data container is operated later, and a data model of the newly added component is generated. For example, if the data container is a Store (a data container), the component identifier of the newly added component is added to the configuration file of the Store.
In some embodiments, the data container is a global data container of the application or a local data container of the application. For example, for an application, the data models corresponding to all components of the application are stored in a data container, i.e., the data container is a global data container; or the application comprises a plurality of pages, each page corresponds to one data container, the data model corresponding to the components in each page is stored in the corresponding data container, and the data container is a local data container.
In some embodiments, the configuration file of the data container also includes component identifications of other components.
The other component files are named by the component identifiers of the other components, and are also stored under the appointed directory, and the other component files comprise the data of the other components. And generating a data model of the plurality of components in the data container through the component identification in the configuration file of the data container and the subsequent component files of the plurality of components under the specified directory.
In some embodiments, the configuration file is stored under the specified directory. For example, a data container corresponds to a page, the designated directory is a directory corresponding to the page, under the designated directory, component files of components in the page and configuration files of the data container are stored, and the configuration files comprise component identifiers corresponding to a plurality of component files under the designated directory, so that data association between the configuration files and the components in the page is realized.
It should be noted that, in the embodiment of the present disclosure, the component is associated with the configuration file by adding the component identifier of the newly added component to the configuration file, and in another embodiment, the configuration file of the data container can be associated with the data of the newly added component in other manners without executing steps 201 to 202.
203. And when the computer equipment runs the data container, converting the data of the components associated with the configuration file to obtain a data model of the components.
Wherein the components associated with the configuration file at least comprise newly added components. In some embodiments, the components to which the configuration file has been associated also include other components. The data model of the component comprises data of the component and a model calling interface, and the model calling interface is used for calling other data models in the data container.
When the data container is operated, the data of the related components are determined through the configuration file, the data of the related components are converted, the data model of the components is generated, the container aggregation function of the data container is realized, the data model comprises a model calling interface for calling other data models, the data of the other data models can be called through the model calling interface subsequently, and the data sharing among the data models of the components is realized.
In some embodiments, the data model includes a data update interface, a data processing interface, and a data storage interface, where the data storage interface stores data in the data model, the data update interface is used to update the data in the data storage interface, and the data processing interface is used to process the acquired asynchronous request.
In one possible implementation of the above embodiment, when the data processing interface is running, a model call interface is generated, through which other data models can be called.
In some embodiments, the model calling interface includes an interface for calling a data update interface of the other data model, and then any data model can call the data update interface of the other data model by calling the interface of the data update interface of the other data model, and update the data in the data storage interface of the other data model by the data update interface of the other data model.
In some embodiments, this step 203 comprises: and in response to the starting of the application, operating the data container, and converting the data of the components associated with the configuration file to obtain a data model of the components.
In the embodiment of the present disclosure, the new component is a component in a page of the application, and when the application is started, a data model of the new component is obtained by running a data container, so that the page of the application is displayed by the data model of the new component.
In some embodiments, this step 203 comprises: when the data container is operated, converting the data of the components related to the configuration file through a parser to obtain a data model of the components. Wherein the parser is to convert data of the component into a data model. In some embodiments, the parser is provided by a React (a script library that builds user interfaces) framework, which is a development hierarchy.
In some embodiments, the data container is a data container corresponding to the target application, and then the method further includes, before step 203: and when the target application is started, running a data container of the target application. When the target application is started, a data container of the target application is run, so that a data model of the component is generated through the data container.
Additionally, in some embodiments, this step 203 includes: and when the data container is operated, carrying out boundary check on the data of the components related to the configuration file, and converting the data of the components related to the configuration file to obtain a data model of the components in response to the passing of the boundary check. Wherein the boundary check is used to check the data format of the component. And the accuracy of the data of the component is ensured by carrying out boundary inspection on the data of the component, so that the accuracy of the generated data model is ensured.
In one possible implementation of the above embodiment, the data of the component corresponds to a reference format, the boundary check passing of the data of the component is determined in response to the data of the component satisfying the reference format, and the boundary check failing of the data of the component is determined in response to the data of the component not satisfying the reference format.
204. The computer device stores the data model in a data container in correspondence with the component identifications of the corresponding components.
By storing the data model in the data container in correspondence with the component identity of the corresponding component, the corresponding data model can be subsequently queried by means of the component identity.
In some embodiments, the data container includes a mounting container therein, and the data model is stored in the mounting container. For example, after generating a plurality of data models, a mounting container is generated for each data model, and the mounting container is stored in the data container as a carrier of the data model. By generating a mounting container for each data model, each data model can establish a mounting relation between the mounting container and a corresponding component so that a subsequent component can interact with the data container to acquire the data model of the component.
It should be noted that, in the embodiment of the present disclosure, the data model and the component identifier are stored in the data model in a corresponding manner, and in another embodiment, the data model may be loaded into the data container in other manners without executing the step 204.
In some embodiments, the data model further includes a subscription component identification, after step 204, the method further includes: when the data container is operated, a data update message is sent to a subscription component in the data model, corresponding to the subscription component identification, in response to the change of the data in the data model.
Wherein the data update message instructs the subscription component to recall the data model, and the subscription component identifies the subscription component that instructs to recall the data model. For example, for any data model, the components subscribed to the data model include component 1, component 2, and component 3, and then the data model includes the component identifications of component 1, component 2, and component 3.
Because the subscription component has called the data model, when the data of the data model is changed, a data update message is sent to the subscription component, so that the subscription component can call the data model again after receiving the data update message, and the changed data model can show the subscription component again.
In one possible implementation of the above embodiment, where the data model includes a scheduler, the process of sending the data update message to the subscription component includes: responsive to a change in data in the data model, a data update message is sent to a subscription component in the data model identifying a corresponding subscription component based on a scheduler in the data model. Wherein the scheduler has stored therein a subscription component identity. For example, subscription component identities of other subscription components subscribing to the data model are also included in the scheduler.
The scheduler in the data model can monitor the data change condition in the data model, and when the data in the data model is changed, a data update message is sent to the subscription component, so that the data model called by the subscription component can be updated in time.
After the data model of the component is generated in the data container, during operation, the data in the data model may be updated when certain operations are detected. In some embodiments, where the data model includes a data update interface and a data processing interface, after step 204, the method further includes: receiving a data updating request through a data processing interface in the data model, calling the data updating interface through the data processing interface, and updating the data in the data model based on the updating data through the called data updating interface.
The data update request carries update data of the data model, for example, a value stored in the data model is 1, the update data indicates that the value is 2, and after the data in the data model is updated, the value in the data model is 2.
In one possible implementation of the above embodiment, the data model further includes a data storage interface, where the data storage interface is configured to store data in the data model; a process of updating data in the data model comprising: and updating the data in the data storage interface based on the updated data through the data updating interface. And the data in the data storage interface is updated through the data updating interface, so that the accuracy of data modification is ensured.
For example, the data model includes State (data storage interface), reducer (data update interface, or data update function), and Effects (data processing interface), and after the Effects receive a data update request, reducer is called to update data stored in State based on update data in the data update request.
In some embodiments, after step 204, the method further comprises: and receiving a model call message sent by any component through an index interface of the data container, wherein in the data container, the query component identifies the corresponding data model, and the queried data model is sent to the component through the index interface.
The index interface is used for inquiring the data model corresponding to the component identification. The model call message is a message that a component requests to acquire a data model from a data container, and comprises a component identifier corresponding to the data model which the component requests to call. In some embodiments, the component is identified as a component identification of the component, or the component is identified as other components of other components. For example, the component can call the data model of the component and can call the data model of other components, and then the component stores the component identifier of the component and other component identifiers, and sends a model call message to the index interface of the data container, so that the data container returns the data model corresponding to the component identifier in the model call message.
In one possible implementation of the foregoing embodiment, the data model is a data model of the component, and after the component receives the data model, the method further includes: and calling a model calling interface in the data model through the component, and calling other data models indicated by the model calling interface through the model calling interface.
When the data model returned by the data container is the data model of the component, the component is indicated to obtain the data model, the data model is operated, a model calling interface in the data model can be called through the component, and other data models indicated by the model calling interface are called through the model calling interface.
The method provided by the embodiment of the disclosure can be applied to a reaction frame, and a user interface can be constructed based on the reaction frame. For example, the reacti development framework is a reactihooks (a new component architecture) framework. In the development system of the compact framework, the pages of the application are composed of components, and data among the components is transferred in a unidirectional form. According to the data model configuration method provided by the embodiment of the disclosure, the data model is taken as a basic unit, the data model of the component is assembled in the data container, so that the component can directly call the data model of the data container, and when the page of the application is added with the component, the component file of the added component is associated with the configuration file of the data container, so that the updating of the component can be realized, all data in the data container are not required to be reconfigured, the application flexibility is improved, and the maintainability of codes is improved. By the data model configuration method provided by the embodiment of the disclosure, a data flow framework is configured for the compact framework, so that the data of the components in the application can be managed conveniently, the maintenance cost is reduced, and the performance of the application is improved.
According to the method provided by the embodiment of the disclosure, when the data of the newly added component is added in the data container, all the data in the data container are not required to be reconfigured, only the configuration file of the data container is required to be associated with the data of the newly added component, the data model of the newly added component can be generated in the data container, and the data model comprises the model calling interfaces for calling other data models in the data container, so that the data of other components can be called through the model calling interfaces. And the data model is taken as a basic unit, and different data models can be mutually called, so that the flexibility of application is improved.
Based on the data model configuration method provided by the above embodiment, a schematic diagram of a reaction frame is provided, and as shown in fig. 3, by using the reaction frame, page display can be realized.
For a target application, the target application includes a plurality of pages, each page including a plurality of components, a data container is configured for each page, and a specified directory is created for each page. And for any page, naming the component files of the components in the page by the identification of the components, storing the component files under a specified directory corresponding to the page, storing the configuration file of the data container under the specified directory, and adding the component identifications corresponding to a plurality of component files under the specified directory in the configuration file to realize the association between the components and the data container.
When the target application is started, the data container is operated, the accuracy of the component files is ensured by carrying out boundary inspection on the component files, after the boundary inspection of the component files is passed, the component files related to the configuration files of the data container are converted into data models through container aggregation action of a parser and the data container, a mounting container is created for each data model in the data container, and the data models are stored in the mounting container. And storing in the scheduler of each data model the subscription component identity of the data model.
And mounting the data model in the data container on the component in the page display through the mounting container in the data container, so that the component can send a model calling message to the data container through the mounting container, and the data container can determine the data model corresponding to the component identifier by carrying out model indexing on the component identifier carried in the model calling message and send the data model to the component, wherein the process of calling the data model by the component is shown in fig. 4. After the component receives the data model returned by the data container, a data storage interface, a data update interface and a data processing interface which are included in the data model can be obtained, and the page is rendered based on the data stored in the data storage interface so as to display the rendered page.
Fig. 5 is a block diagram illustrating a data model configuration apparatus according to an example embodiment. Referring to fig. 5, the apparatus includes:
an association unit 501 configured to perform association of a configuration file of a data container with data of the newly added component;
the conversion unit 502 is configured to convert data of the components associated with the configuration file to obtain a data model of the components when executing the operation data container, wherein the associated components at least comprise newly added components;
a loading unit 503 configured to perform loading of the data model into the data container;
the data model of the component comprises data of the component and a model calling interface, and the model calling interface is used for calling other data models in the data container.
According to the data model configuration device provided by the embodiment of the disclosure, when the data of the newly-added component is added in the data container, the data model of the newly-added component can be generated in the data container only by associating the configuration file of the data container with the data of the newly-added component, and the data model comprises the model calling interfaces for calling other data models in the data container, so that the data of the other components can be called through the model calling interfaces.
In some embodiments, the data model further includes a subscription component identification indicating a subscription component that invoked the data model;
as shown in fig. 6, the apparatus further includes:
a sending unit 504 configured to send, when the data container is running, a data update message to a subscription component corresponding to the subscription component identifier in the data model in response to a change of data in the data model, the data update message instructing the subscription component to recall the data model.
In some embodiments, the data model includes a scheduler having a subscription component identification stored therein;
a sending unit 504 configured to perform sending, in response to a change of data in the data model, a data update message to a subscription component in the data model identifying a corresponding subscription component based on a scheduler in the data model.
In some embodiments, the data model includes a data update interface and a data processing interface, as shown in FIG. 6, the apparatus further comprising:
a receiving unit 505 configured to perform receiving a data update request through a data processing interface in the data model, the data update request carrying update data of the data model;
a calling unit 506 configured to execute calling the data update interface through the data processing interface;
The updating unit 507 is configured to perform updating of the data in the data model based on the update data through the data updating interface.
In some embodiments, the data model further comprises a data storage interface for storing data in the data model;
the updating unit 507 is configured to perform updating of the data in the data storage interface based on the update data through the data updating interface.
In some embodiments, the loading unit 503 is configured to perform storing the data model in the data container in correspondence with the component identification of the corresponding component.
In some embodiments, as shown in fig. 6, the apparatus further comprises:
a receiving unit 505, configured to execute receiving, through an index interface of the data container, a model call message sent by any component, where the model call message includes a component identifier corresponding to a data model that the component requests to call;
a query unit 508 configured to execute in a data container, the query component identifying a corresponding data model;
a sending unit 504 configured to execute the data model that is sent the query to the component through the index interface.
In some embodiments, the data model is a data model of the component, as shown in fig. 6, the apparatus further comprising:
A calling unit 506 configured to execute a model calling interface in the data model through the component;
and a calling unit 506 configured to execute other data models indicated by the model calling interface.
In some embodiments, the configuration file is stored under a specified directory, and the association unit 501 is configured to perform storing a new component file named with a component identifier of the new component under the specified directory, where the new component file includes data of the new component; and adding the component identification of the newly added component in the configuration file.
In some embodiments, as shown in fig. 6, the apparatus further comprises:
the running unit 509 is configured to execute a data container of the target application when the target application is started.
The specific manner in which the individual units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
In an exemplary embodiment, there is also provided an electronic apparatus, characterized in that the electronic apparatus includes:
one or more processors;
volatile or non-volatile memory for storing one or more processor-executable instructions;
Wherein the one or more processors are configured to perform the steps performed by the terminal or server in the data model configuration method described above.
In some embodiments, the electronic device is provided as a terminal. Fig. 7 is a block diagram illustrating a structure of a terminal 700 according to an exemplary embodiment. The terminal 700 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 700 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc.
The terminal 700 includes: a processor 701 and a memory 702.
Processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 701 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit, image processor) for taking care of rendering and drawing of content that the display screen is required to display. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 702 is used to store at least one program code for execution by processor 701 to implement the data model configuration method provided by the method embodiments in the present disclosure.
In some embodiments, the terminal 700 may further optionally include: a peripheral interface 703 and at least one peripheral. The processor 701, the memory 702, and the peripheral interface 703 may be connected by a bus or signal lines. The individual peripheral devices may be connected to the peripheral device interface 703 via buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 704, a display 705, a camera assembly 706, audio circuitry 707, a positioning assembly 708, and a power supply 709.
A peripheral interface 703 may be used to connect I/O (Input/Output) related at least one peripheral device to the processor 701 and memory 702. In some embodiments, the processor 701, memory 702, and peripheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 701, the memory 702, and the peripheral interface 703 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 704 is configured to receive and transmit RF (Radio Frequency) signals, also referred to as electromagnetic signals. The radio frequency circuitry 704 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 704 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 704 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 704 may also include NFC (Near Field Communication ) related circuitry, which is not limited by the present disclosure.
The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 705 is a touch display, the display 705 also has the ability to collect touch signals at or above the surface of the display 705. The touch signal may be input to the processor 701 as a control signal for processing. At this time, the display 705 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 705 may be one and disposed on the front panel of the terminal 700; in other embodiments, the display 705 may be at least two, respectively disposed on different surfaces of the terminal 700 or in a folded design; in other embodiments, the display 705 may be a flexible display disposed on a curved surface or a folded surface of the terminal 700. Even more, the display 705 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The display 705 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 706 is used to capture images or video. Optionally, the camera assembly 706 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 706 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 707 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 701 for processing, or inputting the electric signals to the radio frequency circuit 704 for voice communication. For the purpose of stereo acquisition or noise reduction, a plurality of microphones may be respectively disposed at different portions of the terminal 700. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 707 may also include a headphone jack.
The location component 708 is operative to locate the current geographic location of the terminal 700 for navigation or LBS (Location Based Service, location-based services). The positioning component 708 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, or the Galileo system of Russia.
A power supply 709 is used to power the various components in the terminal 700. The power supply 709 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 709 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 700 further includes one or more sensors 710. The one or more sensors 710 include, but are not limited to: acceleration sensor 711, gyroscope sensor 712, pressure sensor 713, fingerprint sensor 714, optical sensor 715, and proximity sensor 716.
The acceleration sensor 711 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 700. For example, the acceleration sensor 711 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 701 may control the display screen 705 to display a user interface in a landscape view or a portrait view based on the gravitational acceleration signal acquired by the acceleration sensor 711. The acceleration sensor 711 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 712 may detect a body direction and a rotation angle of the terminal 700, and the gyro sensor 712 may collect a 3D motion of the user to the terminal 700 in cooperation with the acceleration sensor 711. The processor 701 may implement the following functions based on the data collected by the gyro sensor 712: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 713 may be disposed at a side frame of the terminal 700 and/or at a lower layer of the display screen 705. When the pressure sensor 713 is disposed at a side frame of the terminal 700, a grip signal of the user to the terminal 700 may be detected, and the processor 701 performs left-right hand recognition or quick operation according to the grip signal collected by the pressure sensor 713. When the pressure sensor 713 is disposed at the lower layer of the display screen 705, the processor 701 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 705. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 714 is used to collect a fingerprint of the user, and the processor 701 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 714, or the fingerprint sensor 714 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 701 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 714 may be provided on the front, back, or side of the terminal 700. When a physical key or vendor Logo is provided on the terminal 700, the fingerprint sensor 714 may be integrated with the physical key or vendor Logo.
The optical sensor 715 is used to collect the ambient light intensity. In one embodiment, the processor 701 may control the display brightness of the display screen 705 based on the ambient light intensity collected by the optical sensor 715. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 705 is turned up; when the ambient light intensity is low, the display brightness of the display screen 705 is turned down. In another embodiment, the processor 701 may also dynamically adjust the shooting parameters of the camera assembly 706 based on the ambient light intensity collected by the optical sensor 715.
A proximity sensor 716, also referred to as a distance sensor, is provided on the front panel of the terminal 700. The proximity sensor 716 is used to collect the distance between the user and the front of the terminal 700. In one embodiment, when the proximity sensor 716 detects that the distance between the user and the front face of the terminal 700 gradually decreases, the processor 701 controls the display 705 to switch from the bright screen state to the off screen state; when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually increases, the processor 701 controls the display screen 705 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 7 is not limiting of the terminal 700 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
In some embodiments, the electronic device is provided as a server. Fig. 8 is a schematic diagram of a server according to an exemplary embodiment, where the server 800 may have a relatively large difference between configurations or performances, and may include one or more processors (Central Processing Units, CPU) 801 and one or more memories 802, where at least one program code is stored in the memories 802 and loaded and executed by the processors 801 to implement the methods provided in the above-described method embodiments. Of course, the server may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, which when executed by a processor of an electronic device, enables the electronic device to perform the steps performed by the terminal or server in the above described data model configuration method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which, when executed by a processor of an electronic device, enables the electronic device to perform the steps performed by the terminal or server in the data model configuration method described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (23)

1. A method of data model configuration, the method comprising:
associating the configuration file of the data container with the data of the newly added component;
When the data container is operated, converting the data of the components associated with the configuration file to obtain a data model of the components, wherein the associated components at least comprise the newly added components;
loading the data model into the data container;
the data model of the component comprises data of the component and a model calling interface, wherein the model calling interface is used for calling other data models in the data container.
2. The method of claim 1, wherein the data model further comprises a subscription component identification, the subscription component for invoking the data model comprising at least one, the subscription component identification indicating a subscription component used to invoke the data model;
the method further comprises the steps of:
and when the data container is operated, responding to the change of the data in the data model, and sending a data update message to a subscription component corresponding to the subscription component identification in the data model, wherein the data update message indicates the subscription component to recall the data model.
3. The method of claim 2, wherein the data model comprises a scheduler having the subscription component identification stored therein;
The sending, in response to a change in data in the data model, a data update message to a subscription component corresponding to a subscription component identifier in the data model, including:
and responding to the change of the data in the data model, and sending the data update message to a subscription component in the data model by identifying the corresponding subscription component based on a scheduler in the data model.
4. The method of claim 1, wherein the data model includes a data update interface and a data processing interface, the method further comprising:
receiving a data update request through a data processing interface in the data model, wherein the data update request carries update data of the data model;
calling the data updating interface through the data processing interface;
and updating the data in the data model based on the updating data through the data updating interface.
5. The method of claim 4, wherein the data model further comprises a data storage interface for storing data in the data model;
the updating, by the data updating interface, the data in the data model based on the update data includes:
And updating the data in the data storage interface based on the update data through the data update interface.
6. The method of claim 1, wherein loading the data model into the data container comprises:
the data model is stored in the data container in correspondence with the component identification of the corresponding component.
7. The method of claim 6, wherein the method further comprises:
receiving a model call message sent by any component through an index interface of the data container, wherein the model call message comprises a component identifier corresponding to a data model requested to be called by the component;
querying the data model corresponding to the component identifier in the data container;
and sending the queried data model to the component through the index interface.
8. The method of claim 7, wherein the data model is a data model of the component, the method further comprising:
calling a model calling interface in the data model through the component;
and calling other data models indicated by the model calling interface through the model calling interface.
9. The method according to any one of claims 1-8, wherein the configuration file is stored in a specified directory, and wherein associating the configuration file of the data container with the data of the newly added component comprises:
storing a new component file named by the component identifier of the new component under the appointed directory, wherein the new component file comprises the data of the new component;
and adding the component identification of the newly added component in the configuration file.
10. The method according to any one of claims 1-8, further comprising:
and when the target application is started, running the data container of the target application.
11. A data model configuration apparatus, the apparatus comprising:
an association unit configured to perform association of the configuration file of the data container with the data of the newly added component;
the conversion unit is configured to convert the data of the components associated with the configuration file when the data container is operated, so as to obtain a data model of the components, wherein the associated components at least comprise the newly added components;
a loading unit configured to perform loading of the data model into the data container;
The data model of the component comprises data of the component and a model calling interface, wherein the model calling interface is used for calling other data models in the data container.
12. The apparatus of claim 11, wherein the data model further comprises a subscription component identification, the subscription component for invoking the data model comprising at least one, the subscription component identification indicating a subscription component used to invoke the data model;
the apparatus further comprises:
and the sending unit is configured to send a data update message to a subscription component corresponding to the subscription component identification in the data model in response to the change of the data in the data model when the data container is operated, wherein the data update message indicates the subscription component to recall the data model.
13. The apparatus of claim 12, wherein the data model comprises a scheduler having the subscription component identification stored therein;
the sending unit is configured to perform sending the data update message to a subscription component in the data model, based on a scheduler in the data model, corresponding to the subscription component identification in the data model in response to a change of the data in the data model.
14. The apparatus of claim 11, wherein the data model includes a data update interface and a data processing interface, the apparatus further comprising:
a first receiving unit configured to perform receiving a data update request through a data processing interface in the data model, the data update request carrying update data of the data model;
a calling unit configured to execute calling the data update interface through the data processing interface;
and the updating unit is configured to update the data in the data model based on the updating data through the data updating interface.
15. The apparatus of claim 14, wherein the data model further comprises a data storage interface for storing data in the data model;
the updating unit is configured to update data in the data storage interface based on the update data through the data updating interface.
16. The apparatus of claim 11, wherein the loading unit is configured to perform storing the data model in the data container in correspondence with component identifications of corresponding components.
17. The apparatus of claim 16, wherein the apparatus further comprises:
the receiving unit is configured to execute a model call message sent by any component through an index interface of the data container, wherein the model call message comprises a component identifier corresponding to the data model requested to be called by the component;
a query unit configured to execute in the data container, query the data model corresponding to the component identifier;
and a transmitting unit configured to execute the data model which is queried to the component through the index interface.
18. The apparatus of claim 17, wherein the data model is a data model of the component, the apparatus further comprising:
a calling unit configured to execute a model calling interface in the data model by the component;
the calling unit is configured to execute the other data models indicated by the model calling interface through the model calling interface.
19. The apparatus according to any one of claims 11-18, wherein the configuration file is stored under a specified directory, the association unit being configured to perform storing under the specified directory a new component file named with a component identification of the new component, the new component file comprising data of the new component; and adding the component identification of the newly added component in the configuration file.
20. The apparatus according to any one of claims 11-18, wherein the apparatus further comprises:
and an execution unit configured to execute the data container that runs the target application when the target application is started.
21. An electronic device, the electronic device comprising:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the data model configuration method of any one of claims 1 to 10.
22. A non-transitory computer readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the data model configuration method of any one of claims 1 to 10.
23. A computer program product, characterized in that instructions in the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the data model configuration method of any one of claims 1 to 10.
CN202011511945.1A 2020-12-18 2020-12-18 Data model configuration method, device, electronic equipment and storage medium Active CN112612540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011511945.1A CN112612540B (en) 2020-12-18 2020-12-18 Data model configuration method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011511945.1A CN112612540B (en) 2020-12-18 2020-12-18 Data model configuration method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112612540A CN112612540A (en) 2021-04-06
CN112612540B true CN112612540B (en) 2024-04-09

Family

ID=75243604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011511945.1A Active CN112612540B (en) 2020-12-18 2020-12-18 Data model configuration method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112612540B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115129946A (en) * 2022-06-30 2022-09-30 山东有人物联网股份有限公司 Data model generation optimization method and device, electronic equipment and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9323504B1 (en) * 2014-03-19 2016-04-26 Amazon Technologies, Inc. Template-driven data access
CN108762753A (en) * 2018-04-17 2018-11-06 天津五八到家科技有限公司 Page assembly amending method and equipment
CN109274722A (en) * 2018-08-24 2019-01-25 北京北信源信息安全技术有限公司 Data sharing method, device and electronic equipment
CN110020323A (en) * 2018-07-27 2019-07-16 平安科技(深圳)有限公司 Mix page switching method, frame, computer equipment and the storage medium of application
US10489179B1 (en) * 2016-06-28 2019-11-26 Amazon Technologies, Inc. Virtual machine instance data aggregation based on work definition metadata
CN110955470A (en) * 2019-12-06 2020-04-03 深圳前海环融联易信息科技服务有限公司 Algorithm model interfacing method, apparatus, computer device and storage medium
CN111124704A (en) * 2019-11-26 2020-05-08 深圳云天励飞技术有限公司 Data processing method, processor and terminal equipment
CN111258675A (en) * 2020-01-15 2020-06-09 平安银行股份有限公司 Rendering method, device and equipment of shared front-end component and storage medium
CN111949267A (en) * 2020-08-14 2020-11-17 中国工商银行股份有限公司 UI front end generation method and device
CN112052253A (en) * 2020-08-12 2020-12-08 网宿科技股份有限公司 Data processing method, electronic device and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9323504B1 (en) * 2014-03-19 2016-04-26 Amazon Technologies, Inc. Template-driven data access
US10489179B1 (en) * 2016-06-28 2019-11-26 Amazon Technologies, Inc. Virtual machine instance data aggregation based on work definition metadata
CN108762753A (en) * 2018-04-17 2018-11-06 天津五八到家科技有限公司 Page assembly amending method and equipment
CN110020323A (en) * 2018-07-27 2019-07-16 平安科技(深圳)有限公司 Mix page switching method, frame, computer equipment and the storage medium of application
CN109274722A (en) * 2018-08-24 2019-01-25 北京北信源信息安全技术有限公司 Data sharing method, device and electronic equipment
CN111124704A (en) * 2019-11-26 2020-05-08 深圳云天励飞技术有限公司 Data processing method, processor and terminal equipment
CN110955470A (en) * 2019-12-06 2020-04-03 深圳前海环融联易信息科技服务有限公司 Algorithm model interfacing method, apparatus, computer device and storage medium
CN111258675A (en) * 2020-01-15 2020-06-09 平安银行股份有限公司 Rendering method, device and equipment of shared front-end component and storage medium
CN112052253A (en) * 2020-08-12 2020-12-08 网宿科技股份有限公司 Data processing method, electronic device and storage medium
CN111949267A (en) * 2020-08-14 2020-11-17 中国工商银行股份有限公司 UI front end generation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DataTurbo:一种插件化数据交换与集成工具;钱正平;齐德昱;;计算机应用研究(第10期) *

Also Published As

Publication number Publication date
CN112612540A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN110841285B (en) Interface element display method and device, computer equipment and storage medium
CN113204298B (en) Method and device for displaying release progress, electronic equipment and storage medium
CN112256320B (en) Version number generation method, device, terminal and storage medium
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN113190362B (en) Service calling method and device, computer equipment and storage medium
CN111949680A (en) Data processing method and device, computer equipment and storage medium
CN111858382A (en) Application program testing method, device, server, system and storage medium
CN112052354A (en) Video recommendation method, video display method and device and computer equipment
CN112612539B (en) Data model unloading method and device, electronic equipment and storage medium
CN113051015B (en) Page rendering method and device, electronic equipment and storage medium
CN113204302B (en) Virtual robot-based operation method, device, equipment and storage medium
CN110471614B (en) Method for storing data, method and device for detecting terminal
CN111881423B (en) Method, device and system for authorizing restricted function use
CN112612540B (en) Data model configuration method, device, electronic equipment and storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN111008083B (en) Page communication method and device, electronic equipment and storage medium
CN111428080B (en) Video file storage method, video file search method and video file storage device
CN111580892B (en) Method, device, terminal and storage medium for calling service components
CN112597417B (en) Page updating method and device, electronic equipment and storage medium
CN112905328B (en) Task processing method, device and computer readable storage medium
CN112995587B (en) Electronic equipment monitoring method, system, computer equipment and storage medium
CN114329292A (en) Resource information configuration method and device, electronic equipment and storage medium
CN109618018B (en) User head portrait display method, device, terminal, server and storage medium
CN113076452A (en) Application classification method, device, equipment and computer readable storage medium
CN112596810B (en) Loading prompt information display method and device, 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
GR01 Patent grant
GR01 Patent grant