CN113495723A - Method and device for calling functional component and storage medium - Google Patents

Method and device for calling functional component and storage medium Download PDF

Info

Publication number
CN113495723A
CN113495723A CN202110853769.8A CN202110853769A CN113495723A CN 113495723 A CN113495723 A CN 113495723A CN 202110853769 A CN202110853769 A CN 202110853769A CN 113495723 A CN113495723 A CN 113495723A
Authority
CN
China
Prior art keywords
component
function
client
functional component
calling
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.)
Granted
Application number
CN202110853769.8A
Other languages
Chinese (zh)
Other versions
CN113495723B (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 Infosec Technologies Co Ltd
Original Assignee
Beijing Infosec Technologies 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 Infosec Technologies Co Ltd filed Critical Beijing Infosec Technologies Co Ltd
Priority to CN202110853769.8A priority Critical patent/CN113495723B/en
Publication of CN113495723A publication Critical patent/CN113495723A/en
Application granted granted Critical
Publication of CN113495723B publication Critical patent/CN113495723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • 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

Abstract

The disclosure relates to the field of password application, and discloses a method, a device and a storage medium for calling a functional component, which are applied to a computing device loaded with a low-code development platform, and the method comprises the following steps: the method comprises the steps of receiving a calling request, determining a preset functional component corresponding to the calling request based on a functional keyword carried by the calling request, matching the functional keyword with a functional description corresponding to the functional component, judging whether the matching is successful, if the matching is successful, generating and presenting a corresponding component operation interface based on the functional component, if the matching is unsuccessful, sending a source code corresponding to the functional component to a client, and generating and presenting a corresponding component operation interface based on the edited functional component when responding to a component editing operation triggered by the client based on the source code.

Description

Method and device for calling functional component and storage medium
Technical Field
The present application relates to the field of cryptographic applications, and in particular, to a method, an apparatus, and a storage medium for calling a functional component.
Background
In the development process, customized development situations are often encountered, for example, new functions need to be added to existing functional components, existing functional components need to be modified, and the like. In such a case, the existing code would be unusable, typically requiring a developer to re-write the code and perform functional testing of the re-written code.
Specifically, in the related art, in the process of customized development, developers often have repetitive labor, for example, functional components with the same function may be applied by a plurality of different requirements of customized development; moreover, developers often need to apply the re-written code after the functional test is qualified and stably runs, and in the application process, the functional components qualified in the functional test need to be added respectively, that is, the functional components are called. In summary, in the existing customized development process, the period required for acquiring the code is long, the development process is complicated, and the development efficiency is low.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device and a storage medium for calling a functional component, which are used for improving development efficiency by using a uniform functional component.
The specific technical scheme provided by the disclosure is as follows:
in a first aspect, a method for calling a functional component is applied to a computing device loaded with a low-code development platform, and the method includes:
receiving a calling request, wherein the calling request carries a function keyword, and determining a preset function component corresponding to the calling request based on the function keyword, wherein the preset function component is stored in a low-code development platform;
matching the function keywords with the function descriptions corresponding to the function components, and judging whether the matching is successful;
if yes, generating and presenting a corresponding component operation interface based on the functional component, and calling the functional component when responding to a dragging operation triggered by the client aiming at the component operation interface;
otherwise, sending the source code corresponding to the functional component to the client, generating and presenting a corresponding component operation interface based on the edited functional component when responding to the component editing operation triggered by the client based on the source code, and calling the edited functional component when responding to the dragging operation triggered by the client aiming at the component operation interface.
Optionally, if the function keyword matches a function description corresponding to the plurality of function components, generating and presenting a corresponding component operation interface based on the function component, and invoking the function component when a drag operation triggered by the client for the component operation interface is responded, including:
based on the function keywords, performing series aggregation on the plurality of function components to obtain a combined function component;
and generating and presenting a corresponding component operation interface based on the combined functional components, and calling each aggregated functional component when responding to the dragging operation triggered by the client aiming at the component operation interface.
Optionally, if the invocation request is a client invocation request, generating and presenting a corresponding component operation interface based on the functional component, and invoking the functional component when a drag operation triggered by the client for the component operation interface is responded, including:
determining the number of parameters corresponding to the client calling request, and searching for functional components matched with the number of the parameters;
and generating a first Software Development Kit (SDK) based on the searched functional component, generating and presenting a corresponding component operation interface, and calling the first SDK when responding to the dragging operation triggered by the client aiming at the component operation interface.
Optionally, if the invocation request is a server invocation request, generating and presenting a corresponding component operation interface based on the functional component, and invoking the functional component when responding to a drag operation triggered by the client for the component operation interface, including:
analyzing the server side call request through a web service module, and acquiring a uniform resource identifier uri and parameters contained in the server side call request, wherein the web service module is arranged in a low-code development platform;
searching for a functional component matched with the uri and the parameter, generating a second SDK based on the searched functional component, generating and presenting a corresponding component operation interface, and calling the second SDK when responding to a dragging operation triggered by the client aiming at the component operation interface.
Optionally, sending a source code corresponding to the functional component to the client, generating and presenting a corresponding component operation interface based on the edited functional component when responding to a component editing operation triggered by the client based on the source code, and calling the edited functional component when responding to a drag operation triggered by the client for the component operation interface, where the method includes:
the method comprises the steps that a functional component is sent to a client in a source code mode, and when the client responds to component editing operation triggered by the source code, the edited functional component is uploaded to a server to be scanned by static codes;
compiling and generating a third SDK corresponding to the edited functional component after the scanning result is qualified;
and generating and presenting a corresponding component operation interface based on the third SDK, and calling the third SDK when responding to the dragging operation triggered by the client aiming at the component operation interface.
In a second aspect, a method for calling a functional component is applied to a client, and the method includes:
responding to a calling function component operation triggered by a low-code development platform, and generating a calling request, wherein the calling request carries a function keyword;
sending a call request to the computing device to cause the computing device to: determining a preset function component corresponding to the calling request based on the function keyword, matching the function keyword with the function description corresponding to the function component, judging whether the matching is successful, and if the matching is successful, generating and presenting a corresponding component operation interface based on the function component; if the matching is not successful, sending the source code corresponding to the functional component to the client, wherein the preset functional component is stored in the low-code development platform;
if the source code corresponding to the functional component is received, performing component editing operation on the source code to enable the computing device to execute the following operations: generating and presenting a corresponding component operation interface based on the edited functional component;
performing a drag operation on the component operation interface to cause the computing device to perform the following operations: and when the client responds to the dragging operation triggered by the component operation interface, calling the functional component or the edited functional component.
In a third aspect, an apparatus for calling a functional component, applied to a computing device loaded with a low-code development platform, includes:
the receiving module is used for receiving a calling request, wherein the calling request carries a function keyword, and determining a preset function component corresponding to the calling request based on the function keyword, wherein the preset function component is stored in the low-code development platform;
the judging module is used for matching the function keywords with the function descriptions corresponding to the function components and judging whether the matching is successful;
the first execution module is used for generating and presenting a corresponding component operation interface based on the functional component when the matching is successful, and calling the functional component when a dragging operation triggered by the client aiming at the component operation interface is responded;
and the second execution module is used for sending the source code corresponding to the functional component to the client when the matching is unsuccessful, generating and presenting a corresponding component operation interface based on the edited functional component when responding to the component editing operation triggered by the client based on the source code, and calling the edited functional component when responding to the dragging operation triggered by the client aiming at the component operation interface.
In a fourth aspect, an apparatus for calling a functional component, applied to a client, includes:
the response module is used for responding to the calling function component operation triggered by the low-code development platform and generating a calling request, wherein the calling request carries a function keyword;
an operation module to send the call request to the computing device to cause the computing device to perform the following operations: determining a preset function component corresponding to the calling request based on the function keyword, matching the function keyword with the function description corresponding to the function component, judging whether the matching is successful, and if the matching is successful, generating and presenting a corresponding component operation interface based on the function component; if the matching is not successful, sending the source code corresponding to the functional component to the client, wherein the preset functional component is stored in the low-code development platform;
the editing operation module is used for performing component editing operation on the source code if the source code corresponding to the functional component is received, so that the computing equipment executes the following operations: generating and presenting a corresponding component operation interface based on the edited functional component;
the dragging operation module is used for dragging the component operation interface so as to enable the computing equipment to execute the following operations: and when the client responds to the dragging operation triggered by the component operation interface, calling the functional component or the edited functional component.
In a fifth aspect, a computing device, comprises:
a memory for storing executable instructions;
a processor for reading and executing executable instructions stored in the memory to implement a method as in any one of the first aspect.
In a sixth aspect, a client comprises:
a memory for storing executable instructions;
a processor for reading and executing executable instructions stored in the memory to implement the method of any of the second aspects.
In a seventh aspect, a computer-readable storage medium, wherein instructions, when executed by a processor, enable the processor to perform the method of any of the first aspect.
In an eighth aspect, a computer-readable storage medium, wherein instructions, when executed by a processor, enable the processor to perform the method of any of the second aspects.
To sum up, in the embodiment of the present disclosure, a computing device loaded with a low-code development platform receives a call request, determines a preset function component corresponding to the call request based on a function keyword carried by the computing device, matches the function keyword with a function description corresponding to the function component, determines whether the matching is successful, generates and presents a corresponding component operation interface based on the function component if the matching is successful, sends a source code corresponding to the function component to a client if the matching is unsuccessful, and generates and presents a corresponding component operation interface based on an edited function component when responding to a component editing operation triggered by the client based on the source code, so that the function component or the edited function component is called when responding to a dragging operation triggered by the client for the component operation interface, so that, in a development process, when development of a related function is involved, the client can directly utilize the existing preset functional components to realize corresponding functions, and the process of writing codes one by one is omitted, so that repeated writing of the codes is effectively reduced, and the development efficiency is improved.
Drawings
FIG. 1 is a system architecture diagram illustrating a call to a functional component in an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method performed by a computing device to invoke a functional component in an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for executing a method for calling a functional component by a computing device in source code according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for a client to execute a call function component in an embodiment of the present application;
FIG. 5 is a schematic diagram of a logical architecture of a computing device in an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a logical architecture of a client according to an embodiment of the present disclosure;
FIG. 7 is a block diagram of a physical architecture of a computing device in accordance with an embodiment of the present disclosure;
fig. 8 is a schematic entity architecture diagram of a client according to an embodiment of the disclosure.
Detailed Description
In order to guarantee development efficiency, in the embodiment of the application, a computing device loaded with a low-code development platform receives a call request, determines a preset functional component corresponding to the call request based on a functional keyword carried by the computing device, matches the functional keyword with a functional description corresponding to the functional component, judges whether the matching is successful, generates and presents a corresponding component operation interface based on the functional component if the matching is successful, sends a source code corresponding to the functional component to a client if the matching is unsuccessful, and generates and presents a corresponding component operation interface based on an edited functional component when responding to a component editing operation triggered by the client based on the source code, so that the functional component or the edited functional component is called when responding to a dragging operation triggered by the client for the component operation interface.
The following detailed description of preferred embodiments of the present application, which describes the execution of methods for invoking functional components by computing devices and clients, is provided in conjunction with the accompanying drawings. Referring to fig. 1, in the embodiment of the present disclosure, the implementation of the method for executing the called function component is mainly divided into a computing device side and a client side, where the computing device is loaded with a low code development platform, which are described below.
The computing device side: when a calling request is received, judging whether a function keyword corresponding to the calling request is consistent with the function description of the function component or not, if so, presenting the function component to a corresponding component operation interface, and allowing a client to perform dragging operation; and if the functional components are inconsistent, the functional components are sent to the client in the form of source codes, and after the client edits the functional components, a corresponding component operation interface is generated and presented in the edited functional components, and the client is allowed to perform dragging operation.
The client side: after a calling request is sent to the computing equipment, if a functional component presented on a component operation interface is received, the functional component is directly called in a dragging operation mode; and if the functional component in the source code form is received, performing component editing operation on the functional component, and calling the edited functional component in a dragging operation mode after the computing equipment generates and presents a corresponding component operation interface based on the edited functional component.
The following first describes the case where the method of calling a functional component is performed by a computing device. Referring to fig. 2, in the embodiment of the present disclosure, a specific process of executing the call function component by the computing device is as follows:
step 201: the method comprises the steps of receiving a calling request, wherein the calling request carries a function keyword, and determining a preset function component corresponding to the calling request based on the function keyword, wherein the preset function component is stored in a low-code development platform.
It should be noted that the computing device is loaded with a low-code development platform, where the low-code development platform is a development platform that can quickly generate an application program without coding or with a small amount of code, and the method for developing an application program through visualization enables a client to create a web page and a mobile application program through a graphical user interface in a manner of dragging a component and a model.
When a call request sent by a client is received, the computing device judges a function keyword carried in the call request, for example, an addition comprising two addends, an addition comprising three addends, a function of searching for test scores, and the like.
Since the preset functional components are stored in the low-code development platform, in order to adapt to the call request, the preset functional components correspondingly store functional descriptions, such as addition operation (limited to two addends), addition operation (limited to three addends), test score query function, and the like, in the storage process.
In the implementation process, the preset function component corresponding to the call request is determined by the function keyword, for example, when the call request is an addition including two addends, the preset function component corresponding to the call request is determined to be an addition operation (limited to two addends) by the function keyword. If the preset functional components do not have addition operation (limited to two addends), and only have addition operation (limited to three addends) and the test score query function, determining that the preset functional components corresponding to the call requests are addition operation (limited to three addends) through the function keywords.
Step 202: matching the function keywords with the function descriptions corresponding to the function components, and judging whether the matching is successful; if yes, go to step 203; otherwise, step 204 is performed.
In order to call the functional component corresponding to the call request, the functional keyword corresponding to the functional component is matched with the function description of the preset functional component, that is, the functional component consistent with the function of the call request is searched in the preset functional component.
In the implementation process, if the matching is successful, that is, the functional component consistent with the function of the call request is found, step 203 is executed; if the mismatch is successful, i.e. the function of the preset functional component is not consistent with the function of the call request, step 204 is executed.
Step 203: and generating and presenting a corresponding component operation interface based on the functional component, and calling the functional component when responding to the dragging operation triggered by the client aiming at the component operation interface.
In the implementation process, under the condition that the functional component consistent with the function of the calling request is found, the computing equipment directly generates a corresponding component operation interface according to the functional component, and the component operation interface can be visually presented in the computing equipment for the convenience of calling by a client. The component operational interface may be presented on the interface of the computing device in a full-screen or non-full-screen manner.
Further, in the specific calling process, when the client triggers a drag operation for the component operation interface, the computing device responds to the drag operation and allows the client to call the functional component in a drag manner.
Because the call requests sent by the client are complex and changeable, the following description is given in different cases:
the first condition is as follows: if the function keyword is matched with the function descriptions corresponding to the plurality of function components, the computing device generates and presents a corresponding component operation interface based on the function components, and calls the function components when responding to a dragging operation triggered by the client aiming at the component operation interface, wherein the function component calling method comprises the following steps:
(1) and based on the function keywords, performing serial aggregation on the plurality of function components to obtain a combined function component.
Supposing that the function keywords comprise functions of adding three addends and searching for the test scores, and function descriptions corresponding to two preset function components, namely a preset function component adding operation (limited to three addends) and a test score query function in the low-code development platform are matched with the function keywords.
In the implementation process, the computing device connects the two preset functional components of the addition operation (limited three addends) and the test score query function in series according to the sequence of the description of the functional keywords (namely, adding first and searching later), namely, executes the preset functional component of the addition operation (limited three addends) first, then executes the preset functional component of the test score query function, and aggregates the results of the execution of the two preset functional components, namely, integrates the two preset functional components to obtain a combined functional component.
(2) And generating and presenting a corresponding component operation interface based on the combined functional components, and calling each aggregated functional component when responding to the dragging operation triggered by the client aiming at the component operation interface.
In order to facilitate uniform calling of the client, the computing device generates a corresponding component operation interface according to the combined functional component, and visually presents the component operation interface in the computing device. In a specific calling process, when a client triggers a dragging operation aiming at the component operation interface, the computing device responds to the dragging operation and allows the client to call the combined function component in a dragging mode.
Case two: if the calling request is a client calling request, generating and presenting a corresponding component operation interface based on the functional component, and calling the functional component when responding to a dragging operation triggered by the client aiming at the component operation interface, wherein the method comprises the following steps:
1) and determining the number of parameters corresponding to the client calling request, and searching for the functional components matched with the number of the parameters.
Considering that the number of parameters set in each functional component is different, in order to facilitate the client to call the functional component with the same number as the number of parameters, the computing device first obtains the number of parameters corresponding to the client call request, and further searches the functional component matched with the number of parameters according to the number, where the number of parameters of the functional component is not specifically limited.
It should be noted that, in the scenarios of the case one and the case three, the number of parameters corresponding to the call request is also implemented by using the description in the above paragraph.
2) And generating a first Software Development Kit (SDK) based on the searched functional component, generating and presenting a corresponding component operation interface, and calling the first SDK when responding to the dragging operation triggered by the client aiming at the component operation interface.
In the implementation process, after the computing device obtains the functional components with the matched numbers, the computing device directly generates the corresponding component operation interfaces according to the functional components, and the component operation interfaces can be visually presented in the computing device for the convenience of calling a client.
Further, when a drag operation triggered by the client for the component operation interface is responded, the computing device compiles the code of the functional component, generates a first Software Development Kit (SDK) according to a compiling result, and the client can realize the client call request by running the first SDK.
It should be added that, when compiling code is involved in the scenarios of case one and case three, the above description is also used to implement the above.
Case three: if the calling request is a server calling request, generating and presenting a corresponding component operation interface based on the functional component, and calling the functional component when responding to a dragging operation triggered by the client aiming at the component operation interface, wherein the method comprises the following steps:
[1] analyzing the server side calling request through a World Wide Web (Web) service module, and acquiring a uniform resource identifier (uri) and parameters contained in the server side calling request, wherein the Web service module is arranged in a low-code development platform.
In implementation, upon receiving a service-side invocation request, the computing device parses the remote invocation request through a web services module also stored in the low-code development platform, for example, when the received remote invocation request includes
Figure DEST_PATH_IMAGE002
The web service module parses it to obtain the specific uri and parameters.
[2] Searching for a functional component matched with the uri and the parameter, generating a second SDK based on the searched functional component, generating and presenting a corresponding component operation interface, and calling the second SDK when responding to a dragging operation triggered by the client aiming at the component operation interface.
In the implementation process, after the computing device obtains the uri and the parameter, the computing device needs to search a matched functional component, namely a functional component matched with the uri and the parameter. After the functional component is determined, the computing device generates a corresponding component operation interface according to the functional component, and the component operation interface can be visually presented in the computing device for the convenience of calling a client.
Furthermore, when a dragging operation triggered by the client side for the component operation interface is responded, the computing device compiles the code of the functional component after acquiring the functional component, and generates a second SDK according to the compiling result, and the client side can realize the server side calling request by running the second SDK.
Step 204: the method comprises the steps of sending a source code corresponding to a functional component to a client, generating and presenting a corresponding component operation interface based on the edited functional component when responding to component editing operation triggered by the client based on the source code, and calling the edited functional component when responding to dragging operation triggered by the client aiming at the component operation interface.
If the function corresponding to the call request is inconsistent with the function of the functional component, that is, the existing functional component is inconsistent with the function of the call request, in this scenario, the computing device allows the client to edit the source code of the functional component to implement the function corresponding to the call request, as shown in fig. 3, the executing steps specifically include:
step 2041: and sending the functional component to the client in the form of a source code, and uploading the edited functional component to a server for static code scanning when responding to the component editing operation triggered by the client based on the source code.
In the implementation process, when the function of the preset function component is inconsistent with the function of the call request, the computing device searches for the preset function component related to the function of the call request, for example, the call request is an addition including two addends, and only addition operation (limited to three addends) exists in the preset function component, and then, the preset function component corresponding to the call request is determined to be addition operation (limited to three addends) through the function keyword.
The computing device provides the searched functional component to the client in the form of the source code, so that the client can edit the source code after receiving the source code, namely editing the function (for example, addition operation (limited to three addends)) corresponding to the call request into the functional component (including addition of two addends) in the form of a code, namely editing the preset addition including two addends into the addition including three addends in the form of the source code.
Because the codes of the preset functional modules are changed, in the implementation process, when the computing equipment responds to the component editing operation triggered by the client based on the source codes, the edited functional components are uploaded to the server for static code scanning, and the purpose of scanning is to prevent malicious codes from influencing the operation of the server.
Step 2042: and compiling and generating a third SDK corresponding to the edited functional component after the scanning result is qualified.
In the implementation process, when the scanning result in step 2041 is qualified, that is, after the malicious codes in the added functional component are eliminated, the computing device compiles all the codes of the edited functional component and generates a service corresponding to the edited functional component, where the service is a network service for a service-side call request and generates a third SDK, and the client runs the third SDK to implement the service-side call request.
Step 2043: and generating and presenting a corresponding component operation interface based on the third SDK, and calling the third SDK when responding to the dragging operation triggered by the client aiming at the component operation interface.
In the implementation process, after the third SDK is determined, the computing device provides the third SDK to the client, generates a corresponding component operation interface according to the third SDK, and visually presents the component operation interface in the computing device. In the specific calling process, when the client triggers the dragging operation aiming at the component operation interface, the computing device responds to the dragging operation and allows the client to call the third SDK in a dragging mode, so that the client can realize the calling request of the server after running the third SDK.
In the above process of executing the method for calling a functional component for a computing device loaded with a low-code development platform, the method for executing a functional component by a client is described below, and with reference to fig. 4, the method specifically includes:
step 301: and responding to the calling function component operation triggered by the low-code development platform, and generating a calling request, wherein the calling request carries a function keyword.
In implementation, the client generates a call request in response to a call function component operation triggered by the low-code development platform, for example, a click, double click, slide and the like call function component operation triggered by the low-code development platform.
Step 302: sending a call request to the computing device to cause the computing device to: determining a preset function component corresponding to the calling request based on the function keyword, matching the function keyword with the function description corresponding to the function component, judging whether the matching is successful, and if the matching is successful, generating and presenting a corresponding component operation interface based on the function component; and if the matching is not successful, sending the source code corresponding to the functional component to the client, wherein the preset functional component is stored in the low-code development platform.
In the implementation process, after the client generates the call request, the client sends the call request to the computing device, so that the computing device performs the operations in the steps 201 to 204 as described above, which is not described in detail here.
Step 303: if the source code corresponding to the functional component is received, performing component editing operation on the source code to enable the computing device to execute the following operations: and generating and presenting a corresponding component operation interface based on the edited functional component.
In the implementation process, after receiving the source code corresponding to the preset functional component, the client performs component editing operation on the source code, namely, modifies the source code of the preset functional component according to the function of the function keyword of the call request, and sends the modified source code to the computing device. Because the edited functional component is newly generated, in order to facilitate the client-side call, the computing device generates and presents a corresponding component operation interface based on the edited functional component.
Step 304: performing a drag operation on the component operation interface to cause the computing device to perform the following operations: and when the client responds to the dragging operation triggered by the component operation interface, calling the functional component or the edited functional component.
In the implementation process, after the computing device generates the component operation interface, the client is allowed to perform a dragging operation on the component operation interface, so that the computing device executes the following operations: and when the dragging operation triggered by the client aiming at the component operation interface is responded, the functional component or the edited functional component is called, so that the client can conveniently and quickly call the functional component or the edited functional component.
Based on the same inventive concept, referring to fig. 5, an apparatus for calling a function component provided in an embodiment of the present application is applied to a computing device loaded with a low-code development platform, and includes:
the receiving module 501 is configured to receive a call request, where the call request carries a function keyword, and determine a preset function component corresponding to the call request based on the function keyword, where the function component is stored in a low-code development platform;
a judging module 502, configured to match the function keyword with the function description corresponding to the function component, and judge whether the matching is successful;
the first execution module 503 is configured to generate and present a corresponding component operation interface based on the functional component when matching is successful, and call the functional component when a drag operation triggered by the client for the component operation interface is responded;
the second execution module 504 is configured to send a source code corresponding to the functional component to the client when matching is unsuccessful, generate and present a corresponding component operation interface based on the edited functional component when responding to a component editing operation triggered by the client based on the source code, and call the edited functional component when responding to a drag operation triggered by the client for the component operation interface.
Based on the same inventive concept, referring to fig. 6, an apparatus for calling a function component provided in an embodiment of the present application is applied to a client, and includes:
the response module 601 is configured to generate a call request in response to a call function component operation triggered by a low-code development platform, where the call request carries a function keyword;
an operation module 602, configured to send a call request to a computing device, so as to cause the computing device to perform the following operations: determining a preset function component corresponding to the calling request based on the function keyword, matching the function keyword with the function description corresponding to the function component, judging whether the matching is successful, and if the matching is successful, generating and presenting a corresponding component operation interface based on the function component; if the matching is not successful, sending the source code corresponding to the functional component to the client, wherein the functional component is stored in the low-code development platform;
an editing operation module 603, configured to perform, if a source code corresponding to a functional component is received, a component editing operation on the source code, so that the computing device performs the following operations: generating and presenting a corresponding component operation interface based on the edited functional component;
a drag operation module 604, configured to perform a drag operation on the component operation interface, so that the computing device performs the following operations: and when the client responds to the dragging operation triggered by the component operation interface, calling the functional component or the edited functional component.
Based on the same inventive concept, referring to fig. 7, an embodiment of the present disclosure provides a computing device, including:
a memory 701 for storing executable instructions.
A processor 702 for reading and executing executable instructions stored in a memory to implement a method as in any one of the above first aspects;
wherein in fig. 7, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 702, and various circuits, represented by memory 701, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus function component provides a function component. The transceiver may be a plurality of elements, i.e., including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 702 is responsible for managing the bus architecture and general processing, and the memory 701 may store data used by the processor 702 in performing operations.
The processor 702 is responsible for managing the bus architecture and general processing, and the memory 701 may store data used by the processor 700 in performing operations.
The memory 701 and the processor 702 cooperate with each other to implement any one of the methods executed by the computing device in steps 201 to 204 in the above embodiments, which is not described herein again.
Based on the same inventive concept, referring to fig. 8, an embodiment of the present disclosure provides a client, including:
a memory 801 for storing executable instructions.
A processor 802 for reading and executing executable instructions stored in the memory to implement the method of the second aspect;
where in fig. 8 the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by processor 802 and various circuits of memory represented by memory 801 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus function component provides a function component. The transceiver may be a plurality of elements, i.e., including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 802 is responsible for managing the bus architecture and general processing, and the memory 801 may store data used by the processor 802 in performing operations.
The processor 802 is responsible for managing the bus architecture and general processing, and the memory 801 may store data used by the processor 800 in performing operations.
The memory 801 and the processor 802 cooperate with each other to implement any one of the methods executed by the client in steps 301 to 304 in the above embodiments, which is not described herein again.
Based on the same inventive concept, embodiments of the present application provide a computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor, enable the processor to perform the method of any one of the first aspect.
Based on the same inventive concept, the present application provides a computer-readable storage medium, wherein when the instructions in the storage medium are executed by a processor, the processor is enabled to execute the method according to the second aspect.
To sum up, in the embodiment of the present application, a computing device loaded with a low-code development platform receives a call request, determines a preset function component corresponding to the call request based on a function keyword carried by the computing device, matches the function keyword with a function description corresponding to the function component, determines whether the matching is successful, generates and presents a corresponding component operation interface based on the function component if the matching is successful, sends a source code corresponding to the function component to a client if the matching is unsuccessful, and generates and presents a corresponding component operation interface based on an edited function component when responding to a component editing operation triggered by the client based on the source code, so that the function component or the edited function component is called when responding to a dragging operation triggered by the client for the component operation interface, so that, in the development process, when the development of a related function is involved, the client can directly utilize the existing preset functional components to realize corresponding functions, and the process of writing codes one by one is omitted, so that repeated writing of the codes is effectively reduced, and the development efficiency is improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product system. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product system embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program product systems according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (12)

