CN114741071A - Application construction method and device - Google Patents

Application construction method and device Download PDF

Info

Publication number
CN114741071A
CN114741071A CN202210390571.5A CN202210390571A CN114741071A CN 114741071 A CN114741071 A CN 114741071A CN 202210390571 A CN202210390571 A CN 202210390571A CN 114741071 A CN114741071 A CN 114741071A
Authority
CN
China
Prior art keywords
target
model
code
code model
application
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
CN202210390571.5A
Other languages
Chinese (zh)
Inventor
李灿坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202210390571.5A priority Critical patent/CN114741071A/en
Publication of CN114741071A publication Critical patent/CN114741071A/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/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides an application construction method and device, and the method comprises the following steps: responding to a code model adding instruction initiated by a visual application development platform and aiming at a target application in current construction, and inquiring a target code model matched with the code model adding instruction from a code model database; the object code model comprises modular logic code written in a pure code building application scenario; adding a model identification corresponding to the target code model to a target position indicated by the code model adding instruction; the target position is positioned in an application editing window matched with the target application on the visual application development platform; adding code instructions for invoking the target code model to the logical code of the target application matching the target location to enable the target application to invoke the target code model.

Description

Application construction method and device
Technical Field
The disclosure relates to the technical field of computers, in particular to an application construction method and device.
Background
A low-code development platform (visual application development platform), which is a development platform that can quickly generate an application without coding or with a small amount of code. The method for developing the application program through visualization enables developers with different experience levels to use a dragging component and model-driven logic to create a webpage and a mobile application program through a graphical user interface.
The code Model refers to a module which is separated from a User Interface (UI) in the field of front-end development and is a data and logic combination module, and is a logic part of a Model-View Model (MVVM) architecture. In order to implement a logic part required by interaction with a user in an application program, a code model is generally implemented in a low-code scene, and a UI is provided on a building platform to create, edit and generate one or more code models.
Disclosure of Invention
The embodiment of the disclosure at least provides an application construction method and device.
In a first aspect, an embodiment of the present disclosure provides an application building method, including:
responding to a code model adding instruction initiated by a visual application development platform and aiming at a target application in current construction, and inquiring a target code model matched with the code model adding instruction from a code model database; the object code model comprises modular logic code written in a pure code building application scenario;
adding a model identification corresponding to the target code model to a target position indicated by the code model adding instruction; the target position is positioned in an application editing window matched with the target application on the visual application development platform;
adding code instructions for invoking the target code model to the logical code of the target application matching the target location to enable the target application to invoke the target code model.
In an optional embodiment, the method further comprises:
responding to an installation instruction aiming at an object code model, acquiring the object code model, and generating an adding button corresponding to the object code model; the adding button is used for triggering a code model adding instruction aiming at the target code model;
obtaining a model name and a query tag of the target code model;
storing the object code model in the code model database based on the model name and a query tag; the model name and the query tag are used to query the target code model from the code model database.
In an alternative embodiment, the adding the code instruction for calling the target code model to the logic code of the target application matching the target location to enable the target application to call the target code model includes:
under the condition that configuration parameters aiming at the target code model are obtained, generating a target code model instance matched with the configuration parameters by using the configuration parameters and the target code model;
adding code instructions for invoking the target code model instance to the logical code of the target application matching the target location to enable the target application to invoke the target code model instance.
In an optional embodiment, after obtaining the object code model, the method further comprises:
acquiring variable description information corresponding to the target code model; the variable description information comprises type information and description information of each variable in the target code model;
generating a variable description list of the target code model based on the type information and the description information;
generating a description button corresponding to the variable description list; the explanation button is used for triggering a variable showing instruction for showing the variable explanation list after being operated.
In an optional embodiment, the storing the object code model in the code model database based on the model name and the query tag includes:
under the condition that a plurality of configuration parameters aiming at the target code model are obtained, generating a target code model instance corresponding to each configuration parameter on the basis of the configuration parameters and the target code model;
for each object code model instance, storing the object code model instance in the code model database based on the model name, the query tag and the configuration parameters corresponding to the object code model instance; the model name, the query tag, and the configuration parameters are used to query the target code model instance from the code model database.
In an optional embodiment, the adding the code instruction for invoking the target code model to the logic code of the target application matching the target location to enable the target application to invoke the target code model includes:
and in the case of acquiring the configuration parameters of the target code model, adding a code instruction for calling the target code model instance matched with the configuration parameters into the logic code of the target application matched with the target position so as to enable the target application to call the target code model instance matched with the configuration parameters.
In a second aspect, an embodiment of the present disclosure further provides an application building apparatus, including:
the query module is used for responding to a code model adding instruction which is initiated by a visual application development platform and aims at the currently constructed target application, and querying a target code model matched with the code model adding instruction from a code model database; the object code model comprises modular logic code written in a pure code building application scenario;
a first adding module, configured to add a model identifier corresponding to the target code model to a target position indicated by the code model adding instruction; the target position is positioned in an application editing window matched with the target application on the visual application development platform;
and the second adding module is used for adding a code instruction for calling the target code model into the logic code of the target application matched with the target position so as to enable the target application to call the target code model.
In an alternative embodiment, the apparatus further comprises a mounting module for:
responding to an installation instruction aiming at an object code model, acquiring the object code model, and generating an adding button corresponding to the object code model; the adding button is used for triggering a code model adding instruction aiming at the target code model;
obtaining a model name and a query tag of the target code model;
storing the object code model in the code model database based on the model name and a query tag; the model name and the query tag are used to query the target code model from the code model database.
In an optional embodiment, the second adding module, when adding the code instruction for calling the target code model to the logic code of the target application matching the target location to enable the target application to call the target code model, is configured to:
under the condition that configuration parameters aiming at the target code model are obtained, generating a target code model instance matched with the configuration parameters by using the configuration parameters and the target code model;
adding code instructions for invoking the target code model instance to the logical code of the target application matching the target location to enable the target application to invoke the target code model instance.
In an optional embodiment, after obtaining the object code model, the installation module is further configured to:
acquiring variable description information corresponding to the target code model; the variable description information comprises type information and description information of each variable in the target code model;
generating a variable description list of the target code model based on the type information and the description information;
generating a description button corresponding to the variable description list; the explanation button is used for triggering a variable showing instruction for showing the variable explanation list after being operated.
In an alternative embodiment, the installation module, when storing the object code model in the code model database based on the model name and the query tag, is configured to:
under the condition that a plurality of configuration parameters aiming at the target code model are obtained, generating a target code model instance corresponding to each configuration parameter on the basis of the configuration parameters and the target code model;
for each object code model instance, storing the object code model instance in the code model database based on the model name, the query tag and the configuration parameters corresponding to the object code model instance; the model name, the query tag, and the configuration parameters are used to query the target code model instance from the code model database.
In an optional embodiment, the second adding module, when adding the code instruction for calling the target code model to the logic code of the target application matching the target location to enable the target application to call the target code model, is configured to:
and in the case of acquiring the configuration parameters of the target code model, adding a code instruction for calling the target code model instance matched with the configuration parameters into the logic code of the target application matched with the target position so as to enable the target application to call the target code model instance matched with the configuration parameters.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
The application construction method and the device provided by the embodiment of the disclosure respond to a code model adding instruction initiated by a visual application development platform and aiming at a currently constructed target application, and query a target code model matched with the code model adding instruction from a code model database; the object code model comprises modular logic code written in a pure code building application scenario; adding a model identification corresponding to the target code model to a target position indicated by the code model adding instruction; the target position is positioned in an application editing window matched with the target application on the visual application development platform; adding code instructions for invoking the target code model to the logical code of the target application matching the target location to enable the target application to invoke the target code model.
According to the method and the device for constructing the code model, the pure code is utilized to construct the modular logic code compiled in the application scene, the code model is constructed on the visual application development platform, the visual effect added by the target code model is displayed in the application editing window, and the code instruction of the target code model is added into the logic code of the target application.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
FIG. 1 is a flow chart illustrating a method for constructing an application provided by an embodiment of the present disclosure;
FIG. 2 illustrates one of the schematic diagrams of a user interface of a visualization application development platform provided by an embodiment of the present disclosure;
FIG. 3 illustrates a second schematic diagram of a user interface of a visualization application development platform provided by an embodiment of the present disclosure;
FIG. 4 illustrates a third schematic diagram of a user interface of a visualization application development platform provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an application building apparatus provided by an embodiment of the present disclosure;
fig. 6 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
In order to solve the problem that a visual application development platform is difficult to realize a code model with special logic in the prior art, the disclosure provides an application construction method and device.
To facilitate understanding of the present embodiment, first, an application building method disclosed in the embodiments of the present disclosure is described in detail, and an execution subject of the application building method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability. In some possible implementations, the application building method may be implemented by a processor calling computer readable instructions stored in a memory.
Referring to fig. 1, a flowchart of an application construction method provided in the embodiment of the present disclosure is shown, where the method includes steps S101 to S103, where:
s101, responding to a code model adding instruction which is initiated on a visual application development platform and aims at a currently constructed target application, and inquiring a target code model matched with the code model adding instruction from a code model database; the object code model includes modular logic code written in a pure code build application scenario.
Wherein, the visual application development platform, namely the low-code development platform, can realize the development of visual application programs, so that developers do not need to carry out coding, or the application program can be developed by coding a small amount, the target application can be the application program currently constructed by a developer, the code model can be a module which is separated from the user interface and combines data and logic, is a logic part of a model-view model architecture, the code model is a model in the model-view model architecture, wherein, the view can be a UI of an application program, the view model can contain interfaces and attributes corresponding to the UI, and business logic corresponding to the view, the model is a data structure corresponding to the view model and contains background logic irrelevant to the view, and the view model can synchronize the data of the model to the view for display.
In the visualization application development platform, a user can complete deployment of the UI by dragging a control corresponding to a view, clicking an adding button and the like, view models and models corresponding to similar adding views can be used, and when a code model adding instruction aiming at a currently constructed target application is received by the visualization application development platform, a target code model matched with the code model adding instruction can be inquired from a code model database.
The object code model can include modular logic codes for realizing the bottom logic of the corresponding view model, the modular logic codes of the object code model are codes written in a pure code construction application scene, and the modular logic codes can realize various functions without being limited by the specification of a visual application development platform. When a user writes a target code model, the user can edit a pre-configured model template by using an interface provided by the visual application development platform, the template is pre-configured with a standard code format, the user only needs to configure parameters and required states and methods, the visual application development platform can realize the logic of calling the target code model, and in the mode, the user can write any logic code meeting the standard in the code model, so that the code model is decoupled from the visual application development platform, the visual application development platform does not need to support the logics, and the code model can support more functions.
S102, adding a model identifier corresponding to the target code model to a target position indicated by the code model adding instruction; the target location is located in an application editing window on the visual application development platform that matches the target application.
After the target code model is found, the model identifier corresponding to the target code model can be added to the target position indicated by the code model adding instruction, and the target position can be a certain position in the application editing window, wherein the model identifier is used for indicating that the target code model corresponding to the model identifier is added to the target application, so that a user can intuitively feel the layout of the target application, and the visualization degree in the application development process is improved.
S103, adding a code instruction for calling the target code model into the logic code of the target application matched with the target position so that the target application can call the target code model.
Adding a model identifier into an application editing window, and simultaneously adding a code instruction for calling a target code model into a logic code of a target application, wherein the added position is matched with the target position, exemplarily, the code instruction for calling the target code model can be a code instruction corresponding to the target code model, and in this case, the target code model can be directly called by other codes in the target application, or the target code model itself already comprises a code related to calling; and may also include code instructions corresponding to the object code model itself and code instructions that invoke the object code model itself.
Further, if the object code model is to be used on the visual application development platform, the object code model may be installed on the visual application development platform first, and the step of installing the object code model may include:
responding to an installation instruction aiming at an object code model, acquiring the object code model, and generating an adding button corresponding to the object code model; the adding button is used for triggering a code model adding instruction aiming at the target code model;
obtaining a model name and a query tag of the target code model;
storing the object code model in the code model database based on the model name and a query tag; the model name and the query tag are used to query the target code model from the code model database.
In this step, the user may install the target code model through the code model installation page. As shown in fig. 2, one of the schematic diagrams of the user interface of the visual application development platform provided in the embodiment of the present disclosure shows a user interface of an installation page of the visual application development platform, a user may select a code model provided in advance by a site, or install an installation package uploading a code model by self-definition, and when installing the installation package, a model name and a query tag (also referred to as a model key) may be configured, and the visual application development platform may store a target code model in a code model database, and establish a query logic by using the configured model name and the query tag, so that the target code model may be queried from the code model database according to the model name and/or the query tag.
Meanwhile, the user may also configure configuration parameters of different instances of the object code model, such as configuration parameters of the instance to which the object code model is added (e.g., todu url configuration added in fig. 2) and configuration parameters of the instance to which the object code model is loaded (e.g., todu list url configuration obtained in fig. 2), and for the configuration parameters of different instances, object code model instances corresponding to the configuration parameters may be generated and stored in the code model data, respectively, so that the user may directly add different instances of the object code model.
Further, under the condition of directly adding the target code model, configuration parameters input by a user can be obtained, if the configuration parameters aiming at the target code model are obtained, a target code model instance matched with the configuration parameters can be generated by using the configuration parameters and the target code model, and then a code instruction for calling the target code model instance is added into a logic code of the target application matched with the target position, so that the target application can call the target code model instance.
Further, before generating the target code model instance matched with the configuration parameters, the target code model instance may be queried, and if the target code model instance matched with the configuration parameters is found, the code instruction for calling the target code model instance matched with the configuration parameters may be directly added to the logic code of the target application matched with the target location, without generating the target code model instance again.
When the target code model is installed, the visual application development platform can also generate an adding button corresponding to the target code model, the adding button can be used for triggering a code model adding instruction aiming at the target code model, and the adding button can be located in an adding menu or directly displayed in a UI.
After the target code model is obtained, variable description information corresponding to the target code model can be obtained, wherein the variable description information includes type information and description information of each variable in the corresponding target code model, a variable description list of the target code model can be generated based on the obtained type information and description information, and then a description button corresponding to the variable description list can be regenerated, the description button can also be used as a part of a UI of the visual application development platform, and a variable display instruction for displaying the variable description list can be triggered by a user by operating the description button, so that the visual application development platform displays the variable description list in a user interface.
As shown in fig. 3, a second schematic diagram of a user interface of a visual application development platform provided in the embodiment of the present disclosure shows a user interface of the visual application development platform during application development, a table with an editing state and a formula editor are shown in fig. 3, a user can select a code to be added in the formula editor and insert the code into the table, an explanatory mark (todoist business model 1) corresponding to a currently added target code model is shown in a function list of the formula editor, and by selecting the explanatory mark, a variable explanatory list of the target code model is shown, in which a todoist variable is indicated as a character string class (Str), a length variable is a number type (123), and attribute information of the table in editing can also be shown in fig. 3, such as specific data (table data) in the table, The size and the state information of the table can also show the editing options of the table, such as switches of forbidding, loading, frame and the like.
The visualization application development platform may further display a plurality of target code model instances of the target code model, so that the user manages the target code model instances, as shown in fig. 4, a third schematic diagram of the user interface of the visualization application development platform provided by the embodiment of the present disclosure includes a user interface displaying the plurality of target code model instances of the target code model, two target code model instances are shown in fig. 3, which are respectively a TODO List business model 1 and a TODO List business model 1, and respectively show a model key, an installation package name, version information, and data information of a variable in the code model.
The application construction method provided by the embodiment of the disclosure comprises the steps of firstly responding to a code model adding instruction which is initiated on a visual application development platform and aims at a currently constructed target application, and inquiring a target code model matched with the code model adding instruction from a code model database; the object code model comprises modular logic code written in a pure code build application scenario; then, adding a model identification corresponding to the target code model to a target position indicated by the code model adding instruction; the target position is positioned in an application editing window matched with the target application on the visual application development platform; finally, code instructions for invoking the target code model are added to the logical code of the target application matching the target location to enable the target application to invoke the target code model.
According to the method and the device for constructing the code model, the pure code is utilized to construct the modular logic code compiled in the application scene, the code model is constructed on the visual application development platform, the visual effect added by the target code model is displayed in the application editing window, and the code instruction of the target code model is added into the logic code of the target application.
It will be understood by those of skill in the art that in the above method of the present embodiment, the order of writing the steps does not imply a strict order of execution and does not impose any limitations on the implementation, as the order of execution of the steps should be determined by their function and possibly inherent logic.
Based on the same inventive concept, an application construction device corresponding to the application construction method is also provided in the embodiments of the present disclosure, and as the principle of solving the problem of the device in the embodiments of the present disclosure is similar to the application construction method described above in the embodiments of the present disclosure, the implementation of the device may refer to the implementation of the method, and repeated details are not described again.
Referring to fig. 5, a schematic diagram of an application building apparatus provided in an embodiment of the present disclosure is shown, where the apparatus includes:
a query module 510, configured to query, in response to a code model adding instruction initiated at the visual application development platform for a currently-constructed target application, a target code model matching the code model adding instruction from a code model database; the object code model comprises modular logic code written in a pure code building application scenario;
a first adding module 520, configured to add a model identifier corresponding to the target code model to a target location indicated by the code model adding instruction; the target position is positioned in an application editing window matched with the target application on the visual application development platform;
a second adding module 530, configured to add a code instruction for invoking the target code model to the logic code of the target application matching the target location, so that the target application can invoke the target code model.
In an alternative embodiment, the apparatus further comprises a mounting module for:
responding to an installation instruction aiming at an object code model, acquiring the object code model, and generating an adding button corresponding to the object code model; the adding button is used for triggering a code model adding instruction aiming at the target code model;
obtaining a model name and a query tag of the target code model;
storing the object code model in the code model database based on the model name and a query tag; the model name and the query tag are used to query the target code model from the code model database.
In an optional embodiment, the second adding module 530, when adding the code instruction for invoking the target code model to the logic code of the target application matching the target location to enable the target application to invoke the target code model, is configured to:
under the condition that configuration parameters aiming at the target code model are obtained, generating a target code model instance matched with the configuration parameters by using the configuration parameters and the target code model;
adding code instructions for invoking the target code model instance to the logical code of the target application matching the target location to enable the target application to invoke the target code model instance.
In an optional embodiment, after obtaining the object code model, the installation module is further configured to:
acquiring variable description information corresponding to the target code model; the variable description information comprises type information and description information of each variable in the target code model;
generating a variable description list of the target code model based on the type information and the description information;
generating a description button corresponding to the variable description list; the explanation button is used for triggering a variable showing instruction for showing the variable explanation list after being operated.
In an alternative embodiment, the installation module, when storing the object code model in the code model database based on the model name and the query tag, is configured to:
under the condition that a plurality of configuration parameters aiming at the target code model are obtained, generating a target code model instance corresponding to each configuration parameter on the basis of the plurality of configuration parameters and the target code model;
for each object code model instance, storing the object code model instance in the code model database based on the model name, the query tag and the configuration parameters corresponding to the object code model instance; the model name, the query tag, and the configuration parameters are used to query the target code model instance from the code model database.
In an optional embodiment, the second adding module 530, when adding the code instruction for invoking the target code model to the logic code of the target application matching the target location to enable the target application to invoke the target code model, is configured to:
and in the case of acquiring the configuration parameters of the target code model, adding a code instruction for calling the target code model instance matched with the configuration parameters into the logic code of the target application matched with the target position so as to enable the target application to call the target code model instance matched with the configuration parameters.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Corresponding to the application building method in fig. 1, an embodiment of the present disclosure further provides an electronic device 600, as shown in fig. 6, a schematic structural diagram of the electronic device 600 provided in the embodiment of the present disclosure includes:
a processor 61, a memory 62, and a bus 63; the storage 62 is used for storing execution instructions and includes a memory 621 and an external storage 622; the memory 621 is also referred to as an internal memory, and is used for temporarily storing the operation data in the processor 61 and the data exchanged with the external memory 622 such as a hard disk, the processor 61 exchanges data with the external memory 622 through the memory 621, and when the electronic device 600 operates, the processor 61 communicates with the memory 62 through the bus 63, so that the processor 61 executes the following instructions:
responding to a code model adding instruction initiated by a visual application development platform and aiming at a target application in current construction, and inquiring a target code model matched with the code model adding instruction from a code model database; the object code model comprises modular logic code written in a pure code building application scenario;
adding a model identification corresponding to the target code model to a target position indicated by the code model adding instruction; the target position is positioned in an application editing window matched with the target application on the visual application development platform;
adding code instructions for invoking the target code model to the logical code of the target application matching the target location to enable the target application to invoke the target code model.
In an alternative embodiment, the instructions executed by the processor 61 further include:
responding to an installation instruction aiming at an object code model, acquiring the object code model, and generating an adding button corresponding to the object code model; the adding button is used for triggering a code model adding instruction aiming at the target code model;
obtaining a model name and a query tag of the target code model;
storing the object code model in the code model database based on the model name and a query tag; the model name and the query tag are used to query the target code model from the code model database.
In an alternative embodiment, the adding, in the instructions executed by the processor 61, the code instruction for invoking the target code model to the logic code of the target application matching the target location to enable the target application to invoke the target code model includes:
under the condition that configuration parameters aiming at the target code model are obtained, generating a target code model instance matched with the configuration parameters by using the configuration parameters and the target code model;
adding code instructions for invoking the target code model instance to the logical code of the target application matching the target location to enable the target application to invoke the target code model instance.
In an alternative embodiment, the instructions executed by the processor 61, after obtaining the target code model, further include:
acquiring variable description information corresponding to the target code model; the variable description information comprises type information and description information of each variable in the target code model;
generating a variable description list of the target code model based on the type information and the description information;
generating a description button corresponding to the variable description list; the explanation button is used for triggering a variable showing instruction for showing the variable explanation list after being operated.
In an alternative embodiment, the instructions executed by the processor 61, storing the object code model in the code model database based on the model name and the query tag, include:
under the condition that a plurality of configuration parameters aiming at the target code model are obtained, generating a target code model instance corresponding to each configuration parameter on the basis of the configuration parameters and the target code model;
for each object code model instance, storing the object code model instance in the code model database based on the model name, the query tag and the configuration parameters corresponding to the object code model instance; the model name, the query tag, and the configuration parameters are used to query the target code model instance from the code model database.
In an alternative embodiment, the adding, in the instructions executed by the processor 61, the code instruction for invoking the target code model to the logic code of the target application matching the target location to enable the target application to invoke the target code model includes:
and in the case of acquiring the configuration parameters of the target code model, adding a code instruction for calling the target code model instance matched with the configuration parameters into the logic code of the target application matched with the target position so as to enable the target application to call the target code model instance matched with the configuration parameters.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the application building method in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the application building method in the foregoing method embodiments, which may be referred to specifically in the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, but not to limit the technical solutions, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: those skilled in the art can still make modifications or changes to the embodiments described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the technical scope of the disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. An application building method, comprising:
responding to a code model adding instruction initiated by a visual application development platform and aiming at a target application in current construction, and inquiring a target code model matched with the code model adding instruction from a code model database; the object code model comprises modular logic code written in a pure code build application scenario;
adding a model identification corresponding to the target code model to a target position indicated by the code model adding instruction; the target position is positioned in an application editing window matched with the target application on the visual application development platform;
adding code instructions for invoking the target code model to the logical code of the target application matching the target location to enable the target application to invoke the target code model.
2. The method of claim 1, further comprising:
responding to an installation instruction aiming at an object code model, acquiring the object code model, and generating an adding button corresponding to the object code model; the adding button is used for triggering a code model adding instruction aiming at the target code model;
obtaining a model name and a query tag of the target code model;
storing the object code model in the code model database based on the model name and a query tag; the model name and the query tag are used to query the target code model from the code model database.
3. The method of claim 1, wherein adding code instructions for invoking the target code model to the logical code of the target application matching the target location to enable the target application to invoke the target code model comprises:
under the condition that configuration parameters aiming at the target code model are obtained, generating a target code model instance matched with the configuration parameters by using the configuration parameters and the target code model;
adding code instructions for invoking the target code model instance to the logical code of the target application matching the target location to enable the target application to invoke the target code model instance.
4. The method of claim 2, wherein after obtaining the object code model, the method further comprises:
acquiring variable description information corresponding to the target code model; the variable description information comprises type information and description information of each variable in the target code model;
generating a variable description list of the target code model based on the type information and the description information;
generating a description button corresponding to the variable description list; the explanation button is used for triggering a variable showing instruction for showing the variable explanation list after being operated.
5. The method of claim 2, wherein storing the object code model in the code model database based on the model name and a query tag comprises:
under the condition that a plurality of configuration parameters aiming at the target code model are obtained, generating a target code model instance corresponding to each configuration parameter on the basis of the configuration parameters and the target code model;
for each object code model instance, storing the object code model instance in the code model database based on the model name, the query tag and the configuration parameters corresponding to the object code model instance; the model name, the query tag, and the configuration parameters are used to query the target code model instance from the code model database.
6. The method of claim 5, wherein adding code instructions for invoking the target code model to the logical code of the target application matching the target location to enable the target application to invoke the target code model comprises:
and in the case of acquiring the configuration parameters of the target code model, adding a code instruction for calling the target code model instance matched with the configuration parameters into the logic code of the target application matched with the target position so as to enable the target application to call the target code model instance matched with the configuration parameters.
7. An application building apparatus, comprising:
the query module is used for responding to a code model adding instruction which is initiated by a visual application development platform and aims at the target application in the current construction, and querying a target code model matched with the code model adding instruction from a code model database; the object code model comprises modular logic code written in a pure code build application scenario;
a first adding module, configured to add a model identifier corresponding to the target code model to a target position indicated by the code model adding instruction; the target position is positioned in an application editing window matched with the target application on the visual application development platform;
and the second adding module is used for adding a code instruction for calling the target code model into the logic code of the target application matched with the target position so as to enable the target application to call the target code model.
8. The apparatus of claim 7, further comprising a mounting module to:
responding to an installation instruction aiming at an object code model, acquiring the object code model, and generating an adding button corresponding to the object code model; the adding button is used for triggering a code model adding instruction aiming at the target code model;
obtaining a model name and a query tag of the target code model;
storing the object code model in the code model database based on the model name and a query tag; the model name and the query tag are used to query the target code model from the code model database.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the application construction method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, is adapted to carry out the steps of the application construction method according to any of the claims 1 to 6.
CN202210390571.5A 2022-04-14 2022-04-14 Application construction method and device Pending CN114741071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210390571.5A CN114741071A (en) 2022-04-14 2022-04-14 Application construction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210390571.5A CN114741071A (en) 2022-04-14 2022-04-14 Application construction method and device

