Platform component development method and device, computer device and storage medium
By automatically generating the interaction and functional interfaces of platform components, the high threshold and high cost of developing user-defined platform components are solved, the development and maintenance process is simplified, and flexible configuration and sharing of components are supported.
Patent Information
- Application Number
- CN202110973239.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-24
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2041-08-24
AI Technical Summary
In existing technologies, the development of user-defined platform components requires a deep understanding of the platform framework code structure, and the development cost and technical threshold are high. When the functional logic of the platform component changes, it needs to be redeveloped. The parameters are cumbersome and the maintenance cost is high. It is also difficult to share user-defined components.
By acquiring the interaction and function configuration information of platform components, interactive and function interfaces are automatically generated, providing interaction and function support and reducing development complexity.
It enables users to generate the required platform components through simple configuration, reducing the technical threshold and development costs, and simplifying the component maintenance and sharing process.
Smart Images

Figure CN113656001B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a platform component development method and device, computer equipment and storage medium. BACKGROUND
[0002] Algorithm engineers and big data practitioners usually need to develop a variety of different components to meet user needs, but the user's needs are complex and varied, and generally do not have component and platform tool development capabilities. Moreover, component development often requires in-depth understanding of the platform framework code structure, and needs to cooperate with the platform release process, the development required technical threshold and development cost are very high. SUMMARY
[0003] The purpose of the present application is to provide a platform component development method, device, computer equipment and storage medium, which can reduce the technical threshold and development cost of developing platform components.
[0004] In order to achieve the above purpose, the technical scheme adopted by the present application is as follows:
[0005] In a first aspect, the present application provides a platform component development method, the method comprising: obtaining interaction configuration information and function configuration information of a platform component; generating an interaction interface according to the interaction configuration information, so as to realize the interaction between the platform component and other platform components through the interaction interface; generating a function interface according to the function configuration information, so as to realize the function provided by the platform component through the function interface.
[0006] In a second aspect, the present application provides a platform component development device, the device comprising: an acquisition module for obtaining interaction configuration information and function configuration information of a platform component; a generation module for generating an interaction interface according to the interaction configuration information, so as to realize the interaction between the platform component and other platform components through the interaction interface; the generation module is also used for generating a function interface according to the function configuration information, so as to realize the function provided by the platform component through the function interface.
[0007] In a third aspect, the present application provides a computer equipment comprising a memory and a processor, the memory stores a computer program, and the processor realizes the platform component development method as described above when executing the computer program.
[0008] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the platform component development method as described above.
[0009] Compared with the prior art, the present application firstly acquires the interactive configuration information and the function configuration information of the platform component, generates an interactive interface according to the interactive configuration information, and realizes the interaction between the platform component and other platform components through the interactive interface; generates a function interface according to the function configuration information, and realizes the function provided by the platform component through the function interface; the present application automatically generates the interactive interface and the function interface of the platform component through the interactive configuration information and the function configuration information of the platform component respectively, so that the user can generate the required platform component through simple configuration, and the technical threshold and development cost of developing the platform component are reduced. BRIEF DESCRIPTION OF DRAWINGS
[0010] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows, and it should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be regarded as a limitation to the scope, and for those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.
[0011] Figure 1 A flowchart of a platform component development method provided by the embodiment of the present application.
[0012] Figure 2 A flowchart of another platform component development method provided by the embodiment of the present application.
[0013] Figure 3 A flowchart of another platform component development method provided by the embodiment of the present application.
[0014] Figure 4 An interface example diagram of remote support configuration provided by the embodiment of the present application.
[0015] Figure 5 An example diagram of the implementation process of remote support configuration provided by the embodiment of the present application.
[0016] Figure 6 An example diagram of the implementation process of callback support configuration of the input node provided by the embodiment of the present application.
[0017] Figure 7 An example diagram of the implementation process of callback support configuration of the output node provided by the embodiment of the present application.
[0018] Figure 8 An example diagram of the interaction between multiple platform components provided by the embodiment of the present application.
[0019] Figure 9 A flowchart of another platform component development method provided by the embodiment of the present application.
[0020] Figure 10 An example diagram of an implementation process of backend configuration update of a platform component provided by an embodiment of the present application.
[0021] Figure 11 An example diagram of an interface of platform component configuration provided by an embodiment of the present application.
[0022] Figure 12 An example diagram of an implementation process of parameter verification provided by an embodiment of the present application.
[0023] Figure 13 An example diagram of configuration of a bert-demo platform component provided by an embodiment of the present application.
[0024] Figure 14 An example diagram of declaration of a use control provided by an embodiment of the present application.
[0025] Figure 15 An example diagram of a page of component configuration generated by a use control provided by an embodiment of the present application.
[0026] Figure 16 A flowchart of another platform component development method provided by an embodiment of the present application.
[0027] Figure 17 A flowchart of another platform component development method provided by an embodiment of the present application.
[0028] Figure 18 A flowchart of another platform component development method provided by an embodiment of the present application.
[0029] Figure 19 A block diagram of a platform component development apparatus provided by an embodiment of the present application is shown.
[0030] Figure 20 A block diagram of a computer device provided by an embodiment of the present application is shown.
[0031] Icon: 10-computer device; 11-processor; 12-memory; 13-bus; 14-communication interface; 100-platform component development apparatus; 110-obtaining module; 120-generating module; 130-updating module; 140-setting module. DETAILED DESCRIPTION
[0032] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some but not all of the embodiments of the present application. The components of the embodiments of the present application described and shown in the drawings can be arranged and designed in various different configurations.
[0033] Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but only represents selected embodiments of the application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.
[0034] It should be noted that: similar reference numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0035] In the description of the present application, it should be noted that if the terms such as "upper", "lower", "inner", "outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of the present application is usually placed, which is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element must have a particular orientation, be constructed and operated in a particular orientation, therefore it cannot be understood as a limitation on the present application.
[0036] In addition, if the terms "first", "second" and the like appear, they are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0037] It should be noted that the features in the embodiments of the present application can be combined with each other without conflict.
[0038] In order to improve the development efficiency, algorithm engineers and big data practitioners usually work on a development platform in a specific scenario, for example, in an artificial intelligence application scenario, a specific development platform can be a machine learning platform, which provides a visual environment, and users complete big data tasks such as data cleaning, data analysis, query, model training, etc. through different component associations and various configurations of components, a component can realize a relatively independent function, and through the interaction of multiple components, more complex functions can be realized.
[0039] In the existing platform-based development process, the following problems are often encountered:
[0040] (1) The components provided by general platforms are fixed and can only meet common functional needs. If users want to implement their own functional requirements, they need to apply to the platform and the platform administrators will schedule the development. Moreover, more special requirements may not be met. If users develop platform components themselves, they not only need to have a deep understanding of the platform's framework code structure, but also need to cooperate with the platform's release process, and there are even security issues, resulting in very high development costs.
[0041] (2) For user-defined platform components, if you want to continue using the platform component or share it with others, others only need to make minor modifications to meet their needs when using the platform component. The existing platform cannot meet this function.
[0042] (3) Each platform component has different parameters, and the number of parameters is also relatively large, even up to hundreds. Furthermore, the types of different parameters may also be different. The large number and variety of parameters make the development of platform components very cumbersome and the development cycle long.
[0043] (4) When the logic of the platform component’s function implementation changes, it has a significant impact on the platform component, and may even require the platform component to be redeveloped, leading to an increase in the maintenance cost of the platform component.
[0044] In view of this, embodiments of the present invention provide a platform component development method, apparatus, computer device, and storage medium to solve the above problems, which will be described in detail below.
[0045] Please refer to Figure 1 This embodiment provides a flowchart illustrating a platform component development method. The method includes the following steps:
[0046] Step S100: Obtain the interaction configuration information and function configuration information of the platform components.
[0047] In this embodiment, the interaction configuration information is used to determine the interaction method between platform components and other platform components, including, but not limited to, the data type and interaction type of the interaction. For example, the data type is CSV or Hive, and the interaction type can be the number of types. For example, the interaction type includes three types: data type, model type, and file type, etc.
[0048] In this embodiment, the function configuration information is used to determine the functions implemented by the platform components. The function configuration information includes, but is not limited to, relevant information of the backend function modules used to implement the functions, such as the address of the backend function modules, the call entry point, and the call parameters.
[0049] Step S110: Generate an interaction interface based on the interaction configuration information, so as to realize the interaction between platform components and other platform components through the interaction interface.
[0050] In the embodiment, the interaction of the platform component with other platform components can be an input-output relationship, for example, the input of the platform component can come from the output of other platform components, and the output of the platform component can also be the input of other platform components.
[0051] In step S120, a function interface is generated according to the function configuration information, so as to realize the function provided by the platform component through the function interface.
[0052] In the embodiment, the configuration of the platform component and the module for implementing the function of the platform component can be independent of each other, the configuration of the platform component is also referred to as front-end configuration, and the module for implementing the function of the platform component is also referred to as back-end function module, the front-end configuration can call the back-end function module through a class or a function, so as to realize the function provided by the platform component.
[0053] It should be noted that the interaction configuration information and the function configuration information can be a set of component parameters and node configuration syntax designed by a user, for example, a yaml format or an xml format.
[0054] The above method provided by the embodiment of the application automatically generates the interaction interface and the function interface of the platform component through the interaction configuration information and the function configuration information of the platform component, so that the user can generate the required platform component through simple configuration, and the technical threshold and development cost of developing the platform component are reduced.
[0055] On the basis of Figure 1 , the embodiment of the application further provides a specific implementation manner of generating an input interface in the interaction interface, please refer to Figure 2 , Figure 2 The flowchart of another platform component development method provided by the embodiment of the application is shown in FIG. 10, and step S110 includes the following sub-steps.
[0056] In sub-step S1101, an input interface of each input node is generated according to the input type of each input node, so as to convert the type of the input data of each input node into the input type of each input node through the input interface of each input node.
[0057] In the embodiment, the input node can be multiple, and the corresponding input interface can also be multiple, the input types of the input nodes can be different, the input interface of each input node is generated according to the input type of each input node, and the input interface can convert the type of the input data of the input node into the input type of the input node, so as to convert the input data of different input types from other platform components into the required input type of the platform component, thereby more conveniently realizing the interaction of the platform component with other platform components, and facilitating the uniformity of the back-end function module.
[0058] In Figure 1 addition, the embodiment of the present application also provides a specific implementation of the output interface in the interactive interface, which will be described in the following Figure 3 , Figure 3 The flowchart of another platform component development method provided by the embodiment of the present application is shown in FIG. 11, and step S110 further includes the following sub-steps.
[0059] In sub-step S1102, the output interface of each output node is generated according to the output type of each output node, so as to convert the type of the output data of each output node into the output type of each output node through the output interface of each output node.
[0060] In the embodiment, there can be multiple output nodes, and there can also be multiple corresponding output interfaces. The output types of the output nodes can be different. The output interface of each output node is generated according to the output type of the output node. The output interface can convert the type of the output data of the output node into the output type of the output node, and convert the output of the platform component into the type required by other platform components. Thus, the interaction between the platform component and other platform components can be more conveniently realized, and the uniformity of the backend function module can be facilitated.
[0061] As a specific implementation, the input node and the output node both provide remote support configuration and callback support configuration. The remote support can support the function of real-time previewing of data format when the platform component is configured (interactive configuration and functional configuration). The real-time previewing facilitates the user to customize the front-end interface of the platform component. Please refer to Figure 4 , Figure 4 The interface example diagram of the configuration of the remote support provided by the embodiment of the present application is shown in FIG. 6. Figure 4 In the embodiment, the user can establish the association between the XQL component and the bert-demo component in the manner of dragging, that is, the output data of the XQL component is used as the input data of the bert-demo component. The remote support can enable the user to preview the fields in the output data of the XQL component on the interface and provide the function of selecting the fields by the user from the previewed fields. Thus, the user can obtain the desired data without running the bert-demo, and the operation of the user is facilitated. Please refer to Figure 5 , Figure 5 The example diagram of the implementation process of the remote support configuration provided by the embodiment of the present application is shown in FIG. 7. Figure 5 In the embodiment, the platform component automatically acquires the information of the input data (also referred to as upstream input data) from other platform components according to the configuration. Figure 5In this context, relationships can be established between the output nodes of other platform components and the input nodes of this platform component. These relationships can be established by dragging and dropping or drawing lines between this platform component and other platform components on the platform, or by configuring relationships within this platform component.
[0062] In this embodiment, callback support provides the platform components with the function of uniformly processing data input and output into a recognizable universal format. Please refer to [link / reference]. Figure 6 , Figure 6 This is an example diagram illustrating the implementation process of configuring callback support for input nodes according to an embodiment of the present invention. Figure 6 In this process, all data inputs should be converted to CSV format. Please refer to [link / reference]. Figure 7 , Figure 7 This is an example diagram illustrating the implementation process of configuring callback support for the output node according to an embodiment of the present invention. Figure 7 In the process, data is uniformly converted to Hive format during output. Furthermore, Figure 7 The output can also be configured with columns to specify detailed fields and field formats, so that other platform components can use the output of this platform component as their own input.
[0063] It should be noted that, depending on the specific needs of the scenario, platform components may have only input interfaces, only output interfaces, or both. This can be configured according to actual requirements. For a clearer explanation of the interaction between platform components and other platform components, please refer to [link / reference needed]. Figure 8 , Figure 8 This is an example diagram illustrating the interaction between multiple platform components provided in an embodiment of the present invention. Figure 8 In this diagram, each rectangle represents a platform component, and the directed arrow between two rectangles indicates the direction of data flow. For example, the output data of "basic sample data" is the input data of "XQL component". The hollow circles on the sides of the rectangles represent the input nodes of the platform component, and the solid circles on the sides of the rectangles represent the output nodes of the platform component.
[0064] exist Figure 1 Based on this, the embodiments of the present invention also provide a specific implementation method for generating functional interfaces, please refer to... Figure 9 , Figure 9 This is a flowchart illustrating another platform component development method provided in an embodiment of the present invention. Step S120 further includes the following sub-steps:
[0065] Sub-step S1201: Generate a functional interface based on the address, call entry point, and call parameters of the backend functional module, so as to call the backend functional module by using the input data and call parameters of the platform component as the input parameters of the call entry point through the functional interface.
[0066] In the embodiment, the back-end function module is used to implement the function provided by the platform component, so as to separate the configuration and the function of the platform component from each other, reduce the coupling between the configuration and the function, avoid affecting the function when the configuration changes or affecting the configuration when the function changes, and realize the interaction between the configuration and the function through a function interface. As long as the function interface does not change, the configuration and the function will not affect each other, the configuration is also called a front end, and the function is also called a back end.
[0067] In the embodiment, the calling entry is an interaction entry provided by the back-end function module to the outside, the calling entry can be an entry class or an entry file, and the calling parameter is an input parameter required when the function interface is called.
[0068] As a specific implementation, the implementation environment of the back-end function module can include two kinds of spark environment and non-spark environment. Spark is a fast general-purpose computing engine specially designed for large-scale data processing. The non-spark environment can be Hadoop and the like. Hadoop implements a distributed file system and provides storage and calculation of massive data. For the two environments, the embodiment of the application provides an automatic packaging tool and a git repository binding, so that the user can quickly package and go online after developing the code of the platform component. By packaging the git repository image, the configuration in the front-end interface is updated, and real-time updating of the back-end logic is provided. The user can update the version of the corresponding back-end function module through the component configuration interface, so as to realize the updating of the back-end function of the platform component.
[0069] As a specific implementation, the running environment of the back-end function module has at least two kinds: (1) yarn running environment; (2) independent GPU or special running environment (C package, python package, etc.). For (1), the code writing mode of spark-jar can be used. After the user completes the code according to the framework structure given by the platform, the release command mvn of the platform is called, and the compiled jar package is released to the specified hdfs path of the platform. When the platform runs the platform component, the jar is called in the spark class_path mode, and the function of the platform component is implemented. At the same time, since the class_path is used to specify the running path, the user can conveniently add various dependencies in the jar or upgrade the version of spark without affecting the overall running of the platform. For (2), through the image packaging system of the platform, the code and related dependencies written by the user are packaged into a docker image. When the platform component runs, the relevant resources are applied through the k8s service, the resources are released after the running is completed, and the output data is synchronized to the downstream component of the platform component (the downstream component of the platform component is the component which takes the output of the platform component as its own input).
[0070] The two modes above both realize unified packaging. When developing a platform component, a user can select a component function template spark or docker. The platform provides a complete set of publishing procedures. The user only needs to add a desired dependency in the code and push it to the corresponding git repository, and the platform will automatically package and deploy the corresponding jar or image. The user only needs to fill in the corresponding latest version in the configuration of the component backend to realize the update of the backend function of the platform component. Thus, the independence of the user in developing the backend function is guaranteed. At the same time, when the user updates the backend code, the user only needs to update the version in the configuration interface of the component to complete the update; and through version management, the unified update of all platform components or the version update of new platform components is realized. The development cost of the backend function of the component is reduced, and the version management of the used component is also reduced. Please refer to Figure 10 , Figure 10 The example diagram of the implementation process of the backend configuration update of the platform component provided by the embodiment of the application is shown.
[0071] In the embodiment, the interactive configuration information and the function configuration information both include a plurality of configuration items. The update of the interactive configuration information and the function configuration information can be adding a new configuration item, deleting an existing configuration item, or updating the value of the configuration item. Of course, in addition to the interactive configuration information and the function configuration information, the basic information of the platform component can also be included. The configuration items included in the basic information can be the name of the platform component, the person in charge of the platform component, and the like. Please refer to Figure 11 , Figure 11 The example diagram of the interface of the platform component configuration provided by the embodiment of the application is shown.
[0072] It should be further explained that, in order to guarantee the accuracy of the user input configuration item and avoid error input or misinput, the parameter can also be verified in the form of a regular expression. Please refer to Figure 12 , Figure 12 The example diagram of the implementation process of the verification of the parameter provided by the embodiment of the application is shown.
[0073] In order to more clearly illustrate the configuration process of the platform component, please refer to Figure 13 , Figure 13 The example diagram of the configuration of the bert-demo platform component provided by the embodiment of the application is shown.
[0074] It should be noted that, for some complex configuration information configuration mode, such as calling general system service, or other special needs configuration mode, can use widget control to realize, widget represents some special control in UI interface, can realize more complex function. Can use widget control to encapsulate more complex function, get the control of realizing specific function, hide its specific implementation for user, user can use the control directly by declaration when developing platform component. Please refer to Figure 14 and Figure 15 , Figure 14 The example diagram of declaration using control provided by the embodiment of the application is shown in the figure, Figure 15 The example diagram of page of component configuration generated by using control provided by the embodiment of the application is shown in the figure.
[0075] In the embodiment, in order to reuse the developed platform component more conveniently, the embodiment of the application further provides a specific implementation mode of generating corresponding platform component template based on the developed platform component, please refer to Figure 16 , Figure 16 The flowchart of another platform component development method provided by the embodiment of the application is shown in the figure, and the method comprises the following steps:
[0076] In step S200, the platform component template is generated according to the interactive configuration information and the function configuration information.
[0077] In the embodiment, when a new platform component needs to be developed, the platform component template meeting the needs can be inherited, and the new platform component is automatically generated based on the platform component template, so that the user only needs to modify the new platform component to obtain the platform component meeting the actual needs, thereby the platform component development cycle can be greatly shortened, the platform component development cost can be reduced, the platform component can be updated in batches through updating the platform component template, and the platform component maintenance workload is reduced.
[0078] In the embodiment, in order to manage the platform component update conveniently, the embodiment of the application further provides a specific implementation mode of managing the platform component through version number, please refer to Figure 17 , Figure 17 The flowchart of another platform component development method provided by the embodiment of the application is shown in the figure, and the method comprises the following steps:
[0079] In step S300, the version number is updated when the platform component is updated.
[0080] In the embodiment, each time the platform component is updated, the corresponding version number is updated, and the development platform stores all historical version numbers of the platform component. According to the version number, the user can find the platform component of a specific version number of the historical version, and the platform component can be restored to the specific version number.
[0081] In the embodiment, if the same platform component has been used in different tasks, after the functional update or the configuration update of the platform component, the updated platform component can cause incompatibility. At this time, the compatibility problem can be solved by publishing platform components of different version numbers. Different version numbers of the same platform component can correspond to different configurations and backend functional modules.
[0082] In the embodiment, in order to improve the security of the platform component access, the embodiment also provides a specific implementation mode of setting the access permission of the component according to the component state. Please refer to Figure 18 , Figure 18 Another flowchart of a platform component development method provided by the embodiment is shown. The method includes the following steps:
[0083] In step S400, the access permission of the platform component is set according to the component state.
[0084] In the embodiment, the access permission can include specific user access, prohibited access, all user access, and the like. The component state can be a test state, a discard state, and a release state, and different access permissions can be set for different component states. For example, the platform component in the test state can only be accessed by the developer of the component; the platform component in the discard state can not be accessed by anyone; and the platform component in the release state can be accessed by everyone. It can be understood that other states and corresponding access permissions can also be set according to actual needs. For example, the component state can also include a development state, and the access permission corresponding to the development state can be that the developer has read-write access permission and the remaining users have read-only access permission.
[0085] In order to perform the corresponding steps of the platform component development method in the above embodiments and various possible implementation modes, an implementation mode of a platform component development device 100 is given below. Please refer to Figure 19 , Figure 19 A block schematic diagram of the platform component development device 100 provided by the embodiment is shown. It should be noted that the basic principle and the generated technical effects of the platform component development device provided by the embodiment are the same as those of the above embodiments, and for brief description, part of the embodiment is not mentioned.
[0086] The platform component development device 100 includes an acquisition module 110, a generation module 120, an update module 130, and a setting module 140.
[0087] The acquisition module 110 is configured to acquire interaction configuration information and function configuration information of the platform component.
[0088] The generation module 120 is configured to generate an interaction interface according to the interaction configuration information, so as to realize interaction between the platform component and other platform components through the interaction interface.
[0089] The generation module 120 is further configured to generate a function interface according to the function configuration information, so as to realize a function provided by the platform component through the function interface.
[0090] As a specific implementation, the interaction configuration information includes the number of input nodes and the input type of each input node, and the generation module 120 is specifically configured to generate an input interface of the interaction interface of each input node according to the input type of each input node, so as to convert the type of input data of each input node into the input type of each input node through the input interface of each input node.
[0091] As a specific implementation, the interaction configuration information further includes the number of output nodes and the output type of each output node, and the generation module 120 is specifically further configured to generate an output interface of the interaction interface of each output node according to the output type of each output node, so as to convert the type of output data of each output node into the output type of each output node through the output interface of each output node.
[0092] As a specific implementation, the platform component further includes a back-end function module, the function configuration information includes the address of the back-end function module, a calling entry and a calling parameter, and the generation module 120 is specifically configured to generate the function interface according to the address of the back-end function module, the calling entry and the calling parameter, so as to call the back-end function module through the function interface by taking the input data of the platform component and the calling parameter as the input parameter of the calling entry.
[0093] As a specific implementation, the generation module 120 is further configured to generate a platform component template according to the interaction configuration information and the function configuration information.
[0094] The update module 130 is configured to update the version number when the platform component is updated.
[0095] The setting module 140 is configured to set the access right of the platform component according to the component state.
[0096] The embodiment of the application further provides a block schematic diagram of the computer device 10, which is shown in Figure 20 , Figure 10A block schematic diagram of a computer device 10 provided by the embodiment of the present application is shown in FIG. 1. The computer device 10 comprises a processor 11, a memory 12, a bus 13, and a communication interface 14. The processor 11 and the memory 12 are connected through the bus 13, and the processor 11 communicates with external devices through the communication interface 14.
[0097] The processor 11 can be an integrated circuit chip having a processing capability of signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of hardware in the processor 11 or the instruction in the form of software. The processor 11 described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a ready programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0098] The memory 12 is used for storing programs, such as the platform component development apparatus 100 in the embodiment of the present application. The platform component development apparatus 100 all comprises at least one software function module stored in the memory 12 in the form of software or firmware. After receiving an execution instruction, the processor 11 executes the programs to implement the platform component development method in the embodiment of the present application.
[0099] The memory 12 can comprise a high-speed random access memory (RAM) and can also comprise a non-volatile memory. Optionally, the memory 12 can be a storage device built in the processor 11 or a storage device independent of the processor 11.
[0100] The bus 13 can be an ISA bus, a PCI bus, an EISA bus, etc. Figure 20 Only one bidirectional arrow is used for representation, but it does not mean that there is only one bus or only one type of bus.
[0101] The embodiment of the present application provides a computer readable storage medium, which stores a computer program. When the computer program is executed by a processor, the platform component development method described above is implemented.
[0102] To sum up, the embodiment of the present application provides a platform component development method and device, computer equipment and storage medium, the method comprises: obtaining the interactive configuration information and function configuration information of the platform component;According to the interactive configuration information, an interactive interface is generated to realize the interaction between the platform component and other platform components through the interactive interface;According to the function configuration information, a function interface is generated to realize the function provided by the platform component through the function interface. Compared with the prior art, the embodiment of the present application automatically generates the interactive interface and function interface of the platform component through the interactive configuration information and function configuration information of the platform component, so that the user can generate the required platform component through simple configuration, and the technical threshold and development cost of developing the platform component are reduced.
[0103] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited to this, any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A platform component development method, characterized in that, The platform components include backend functional modules, and the method includes: Obtain the interaction configuration information and function configuration information of the platform components. The interaction configuration information includes the number of input nodes and the input type of each input node. The interaction configuration information also includes the number of output nodes and the output type of each output node. The function configuration information includes the address of the backend function module, the call entry point, and the call parameters. Based on the interaction configuration information, an interaction interface is generated to enable the interaction between the platform component and other platform components, including: Based on the input type of each input node, an input interface for the interaction interface of each input node is generated, so as to convert the type of input data of each input node into the input type of each input node through the input interface of each input node; Based on the output type of each output node, an output interface of the interaction interface of each output node is generated, so as to convert the type of the output data of each output node into the output type of each output node through the output interface of each output node; The interaction configuration information also includes the node type of each input node and output node, wherein the node type is at least one of data type, model type, and configuration file type; the data format and interaction method supported by the node are determined according to the node type; Based on the functional configuration information, a functional interface is generated to implement the functions provided by the platform component, including: The function interface is generated based on the address, entry point, and call parameters of the backend function module. The backend function module is then invoked through the function interface using the input data of the platform component and the call parameters as input parameters of the entry point.
2. The platform component development method as described in claim 1, characterized in that, The method further includes: Based on the interaction configuration information and the function configuration information, a platform component template is generated.
3. The platform component development method as described in claim 1, characterized in that, The platform component also includes a version number, and the method further includes: When the platform components are updated, the version number is updated.
4. The platform component development method as described in claim 1, characterized in that, The platform component also includes component state, and the method further includes: Set the access permissions of the platform components based on the component status.
5. A platform component development apparatus, characterized in that, The platform components include backend functional modules, and the device includes: The acquisition module is used to acquire the interaction configuration information and function configuration information of the platform components. The interaction configuration information includes the number of input nodes and the input type of each input node. The interaction configuration information also includes the number of output nodes and the output type of each output node. The function configuration information includes the address of the backend function module, the call entry point and the call parameters. The generation module is used to generate an interaction interface based on the interaction configuration information, so as to realize the interaction between the platform component and other platform components through the interaction interface. The generation module is used for: Based on the input type of each input node, an input interface for the interaction interface of each input node is generated, so as to convert the type of input data of each input node into the input type of each input node through the input interface of each input node; Based on the output type of each output node, an output interface of the interaction interface of each output node is generated, so as to convert the type of the output data of each output node into the output type of each output node through the output interface of each output node; The interaction configuration information also includes the node type of each input node and output node, wherein the node type is at least one of data type, model type, and configuration file type; the generation module is used to determine the data format and interaction method supported by the node based on the node type; The generation module is further configured to generate a function interface based on the function configuration information, so as to implement the functions provided by the platform component through the function interface. The generation module is configured to generate the function interface based on the address, call entry point and call parameters of the backend function module, so as to call the backend function module through the function interface using the input data of the platform component and the call parameters as the input parameters of the call entry point.
6. A computer device comprising a memory and a processor, characterized in that, The memory stores a computer program, and when the processor executes the computer program, it implements the platform component development method as described in any one of claims 1-4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the platform component development method as described in any one of claims 1-4.
Citation Information
Patent Citations
Client function generation method and device
CN104202331A
Page generation method and device, computer equipment and storage medium
CN111984254A
Front-end and back-end code generation method and device, computer equipment and storage medium
CN112181393A
Web service processing system for remote portal components
CN1805431A