1. A method for calling a functional component, applied to a computing device loaded with a low-code development platform, comprises the following steps:
receiving a calling request, wherein the calling request carries a function keyword, and determining a preset function component corresponding to the calling request based on the function keyword, wherein the function component is stored in the low-code development platform;
matching the function keywords with the function descriptions corresponding to the function components, and judging whether the matching is successful;
if yes, generating and presenting a corresponding component operation interface based on the functional component, and calling the functional component when responding to a dragging operation triggered by a client aiming at the component operation interface;
otherwise, sending the source code corresponding to the functional component to the client, generating and presenting a corresponding component operation interface based on the edited functional component when responding to the component editing operation triggered by the client based on the source code, and calling the edited functional component when responding to the dragging operation triggered by the client aiming at the component operation interface.
2. The method of claim 1, wherein if the function keyword matches a function description corresponding to a plurality of the function components, generating and presenting a corresponding component operation interface based on the function component, and invoking the function component when responding to a drag operation triggered by a client for the component operation interface, comprises:
based on the function keywords, performing series aggregation on the plurality of function components to obtain a combined function component;
and generating and presenting a corresponding component operation interface based on the combined functional component, and calling the aggregated functional components when responding to the dragging operation triggered by the client aiming at the component operation interface.
3. The method of claim 1, wherein if the call request is a client call request, the generating and presenting a corresponding component operation interface based on the functional component, and calling the functional component when responding to a drag operation triggered by a client for the component operation interface, comprises:
determining the number of parameters corresponding to the client calling request, and searching the functional components matched with the number of the parameters;
and generating a first Software Development Kit (SDK) based on the searched functional component, generating and presenting a corresponding component operation interface, and calling the first SDK when responding to a dragging operation triggered by the client aiming at the component operation interface.
4. The method of claim 1, wherein if the call request is a server call request, generating and presenting a corresponding component operation interface based on the functional component, and calling the functional component when responding to a drag operation triggered by a client for the component operation interface, comprises:
analyzing the server side calling request through a world wide web service module to obtain a uniform resource identifier uri and parameters contained in the server side calling request, wherein the web service module is arranged in the low-code development platform;
searching the functional component matched with the uri and the parameter, generating a second SDK based on the searched functional component, generating and presenting a corresponding component operation interface, and calling the second SDK when responding to a dragging operation triggered by a client aiming at the component operation interface.
5. The method of claim 1, wherein the sending a source code corresponding to the functional component to a client, generating and presenting a corresponding component operation interface based on the edited functional component when responding to a component editing operation triggered by the client based on the source code, and calling the edited functional component when responding to a drag operation triggered by the client for the component operation interface comprises:
sending the functional component to a client in a source code form, and uploading the edited functional component to a server for static code scanning when responding to component editing operation triggered by the client based on the source code;
compiling and generating a third SDK corresponding to the edited functional component after the scanning result is qualified;
and generating and presenting a corresponding component operation interface based on the third SDK, and calling the third SDK when responding to the dragging operation triggered by the client aiming at the component operation interface.
6. A method for calling a functional component, applied to a client, comprises the following steps:
responding to a calling function component operation triggered by a low-code development platform, and generating a calling request, wherein the calling request carries a function keyword;
sending the invocation request to a computing device to cause the computing device to perform the following operations: determining a preset function component corresponding to the calling request based on the function keyword, matching the function keyword with a function description corresponding to the function component, judging whether the matching is successful, and if the matching is successful, generating and presenting a corresponding component operation interface based on the function component; if the matching is not successful, sending the source code corresponding to the functional component to a client, wherein the functional component is stored in the low-code development platform;
if the source code corresponding to the functional component is received, performing component editing operation on the source code to enable the computing device to execute the following operations: generating and presenting a corresponding component operation interface based on the edited functional component;
performing a drag operation on the component operation interface to cause the computing device to perform the following operations: and when the drag operation triggered by the client aiming at the component operation interface is responded, the functional component or the edited functional component is called.
7. An apparatus for calling a functional component, applied to a computing device loaded with a low-code development platform, comprising:
the receiving module is used for receiving a calling request, wherein the calling request carries a function keyword, and a preset function component corresponding to the calling request is determined based on the function keyword, wherein the function component is stored in the low-code development platform;
the judging module is used for matching the function keywords with the function descriptions corresponding to the function components and judging whether the matching is successful;
the first execution module is used for generating and presenting a corresponding component operation interface based on the functional component when the matching is successful, and calling the functional component when a drag operation triggered by the client aiming at the component operation interface is responded;
and the second execution module is used for sending the source code corresponding to the functional component to the client when the matching is unsuccessful, generating and presenting a corresponding component operation interface based on the edited functional component when responding to the component editing operation triggered by the client based on the source code, and calling the edited functional component when responding to the dragging operation triggered by the client aiming at the component operation interface.
8. An apparatus for calling a functional component, applied to a client, includes:
the response module is used for responding to a calling function component operation triggered by a low-code development platform and generating a calling request, wherein the calling request carries a function keyword;
an operation module, configured to send the invocation request to a computing device, so that the computing device performs the following operations: determining a preset function component corresponding to the calling request based on the function keyword, matching the function keyword with a function description corresponding to the function component, judging whether the matching is successful, and if the matching is successful, generating and presenting a corresponding component operation interface based on the function component; if the matching is not successful, sending the source code corresponding to the functional component to a client, wherein the functional component is stored in the low-code development platform;
an editing operation module, configured to, if a source code corresponding to the functional component is received, perform component editing operation on the source code, so that the computing device executes the following operations: generating and presenting a corresponding component operation interface based on the edited functional component;
a drag operation module, configured to perform a drag operation on the component operation interface, so that the computing device performs the following operations: and when the drag operation triggered by the client aiming at the component operation interface is responded, the functional component or the edited functional component is called.
9. A computing device, comprising:
a memory for storing executable instructions;
a processor for reading and executing executable instructions stored in the memory to implement the method of any one of claims 1-5.
10. A client, comprising:
a memory for storing executable instructions;
a processor for reading and executing executable instructions stored in the memory to implement the method of claim 6.
11. A computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor, enable the processor to perform the method of any of claims 1-5.
12. A computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor, enable the processor to perform the method of claim 6.
CN202110853769.8A 2021-07-28 2021-07-28 Method, device and storage medium for calling functional component Active CN113495723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110853769.8A CN113495723B (en) 2021-07-28 2021-07-28 Method, device and storage medium for calling functional component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110853769.8A CN113495723B (en) 2021-07-28 2021-07-28 Method, device and storage medium for calling functional component

