Service component configuration method and device based on visual platform and electronic equipment
By dragging and configuring functional components in the visualization platform, obtaining their interface information, and realizing cross-interface business processing, the problem that low-code modules cannot handle complex business requirements is solved, and efficient business component configuration without programming is achieved.
Patent Information
- Application Number
- CN202510910930.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-02
- Publication Date
- 2025-11-28
AI Technical Summary
Existing low-code modules cannot support data computation and processing and cross-operation of multiple datasets under complex business requirements in the visualization platform. Users need to implement customized processing through additional coding.
In the business configuration interface of the visualization platform, users can drag and drop and configure functional components to obtain their interface configuration information and relationship configuration information, thereby enabling cross-interface business processing and automatically configuring target functional components using natural language processing technology and preset interface sets.
Users can complete complex business logic configurations without programming skills, improving development efficiency, reducing development difficulty, and expanding the platform's business processing scope.
Smart Images

Figure CN121029147A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, and more particularly, to a business component configuration method and device based on a visualization platform and electronic equipment. BACKGROUND
[0002] Currently, the configuration method of a business component mainly relies on low-code modules for configuration in a visualization platform. However, in the existing low-code module related technology, the functional components and interfaces of the platform are usually preset, and users can only configure based on the limited functional components and interfaces provided by the platform. The configured functional components usually support direct calling of data to the visualization platform, but do not support computing and processing of data, and even less support cross operation of multiple data sets. When facing complex business requirements, such as the need to combine multiple interfaces or customize data processing (such as data aggregation, deduplication, etc.), users often need to develop additional codes, and cannot directly complete the operation through visualization. SUMMARY
[0003] Therefore, the embodiments of the present application provide a business component configuration method and device based on a visualization platform and electronic equipment, which can configure the relationship between interfaces of functional components in a visualization interface, so that the configured functional components can perform cross-interface business processing.
[0004] In a first aspect, the embodiments of the present application provide a business component configuration method based on a visualization platform. The visualization platform includes a business configuration interface, and the business configuration interface includes at least a business configuration area and a component selection area. The component selection area contains a plurality of functional components to be added. The method includes: in response to a selection operation on at least one target functional component in the plurality of functional components to be added, presenting the at least one target functional component in the business configuration area; obtaining configuration information of each target functional component, which includes configuration information of an interface corresponding to the target functional component and relationship configuration information between the interface corresponding to the target functional component and other interfaces; and configuring the target functional component based on the configuration information of the target functional component to obtain a configured target functional component. The configured target functional component can be used to call the corresponding interface to obtain data of a server where the visualization platform is located and / or data of other devices. The visualization platform can call the configured target functional component to perform cross-interface business processing.
[0005] In a second aspect, an embodiment of the present application provides a business component configuration device based on a visual platform. The visual platform includes a business configuration interface. The business configuration interface includes at least a business configuration area and a component selection area. The component selection area includes a plurality of functional components to be added. The device includes: a functional component selection module configured to present at least one target functional component in the business configuration area in response to a selection operation on the at least one target functional component in the plurality of functional components to be added; a configuration information acquisition module configured to acquire configuration information of each target functional component. The configuration information includes configuration information of an interface corresponding to the target functional component and relationship configuration information between the interface corresponding to the target functional component and other interfaces; and a functional component configuration module configured to configure the target functional component based on the configuration information of the target functional component to obtain a configured target functional component. The configured target functional component can be used to call the corresponding interface to obtain data of a server where the visual platform is located and / or data of other devices. The visual platform can call the configured target functional component to perform cross-interface business processing.
[0006] In an implementation, the at least one target functional component is a functional component configured to perform a target type of business. The configuration information acquisition module is further configured to obtain a target interface required to perform the target type of business and input parameter information corresponding to the target interface based on a preset interface set. The functional component configuration module is further configured to configure the target functional component based on the input parameter information corresponding to the target interface. The configured target functional component can be used to call the corresponding interface to obtain data of a server where the visual platform is located and / or data of other devices to perform any business processing instruction generation business processing result under the target type of business.
[0007] In an implementation, the configuration information acquisition module includes an information processing submodule, an interface obtaining submodule, and an information determining submodule. The information processing submodule is configured to perform natural language processing on description information of the target type of business by using a natural language processing technology to obtain a target intent and key parameter information corresponding to the target type of business. The interface obtaining submodule is configured to obtain a target interface based on description information corresponding to each interface in a preset interface set and the target intent. The information determining submodule is configured to determine input parameter information of the target interface based on the key parameter information.
[0008] In an implementation, the interface obtaining submodule is further configured to: obtain, based on the description information corresponding to each interface in the preset interface set and the target intent, a candidate interface related to the target intent from the preset interface set; determine the candidate interface as the target interface if the candidate interface can directly implement the target intent; register a target interface in the preset interface set and configure interface configuration information for the target interface based on the target intent and the description information corresponding to each candidate interface if the candidate interface cannot directly implement the target intent, wherein the interface configuration information comprises combination logic of the candidate interface.
[0009] In an implementation, the apparatus further comprises a parameter obtaining module and a service processing module. The parameter obtaining module is configured to obtain, in response to a service processing instruction corresponding to the target type service type, input parameters corresponding to input parameters of the target interface from the service processing instruction, and invoke the target interface based on the configuration information of the target interface and the input parameters to obtain service data corresponding to the service processing instruction. The service processing module is configured to generate a first processing result according to the service processing data.
[0010] In an implementation, the apparatus further comprises a result matching module and a result display module. The result matching module is configured to match the first processing result with a target service processing result to obtain a matching result, wherein the target service processing result is generated by invoking a corresponding target interface by a completed target functional component to execute the service processing instruction. The result display module is configured to display the service processing result in the service configuration interface when the matching result indicates that the first processing result matches the service processing result.
[0011] In an implementation, the result display module is further configured to generate an error prompt information when the matching result indicates that the first processing result does not match the service processing result, and display the error prompt information in the service configuration interface.
[0012] In an implementation, the apparatus further comprises a component display module configured to select a plurality of functional components corresponding to a target type service from a plurality of functional components, and display the plurality of functional components corresponding to the target type service in a component selection area of the service configuration interface.
[0013] In an implementation, the apparatus further comprises a request receiving module, an authentication module, and a configuration interface presenting module. The request receiving module is configured to receive a login authentication request of the visualization platform sent by the client, and the login authentication request carries authentication information. The authentication module is configured to authenticate the authentication information in the login authentication request according to preset authentication information. The configuration interface presenting module is configured to present a business configuration interface in response to a page configuration request when the authentication is passed.
[0014] In a third aspect, an electronic device is provided, including a processor and a memory. One or more programs are stored in the memory and configured to be executed by the processor to implement the above method.
[0015] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores program codes. When the program codes are run by a processor, the above method is executed.
[0016] In a fifth aspect, a computer program product or a computer program is provided, and the computer program product or the computer program includes computer instructions stored in a computer readable storage medium. A processor of a computer device acquires the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to execute the above method.
[0017] The method provided by the embodiments of the present application comprises the following steps: in response to a selection operation on at least one target function component, at least one target function component is presented in a business configuration area; configuration information of each target function component is acquired, the configuration information comprising configuration information of an interface corresponding to the target function component and relationship configuration information between the interface corresponding to the target function component and other interfaces; and the target function component is configured based on the configuration information of the target function component, and the configured target function component can be used to call the corresponding interface to acquire data of a server where the visualization platform is located and / or data of other devices, and the visualization platform can call the configured target function component to perform cross-interface business processing. Through the above method, a user can directly select a target function component in a business configuration interface of a visualization platform, and configure the target function component based on configuration information of an interface corresponding to the target function component and relationship configuration information between the interface corresponding to the target function component and other interfaces, so that the configured target function component can automatically call multiple sets of interface data (such as server or external device data), thereby realizing cross-interface business processing. Therefore, the user only needs to complete complex business logic through dragging and configuration, reduces the dependence on programming skills, improves development efficiency, reduces development difficulty, and improves the business processing range of the platform. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This document illustrates a flowchart of a business component configuration method based on a visualization platform, as provided in an embodiment of this application. Figure 2 It shows Figure 1 A flowchart illustrating step S120; Figure 3 This illustration shows another flowchart of a business component configuration method based on a visualization platform provided in an embodiment of this application; Figure 4 A flowchart illustrating a business component configuration method based on a visualization platform provided in an embodiment of this application is shown. Figure 5 This paper presents another flowchart illustrating a business component configuration method based on a visualization platform, as provided in an embodiment of this application. Figure 6 This paper shows a connection block diagram of a business component configuration device based on a visualization platform according to an embodiment of this application; Figure 7 A structural block diagram of an electronic device for performing the methods of embodiments of this application is shown. Detailed Implementation
[0020] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0021] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0022] The block diagrams shown in the drawings are merely functional entities, and do not necessarily correspond to physically independent entities. That is, the functional entities can be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0023] The flowcharts shown in the drawings are merely exemplary illustrations, and do not necessarily include all contents and operations / steps, nor are they necessarily executed in the order described. For example, some operations / steps can be further decomposed, and some operations / steps can be combined or partially combined, so the actual execution order can be changed according to actual conditions.
[0024] It should be noted that "multiple" referred to herein means two or more. The association relationship of "and / or" describes the associated objects, which means that there can be three relationships, for example, A and / or B can represent the three cases of A alone, A and B together, and B alone. The character " / " generally represents an "or" relationship between the associated objects before and after it.
[0025] Figure 1 A business component configuration method based on a visual platform is specifically shown, which can be applied to an electronic device, which can be a terminal or a server or other device capable of business component configuration. The visual platform includes a business configuration interface, which includes at least a business configuration area and a component selection area. The component selection area contains a plurality of functional components to be added. The method includes: Step S110: In response to a selection operation on at least one target functional component of the plurality of functional components to be added, the at least one target functional component is presented in the business configuration area.
[0026] Wherein, the functional component refers to a predefined business logic module (such as a column chart, an API caller, a conditional judgment module), which encapsulates a specific function; the target functional component refers to the functional component selected by the user; the component display area is an area in the visual interface that displays a plurality of business components to be selected; and the business configuration area is an area where the user drags and drops business components and configures their attributes and logic, etc.
[0027] The user can drag or click one or more functional components (such as tables, charts, forms, etc.) in the component selection area, and instantiate and render the selected components to the business configuration area. The selected components initialize the default attributes (such as size, position, data binding rules) of the components while being rendered to the page configuration area.
[0028] To facilitate the user to quickly select the required business component according to the demand, in an implementable manner, before step S110 is performed, the method further comprises: selecting a plurality of function components corresponding to the target type of business from a plurality of function components, and displaying the plurality of function components corresponding to the target type of business in the business configuration interface component selection area.
[0029] Wherein, the target business type can be input by the user or selected by the user, and a plurality of business types and a plurality of business components corresponding to each business type are stored in the background server of the visualization platform, based on which, after obtaining the target business type, the plurality of function components corresponding to the target business type can be obtained.
[0030] In an implementable manner, to ensure that only the user with business configuration permission can perform the configuration of the business component described above, before step S110 is performed, the method further comprises: receiving a login authentication request of the visualization platform sent by the client, the login authentication request carrying authentication information; authenticating the authentication information in the login authentication request according to the preset authentication information; if the authentication is passed, presenting the business configuration interface in response to the page configuration request.
[0031] Specifically, the user can input an account and a password in the client (such as a browser or an application client, etc.), and send a login authentication request to the background server of the visualization platform after triggering the login control, the background server can authenticate the account and the password carried in the authentication request, specifically, it can be judged whether there is a preset account consistent with the account in the authentication request, if there is, it further authenticates whether the password in the authentication request matches the preset password corresponding to the preset account, if it matches, the authentication is passed, if there is no preset account consistent with the account in the authentication request, or the password in the authentication request does not match the preset password corresponding to the preset account, the authentication fails.
[0032] Step S120: obtaining the configuration information of each target function component, the configuration information including the configuration information of the interface corresponding to the target function component, and the relationship configuration information between the interface corresponding to the target function component and other interfaces.
[0033] Wherein, the configuration information of the interface can include the interface address (such as URL address) and the request method (such as GET / POST), the configuration information of the interface can also include the parameter (such as query condition, request header); the relationship configuration information between the interface and other interfaces can include the data dependency between the interfaces (such as the output of interface A as the input of interface B), the calling sequence (serial / parallel), and the logical calculation relationship (such as one or more of the intersection, union and difference set between a plurality of interfaces), the conditional triggering rule (such as calling interface B when interface A returns a successful calling result), etc.
[0034] The configuration information for each target functional component can be obtained by acquiring the configuration information filled in by the user through a form or JSON editor. Alternatively, it can be obtained by acquiring the configuration information generated based on the required business type (e.g., the target business type), such as retrieving the interfaces and their input parameters required to execute the target business type from an interface set. This input parameter information may include the rules for filling in the parameters (format, range, required, etc.), the source of the parameters (URL path, query string, request body, header, etc.), and so on.
[0035] The above methods for obtaining configuration information of target functional components are merely illustrative; there are many other ways to obtain such information, which are not specifically limited here.
[0036] Step S130: Based on the configuration information of the target functional component, configure the target functional component to obtain the configured target functional component. The configured target functional component can be used to call the corresponding interface to obtain data from the server where the visualization platform is located and / or data from other devices. The visualization platform can call the configured target functional component to perform cross-interface business processing.
[0037] Cross-interface business processing refers to multiple interfaces working together according to preset rules to complete complex tasks (such as "querying orders first, then querying logistics based on order IDs", or "statistics on the total sales volume or sales difference of two types of vehicles"). The configured target functional component refers to a component instance that has been bound to a data source (i.e., can call the data source through an interface) and business logic, and can run in the visualization platform.
[0038] Configuring target functional components based on their configuration information can be achieved in several ways. First, the configuration information can be stored as structured data and associated with the target functional component to ensure it loads the correct configuration information at runtime. Second, the configuration information of the target functional component can be displayed in the business configuration area, showing the corresponding interfaces and their information. Interfaces can be dragged and dropped, and connections between them can be used to define the relationships between each interface and others, thus configuring the target functional components. These methods are merely illustrative; many other configuration methods exist and are not limited here.
[0039] For example, if the target functional component involves four interfaces A, B, C, and D, and the target functional component needs to count the total amount of data corresponding to the four interfaces, by displaying the four interfaces in the business configuration area, users can connect the four interfaces through a visual interface and perform an accumulation operation (the accumulation operation is indicated by the interface connection method, and the indication information that the connection is associated with the accumulation-related code and the accumulation-related code are pre-loaded in the visualization platform). Similarly, users can perform related operations such as aggregation, deduplication, and field combination.
[0040] By adopting the method described in this application, users can directly select the target functional component in the business configuration interface. Subsequently, based on the configuration information of the interface corresponding to the target functional component and the configuration information of the relationship between the interface corresponding to the target functional component and other interfaces, the target functional component can be configured according to specific business needs. This enables the configured target functional component to automatically call multiple sets of interface data (such as server or external device data), thereby realizing cross-interface business processing. Therefore, users only need to drag and drop and configure to complete complex business logic, reducing reliance on programming skills, improving development efficiency, reducing development difficulty, and expanding the business processing scope of the platform.
[0041] In one possible implementation, the at least one target function is a functional component for executing a target type of business. Step S120 includes: obtaining the target interface required for executing the target type of business and the input parameter information corresponding to the target interface based on a preset interface set; Step S130 includes: configuring the target functional component based on the input parameter information corresponding to the target interface, wherein the configured target functional component can be used to call the corresponding interface to obtain data from the server where the visualization platform is located and / or data from other devices to execute any business processing instruction under the target type of business and generate business processing results.
[0042] The aforementioned preset interface set can be a collection of interfaces from the OPENAPI (Open Application Programming Interface) specification. By leveraging the openness and compatibility of the OPENAPI specification, it allows for simultaneous access to both internal and external interfaces, enabling simultaneous access to internal and external data. Specifically, each interface in the OPENAPI specification is defined using YAML / JSON, including metadata such as URL, methods, parameters, and return values. It is cross-platform compatible and supports unified management of internal and external system interfaces.
[0043] In some scenarios, the above-mentioned interface set can also be the GraphQL interface set (Graph Query Language) or the gRPC interface set (gRPC Remote Procedure Calls), etc.
[0044] The method of obtaining the target interface and the corresponding input parameter information of the target interface required to execute the target type business based on the preset interface set can be as follows: according to the semantic tags or keywords of the target type business (such as "sales statistics A and B data"), the interface matching is selected from the interface set, and then the required parameters, optional parameters and parameter types are extracted from the definition of the target interface as input parameter information.
[0045] For example, taking the preset interface set as the interface set in the OpenAPI specification file as an example, the above method of obtaining the target interface required to execute the target type of business and the corresponding input parameter information of the target interface based on the preset interface set can be as follows: obtain a list of all available interfaces by parsing the OpenAPI specification file (such as swagger.json) or querying the interface registry center; then, obtain the interface required to execute the target type of business from the available interfaces; and obtain the required parameters, optional parameters and parameter types corresponding to the target interface from the definition of the target interface as input parameter information.
[0046] In one possible implementation, please refer to Figure 2 The steps described above for obtaining the target interface required to execute the target type of business and the corresponding input parameter information of the target interface based on the preset interface set include: Step S122: Use natural language processing technology to process the description information of the target type service to obtain the target intent and the key parameter information corresponding to the target type service.
[0047] The target type business description information refers to the user's natural language requirements, such as calculating the total sales volume of vehicle A and vehicle B over a period of time, or calculating the sales difference between vehicle A and vehicle B over a period of time. The target intent refers to the core purpose of the business description information, such as calculating the total sales volume of vehicle A and vehicle B, or calculating the sales difference between vehicle A and vehicle B. Key parameter information refers to the business conditions extracted from the user's natural language description that directly affect the interface call. These can include business-dimensional parameters and operational constraint-dimensional parameters. Business-dimensional parameters can include time, region, product category, etc., while operational constraint-dimensional parameters can include sorting methods, etc.
[0048] For example, if the description of the target type of business is to query the top ten car models sold within a certain period of time, then the key parameters include the top ten, sales volume, and time.
[0049] Step S124: Obtain the target interface based on the description information corresponding to each interface in the preset interface set and the target intent.
[0050] Specifically, step S124 above may involve encoding the description information and target intent corresponding to the interface into a vector, using cosine similarity matching to find interfaces whose description information and target intent have a similarity of a preset threshold as target interfaces. Based on the description information corresponding to each interface in the preset interface set, it is determined whether there exists an interface that can directly realize the target intent. If so, the interface that realizes the target intent is determined as the target interface.
[0051] Step S126: Determine the input parameter information of the target interface based on the key parameter information.
[0052] It is worth mentioning that the target interface's interface specification clearly defines the range and format of the parameters. Therefore, step S126 above can be to check whether the name and type of the key parameters are compatible with the range and format of the parameters defined in the interface. If they are compatible, the target interface's input parameter information is obtained based on the input parameter information and the range and format of the parameters defined in the target interface's interface specification.
[0053] By using the steps S122-S126 described above, the target interface and its input parameters can be accurately obtained, which facilitates the configuration of the target service component.
[0054] In one possible implementation, step S124 includes: Step S124a: Based on the description information corresponding to each interface in the preset interface set and the target intent, obtain candidate interfaces related to the target intent from the preset interface set.
[0055] Specifically, the target intent (such as "get sales data") and interface description (such as "query sales records by conditions") can be encoded into semantic vectors and sorted by cosine similarity: if the interface description contains intent keywords (such as "sales" + "query"), it is marked as a candidate interface, or interfaces with similarity ranking above the preset value or greater than the preset similarity threshold are marked as candidate interfaces.
[0056] If it is determined that the candidate interface can directly achieve the target intent, then step S124b is executed: the candidate interface is determined as the target interface.
[0057] In determining whether a candidate interface can achieve the target intent, it's possible to check whether the input parameters of the candidate interface cover key business parameters (e.g., the interface supports year and region, while the user requirement is year=2023, region=East China). It's also possible to determine whether the interface and its return value include the fields required by the target business. If all of the above conditions are met, or at least one of them is met, the candidate interface can be determined to achieve the target intent. If none of the above conditions are met, or at least one condition is not met, the candidate interface cannot achieve the target intent.
[0058] If it is determined that the candidate interface cannot directly achieve the target intent, then step S124c is executed: register the target interface in the preset interface set, and configure interface configuration information for the target interface based on the target intent and the description information corresponding to each candidate interface. The interface configuration information includes its combination logic for the candidate interface.
[0059] By adopting the above method, it is possible to intelligently determine whether an interface is directly usable or needs to be combined to generate a new interface, thereby dynamically adapting to business needs and improving the business applicability of the target functional components.
[0060] In one possible implementation, please refer to Figure 3 After performing step S130, the method further includes: Step S140: In response to the business processing instruction corresponding to the target type business type, obtain the input parameters corresponding to the input parameter information of the target interface from the business processing instruction, and call the target interface based on the configuration information of the target interface and the input parameters to obtain the business data corresponding to the business processing instruction.
[0061] Specifically, business processing instructions (such as HTTP requests and message queue events) can be parsed to extract input parameters that match the target interface's input parameters. Then, a complete request can be generated based on the interface configuration information (URL, method, headers) and the input parameters to obtain the corresponding business data. This process can be executed by the visualization platform's backend server.
[0062] Step S150: Generate a first processing result based on the business processing data.
[0063] Specifically, the operation types implied in the business processing instructions (such as calculation methods like "statistics" and "sorting", or methods like "aggregation" and "filtering") determine how the acquired business processing data is processed. Based on this, the business processing data can be processed according to the business processing instructions, such as performing aggregation, filtering, and calculation operations, to obtain the first processing result.
[0064] For example, taking the data processing instruction "Generate a report on the top 10 vehicle sales revenues of all provinces in China in 2100" as an example, after obtaining the total vehicle sales revenue of each province in China in 2100 through the corresponding interface, the total vehicle sales revenue of each province in China in 2100 is sorted in descending order according to the TOP10 keyword in the instruction, the top 10 provinces are extracted, and the extracted top 10 provinces and their respective vehicle sales revenues in 2100 are output.
[0065] In one implementation, after performing step S150, the method further includes: Step S160: Match the first processing result with the target business processing result to obtain a matching result. The target business processing result is generated by the configured target functional component calling the corresponding target interface to execute the business processing instruction.
[0066] The matching method between the first processing result and the target business processing result can be as follows: First, check if the first processing result and the target business processing result are consistent; if they are consistent, they are matched; if they are inconsistent, they are not matched. Second, calculate the similarity between the first processing result and the target business processing result; if the similarity is greater than a preset similarity threshold, they are matched; if the similarity is less than the preset similarity threshold, they are not matched. The above matching methods are merely illustrative, and the specific matching method can be selected according to the type of the first processing result and the business data result.
[0067] If the matching result indicates that the first processing result matches the business processing result, then step S170 is executed: the business processing result is displayed in the business configuration interface.
[0068] In one possible implementation, the method further includes: if the matching result indicates that the first processing result does not match the service processing result, then step S180 is executed: generating an error message and displaying the error message on the service configuration interface.
[0069] It's worth noting that the first processing result is obtained from the visualization platform's backend server, while the target business processing result is generated by the target functional component configured in the visualization interface calling the corresponding target interface to execute the business processing instruction (i.e., obtained from the frontend). By employing steps S160-S180 above, and comparing the intermediate result (first processing result) generated by the backend with the final result (business processing result) on the frontend, it can be ensured that the data displayed on the frontend is consistent with the actual data on the backend, and that there are no errors in the interface call chain and business logic. When a match fails, an error message is displayed so that the user can check whether there are problems with the component configuration or data conversion logic. Therefore, by verifying the consistency of frontend and backend data, the failure rate of the target functional component configuration is significantly reduced, and the accuracy of the business component configuration is improved.
[0070] like Figure 4 The diagram illustrates an application scenario of a business component configuration method based on a visualization platform, as provided in this application. This method is applied to an electronic device, which can be a backend server of the visualization platform. The device deploys an authentication center, an open module based on OpenAPI and AI, and a vision module based on code technology. The authentication center refers to a software program module used for authentication. The open module based on OpenAPI and AI and the vision module based on code technology can also be software program modules. These modules can cooperate to configure business components and execute corresponding business processes. The specific configuration and business execution process is as follows: When a user needs to configure business components, they can first log in to the visualization platform. Specifically, the user can first enter their username and password on the platform's login page and then send an authentication request to the platform's backend server's authentication center by clicking the login control on the login page. Upon receiving the authentication request, the authentication center can first determine if the user is a registered user (see the aforementioned verification process for details, which will not be repeated here). If authentication is successful, the center can further determine if the user has the necessary permissions to configure business components. If they do, they can execute the configuration operations described in the aforementioned steps. If they do not have permissions, they can request them. If the permission request is granted, they can also execute the configuration operations described in the aforementioned steps.
[0071] With users logged into the visualization platform and granted permission to configure business components, front-end business component configuration can be implemented using a low-code visual module. Specifically, users can perform visual operations through this low-code visual module, such as dragging and dropping business components, adjusting their layout, setting properties, configuring input parameter information for each component's response interface (e.g., interface address and parameters), and finally setting up a proxy for debugging before displaying the response interface.
[0072] Specifically, when a user logs into the visualization platform and has the permission to configure business components, the visualization platform can display a business configuration interface. The visualization interface includes a business configuration area and a component selection area. The component selection area contains built-in visual functional components. These functional components encapsulate specific functions or data display capabilities in an intuitive form. Users can quickly build and configure page components in the business configuration interface by dragging, dropping, and configuring.
[0073] For example, if you need a "bar chart" showing the traffic volume of a website in the past six months, then the "bar chart" can be called a "functional component." That is, the user needs to create a bar chart in the business configuration area. At this point, they can select the business component that displays the bar chart from the component selection area and drag it into the business configuration interface. Afterwards, they can adjust the bar chart's color and size (setting attributes). After obtaining the relevant information about the website's API, they can configure the backend traffic statistics API path and input parameters for this functional component (configuring URL and parameters). Once these are set, the bar chart component will call the backend API and display the traffic volume for the past six months.
[0074] It's worth noting that to obtain the interface information of the target interfaces corresponding to the target business components, it's also possible to leverage a pre-defined interface set (such as the interface set in the OpenAPI interface specification) and open AI (Artificial Intelligence) modules. Specifically, OpenAPI provides standardized data module access interfaces, improving interface readability and maintainability, while facilitating parsing and processing. OpenAPI enables CRUD operations on internal data and supports the import of external data. Based on these features, after obtaining the target interfaces corresponding to the target business components, the system can visually display the target interfaces in the business configuration interface. Data aggregation can be flexibly performed according to requirements, and this operation can be visualized. Users can intuitively drag and drop to combine various target interfaces through the visual interface to achieve customized data processing and business logic construction, thereby improving the platform's openness and flexibility.
[0075] For example, if a business component needs to count the total number of objects of four types (a, b, c, and d), then the target interfaces corresponding to the target business component are A, B, C, and D. These four interfaces can be displayed on the business configuration interface. In related technologies, the business component ultimately needs to sum the object counts from these four interfaces, which usually requires code combination. However, this application allows connecting these four interfaces directly in the business configuration interface and performing the interface summation operation. These summation operations are pre-built into the page (this part of the code functionality). Users who want to perform these summation operations in the future do not need to write code; they can directly use this function. In addition to aggregation, there are also operations such as deduplication and field combination.
[0076] It's worth noting that for more complex business types, the platform internally utilizes an AI-based natural language processing system to understand user-input commands (descriptive information of the target business type). Upon receiving the business processing instruction for the target business type, the backend server first determines whether it supports customized OpenAPI development. If so, it uses AI to parse the user's input and identify the user's intent. Then, it selects the OpenAPI interface matching the intent and executes the aforementioned operations to perform aggregation and return the result. The user verifies the result returned by the AI system; if it meets the business requirements, they proceed to the next step; otherwise, the result is regenerated. It's also worth mentioning that for business types that do not support customized OpenAPI development, the configuration task is completed through a visual interface. Users need to select a template corresponding to the business processing instruction from the platform's template library, fill in the parameters according to the template requirements, and then execute the business processing instruction.
[0077] For example, when the description information of the target business type is input in natural language, such as "deduplicatively aggregate the data from interface A and interface B," the AI-based natural language processing system first parses the user's input, identifies the relevant interfaces A and B, and recognizes that deduplication and aggregation are required. It then queries a preset set of interfaces (the set of interfaces in the OpenAPI interface specification) to find interfaces A and B that match the user's intent. The system then performs deduplication and aggregation on the data from these two interfaces, generates a combined result, and finally returns this result to the user. The user only needs to review and confirm the AI-generated result to ensure the accuracy and effectiveness of the operation.
[0078] It's worth noting that, to ensure the reliability of subsequently acquired data, the visualization platform's backend server is also used to obtain business data through target interfaces in the OpenAPI interface set. Based on the first processing result of the obtained business data, this first processing result is compared with the target business processing result (generated by the configured target functional component calling the corresponding target interface to execute the business processing instruction). During the joint testing and verification process, automated testing promptly feeds back the test results to the user and provides optimization suggestions for the modules (e.g., when the front-end and back-end data are inconsistent, i.e., the first processing result is inconsistent with the target business processing result, an error message is generated and displayed on the business configuration interface) to help improve the platform's functionality and performance. For open modules, users optimize the results automatically generated by the AI system based on feedback and output the feedback to the customized development process; while for visual modules, users adjust various components based on feedback and output the feedback to the visualization operation.
[0079] Please see Figure 5 By integrating AI-generated operations into the entire visualization platform, users only need to input commands to automatically generate a visual interface and execute business component configurations and business processing descriptions.
[0080] Before configuring business components, users must first complete the login authentication process through the authentication center, as described above. After completing login authentication, when configuring business components, the first priority is to collect high-quality datasets related to the business. This data should cover user requirements, interface specifications, and common configuration errors. Then, this data is used to train the AI system to better understand and handle specific business scenarios.
[0081] Specifically, users only need to input a description of the target type of service. Based on this description, the user can select multiple functional components corresponding to the target type of service from a pool of functional components. These components are then displayed in the component selection area of the service configuration interface, allowing the user to select the target functional component. Subsequently, natural language processing (NLP) is used to process the description of the target type of service to obtain the target intent and key parameter information corresponding to the target type of service. Based on the description of each interface in a preset interface set and the target intent, a target interface is obtained. The input parameters of the target interface are determined based on the key parameter information, and the target functional component is configured based on these input parameters. The configured target functional component can then be used to call the corresponding interface to obtain data from the server where the visualization platform is located and / or data from other devices to execute any service processing instruction under the target type of service and generate service processing results. Furthermore, when processing specific business operations, in response to the business processing instruction corresponding to the target business type, the input parameters corresponding to the input parameter information of the target interface are obtained from the business processing instruction. Based on the configuration information and input parameters of the target interface, the target interface is called to obtain business data corresponding to the business processing instruction. A first processing result is generated based on the business processing data, and the first processing result is matched with the target business processing result to obtain a matching result. The target business processing result is generated by the configured target functional component calling the corresponding target interface to execute the business processing instruction, thereby verifying the first processing result. In the above process, the user only needs to manually adjust each business processing component and interface when necessary, thereby significantly improving the reliability and accuracy of the platform. Through this intelligent generation method, personalized needs can be met more effectively, the learning cost of users can be significantly reduced, and even users with weak technical backgrounds can easily get started.
[0082] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0083] Please see Figure 6 Another embodiment of this application provides a business component configuration device 200 based on a visualization platform. The visualization platform includes a business configuration interface, which includes at least a business configuration area and a component selection area. The component selection area contains multiple functional components to be added. The business component configuration device 200 includes: a functional component selection module 210, used to present the at least one target functional component in the business configuration area in response to a selection operation for at least one target functional component among the multiple functional components to be added; a configuration information acquisition module 220, used to acquire configuration information for each target functional component, the configuration information including configuration information of the interface corresponding to the target functional component and configuration information of the relationship between the interface corresponding to the target functional component and other interfaces; and a functional component configuration module 230, used to configure the target functional component based on the configuration information of the target functional component, to obtain the configured target functional component. The configured target functional component can be used to call the corresponding interface to obtain data from the server where the visualization platform is located and / or data from other devices. The visualization platform can call the configured target functional component to perform cross-interface business processing.
[0084] In one possible implementation, the at least one target function is a functional component for executing a target type of business; the configuration information acquisition module 220 is further configured to obtain the target interface required for executing the target type of business and the input parameter information corresponding to the target interface based on a preset interface set. The functional component configuration module is further configured to configure the target functional component based on the input parameter information corresponding to the target interface, wherein the configured target functional component can be used to call the corresponding interface to obtain data from the server where the visualization platform is located and / or data from other devices to execute any business processing instruction under the target type of business and generate business processing results.
[0085] In one possible implementation, the configuration information acquisition module 220 includes an information processing submodule, an interface acquisition submodule, and an information determination submodule. The information processing submodule is used to perform natural language processing on the description information of the target type service using natural language processing technology to obtain the target intent and the key parameter information corresponding to the target type service. The interface acquisition submodule is used to obtain the target interface based on the description information corresponding to each interface in the preset interface set and the target intent. The information determination submodule is used to determine the input parameter information of the target interface based on the key parameter information.
[0086] In one possible implementation, the interface acquisition submodule is further configured to: obtain candidate interfaces related to the target intent from the preset interface set based on the description information corresponding to each interface in the preset interface set and the target intent; if it is determined that the candidate interface can directly realize the target intent, determine the candidate interface as the target interface; if it is determined that the candidate interface cannot directly realize the target intent, register the target interface in the preset interface set, and configure interface configuration information for the target interface based on the target intent and the description information corresponding to each candidate interface, wherein the interface configuration information includes its combination logic for the candidate interface.
[0087] In one possible implementation, the business component configuration device 200 further includes a parameter acquisition module and a business processing module. The parameter acquisition module is used to respond to the business processing instruction corresponding to the target type business type, obtain the input parameters corresponding to the input parameter information of the target interface from the business processing instruction, and call the target interface based on the configuration information of the target interface and the input parameters to obtain business data corresponding to the business processing instruction. The business processing module is used to generate a first processing result based on the business processing data.
[0088] In one possible implementation, the business component configuration device 200 further includes a result matching module and a result display module. The result matching module is used to match the first processing result with the target business processing result to obtain a matching result. The target business processing result is generated by the configured target functional component calling the corresponding target interface to execute the business processing instruction. The result display module is used to display the business processing result in the business configuration interface when the matching result indicates that the first processing result matches the business processing result.
[0089] In one possible implementation, the result display module is further configured to generate an error message when the matching result indicates that the first processing result does not match the business processing result, and display the error message on the business configuration interface.
[0090] In one possible implementation, the business component configuration device 200 further includes a component display module, which is used to select multiple functional components corresponding to the target type of business from multiple functional components and display the multiple functional components corresponding to the target type of business in the component selection area of the business configuration interface.
[0091] In one possible implementation, the business component configuration device 200 further includes a request receiving module, an authentication module, and a configuration interface display module. The request receiving module is used to receive a login authentication request from a client to the visualization platform, the login authentication request carrying authentication information. The authentication module is used to authenticate the authentication information in the login authentication request according to preset authentication information. The configuration interface display module is used to respond to a page configuration request and present a business configuration interface when authentication is successful.
[0092] Each module in the above-described device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module. It should be noted that the device embodiments in this application correspond to the foregoing method embodiments. The specific principles of the device embodiments can be found in the foregoing method embodiments, and will not be repeated here.
[0093] The following will combine Figure 7 This application provides a description of an electronic device 100.
[0094] Please see Figure 7 Based on the methods provided in the above embodiments, this application also provides another electronic device 100 including a processor 102 capable of executing the aforementioned methods. The electronic device 100 may be a server or a terminal device, etc.
[0095] The electronic device 100 also includes a memory 104. The memory 104 stores a program that can execute the contents of the foregoing embodiments, and the processor 102 can execute the program stored in the memory 104.
[0096] The processor 102 may include one or more cores for data processing and message matrix units. The processor 102 connects to various parts within the electronic device 100 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and by calling data stored in the memory 104. Optionally, the processor 102 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 102 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 102 and may be implemented separately using a communication chip.
[0097] The memory 104 may include random access memory (RAM) or read-only memory (ROM). The memory 104 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 104 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the various method embodiments described below, etc. The data storage area may also store data acquired by the electronic device 100 during use (e.g., parking location, environmental information, and images).
[0098] The electronic device 100 may also include a network module and a screen. The network module is used to receive and transmit electromagnetic waves, converting electromagnetic waves into electrical signals, thereby enabling communication with communication networks or other devices, such as audio playback devices. The network module may include various existing circuit elements used to perform these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, SIM cards, memory, etc. The network module can communicate with various networks such as the Internet, corporate intranets, and wireless networks, or communicate with other devices via wireless networks. The aforementioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The screen can display interface content and perform data interaction, such as displaying the aforementioned interface and triggering operations through the screen.
[0099] This application also provides a structural block diagram of a computer-readable storage medium. The computer-readable medium stores program code, which can be called by a processor to execute the methods described in the above method embodiments.
[0100] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage media includes non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.
[0101] This application also provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods described in the various optional implementations above.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for configuring business components based on a visualization platform, characterized in that, The visualization platform includes a business configuration interface, which at least includes a business configuration area and a component selection area. The component selection area contains multiple functional components to be added. The method includes: In response to a selection operation for at least one target functional component among the plurality of functional components to be added, the at least one target functional component is presented in the service configuration area; Obtain the configuration information for each target functional component, the configuration information including the configuration information of the interface corresponding to the target functional component, and the relationship configuration information between the interface corresponding to the target functional component and other interfaces; Based on the configuration information of the target functional component, the target functional component is configured to obtain the configured target functional component. The configured target functional component can be used to call the corresponding interface to obtain data from the server where the visualization platform is located and / or data from other devices. The visualization platform can call the configured target functional component to perform cross-interface business processing.
2. The method according to claim 1, characterized in that, The at least one target function is a functional component that performs a target type of business, and obtaining the configuration information of each target functional component includes: Based on a preset set of interfaces, obtain the target interface required to execute the target type of business and the corresponding input parameter information of the target interface; The configuration of the target functional component based on the configuration information of the target functional component includes: Based on the input parameter information corresponding to the target interface, the target functional component is configured. The configured target functional component can be used to call the corresponding interface to obtain data from the server where the visualization platform is located and / or data from other devices to execute any business processing instruction under the target type of business and generate business processing results.
3. The method according to claim 2, characterized in that, The step of obtaining the target interface required to execute the target type of business and the corresponding input parameter information of the target interface based on the preset interface set includes: Natural language processing technology is used to process the description information of the target type of service to obtain the target intent and the key parameter information corresponding to the target type of service; Based on the description information corresponding to each interface in the preset interface set and the target intent, the target interface is obtained; The input parameters of the target interface are determined based on the key parameter information.
4. The method according to claim 3, characterized in that, The step of obtaining the target interface based on the description information corresponding to each interface in the preset interface set and the target intent includes: Based on the description information corresponding to each interface in the preset interface set and the target intent, candidate interfaces related to the target intent are obtained from the preset interface set; If it is determined that the candidate interface can directly achieve the target intent, the candidate interface will be determined as the target interface; If it is determined that the candidate interface cannot directly achieve the target intent, the target interface is registered in the preset interface set, and interface configuration information is configured for the target interface based on the target intent and the description information corresponding to each candidate interface. The interface configuration information includes its combination logic for the candidate interface.
5. The method according to claim 2, characterized in that, After configuring the target functional component based on the interface configuration information and input parameter information corresponding to the target interface, the method further includes: In response to the business processing instruction corresponding to the target type business type, the input parameters corresponding to the input parameter information of the target interface are obtained from the business processing instruction, and the target interface is called based on the configuration information of the target interface and the input parameters to obtain the business data corresponding to the business processing instruction; A first processing result is generated based on the business processing data.
6. The method according to claim 5, characterized in that, The method further includes: The first processing result is matched with the target business processing result to obtain a matching result. The target business processing result is generated by the configured target functional component calling the corresponding target interface to execute the business processing instruction. If the matching result indicates that the first processing result matches the business processing result, the business processing result is displayed in the business configuration interface.
7. The method according to claim 6, characterized in that, The method further includes: If the matching result indicates that the first processing result does not match the business processing result, an error message is generated and displayed on the business configuration interface.
8. The method according to claim 1, characterized in that, In response to a selection operation for at least one target functional component among the plurality of functional components to be added, before presenting the at least one target functional component in the service configuration area, the method further includes: Select multiple functional components from a range of functional components that correspond to the target type of service, and display these multiple functional components in the component selection area of the service configuration interface.
9. The method according to claim 1, characterized in that, In response to a selection operation for at least one target functional component among the plurality of functional components to be added, before presenting the at least one target functional component in the service configuration area, the method further includes: Receive a login authentication request for the visualization platform sent by the client, wherein the login authentication request carries authentication information; The authentication information in the login authentication request is authenticated according to the preset authentication information; If authentication is successful, a page configuration request will be sent, displaying the business configuration interface.
10. A business component configuration device based on a visualization platform, characterized in that, The visualization platform includes a business configuration interface, which at least includes a business configuration area and a component selection area. The component selection area contains multiple functional components to be added. The device includes: A functional component selection module is used to, in response to a selection operation for at least one target functional component among the plurality of functional components to be added, present the at least one target functional component in the business configuration area; The configuration information acquisition module is used to acquire the configuration information of each target functional component. The configuration information includes the configuration information of the interface corresponding to the target functional component and the relationship configuration information between the interface corresponding to the target functional component and other interfaces. The functional component configuration module is used to configure the target functional component based on the configuration information of the target functional component, so as to obtain the configured target functional component. The configured target functional component can be used to call the corresponding interface to obtain data from the server where the visualization platform is located and / or data from other devices. The visualization platform can call the configured target functional component to perform cross-interface business processing.
11. An electronic device, characterized in that, include: One or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the method as described in any one of claims 1-9.