Capability sharing system, method, device, electronic device and storage medium
By introducing management platforms, publishing platforms and calling platforms into the capability sharing system, unifying the capability interface and performing secondary encapsulation, the complexity of capability calls between different enterprises is solved, improving the development efficiency of enterprise application systems and reducing costs.
Patent Information
- Application Number
- CN202211427869.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2042-11-15
AI Technical Summary
The complex interface of capability calls between different enterprises leads to the need to coordinate, communicate and coordinate with different enterprises during the development and testing process of enterprise application systems, which increases the problem of cost and low efficiency.
A capability sharing system is proposed, including a management platform, a publishing platform and a calling platform, which encapsulates and publishes data through the gateway interface, unifies the original interface of capabilities, and secondary encapsulates according to service needs, providing a service interface for call.
Through the coordination of unified capability interface and management platform, the number of docking between enterprise application systems and different enterprises is reduced, time cost and efficiency is improved, and the problems of interface complexity and difficulty of joint debugging are solved.
Smart Images

Figure CN115776514B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer application technology, and in particular to a capability sharing system, a capability sharing method, a capability sharing device, an electronic device, and a storage medium. Background Art
[0002] With the rapid development of modern information technology, an increasing number of enterprise application systems need to connect and collaborate with network-wide capability systems. This requires the rapid adoption of new applications and services to support enterprise application development and innovation. However, common network-wide capabilities are held by different enterprises, and the standards for open access vary among these enterprises. Enterprise application systems that want to utilize network-wide capabilities must coordinate, communicate, and conduct joint debugging with each of these enterprises during development and testing. This increases costs, inefficiencies, and greatly increases the difficulty of joint debugging. In particular, the complex interfaces for invoking capabilities between different enterprises require enterprise application systems to expend significant effort on connection management. Summary of the Invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a capability sharing system, a capability sharing method, a capability sharing device, an electronic device and a storage medium that overcome the above problems or at least partially solve the above problems.
[0004] To address the above-mentioned issues, an embodiment of the present invention discloses a capability sharing system, which is applied to a sharing system. The sharing system includes a management platform, a publishing platform, and a calling platform. The management platform, the publishing platform, and the calling platform are communicatively connected to each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The system includes:
[0005] The publishing platform obtains the capability published by the user, encapsulates the data of the capability to obtain the original encapsulated data of the capability, and publishes the original encapsulated data of the capability to the management platform through the first gateway interface; wherein the original encapsulated data includes the original interface of the capability;
[0006] The management platform obtains the service requirement sent by the calling platform, determines at least one target capability based on the service requirement, and encapsulates the original encapsulated data of the at least one target capability to obtain secondary encapsulated data corresponding to the service requirement; wherein the secondary encapsulated data includes a service interface obtained by encapsulating at least one original interface of the at least one target capability;
[0007] The calling platform obtains the secondary packaging data corresponding to the service requirement through the second gateway interface, and calls at least one of the target capabilities according to the service interface in the secondary packaging data.
[0008] Optionally, the publishing platform obtains the capability published by the user, encapsulates the data of the capability, and obtains the original encapsulated data of the capability, including:
[0009] Obtaining deployment resource requirements for the capability through the first gateway interface;
[0010] The deployment resource requirements and the capability data are encapsulated to obtain original encapsulated data of the capability.
[0011] Optionally, it also includes:
[0012] After at least one of the target capabilities is ordered, the management platform generates order information including a purchase period, determines a correspondence between the order information and the service interface, and stores the order information, the service interface, and at least one of the original interfaces in a gateway module;
[0013] The calling at least one target capability according to the service interface in the secondary packaging data includes:
[0014] When invoking at least one of the target capabilities, the calling platform sends the service interface to the management platform through the second gateway interface. After receiving the service interface, the management platform obtains the subscription information corresponding to the service interface through the correspondence between the service interface and the subscription information in the gateway module, and determines whether the at least one target capability of the calling platform is within the purchase period through the service interface.
[0015] If it is within the purchase period, sending at least one original interface corresponding to at least one target capability to the calling platform;
[0016] If it is not within the purchase period, sending a message that it is not within the purchase period to the calling platform;
[0017] When the calling platform receives the at least one original interface sent by the management platform, the calling platform calls at least one target capability to the first gateway interface of the publishing platform according to the at least one original interface.
[0018] Optionally, after calling at least one target capability to the first gateway interface of the publishing platform according to at least one original interface, the method further includes:
[0019] The publishing platform calls at least one of the target capabilities and sends the call result through the second gateway interface after the call is completed.
[0020] Optionally, when calling at least one of the target capabilities, the calling platform sends the service interface to the management platform through the second gateway interface, further comprising:
[0021] When the calling platform receives the information that is not within the purchase period, it outputs a prompt message that is not within the purchase period.
[0022] Optionally, the original packaged data includes deployment resource requirements, and after the calling platform obtains the secondary packaged data corresponding to the service requirements subscribed by the user from the management platform through the second gateway interface, the further step includes:
[0023] The calling platform determines whether the calling platform has deployed an old version of the target capability;
[0024] If the old version has been deployed, obtaining the deployment resource requirement corresponding to the target capability from the secondary packaging data;
[0025] If the old version is not deployed, the service interface of the secondary encapsulated data is registered in the second gateway interface.
[0026] Optionally, after obtaining the deployment resource requirement corresponding to the target capability from the secondary packaging data, the method further includes:
[0027] The calling platform determines whether the resources in the calling platform meet the conditions for automatic deployment according to the deployment resource requirements;
[0028] If the automatic deployment condition is met, resource deployment is performed based on the old version, and the service interface of the secondary packaged data is registered in the second gateway interface;
[0029] If the conditions for automatic deployment are not met, a prompt message indicating that the resource deployment cannot be performed is output.
[0030] Accordingly, an embodiment of the present invention further discloses a capability sharing method, which is applied to a publishing platform. The publishing platform, the management platform, and the calling platform are communicatively connected with each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The method includes:
[0031] Acquire the capability published by the user, encapsulate the data of the capability, and obtain the original encapsulated data of the capability; wherein the original encapsulated data includes the original interface of the capability;
[0032] The original encapsulation data of the capability is published to the management platform through the first gateway interface, so that the management platform determines at least one target capability based on the service requirements sent by the calling platform, encapsulates the original encapsulation data of at least one target capability, obtains secondary encapsulation data corresponding to the service requirements, and sends the secondary encapsulation data corresponding to the service requirements to the calling platform, where the secondary encapsulation data includes the service interface obtained after encapsulating at least one original interface of at least one target capability.
[0033] Optionally, acquiring the capability published by the user, encapsulating the data of the capability, and obtaining the original encapsulated data of the capability includes:
[0034] Obtaining deployment resource requirements for the capability through the first gateway interface;
[0035] The deployment resource requirements and the capability data are encapsulated to obtain original encapsulated data of the capability.
[0036] Optionally, the method further includes:
[0037] When the first gateway interface receives an instruction from the calling platform to call at least one of the target capabilities, calling at least one of the target capabilities in response to the instruction;
[0038] After the call is completed, the call result is sent to the calling platform through the second gateway interface.
[0039] Accordingly, an embodiment of the present invention further discloses a capability sharing method, which is applied to a management platform. The management platform, the publishing platform, and the calling platform are communicatively connected with each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The method includes:
[0040] Obtaining original encapsulated data published by the publishing platform through the first gateway interface; the original encapsulated data is data obtained by the publishing platform obtaining the capabilities published by the user and encapsulating the data of the capabilities, and the original encapsulated data includes the original interface of the capabilities;
[0041] Obtaining the service requirements sent by the calling platform, and determining at least one target capability according to the service requirements;
[0042] Encapsulating original encapsulated data of at least one target capability to obtain secondary encapsulated data corresponding to the service requirement; the secondary encapsulated data includes the service interface obtained by encapsulating at least one original interface of at least one target capability;
[0043] The secondary packaging data corresponding to the service requirement is sent to the second gateway interface of the calling platform, so that the calling platform calls at least one of the target capabilities according to the service interface in the secondary packaging data.
[0044] Optionally, after encapsulating the original encapsulated data of at least one target capability to obtain secondary encapsulated data corresponding to the service requirement, the method further includes:
[0045] After at least one of the target capabilities is ordered, generating order information corresponding to the service interface in the secondary packaging data, and storing the order information, the service interface, and at least one of the original interfaces in a gateway module; wherein the order information includes a purchase period;
[0046] The method further comprises:
[0047] Upon receiving a request from the calling platform to call at least one of the target capabilities based on the service interface, obtaining the subscription information corresponding to the service interface according to the correspondence between the service interface and the subscription information in the gateway module, and determining, through the service interface, whether the at least one target capability of the calling platform is within the purchase period;
[0048] If it is within the purchase period, at least one original interface corresponding to at least one target capability is sent to the calling platform; so that the calling platform calls at least one target capability to the first gateway interface of the publishing platform according to at least one original interface.
[0049] Accordingly, an embodiment of the present invention further discloses a capability sharing method, which is applied to a calling platform, wherein the calling platform, the management platform, and the publishing platform are communicatively connected with each other, the publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The method includes:
[0050] Obtaining a service requirement sent by a user, and sending the service requirement to the management platform via the second gateway interface, so that the management platform determines at least one target capability based on the service requirement, encapsulates the original encapsulated data of the at least one target capability to obtain secondary encapsulated data corresponding to the service requirement, and sends the secondary encapsulated data corresponding to the service requirement to the calling platform; the original encapsulated data is data obtained by the publishing platform encapsulating the data of the capability published by the user; the secondary encapsulated data includes a service interface obtained by encapsulating at least one original interface of the at least one target capability;
[0051] The secondary packaging data sent by the management platform is received, and at least one of the target capabilities is called according to the service interface in the secondary packaging data.
[0052] Optionally, calling at least one target capability according to the service interface in the secondary packaging data includes:
[0053] When calling at least one of the target capabilities, the service interface is sent to the management platform through the second gateway interface, so that after the management platform receives the service interface, it obtains the subscription information corresponding to the service interface according to the correspondence between the service interface and the subscription information in the gateway module, and determines whether the at least one target capability of the calling platform is within the purchase period through the service interface; if it is within the purchase period, at least one original interface corresponding to the at least one target capability is sent to the calling platform; wherein the subscription information is generated after the at least one target capability is subscribed and includes the purchase period information; the gateway module is used to store the subscription information, the service interface and the at least one original interface;
[0054] When the calling platform receives the at least one original interface sent by the management platform, the calling platform calls at least one target capability to the first gateway interface of the publishing platform according to the at least one original interface.
[0055] Optionally, when calling at least one of the target capabilities, after sending the service interface to the management platform through the second gateway interface, the method further includes:
[0056] When the calling platform receives the information that is not within the purchase period, it outputs a prompt message that is not within the purchase period.
[0057] Optionally, the original packaging data includes deployment resource requirements, and after receiving the secondary packaging data sent by the management platform, the further step includes:
[0058] Determining whether the calling platform has deployed an old version of the target capability;
[0059] If the old version has been deployed, obtaining the deployment resource requirement corresponding to the target capability from the secondary packaging data;
[0060] If the old version is not deployed, the service interface of the secondary encapsulated data is registered in the second gateway interface.
[0061] Optionally, after obtaining the deployment resource requirement corresponding to the target capability from the secondary packaging data, the method further includes:
[0062] Determining whether the resources in the calling platform meet the conditions for automatic deployment according to the deployment resource requirements;
[0063] If the automatic deployment condition is met, resource deployment is performed based on the old version, and the service interface of the secondary packaged data is registered in the second gateway interface;
[0064] If the conditions for automatic deployment are not met, a prompt message indicating that the resource deployment cannot be performed is output.
[0065] Accordingly, an embodiment of the present invention further discloses a capability sharing device, which is applied to a publishing platform. The publishing platform, the management platform, and the calling platform are communicatively connected to each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The device includes:
[0066] A first encapsulation module is used to obtain the capabilities published by the user, encapsulate the data of the capabilities, and obtain the original encapsulated data of the capabilities; wherein the original encapsulated data includes the original interface of the capabilities;
[0067] An original encapsulated data publishing module is used to publish the original encapsulated data of the capability to the management platform through the first gateway interface, so that the management platform determines at least one target capability according to the service requirements sent by the calling platform, encapsulates the original encapsulated data of at least one target capability, obtains secondary encapsulated data corresponding to the service requirements, and sends the secondary encapsulated data corresponding to the service requirements to the calling platform, wherein the secondary encapsulated data includes the service interface obtained after encapsulating at least one original interface of at least one target capability.
[0068] Optionally, the first encapsulation module includes:
[0069] A resource requirement acquisition submodule, configured to acquire the deployment resource requirement of the capability through the first gateway interface;
[0070] The first encapsulation submodule is used to encapsulate the deployment resource requirements and the capability data to obtain the original encapsulated data of the capability.
[0071] Optionally, the device further comprises:
[0072] a calling instruction receiving module, configured to, when the first gateway interface receives an instruction from the calling platform to call at least one of the target capabilities, respond to the instruction and call at least one of the target capabilities;
[0073] The result sending module is used to send the call result to the calling platform through the second gateway interface after the call is completed.
[0074] Accordingly, an embodiment of the present invention further discloses a capability sharing device, which is applied to a management platform. The management platform, the publishing platform, and the calling platform are communicatively connected to each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The device includes:
[0075] an original encapsulated data acquisition module, configured to acquire original encapsulated data published by the publishing platform via the first gateway interface; the original encapsulated data is data obtained by the publishing platform acquiring capabilities published by users and encapsulating the data of the capabilities, and the original encapsulated data includes an original interface for the capabilities;
[0076] a target capability determination module, configured to obtain the service requirements sent by the calling platform and determine at least one target capability based on the service requirements;
[0077] a second encapsulation module, configured to encapsulate original encapsulation data of at least one target capability to obtain secondary encapsulation data corresponding to the service requirement; the secondary encapsulation data includes the service interface obtained by encapsulating at least one original interface of at least one target capability;
[0078] The secondary packaging data sending module is used to send the secondary packaging data corresponding to the service requirement to the second gateway interface of the calling platform, so that the calling platform calls at least one of the target capabilities according to the service interface in the secondary packaging data.
[0079] Optionally, the device further comprises:
[0080] an ordering information generating module, configured to generate ordering information corresponding to the service interface in the secondary packaging data after at least one target capability is ordered, and store the ordering information, the service interface, and at least one original interface in the gateway module; wherein the ordering information includes a purchase period;
[0081] The device further comprises:
[0082] A purchase period judgment module is used to, when receiving a call from the calling platform to call at least one of the target capabilities based on the service interface, obtain the subscription information corresponding to the service interface according to the correspondence between the service interface and the subscription information in the gateway module, and judge whether at least one of the target capabilities of the calling platform is within the purchase period through the service interface; if it is within the purchase period, send at least one original interface corresponding to at least one of the target capabilities to the calling platform; so that the calling platform calls at least one of the target capabilities to the first gateway interface of the publishing platform according to at least one original interface.
[0083] Accordingly, an embodiment of the present invention further discloses a capability sharing device, which is applied to a calling platform, wherein the calling platform, the management platform, and the publishing platform are communicatively connected to each other, the publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The device includes:
[0084] a service demand sending module, configured to obtain a service demand sent by a user and send the service demand to the management platform via the second gateway interface, so that the management platform determines at least one target capability based on the service demand, encapsulates the original encapsulated data of the at least one target capability to obtain secondary encapsulated data corresponding to the service demand, and sends the secondary encapsulated data corresponding to the service demand to the calling platform; the original encapsulated data is data obtained by the publishing platform encapsulating the data of the capability published by the user; the secondary encapsulated data includes a service interface obtained by encapsulating at least one original interface of the at least one target capability;
[0085] The secondary packaging data receiving module is configured to receive the secondary packaging data sent by the management platform and call at least one target capability according to the service interface in the secondary packaging data.
[0086] Optionally, the secondary packaging data receiving module includes:
[0087] a capability calling submodule for sending the service interface to the management platform via the second gateway interface when calling at least one of the target capabilities, so that after receiving the service interface, the management platform obtains the subscription information corresponding to the service interface based on the correspondence between the service interface and subscription information in the gateway module, and determines whether the at least one target capability of the calling platform is within the purchase period through the service interface; if it is within the purchase period, sending at least one original interface corresponding to the at least one target capability to the calling platform; wherein the subscription information is generated after at least one of the target capabilities is subscribed and includes the purchase period information; the gateway module is used to store the subscription information, the service interface, and the at least one original interface;
[0088] The original interface receiving submodule is used to call at least one of the target capabilities to the first gateway interface of the publishing platform according to at least one of the original interfaces when the calling platform receives at least one of the original interfaces sent by the management platform.
[0089] Optionally, the secondary packaging data receiving module further includes:
[0090] The first prompt information output module is used to output a prompt information that is not within the purchase period when the calling platform receives the information that is not within the purchase period.
[0091] Optionally, the device further comprises:
[0092] The target capability judgment module is used to determine whether the calling platform has deployed an old version of the target capability; if the old version has been deployed, the deployment resource requirements corresponding to the target capability are obtained from the secondary packaging data; if the old version has not been deployed, the service interface of the secondary packaging data is registered in the second gateway interface.
[0093] Optionally, the device further comprises:
[0094] The resource judgment submodule is used to judge whether the resources in the calling platform meet the conditions for automatic deployment based on the deployment resource requirements; if the conditions for automatic deployment are met, the resources are deployed based on the old version, and the service interface of the secondary encapsulated data is registered in the second gateway interface; if the conditions for automatic deployment are not met, a prompt message is output indicating that the resource deployment cannot be performed.
[0095] Accordingly, an embodiment of the present invention discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the various steps of the above-mentioned capability sharing method embodiment when executed by the processor.
[0096] Accordingly, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various steps of the above-mentioned capability sharing method embodiment are implemented.
[0097] Embodiments of the present invention include the following advantages: the publishing platform obtains the capabilities published by the user, encapsulates the data of the capabilities, obtains the original encapsulated data of the capabilities, and publishes the original encapsulated data of the capabilities to the management platform through the first gateway interface; wherein, the original encapsulated data includes the original interface of the capabilities; the management platform obtains the service requirements sent by the calling platform, determines at least one target capability according to the service requirements, encapsulates the original encapsulated data of at least one target capability, and obtains secondary encapsulated data corresponding to the service requirements; wherein, the secondary encapsulated data includes a service interface obtained after encapsulating at least one original interface of at least one target capability; the calling platform obtains the secondary encapsulated data corresponding to the service requirements through the second gateway interface, and calls at least one target capability according to the service interface in the secondary encapsulated data. The embodiment of the present invention can encapsulate the data of the capability through the publishing platform and unify the original interfaces of all capabilities to solve the problem of complex interfaces for capability calls between different enterprises. The management platform can also perform secondary encapsulation on at least one target capability according to service requirements to obtain secondary encapsulation data corresponding to each calling platform. The calling platform can use the secondary encapsulation data to call the capability to solve the problem that the enterprise application system wants to use the capabilities of the entire network, and needs to coordinate, communicate, and debug with different enterprises, which greatly increases the intermediate time cost and low efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0098] Figure 1 This is a flowchart of the steps of a capability sharing system provided by an embodiment of the present invention;
[0099] Figure 2 This is a flowchart of the steps of the first capability sharing method provided by an embodiment of the present invention;
[0100] Figure 3 is a flowchart of the steps of a second capability sharing method provided by an embodiment of the present invention;
[0101] Figure 4 is a flowchart of the steps of the third capability sharing method provided by an embodiment of the present invention;
[0102] Figure 5 This is a structural block diagram of a first capability sharing device provided by an embodiment of the present invention;
[0103] Figure 6 This is a structural block diagram of a second capability sharing device provided by an embodiment of the present invention;
[0104] Figure 7 This is a structural block diagram of a third capability sharing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0105] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0106] In existing technologies, the commonly used capabilities of the entire network are held by different companies. Different companies have different standards for opening up capabilities. If an enterprise application system wants to use the capabilities of the entire network, it needs to coordinate, communicate, and debug with different companies during the development and testing process. This will greatly increase the cost, efficiency, and difficulty of debugging.
[0107] One of the core concepts of the embodiments of the present invention is to propose a capability sharing system, which uses a publishing platform to uniformly encapsulate capabilities and unify the data interface of capabilities to solve the problem of complex interfaces for capability calls between different enterprises. The management platform is used to manage the capabilities published by the publishing platform, so that the calling platform can purchase the published capabilities from the management platform and call the capabilities to solve the problem that enterprise application systems want to use the capabilities of the entire network and need to coordinate, communicate, and debug with different enterprises.
[0108] Reference Figure 1 , shows a flowchart of the steps of a capability sharing system provided by an embodiment of the present invention, which is applied to a sharing system. The sharing system includes a management platform, a publishing platform, and a calling platform. The management platform, the publishing platform, and the calling platform are communicatively connected to each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The method may specifically include the following steps:
[0109] In step 101, the publishing platform obtains the capabilities published by the user, encapsulates the data of the capabilities, obtains the original encapsulated data of the capabilities, and publishes the original encapsulated data of the capabilities to the management platform through the first gateway interface; wherein the original encapsulated data includes the original interface of the capabilities.
[0110] With the development of the Internet, more and more enterprise application systems need to connect and collaborate with the capability systems on the entire network. However, the interfaces for calling capabilities between different enterprises are complex, and in the process of calling different enterprise capabilities, coordination, communication, and joint debugging are required, which greatly increases the time cost and is less efficient. Therefore, the capabilities can be processed through the publishing platform, and the format of the capability interface data can be unified. The capabilities can also be published to the management platform. The management platform can manage the capability data so that customers (calling platforms) can purchase capabilities through the management platform. The publishing platform can include a first gateway interface, and the calling platform can include a second gateway interface. The management platform, the publishing platform, and the calling platform can communicate with each other, and the calling platform can call the capabilities published by the publishing platform through the management platform without multiple coordination, communication, and joint debugging.
[0111] Users can select the capabilities to be published on the publishing platform. The publishing platform can obtain the capabilities published by the users, and then package the capabilities to obtain the original packaged data of the capabilities. The original packaged data may include the original interface of the capabilities. The original packaged data of the capabilities is then published to the management platform through the first gateway interface of the publishing platform. The first gateway interface can unify the format of the original interfaces of all capabilities published by the publishing platform to ensure the consistency of the original interface format. After obtaining the original packaged data of the capabilities, the publishing platform can register with the management platform so that the management platform can sell the capabilities based on the registered information.
[0112] In an embodiment of the present invention, the publishing platform obtains the capabilities published by the user, encapsulates the data of the capabilities, and obtains the original encapsulated data of the capabilities, including:
[0113] Obtaining deployment resource requirements for the capability through the first gateway interface;
[0114] The deployment resource requirements and the capability data are encapsulated to obtain original encapsulated data of the capability.
[0115] Users can define the deployment resource requirements of capabilities. The publishing platform can obtain the deployment resource requirements of capabilities through the first gateway interface, and then encapsulate the deployment resource requirements and data of the capabilities to obtain the original encapsulated data of the capabilities. Among them, the capability data may include the basic data of the capabilities, such as: interface. The specific basic data can be set according to actual conditions, and the embodiments of the present invention are not limited here.
[0116] In step 102, the management platform obtains the service requirements sent by the calling platform, determines at least one target capability based on the service requirements, encapsulates the original encapsulation data of at least one target capability, and obtains secondary encapsulation data corresponding to the service requirements; wherein, the secondary encapsulation data includes a service interface obtained after encapsulating at least one original interface of at least one target capability.
[0117] The management platform can obtain the original packaging data and registration information released by the publishing platform, and mount the capabilities on the sales interface for sale based on the registration information. The calling platform can view the sales interface of the management platform through the second gateway interface and send the service requirements to the management platform. The management platform can obtain the service requirements sent by the calling platform, and then determine at least one target capability from the sales interface based on the service requirements. The management platform can package the original packaging data of at least one target capability to obtain secondary packaging data corresponding to the service requirements, wherein the secondary packaging data may include a service interface obtained after packaging at least one original interface of at least one target capability.
[0118] In an embodiment of the present invention, after the management platform receives the service demand, it can judge the types of the calling platform and the publishing platform. If they are of the same type, for example, the calling platform is an application and the publishing platform is an application, then after the purchase of the calling platform is completed, the original packaging data of at least one target capability can be sent to the calling platform without the need for secondary packaging; if they are not of the same type, for example, the calling platform is a mini program and the publishing platform is an application, then the above-mentioned packaging steps are performed.
[0119] In an embodiment of the present invention, the method further includes:
[0120] After at least one of the target capabilities is ordered, the management platform generates order information including a purchase period, determines the correspondence between the order information and the service interface, and stores the order information, the service interface and at least one of the original interfaces in the gateway module.
[0121] After at least one target capability is ordered, the management platform can generate ordering information, which may include the purchase period of the calling platform. The management platform can determine the correspondence between the ordering information and the service interface in the secondary packaging data corresponding to the service requirements, and then store the ordering information, service interface, and at least one original interface in the gateway module of the management platform, so that the calling platform can obtain the required information from the gateway module during the process of calling the capability.
[0122] Step 103: The calling platform obtains the secondary packaging data corresponding to the service requirement through the second gateway interface, and calls at least one of the target capabilities according to the service interface in the secondary packaging data.
[0123] After the management platform sends the secondary packaging data, the calling platform can obtain the secondary packaging data corresponding to the service requirements through the second gateway interface. When it is necessary to call at least one target capability in the secondary packaging data, it can call at least one target capability according to the service interface in the secondary packaging data.
[0124] In an embodiment of the present invention, the original packaged data includes deployment resource requirements. After the calling platform obtains the secondary packaged data corresponding to the service requirements subscribed by the user from the management platform through the second gateway interface, the following further comprises:
[0125] The calling platform determines whether the calling platform has deployed an old version of the target capability;
[0126] If the old version has been deployed, obtaining the deployment resource requirement corresponding to the target capability from the secondary packaging data;
[0127] If the old version is not deployed, the service interface of the secondary encapsulated data is registered in the second gateway interface.
[0128] After the calling platform receives the secondary packaging data sent by the management platform, the calling platform can determine whether it has deployed the old version of the target capability. If the old version of the target capability has been deployed, the deployment resource requirements corresponding to the target capability are obtained from the secondary packaging data. If the old version of the target capability has not been deployed, the service interface of the secondary packaging data is registered in the second gateway interface, so that when the calling platform calls the target capability, the service interface of the secondary packaging data can be sent to the management platform through the second gateway interface.
[0129] In an embodiment of the present invention, after obtaining the deployment resource requirement corresponding to the target capability from the secondary packaging data, the method further includes:
[0130] The calling platform determines whether the resources in the calling platform meet the conditions for automatic deployment according to the deployment resource requirements;
[0131] If the automatic deployment condition is met, resource deployment is performed based on the old version, and the service interface of the secondary packaged data is registered in the second gateway interface;
[0132] If the conditions for automatic deployment are not met, a prompt message indicating that the resource deployment cannot be performed is output.
[0133] If the calling platform has already deployed an old version of the target capability, it is necessary to obtain the deployment resource requirements corresponding to the target capability from the secondary packaging data, and determine whether the resources in the calling platform meet the conditions for automatic deployment based on the deployment resource requirements. If the conditions for automatic deployment are met, the calling platform performs automatic resource deployment based on the old version, and after the deployment is completed, the service interface of the secondary packaging data is registered on the second gateway interface; if the conditions for automatic deployment are not met, a prompt message indicating that automatic resource deployment cannot be performed is output, wherein the conditions for automatic deployment are defined by the user at the time of release, and the prompt message indicating that automatic resource deployment cannot be performed can be "Automatic resource deployment cannot be performed, please check the deployment conditions!", etc. The specific content of the prompt message can be set according to actual conditions, and the embodiments of the present invention are not limited here.
[0134] In the embodiment of the present invention, calling at least one target capability according to the service interface in the secondary packaging data includes:
[0135] When invoking at least one of the target capabilities, the calling platform sends the service interface to the management platform through the second gateway interface. After receiving the service interface, the management platform obtains the subscription information corresponding to the service interface through the correspondence between the service interface and the subscription information in the gateway module, and determines whether the at least one target capability of the calling platform is within the purchase period through the service interface.
[0136] If it is within the purchase period, sending at least one original interface corresponding to at least one target capability to the calling platform;
[0137] If it is not within the purchase period, sending a message that it is not within the purchase period to the calling platform;
[0138] When the calling platform receives the at least one original interface sent by the management platform, the calling platform calls at least one target capability to the first gateway interface of the publishing platform according to the at least one original interface.
[0139] The user can call at least one target capability on the calling platform. When at least one target capability needs to be called, the service interface of the secondary packaged data can be sent to the management platform through the second gateway interface. After the management platform receives the service interface, it can obtain the subscription information corresponding to the service interface through the correspondence between the service interface and the subscription information in the gateway module, thereby obtaining the purchase period in the subscription information, and then determine whether the at least one target capability is within the purchase period. If it is within the purchase period, the management platform sends at least one original interface corresponding to the at least one target capability to the calling platform. If it is not within the purchase period, the management platform sends information that it is not within the purchase period to the calling platform; when the calling platform receives the at least one original interface sent by the management platform, it can call at least one target capability to the first gateway interface of the publishing platform according to the at least one original interface.
[0140] In an embodiment of the present invention, after calling at least one target capability to the first gateway interface of the publishing platform according to at least one original interface, the method further includes:
[0141] The publishing platform calls at least one of the target capabilities and sends the call result through the second gateway interface after the call is completed.
[0142] After the calling platform calls at least one target capability to the first gateway interface of the publishing platform according to at least one original interface, the publishing platform can call at least one target capability, and after the publishing platform call is completed, send the call result to the calling platform through the second gateway interface of the calling platform.
[0143] In an embodiment of the present invention, when calling at least one of the target capabilities, the calling platform sends the service interface to the management platform through the second gateway interface, further comprising:
[0144] When the calling platform receives the information that is not within the purchase period, it outputs a prompt message that is not within the purchase period.
[0145] After the service interface is sent to the management platform through the second gateway interface, if the information received by the calling platform is not within the purchase period, the calling platform outputs a prompt message that it is not within the purchase period. The content of the prompt message can be "The purchase period of this capability has expired, please purchase it again!", etc. The specific content of the prompt message can be set according to actual conditions, and the embodiment of the present invention is not limited here.
[0146] The publishing platform obtains the capabilities published by the user, encapsulates the capability data, obtains the original encapsulated data of the capability, and transmits the original encapsulated data of the capability to the management platform through a first gateway interface; wherein the original encapsulated data includes the original interface of the capability; the management platform obtains the service requirements sent by the calling platform, determines at least one target capability according to the service requirements, encapsulates the original encapsulated data of the at least one target capability, and obtains secondary encapsulated data corresponding to the service requirements; wherein the secondary encapsulated data includes the service interface obtained after encapsulating at least one original interface of the at least one target capability; the calling platform obtains the secondary encapsulated data corresponding to the service requirements through a second gateway interface, and calls the at least one target capability according to the service interface in the secondary encapsulated data. In an embodiment of the present invention, the publishing platform can encapsulate the capability data and unify the original interfaces of all capabilities to solve the problem of complex interfaces for capability calls between different enterprises. The management platform can also perform secondary encapsulation on at least one target capability according to the service requirements to obtain secondary encapsulated data corresponding to each calling platform. The calling platform can use the secondary encapsulated data to call the capability to solve the problem that the enterprise application system needs to coordinate, communicate, and debug with different enterprises when it wants to use the capabilities of the entire network, which greatly increases the time cost and is inefficient.
[0147] Reference Figure 2 , shows a flowchart of the steps of a first capability sharing method provided by an embodiment of the present invention, which is applied to a publishing platform. The publishing platform, the management platform, and the calling platform are communicated with each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The method includes:
[0148] Step 201: Acquire capabilities published by users, encapsulate data of the capabilities, and obtain original encapsulated data of the capabilities; wherein the original encapsulated data includes the original interface of the capabilities;
[0149] Users can select the capabilities they want to publish on the publishing platform. The publishing platform can obtain the capabilities published by users and then package the capabilities to obtain the original packaged data of the capabilities. The original packaged data may include the original interface of the capabilities.
[0150] In the embodiment of the present invention, the step of obtaining the capabilities published by the user and encapsulating the data of the capabilities to obtain the original encapsulated data of the capabilities includes:
[0151] Obtaining deployment resource requirements for the capability through the first gateway interface;
[0152] The deployment resource requirements and the capability data are encapsulated to obtain original encapsulated data of the capability.
[0153] Users can define the deployment resource requirements of the capability, then obtain the deployment resource requirements of the capability through the first gateway interface, and then encapsulate the deployment resource requirements and data of the capability to obtain the original encapsulated data of the capability, where the capability data may include the basic data of the capability, such as: interface. The specific basic data can be set according to actual conditions, and the embodiment of the present invention is not limited here.
[0154] Step 202: Publish the original encapsulated data of the capability to the management platform through the first gateway interface, so that the management platform determines at least one target capability based on the service requirements sent by the calling platform, encapsulates the original encapsulated data of at least one target capability, obtains secondary encapsulated data corresponding to the service requirements, and sends the secondary encapsulated data corresponding to the service requirements to the calling platform. The secondary encapsulated data includes the service interface obtained after encapsulating at least one original interface of at least one target capability.
[0155] After obtaining the original encapsulated data of the capability, the original encapsulated data of the capability can be published to the management platform through the first gateway interface, so that the management platform can determine at least one target capability based on the service requirements sent by the calling platform, and then encapsulate the original encapsulated data of at least one target capability, and obtain secondary encapsulated data corresponding to the service requirements, and then send the secondary encapsulated data corresponding to the service requirements to the calling platform, wherein the secondary encapsulated data may include a service interface obtained after encapsulating at least one original interface of at least one target capability.
[0156] In an embodiment of the present invention, the method further includes:
[0157] When the first gateway interface receives an instruction from the calling platform to call at least one of the target capabilities, calling at least one of the target capabilities in response to the instruction;
[0158] After the call is completed, the call result is sent to the calling platform through the second gateway interface.
[0159] When the calling platform calls at least one target capability, it can receive at least one original interface sent by the management platform based on the service interface of the secondary packaging data, and then send an instruction to call at least one target capability to the first gateway interface of the publishing platform through the at least one original interface. When the first gateway interface of the publishing platform receives the instruction to call at least one target capability from the calling platform, it can call at least one target capability in response to the instruction, and then after the call is completed, it can send the call result to the calling platform through the second gateway interface of the calling platform.
[0160] Acquire the capabilities published by the user, encapsulate the capability data, and obtain the original encapsulated data of the capability; wherein the original encapsulated data includes the original interface of the capability; publish the original encapsulated data of the capability to the management platform through the first gateway interface, so that the management platform determines at least one target capability according to the service requirements sent by the calling platform, encapsulates the original encapsulated data of at least one target capability, obtains secondary encapsulated data corresponding to the service requirements, and sends the secondary encapsulated data corresponding to the service requirements to the calling platform, wherein the secondary encapsulated data includes the service interface obtained after encapsulating at least one original interface of at least one target capability. The embodiment of the present invention can encapsulate the capability data through the publishing platform and unify the original interfaces of all capabilities to solve the problem of complex interfaces for capability calls between different enterprises. The management platform can also perform secondary encapsulation on at least one target capability according to the service requirements to obtain secondary encapsulated data corresponding to each calling platform. The calling platform can use the secondary encapsulated data to call the capability to solve the problem that the enterprise application system wants to use the capabilities of the entire network and needs to coordinate, communicate, and debug with different enterprises, which greatly increases the time cost in the middle and is inefficient.
[0161] Reference Figure 3 , shows a flowchart of the steps of a second capability sharing method provided by an embodiment of the present invention, which is applied to a management platform. The management platform, the publishing platform, and the calling platform are communicatively connected with each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The method includes:
[0162] Step 301, obtain the original encapsulated data published by the publishing platform through the first gateway interface; the original encapsulated data is the data obtained by the publishing platform obtaining the capabilities published by the user and encapsulating the data of the capabilities, and the original encapsulated data includes the original interface of the capabilities.
[0163] The management platform can obtain the original encapsulated data published by the publishing platform through the first gateway interface. The original encapsulated data can be the data obtained by encapsulating the capability data obtained by the publishing platform to obtain the capabilities published by the user, wherein the original encapsulated data may include the original interface of the capability.
[0164] Step 302: Acquire the service requirements sent by the calling platform, and determine at least one target capability according to the service requirements.
[0165] The management platform can obtain the original packaging data and registration information released by the publishing platform, and mount the capabilities on the sales interface for sale based on the registration information, so that the calling platform can view the sales interface of the management platform through the second gateway interface and send service requirements to the management platform. The management platform can obtain the service requirements sent by the calling platform, and then determine at least one target capability from the sales interface based on the service requirements.
[0166] Step 303: encapsulate the original encapsulation data of at least one of the target capabilities to obtain secondary encapsulation data corresponding to the service requirement; the secondary encapsulation data includes the service interface obtained after encapsulating at least one of the original interfaces of at least one of the target capabilities.
[0167] The management platform may encapsulate original encapsulation data of at least one target capability to obtain secondary encapsulation data corresponding to the service requirement, wherein the secondary encapsulation data may include a service interface obtained by encapsulating at least one original interface of at least one target capability.
[0168] In an embodiment of the present invention, after encapsulating the original encapsulated data of at least one target capability to obtain secondary encapsulated data corresponding to the service requirement, the method further includes:
[0169] After at least one of the target capabilities is ordered, order information corresponding to the service interface in the secondary packaging data is generated, and the order information, the service interface and at least one of the original interfaces are stored in the gateway module; wherein the order information includes a purchase period.
[0170] After at least one target capability is ordered, the management platform can generate ordering information, which may include the purchase period of the calling platform. The management platform can determine the correspondence between the ordering information and the service interface in the secondary packaging data corresponding to the service requirements, and then store the ordering information, service interface, and at least one original interface in the gateway module of the management platform, so that the calling platform can obtain the required information from the gateway module during the process of calling the capability.
[0171] Step 304: Send the secondary packaging data corresponding to the service requirement to the second gateway interface of the calling platform, so that the calling platform calls at least one of the target capabilities according to the service interface in the secondary packaging data.
[0172] The management platform can send secondary packaging data corresponding to the service requirements to the second gateway interface of the calling platform, so that the calling platform can obtain the secondary packaging data corresponding to the service requirements through the second gateway interface. When the calling platform needs to call at least one target capability in the secondary packaging data, it can call at least one target capability according to the service interface in the secondary packaging data.
[0173] In an embodiment of the present invention, the method further includes:
[0174] Upon receiving a request from the calling platform to call at least one of the target capabilities based on the service interface, obtaining the subscription information corresponding to the service interface according to the correspondence between the service interface and the subscription information in the gateway module, and determining, through the service interface, whether the at least one target capability of the calling platform is within the purchase period;
[0175] If it is within the purchase period, at least one original interface corresponding to at least one target capability is sent to the calling platform; so that the calling platform calls at least one target capability to the first gateway interface of the publishing platform according to at least one original interface.
[0176] The management platform can receive the service interface of the secondary packaging data sent by the calling platform through the second gateway interface when the user calls at least one target capability on the calling platform. The management platform can also obtain the subscription information corresponding to the service interface through the correspondence between the service interface and the subscription information in the gateway module, thereby obtaining the purchase period in the subscription information, and then determine whether the at least one target capability is within the purchase period. If it is within the purchase period, the management platform sends at least one original interface corresponding to the at least one target capability to the calling platform, so that when the calling platform receives the at least one original interface sent by the management platform, it can call the at least one target capability to the first gateway interface of the publishing platform according to the at least one original interface. If it is not within the purchase period, the management platform can send information that it is not within the purchase period to the calling platform, so that when the calling platform receives the information that it is not within the purchase period sent by the management platform, it can output a prompt message that it is not within the purchase period. The content of the prompt message can be "The purchase period of this capability has expired, please purchase it again!", etc. The specific content of the prompt message can be set according to actual conditions, and the embodiments of the present invention are not limited here.
[0177] The method comprises: obtaining the original packaged data published by the publishing platform through the first gateway interface; the original packaged data is the data obtained by the publishing platform obtaining the capabilities published by the user and packaging the data of the capabilities, and the original packaged data includes the original interface of the capabilities; obtaining the service requirements sent by the calling platform and determining at least one target capability according to the service requirements; packaging the original packaged data of the at least one target capability to obtain secondary packaged data corresponding to the service requirements; the secondary packaged data includes the service interface obtained after packaging at least one original interface of the at least one target capability; sending the secondary packaged data corresponding to the service requirements to the second gateway interface of the calling platform, so that the calling platform calls the at least one target capability according to the service interface in the secondary packaged data. In the embodiment of the present invention, the publishing platform can package the data of the capabilities and unify the original interfaces of all capabilities to solve the problem of complex interfaces for capability calls between different enterprises. The management platform can also perform secondary packaging on the at least one target capability according to the service requirements to obtain secondary packaged data corresponding to each calling platform. The calling platform can use the secondary packaged data to call the capabilities to solve the problem that the enterprise application system needs to coordinate, communicate, and debug with different enterprises when it wants to use the capabilities of the entire network, which greatly increases the time cost and is inefficient.
[0178] Reference Figure 4 , shows a flowchart of the steps of a third capability sharing method provided by an embodiment of the present invention, which is applied to a calling platform, wherein the calling platform, the management platform, and the publishing platform are communicatively connected with each other, the publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. The method includes:
[0179] Step 401: Acquire a service requirement sent by a user and send the service requirement to the management platform via the second gateway interface, so that the management platform determines at least one target capability based on the service requirement, encapsulates the original encapsulated data of the at least one target capability to obtain secondary encapsulated data corresponding to the service requirement, and sends the secondary encapsulated data corresponding to the service requirement to the calling platform; the original encapsulated data is data obtained by the publishing platform encapsulating the capability data published by the user; the secondary encapsulated data includes a service interface obtained by encapsulating at least one original interface of the at least one target capability;
[0180] The calling platform can obtain the service requirements sent by the user according to actual needs, and can send the service requirements to the management platform through the second gateway interface of the calling platform, so that the management platform can determine at least one target capability through the service requirements, encapsulate the original encapsulation data of at least one target capability, and obtain secondary encapsulation data corresponding to the service requirements. The secondary encapsulation data corresponding to the service requirements can also be sent to the calling platform, wherein the original encapsulation data can be the data obtained by encapsulating the capability data published by the user on the publishing platform, and the secondary encapsulation data may include the service interface obtained after encapsulating at least one original interface of at least one target capability.
[0181] Step 402: Receive the secondary packaging data sent by the management platform, and call at least one of the target capabilities according to the service interface in the secondary packaging data.
[0182] After the management platform sends the secondary packaging data, the calling platform can obtain the secondary packaging data corresponding to the service requirements through the second gateway interface. When it is necessary to call at least one target capability in the secondary packaging data, it can call at least one target capability according to the service interface in the secondary packaging data.
[0183] In an embodiment of the present invention, the original packaging data includes deployment resource requirements, and after receiving the secondary packaging data sent by the management platform, the process further includes:
[0184] Determining whether the calling platform has deployed an old version of the target capability;
[0185] If the old version has been deployed, obtaining the deployment resource requirement corresponding to the target capability from the secondary packaging data;
[0186] If the old version is not deployed, the service interface of the secondary encapsulated data is registered in the second gateway interface.
[0187] After the calling platform receives the secondary packaging data sent by the management platform, the calling platform can determine whether it has deployed the old version of the target capability. If the old version of the target capability has been deployed, the deployment resource requirements corresponding to the target capability are obtained from the secondary packaging data. If the old version of the target capability has not been deployed, the service interface of the secondary packaging data is registered in the second gateway interface, so that when the calling platform calls the target capability, the service interface of the secondary packaging data can be sent to the management platform through the second gateway interface.
[0188] In an embodiment of the present invention, after obtaining the deployment resource requirement corresponding to the target capability from the secondary packaging data, the method further includes:
[0189] Determining whether the resources in the calling platform meet the conditions for automatic deployment according to the deployment resource requirements;
[0190] If the automatic deployment condition is met, resource deployment is performed based on the old version, and the service interface of the secondary packaged data is registered in the second gateway interface;
[0191] If the conditions for automatic deployment are not met, a prompt message indicating that the resource deployment cannot be performed is output.
[0192] If the calling platform has already deployed an old version of the target capability, it is necessary to obtain the deployment resource requirements corresponding to the target capability from the secondary packaging data, and determine whether the resources in the calling platform meet the conditions for automatic deployment based on the deployment resource requirements. If the conditions for automatic deployment are met, the calling platform performs automatic resource deployment based on the old version, and after the deployment is completed, the service interface of the secondary packaging data is registered on the second gateway interface; if the conditions for automatic deployment are not met, a prompt message indicating that automatic resource deployment cannot be performed is output, wherein the conditions for automatic deployment are defined by the user at the time of release, and the prompt message indicating that automatic resource deployment cannot be performed can be "Automatic resource deployment cannot be performed, please check the deployment conditions!", etc. The specific content of the prompt message can be set according to actual conditions, and the embodiments of the present invention are not limited here.
[0193] In the embodiment of the present invention, calling at least one target capability according to the service interface in the secondary packaging data includes:
[0194] When calling at least one of the target capabilities, the service interface is sent to the management platform through the second gateway interface, so that after the management platform receives the service interface, it obtains the subscription information corresponding to the service interface according to the correspondence between the service interface and the subscription information in the gateway module, and determines whether the at least one target capability of the calling platform is within the purchase period through the service interface; if it is within the purchase period, at least one original interface corresponding to the at least one target capability is sent to the calling platform; wherein the subscription information is generated after the at least one target capability is subscribed and includes the purchase period information; the gateway module is used to store the subscription information, the service interface and the at least one original interface;
[0195] When the calling platform receives the at least one original interface sent by the management platform, the calling platform calls at least one target capability to the first gateway interface of the publishing platform according to the at least one original interface.
[0196] The user can call at least one target capability on the calling platform. When at least one target capability needs to be called, the service interface of the secondary packaged data can be sent to the management platform through the second gateway interface, so that after receiving the service interface, the management platform can obtain the subscription information corresponding to the service interface through the correspondence between the service interface and the subscription information in the gateway module, thereby obtaining the purchase period in the subscription information, and then determine whether the at least one target capability is within the purchase period. If it is within the purchase period, the management platform sends at least one original interface corresponding to the at least one target capability to the calling platform. If it is not within the purchase period, the management platform sends information that it is not within the purchase period to the calling platform; when the calling platform receives the at least one original interface sent by the management platform, it can call at least one target capability to the first gateway interface of the publishing platform according to the at least one original interface.
[0197] In an embodiment of the present invention, when calling at least one of the target capabilities, after sending the service interface to the management platform through the second gateway interface, the method further includes:
[0198] When the calling platform receives the information that is not within the purchase period, it outputs a prompt message that is not within the purchase period.
[0199] After the service interface is sent to the management platform through the second gateway interface, if the information received by the calling platform is not within the purchase period, the calling platform outputs a prompt message that it is not within the purchase period. The content of the prompt message can be "The purchase period of this capability has expired, please purchase it again!", etc. The specific content of the prompt message can be set according to actual conditions and is not limited here in the embodiment of the present invention.
[0200] The service requirements sent by the user are obtained and sent to the management platform through the second gateway interface, so that the management platform determines at least one target capability based on the service requirements, encapsulates the original encapsulated data of the at least one target capability to obtain secondary encapsulated data corresponding to the service requirements, and sends the secondary encapsulated data corresponding to the service requirements to the calling platform; the original encapsulated data is the data obtained by the publishing platform encapsulating the data of the capability published by the user; the secondary encapsulated data includes the service interface obtained after encapsulating at least one original interface of the at least one target capability; the secondary encapsulated data sent by the management platform is received, and the at least one target capability is called according to the service interface in the secondary encapsulated data. In the embodiment of the present invention, the data of the capability can be encapsulated by the publishing platform, and the original interfaces of all capabilities can be unified to solve the problem of complex interfaces for capability calls between different enterprises. The management platform can also perform secondary encapsulation on at least one target capability according to the service requirements to obtain secondary encapsulated data corresponding to each calling platform. The calling platform can use the secondary encapsulated data to call the capability to solve the problem that the enterprise application system needs to coordinate, communicate, and debug with different enterprises when it wants to use the capabilities of the entire network, which greatly increases the time cost and is inefficient.
[0201] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0202] Reference Figure 5 , shows a structural block diagram of a first capability sharing device provided by an embodiment of the present invention, which is applied to a publishing platform. The publishing platform, management platform, and calling platform are communicated with each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. Specifically, the device may include the following modules:
[0203] The first encapsulation module 501 is used to obtain the capabilities published by the user, encapsulate the data of the capabilities, and obtain the original encapsulated data of the capabilities; wherein the original encapsulated data includes the original interface of the capabilities;
[0204] The original encapsulated data publishing module 502 is used to publish the original encapsulated data of the capability to the management platform through the first gateway interface, so that the management platform determines at least one target capability according to the service requirements sent by the calling platform, encapsulates the original encapsulated data of at least one target capability, obtains secondary encapsulated data corresponding to the service requirements, and sends the secondary encapsulated data corresponding to the service requirements to the calling platform. The secondary encapsulated data includes the service interface obtained after encapsulating at least one original interface of at least one target capability.
[0205] Optionally, the first encapsulation module 501 may include:
[0206] A resource requirement acquisition submodule, configured to acquire the deployment resource requirement of the capability through the first gateway interface;
[0207] The first encapsulation submodule is used to encapsulate the deployment resource requirements and the capability data to obtain the original encapsulated data of the capability.
[0208] Optionally, the device may further include:
[0209] a calling instruction receiving module, configured to, when the first gateway interface receives an instruction from the calling platform to call at least one of the target capabilities, respond to the instruction and call at least one of the target capabilities;
[0210] The result sending module is used to send the call result to the calling platform through the second gateway interface after the call is completed.
[0211] Reference Figure 6 , shows a structural block diagram of a second capability sharing device provided by an embodiment of the present invention, which is applied to a management platform. The management platform, the publishing platform, and the calling platform are communicatively connected with each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. Specifically, the device may include the following modules:
[0212] The original encapsulated data acquisition module 601 is used to obtain the original encapsulated data published by the publishing platform through the first gateway interface; the original encapsulated data is the data obtained by the publishing platform obtaining the capabilities published by the user and encapsulating the data of the capabilities, and the original encapsulated data includes the original interface of the capabilities;
[0213] A target capability determination module 602 is configured to obtain the service requirements sent by the calling platform and determine at least one target capability based on the service requirements;
[0214] The second encapsulation module 603 is configured to encapsulate the original encapsulation data of at least one target capability to obtain secondary encapsulation data corresponding to the service requirement; the secondary encapsulation data includes the service interface obtained by encapsulating at least one original interface of at least one target capability;
[0215] The secondary packaging data sending module 604 is used to send the secondary packaging data corresponding to the service requirement to the second gateway interface of the calling platform, so that the calling platform calls at least one of the target capabilities according to the service interface in the secondary packaging data.
[0216] Optionally, the device may further include:
[0217] an ordering information generating module, configured to generate ordering information corresponding to the service interface in the secondary packaging data after at least one target capability is ordered, and store the ordering information, the service interface, and at least one original interface in the gateway module; wherein the ordering information includes a purchase period;
[0218] The apparatus may further comprise:
[0219] A purchase period judgment module is used to, when receiving a call from the calling platform to call at least one of the target capabilities based on the service interface, obtain the subscription information corresponding to the service interface according to the correspondence between the service interface and the subscription information in the gateway module, and judge whether at least one of the target capabilities of the calling platform is within the purchase period through the service interface; if it is within the purchase period, send at least one original interface corresponding to at least one of the target capabilities to the calling platform; so that the calling platform calls at least one of the target capabilities to the first gateway interface of the publishing platform according to at least one original interface.
[0220] Reference Figure 7 , shows a structural block diagram of a third capability sharing device provided by an embodiment of the present invention, which is applied to a calling platform. The calling platform, the management platform, and the publishing platform are communicatively connected with each other. The publishing platform includes a first gateway interface, and the calling platform includes a second gateway interface. Specifically, the device may include the following modules:
[0221] The service demand sending module 701 is configured to obtain a service demand sent by a user and send the service demand to the management platform via the second gateway interface, so that the management platform determines at least one target capability based on the service demand, encapsulates the original encapsulated data of the at least one target capability to obtain secondary encapsulated data corresponding to the service demand, and sends the secondary encapsulated data corresponding to the service demand to the calling platform; the original encapsulated data is data obtained by the publishing platform encapsulating the data of the capability published by the user; the secondary encapsulated data includes a service interface obtained by encapsulating at least one original interface of the at least one target capability;
[0222] The secondary packaging data receiving module 702 is configured to receive the secondary packaging data sent by the management platform and call at least one target capability according to the service interface in the secondary packaging data.
[0223] Optionally, the secondary packaging data receiving module 702 may include:
[0224] a capability calling submodule for sending the service interface to the management platform via the second gateway interface when calling at least one of the target capabilities, so that after receiving the service interface, the management platform obtains the subscription information corresponding to the service interface based on the correspondence between the service interface and subscription information in the gateway module, and determines whether the at least one target capability of the calling platform is within the purchase period through the service interface; if it is within the purchase period, sending at least one original interface corresponding to the at least one target capability to the calling platform; wherein the subscription information is generated after at least one of the target capabilities is subscribed and includes the purchase period information; the gateway module is used to store the subscription information, the service interface, and the at least one original interface;
[0225] The original interface receiving submodule is used to call at least one of the target capabilities to the first gateway interface of the publishing platform according to at least one of the original interfaces when the calling platform receives at least one of the original interfaces sent by the management platform.
[0226] Optionally, the secondary packaging data receiving module 702 may further include:
[0227] The first prompt information output module is used to output a prompt information that is not within the purchase period when the calling platform receives the information that is not within the purchase period.
[0228] Optionally, the device may further include:
[0229] The target capability judgment module is used to determine whether the calling platform has deployed an old version of the target capability; if the old version has been deployed, the deployment resource requirements corresponding to the target capability are obtained from the secondary packaging data; if the old version has not been deployed, the service interface of the secondary packaging data is registered in the second gateway interface.
[0230] Optionally, the device may further include:
[0231] The resource judgment submodule is used to judge whether the resources in the calling platform meet the conditions for automatic deployment based on the deployment resource requirements; if the conditions for automatic deployment are met, the resources are deployed based on the old version, and the service interface of the secondary encapsulated data is registered in the second gateway interface; if the conditions for automatic deployment are not met, a prompt message is output indicating that the resource deployment cannot be performed.
[0232] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0233] An embodiment of the present invention further provides an electronic device, including:
[0234] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned capability sharing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0235] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned capability sharing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0236] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0237] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, apparatus, or computer program products. Thus, embodiments of the present invention may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program data.
[0238] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the process in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0239] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0240] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0241] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0242] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.
[0243] The above is a detailed introduction to a capability sharing system, a capability sharing method, a capability sharing device, an electronic device and a storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A capability sharing system, characterized in that: Applied to a sharing system, the sharing system includes a management platform, a publishing platform and a calling platform, the management platform, the publishing platform and the calling platform are connected to each other in communication, the publishing platform includes a first gateway interface, the calling platform includes a second gateway interface, and the system includes: The publishing platform obtains the capability published by the user, encapsulates the data of the capability to obtain the original encapsulated data of the capability, and publishes the original encapsulated data of the capability to the management platform through the first gateway interface; wherein the original encapsulated data includes the original interface of the capability; The management platform obtains the service demand sent by the calling platform, determines at least one target capability according to the service demand, and encapsulates the original encapsulation data of at least one target capability to obtain secondary encapsulation data corresponding to the service demand; wherein the secondary encapsulation data includes a service interface obtained after encapsulating at least one original interface of at least one target capability; The calling platform obtains the secondary packaging data corresponding to the service requirement through the second gateway interface, and calls at least one of the target capabilities according to the service interface in the secondary packaging data.
2. The system according to claim 1, characterized in that The publishing platform obtains the capability published by the user, encapsulates the data of the capability, and obtains the original encapsulated data of the capability, including: Acquire deployment resource requirements of the capability through the first gateway interface; The deployment resource requirement and the capability data are encapsulated to obtain original encapsulated data of the capability.
3. The system according to claim 1, characterized in that Also includes: After at least one of the target capabilities is ordered, the management platform generates order information including a purchase period, determines a correspondence between the order information and the service interface, and stores the order information, the service interface and at least one of the original interfaces in a gateway module; The calling at least one of the target capabilities according to the service interface in the secondary packaging data includes: When calling at least one of the target capabilities, the calling platform sends the service interface to the management platform through the second gateway interface. After receiving the service interface, the management platform obtains the subscription information corresponding to the service interface through the correspondence between the service interface and the subscription information in the gateway module, and determines whether at least one of the target capabilities of the calling platform is within the purchase period through the service interface. If it is within the purchase period, sending at least one original interface corresponding to at least one target capability to the calling platform; If it is not within the purchase period, sending a message that it is not within the purchase period to the calling platform; When the calling platform receives the at least one original interface sent by the management platform, the calling platform calls at least one target capability to the first gateway interface of the publishing platform according to the at least one original interface.
4. The system according to claim 3, characterized in that After calling at least one of the target capabilities to the first gateway interface of the publishing platform according to at least one of the original interfaces, the method further includes: The publishing platform calls at least one of the target capabilities, and after the call is completed, sends the call result through the second gateway interface.
5. The system according to claim 3, characterized in that When calling at least one of the target capabilities, the calling platform sends the service interface to the management platform through the second gateway interface, further comprising: When the calling platform receives information that is not within the purchase period, it outputs prompt information that is not within the purchase period.
6. The system according to claim 1, characterized in that The original packaging data includes deployment resource requirements, and after the calling platform obtains the secondary packaging data corresponding to the service requirements ordered by the user from the management platform through the second gateway interface, it also includes: The calling platform determines whether the calling platform has deployed an old version of the target capability; If the old version has been deployed, obtaining the deployment resource requirement corresponding to the target capability from the secondary packaging data; If the old version is not deployed, the service interface of the secondary encapsulated data is registered in the second gateway interface.
7. The system according to claim 6, characterized in that After acquiring the deployment resource requirement corresponding to the target capability from the secondary packaging data, the method further includes: The calling platform determines whether the resources in the calling platform meet the conditions for automatic deployment according to the deployment resource requirements; If the automatic deployment condition is met, resources are deployed based on the old version, and the service interface of the secondary encapsulated data is registered in the second gateway interface; If the conditions for the automatic deployment are not met, a prompt message indicating that the resource deployment cannot be performed is output.
8. A capability sharing method, characterized in that: Applied to a publishing platform, the publishing platform, the management platform, and the calling platform are connected to each other in communication, the publishing platform includes a first gateway interface, the calling platform includes a second gateway interface, and the method includes: Acquire the capability published by the user, encapsulate the data of the capability, and obtain the original encapsulated data of the capability; wherein the original encapsulated data includes the original interface of the capability; The original encapsulation data of the capability is published to the management platform through the first gateway interface, so that the management platform determines at least one target capability according to the service requirements sent by the calling platform, encapsulates the original encapsulation data of at least one target capability, obtains secondary encapsulation data corresponding to the service requirements, and sends the secondary encapsulation data corresponding to the service requirements to the calling platform, wherein the secondary encapsulation data includes a service interface obtained after encapsulating at least one original interface of at least one target capability.
9. The method according to claim 8, characterized in that The acquiring the capability published by the user, encapsulating the data of the capability, and obtaining the original encapsulated data of the capability includes: Acquire deployment resource requirements of the capability through the first gateway interface; The deployment resource requirement and the capability data are encapsulated to obtain original encapsulated data of the capability.
10. The method according to claim 8, characterized in that The method further comprises: When the first gateway interface receives an instruction from the calling platform to call at least one of the target capabilities, calling at least one of the target capabilities in response to the instruction; After the call is completed, the call result is sent to the calling platform through the second gateway interface.
11. A capability sharing method, characterized in that: Applied to a management platform, the management platform, the publishing platform and the calling platform are connected to each other in communication, the publishing platform includes a first gateway interface, the calling platform includes a second gateway interface, and the method includes: Acquire the original encapsulated data published by the publishing platform through the first gateway interface; the original encapsulated data is data obtained by the publishing platform acquiring the capability published by the user and encapsulating the data of the capability, and the original encapsulated data includes the original interface of the capability; Acquire the service requirements sent by the calling platform, and determine at least one target capability according to the service requirements; Encapsulating the original encapsulation data of at least one of the target capabilities to obtain secondary encapsulation data corresponding to the service requirement; the secondary encapsulation data includes a service interface obtained after encapsulating at least one of the original interfaces of at least one of the target capabilities; The secondary packaging data corresponding to the service requirement is sent to the second gateway interface of the calling platform, so that the calling platform calls at least one of the target capabilities according to the service interface in the secondary packaging data.
12. The method according to claim 11, characterized in that After encapsulating the original encapsulation data of at least one of the target capabilities to obtain the secondary encapsulation data corresponding to the service requirement, the method further includes: After at least one of the target capabilities is ordered, order information corresponding to the service interface in the secondary packaging data is generated, and the order information, the service interface and at least one of the original interfaces are stored in the gateway module; wherein the order information includes a purchase period; The method further comprises: When receiving a call from the calling platform to call at least one of the target capabilities based on the service interface, acquiring the subscription information corresponding to the service interface according to the correspondence between the service interface and the subscription information in the gateway module, and determining whether at least one of the target capabilities of the calling platform is within the purchase period through the service interface; If within the purchase period, at least one original interface corresponding to at least one of the target capabilities is sent to the calling platform; so that the calling platform calls at least one of the target capabilities to the first gateway interface of the publishing platform according to at least one of the original interfaces.
13. A capability sharing method, characterized in that: Applied to a calling platform, the calling platform, the management platform and the publishing platform are connected to each other in communication, the publishing platform includes a first gateway interface, the calling platform includes a second gateway interface, and the method includes: Acquire the service demand sent by the user, and send the service demand to the management platform through the second gateway interface, so that the management platform determines at least one target capability through the service demand, encapsulates the original encapsulation data of at least one target capability, obtains secondary encapsulation data corresponding to the service demand, and sends the secondary encapsulation data corresponding to the service demand to the calling platform; the original encapsulation data is the data obtained by the publishing platform encapsulating the data of the capability published by the user; the secondary encapsulation data includes the service interface obtained after encapsulating at least one original interface of at least one target capability; The secondary packaging data sent by the management platform is received, and at least one of the target capabilities is called according to the service interface in the secondary packaging data.
14. The method according to claim 13, characterized in that The calling at least one of the target capabilities according to the service interface in the secondary packaging data includes: When calling at least one of the target capabilities, the service interface is sent to the management platform through the second gateway interface, so that after the management platform receives the service interface, it obtains the subscription information corresponding to the service interface according to the correspondence between the service interface and the subscription information in the gateway module, and determines whether at least one of the target capabilities of the calling platform is within the purchase period through the service interface; if it is within the purchase period, at least one of the original interfaces corresponding to at least one of the target capabilities is sent to the calling platform; wherein the subscription information is information including the purchase period generated after at least one of the target capabilities is subscribed; the gateway module is used to store the subscription information, the service interface and at least one of the original interfaces; When the calling platform receives the at least one original interface sent by the management platform, the calling platform calls at least one target capability to the first gateway interface of the publishing platform according to the at least one original interface.
15. The method according to claim 14, characterized in that When calling at least one of the target capabilities, after sending the service interface to the management platform through the second gateway interface, the method further includes: When the calling platform receives information that is not within the purchase period, it outputs prompt information that is not within the purchase period.
16. The method according to claim 13, characterized in that The original packaging data includes deployment resource requirements, and after receiving the secondary packaging data sent by the management platform, the method further includes: Determining whether the calling platform has deployed an old version of the target capability; If the old version has been deployed, obtaining the deployment resource requirement corresponding to the target capability from the secondary packaging data; If the old version is not deployed, the service interface of the secondary encapsulated data is registered in the second gateway interface.
17. The method according to claim 16, characterized in that After acquiring the deployment resource requirement corresponding to the target capability from the secondary packaging data, the method further includes: Determining whether the resources in the calling platform meet the conditions for automatic deployment according to the deployment resource requirements; If the automatic deployment condition is met, resources are deployed based on the old version, and the service interface of the secondary encapsulated data is registered in the second gateway interface; If the conditions for the automatic deployment are not met, a prompt message indicating that the resource deployment cannot be performed is output.
18. A capability sharing device, characterized in that: Applied to a publishing platform, the publishing platform, the management platform, and the calling platform are connected to each other in communication, the publishing platform includes a first gateway interface, the calling platform includes a second gateway interface, and the device includes: The first encapsulation module is used to obtain the capability published by the user, encapsulate the data of the capability, and obtain the original encapsulation data of the capability; wherein the original encapsulation data includes the original interface of the capability; An original encapsulation data publishing module is used to publish the original encapsulation data of the capability to the management platform through the first gateway interface, so that the management platform determines at least one target capability according to the service requirements sent by the calling platform, encapsulates the original encapsulation data of at least one target capability, obtains secondary encapsulation data corresponding to the service requirements, and sends the secondary encapsulation data corresponding to the service requirements to the calling platform, wherein the secondary encapsulation data includes a service interface obtained after encapsulating at least one original interface of at least one target capability.
19. A capability sharing device, characterized in that: Applied to a management platform, the management platform, the publishing platform and the calling platform are connected to each other in communication, the publishing platform includes a first gateway interface, the calling platform includes a second gateway interface, and the device includes: an original encapsulated data acquisition module, used to acquire the original encapsulated data published by the publishing platform through the first gateway interface; the original encapsulated data is data obtained by the publishing platform acquiring the capabilities published by the user and encapsulating the data of the capabilities, and the original encapsulated data includes the original interface of the capabilities; A target capability determination module, used to obtain the service requirements sent by the calling platform and determine at least one target capability according to the service requirements; A second packaging module, used to package the original packaging data of at least one of the target capabilities to obtain secondary packaging data corresponding to the service demand; the secondary packaging data includes a service interface obtained after packaging at least one of the original interfaces of at least one of the target capabilities; The secondary packaging data sending module is used to send the secondary packaging data corresponding to the service demand to the second gateway interface of the calling platform, so that the calling platform calls at least one of the target capabilities according to the service interface in the secondary packaging data.
20. A capability sharing device, characterized in that: Applied to a calling platform, the calling platform, the management platform and the publishing platform are connected to each other in communication, the publishing platform includes a first gateway interface, the calling platform includes a second gateway interface, and the device includes: A service demand sending module, used for acquiring the service demand sent by the user, and sending the service demand to the management platform through the second gateway interface, so that the management platform determines at least one target capability through the service demand, encapsulates the original encapsulation data of at least one target capability, obtains secondary encapsulation data corresponding to the service demand, and sends the secondary encapsulation data corresponding to the service demand to the calling platform; the original encapsulation data is the data obtained by the publishing platform encapsulating the data of the capability published by the user; the secondary encapsulation data includes the service interface obtained after encapsulating at least one original interface of at least one target capability; The secondary packaging data receiving module is used to receive the secondary packaging data sent by the management platform, and call at least one of the target capabilities according to the service interface in the secondary packaging data.
21. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the capability sharing method as described in any one of claims 8 to 10, claims 11 to 12, or claims 13 to 17 are implemented.
22. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the capability sharing method as described in any one of claims 8 to 10, claims 11 to 12, or claims 13 to 17 are implemented.
Citation Information
Patent Citations
Method and system for acquiring service application
CN102427451A
Smart city service configuration based on information grid service
CN105931168A