Publications (2)

Publication Number Publication Date
CN113495723A true CN113495723A (en) 2021-10-12
CN113495723B CN113495723B (en) 2023-09-22

Family

ID=77995935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110853769.8A Active CN113495723B (en) 2021-07-28 2021-07-28 Method, device and storage medium for calling functional component

Country Status (1)

Country Link
CN (1) CN113495723B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114911535A (en) * 2022-04-22 2022-08-16 青岛海尔科技有限公司 Application program component configuration method, storage medium and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190018657A1 (en) * 2017-07-13 2019-01-17 Facebook, Inc. Techniques to configure a web-based application for bot configuration
CN109862103A (en) * 2019-02-26 2019-06-07 上海南潮信息科技有限公司 File data secure sharing method and device based on block chain
CN111124477A (en) * 2019-12-19 2020-05-08 华云数据有限公司 Front-end configuration method and system and electronic equipment
WO2020211661A1 (en) * 2019-04-15 2020-10-22 阿里巴巴集团控股有限公司 Graphical development method, medium, device, and apparatus
US20200341777A1 (en) * 2019-04-24 2020-10-29 Salesforce.Com, Inc. Dynamic linking of content elements to development tool resources
CN112463154A (en) * 2021-02-01 2021-03-09 北京宇信科技集团股份有限公司 Page generation method, device and system and electronic equipment
CN112513820A (en) * 2018-07-16 2021-03-16 微软技术许可有限责任公司 Transparent remote execution of development tool extension programs
CN112835560A (en) * 2021-03-04 2021-05-25 广州图创计算机软件开发有限公司 WEB multi-terminal low-code intelligent software development platform
US20210192106A1 (en) * 2019-12-20 2021-06-24 Accenture Global Solutions Limited Micro frontends with model-based state

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190018657A1 (en) * 2017-07-13 2019-01-17 Facebook, Inc. Techniques to configure a web-based application for bot configuration
CN112513820A (en) * 2018-07-16 2021-03-16 微软技术许可有限责任公司 Transparent remote execution of development tool extension programs
CN109862103A (en) * 2019-02-26 2019-06-07 上海南潮信息科技有限公司 File data secure sharing method and device based on block chain
WO2020211661A1 (en) * 2019-04-15 2020-10-22 阿里巴巴集团控股有限公司 Graphical development method, medium, device, and apparatus
US20200341777A1 (en) * 2019-04-24 2020-10-29 Salesforce.Com, Inc. Dynamic linking of content elements to development tool resources
CN111124477A (en) * 2019-12-19 2020-05-08 华云数据有限公司 Front-end configuration method and system and electronic equipment
US20210192106A1 (en) * 2019-12-20 2021-06-24 Accenture Global Solutions Limited Micro frontends with model-based state
CN112463154A (en) * 2021-02-01 2021-03-09 北京宇信科技集团股份有限公司 Page generation method, device and system and electronic equipment
CN112835560A (en) * 2021-03-04 2021-05-25 广州图创计算机软件开发有限公司 WEB multi-terminal low-code intelligent software development platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114911535A (en) * 2022-04-22 2022-08-16 青岛海尔科技有限公司 Application program component configuration method, storage medium and electronic device
CN114911535B (en) * 2022-04-22 2023-12-19 青岛海尔科技有限公司 Application program component configuration method, storage medium and electronic device