Publications (1)

Publication Number Publication Date
CN114741071A true CN114741071A (en) 2022-07-12

Family

ID=82281462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210390571.5A Pending CN114741071A (en) 2022-04-14 2022-04-14 Application construction method and device

Country Status (1)

Country Link
CN (1) CN114741071A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115617328A (en) * 2022-12-21 2023-01-17 广东省信息工程有限公司 Application generation method, system, equipment and medium of public support platform
CN115629750A (en) * 2022-12-24 2023-01-20 西安葡萄城软件有限公司 Server visual programming method and system supporting Excel formula

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115617328A (en) * 2022-12-21 2023-01-17 广东省信息工程有限公司 Application generation method, system, equipment and medium of public support platform
CN115629750A (en) * 2022-12-24 2023-01-20 西安葡萄城软件有限公司 Server visual programming method and system supporting Excel formula

Similar Documents

Publication Publication Date Title
CN111124477B (en) Front-end configuration method, system and electronic equipment
CN105511873B (en) User interface control display method and device
CN102221993B (en) The declarative definition of complex user interface Status Change
CN111522552B (en) Sub-application generation method and device, computer equipment and storage medium
CN112363794B (en) Rendering method of front-end list component and electronic equipment
CN113849165A (en) Customizable low-code front-end development framework and method based on visual dragging
CN114741071A (en) Application construction method and device
CN109471580B (en) Visual 3D courseware editor and courseware editing method
CN114064024A (en) Method, apparatus, device, storage medium, and program product for developing micro-application
CN110688115A (en) Method and device for generating interface
CN113407284A (en) Navigation interface generation method and device, storage medium and electronic equipment
CN101263484B (en) Method and system for declaratively defined control actions
CN109408322B (en) A kind of automatic business process implementation method of cloud platform
CN107220044B (en) Method and device for driving business object based on meta-model
CN116304442A (en) Page code generation method and device, electronic equipment and storage medium
CN110764864A (en) Terraform-based visual resource arrangement method
CN115080046A (en) Multi-component abstract association fusion method and device in page design
CN104156209A (en) Cross-platform application interface modeling method and device
CN114090002A (en) Front-end interface construction method and device, electronic equipment and storage medium
CN111625379B (en) Information processing method and device, electronic equipment and readable storage medium
CN114239095A (en) Method and device for generating product customization module, electronic equipment and storage medium
Cimitile et al. Automatic Generation of Multi Platform Web Map Mobile Applications.
US10768911B2 (en) Managing software components for software application development
CN111951355A (en) Animation processing method and device, computer equipment and storage medium
CN106445487B (en) Processing unit, software and method for controlling an interactive component

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
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information