Also Published As

Publication number Publication date
CN113495723B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
US11789715B2 (en) Systems and methods for transformation of reporting schema
US10481884B2 (en) Systems and methods for dynamically replacing code objects for code pushdown
CN108829378B (en) Application software development method and device and electronic equipment
CN112769706B (en) Componentized routing method and system
CN101430643A (en) Method and apparatus for providing item development environment, and item development system
US9582270B2 (en) Effective feature location in large legacy systems
US9367307B2 (en) Staged points-to analysis for large code bases
CN107391528B (en) Front-end component dependent information searching method and equipment
CN115599359A (en) Code generation method, device, equipment and medium
CN111290738A (en) Resource processing method, device and equipment of application program and storage medium
CN108984202B (en) Electronic resource sharing method and device and storage medium
CN113495723B (en) Method, device and storage medium for calling functional component
WO2024002302A1 (en) Application management method, application subscription method, and related device
CN114546410A (en) Code optimization method based on design mode and related equipment
US20220269744A1 (en) Methods and systems for enabling dynamic filters for software search optimization
CN111221841A (en) Real-time processing method and device based on big data
CN114064712A (en) Data access method and device, electronic equipment and computer readable storage medium
CN113420818A (en) Content management system identification method and device
CN113504904A (en) User-defined function implementation method and device, computer equipment and storage medium
CN113806327A (en) Database design method and device and related equipment
CN109635175B (en) Page data splicing method and device, readable storage medium and electronic equipment
CN113032004A (en) Method, apparatus and program product for managing development jobs in a development environment
CN116974653B (en) Class loading method and system
CN111596941B (en) Application updating method, device, electronic equipment and medium
CN109871231B (en) Code sharing method and system

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