CN110543327B - Service component multiplexing method, device, computer equipment and storage medium - Google Patents

Service component multiplexing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110543327B
CN110543327B CN201910843502.3A CN201910843502A CN110543327B CN 110543327 B CN110543327 B CN 110543327B CN 201910843502 A CN201910843502 A CN 201910843502A CN 110543327 B CN110543327 B CN 110543327B
Authority
CN
China
Prior art keywords
component
service
interface address
address information
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910843502.3A
Other languages
Chinese (zh)
Other versions
CN110543327A (en
Inventor
陈润
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Original Assignee
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd filed Critical Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority to CN201910843502.3A priority Critical patent/CN110543327B/en
Publication of CN110543327A publication Critical patent/CN110543327A/en
Application granted granted Critical
Publication of CN110543327B publication Critical patent/CN110543327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the invention discloses a service component multiplexing method, a device, computer equipment and a storage medium, wherein the method comprises the steps of analyzing a service component loading request to obtain corresponding component characteristic information if the service component loading request is received; calling an initial service component matched with the node packet manager from a preset node packet manager according to the component characteristic information; calling an interface address information packet matched with the system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of an initial service component to obtain a target service component after configuration is completed; and analyzing and installing the target service component into the current service system. The invention can effectively improve the multiplexing rate of the service components, is convenient for modification and upgrading, reduces the maintenance cost and improves the use experience of users.

Description

Service component multiplexing method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a service component multiplexing method, apparatus, computer device, and storage medium.
Background
At present, with the development of science and technology, many service systems can be used at high frequency for service components with certain functions, such as module codes capable of realizing certain functions, and if each service system contains the same module code, the required storage space is larger, the cost for performing subsequent maintenance is also high, and synchronous upgrading is difficult. Furthermore, the module used by high frequency has certain relevance with each service system to which the module is applied, so that the reusability of the module is further reduced, and the code maintenance cost is increased. If a module a capable of implementing a certain function is developed for the service system a, when the service system B needs to be provided with a module capable of implementing the function, the code of the module a can be copied into the service system B, and then the related data in the module a is modified for the differential requirement of the service system B so as to meet the requirement of the service system B. Especially when a certain function is required to be set in a plurality of service systems, the maintenance cost of the corresponding modules of the function on different service systems is multiplied, and furthermore, if the interaction mode of the modules for realizing the certain function is changed, one-time modification and synchronous upgrading are difficult to achieve.
Disclosure of Invention
The embodiment of the invention provides a service component multiplexing method, a device, computer equipment and a storage medium, which not only can effectively improve the multiplexing rate of service components, but also are convenient for modification and upgrading, reduce maintenance cost and improve the use experience of users.
In a first aspect, an embodiment of the present invention provides a service component multiplexing method, where the method includes:
if a service component loading request is received, analyzing the service component loading request to obtain corresponding component characteristic information;
calling an initial service component matched with the node packet manager from a preset node packet manager according to the component characteristic information; the node packet manager comprises a plurality of different initial service components, wherein different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet;
calling an interface address information packet matched with the system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of an initial service component to obtain a target service component after configuration is completed; the system comprises a preset database, a plurality of interface address information packets and a plurality of control modules, wherein the preset database comprises a plurality of different interface address information packets, the different interface address information packets are associated with different system characteristic information, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters;
And analyzing and installing the target service component into the current service system.
In a second aspect, an embodiment of the present invention further provides a service component multiplexing device, where the device includes:
the analyzing unit is used for analyzing the service component loading request to obtain corresponding component characteristic information if the service component loading request is received;
the component calling unit is used for calling the initial service component matched with the component from a preset node packet manager according to the component characteristic information; the node packet manager comprises a plurality of different initial service components, wherein different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet;
the processing unit is used for calling an interface address information packet matched with the system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of the initial service component so as to obtain a target service component after configuration is completed; the system comprises a preset database, a plurality of interface address information packets and a plurality of control modules, wherein the preset database comprises a plurality of different interface address information packets, the different interface address information packets are associated with different system characteristic information, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters;
And the installation unit is used for analyzing and installing the target service component into the current service system.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the above method.
The embodiment of the invention provides a service component multiplexing method, a service component multiplexing device, computer equipment and a storage medium. Wherein the method comprises the following steps: if a service component loading request is received, analyzing the service component loading request to obtain corresponding component characteristic information; calling an initial service component matched with the node packet manager from a preset node packet manager according to the component characteristic information; calling an interface address information packet matched with the system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of an initial service component to obtain a target service component after configuration is completed; and analyzing and installing the target service component into the current service system. The embodiment of the invention not only can effectively improve the multiplexing rate of the service components, but also is convenient for modification and upgrading, reduces the maintenance cost and improves the use experience of users.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a service component multiplexing method according to an embodiment of the present invention;
fig. 2 is a schematic sub-flowchart of a service component multiplexing method according to an embodiment of the present invention;
fig. 3 is a flow chart of a service component multiplexing method according to another embodiment of the present invention;
fig. 4 is a flow chart of a service component multiplexing method according to another embodiment of the present invention;
fig. 5 is a schematic block diagram of a service component multiplexing device according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a processing unit of a service component multiplexing device according to an embodiment of the present invention;
fig. 7 is another schematic block diagram of a service component multiplexing apparatus according to an embodiment of the present invention;
fig. 8 is another schematic block diagram of a service component multiplexing apparatus according to an embodiment of the present invention;
Fig. 9 is a schematic diagram of a computer device structure according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Referring to fig. 1, fig. 1 is a schematic flowchart of a service component multiplexing method according to an embodiment of the present application, where the service component multiplexing method is applied to a management server of a service system. The management server can call the corresponding initial service component from the preset node packet manager according to the service component loading request, and meanwhile, obtains the corresponding interface address information packet from the preset database, and configures the interface address information packet and the corresponding component parameters of the initial service component to obtain the configured target service component, and then installs the target service component in the service system, so that the installation and configuration of different service systems on the service components required by the service system can be realized, the reusability of the service component is realized, and the upgrading and maintenance efficiency of the service component can be improved. The respective steps of the service component multiplexing method will be described in detail below in terms of a management server.
Specifically, as shown in fig. 1, the steps of the method include steps S101 to S104.
Step S101, if a service component loading request is received, the service component loading request is analyzed to obtain corresponding component characteristic information.
In this embodiment, the user may configure a corresponding service component for the service system according to its own requirement. When the management server of the service system receives the service component loading request, the service loading request can be analyzed, and corresponding component characteristic information can be acquired. The component characteristic information refers to characteristic information which can be uniquely identified and is provided by a service component which needs to be loaded for the service system by a user, and for example, the component characteristic information can be information such as a name or a storage address of the service component.
Step S102, calling an initial service component matched with the component from a preset node packet manager according to the component characteristic information; the node packet manager comprises a plurality of different initial service components, wherein different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet.
In this embodiment, the preset node packet manager may be a preset manager for storing different initial service components. The node packet manager is generally named Node Package Manager, NPM for short, and is based on node. Js packet manager. The node packet manager can conveniently realize the sharing and reuse of codes of related component modules by developers, so that users can conveniently realize the multiplexing of service components, correspondingly improve and upgrade the service components and the like. In particular, different initial service components are matched and associated with different component characteristic information so as to identify corresponding functions thereof, thereby facilitating the selection and the calling of users. Furthermore, each initial service package can comprise a basic service package for realizing certain basic functions, and meanwhile, in order to realize different requirements of different users, a plurality of component parameters can be set for the basic service package in an associated way, so that the user can input different component parameters to change the related functions of the service components, thereby realizing specific functions.
For example, different component parameters may correspond to inputting parameter information such as different interface address information. Specifically, when the service system encapsulates a service component of a video tree, the service component of the video tree can realize functions of previewing, zooming in, zooming out, rotating to view, renaming, deleting, adding new files, adjusting file classification, checking files and the like. The image tree service component is configured to call a background interface address matched with the background interface address, that is, the image tree service component is an initial service component with the background interface address of the current service system configured as parameter information, that is, the background interface address can be the parameter information corresponding to the component parameters of the initial service component.
Step S103, calling an interface address information packet matched with the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of an initial service component to obtain a target service component after configuration is completed; the preset database comprises a plurality of different interface address information packets, the different interface address information packets are associated with different system characteristic information, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters.
In this embodiment, the preset database may include a plurality of different interface address information packets. And different interface address information packets can correspond to different service systems, and each interface address information packet is associated with different system characteristic information for being conveniently identified and called.
Optionally, the preset database is a VUE global variable. The global variable is implemented by asserting the prototype property of Vue. Prototype. GLOBAL in the main. Js file. The interface addresses of different service systems may be different, so that the interface address of the current service system can be saved through a global variable, and the initial service components do not need to pay attention to the interface address of the service system, so that the interface differences of the service systems are shielded, and the reusability of the initial service components is improved. The interface address packet may be a global_variable. Js file, which is used to define an interface address in a service system.
Furthermore, as the service component may need to call a plurality of interface address information in the actual call process so as to realize different functions, the called interface address information packet can be configured into the corresponding component parameters of the initial service component according to the requirements of the user, so that the user can select the required interface address information from the interface address information packet to configure according to the requirements, the multiplexing flexibility of the service component is improved, and the storage space required by the service system is reduced.
In an embodiment, as in the present embodiment, the step S103 may include steps S201 to S205 as shown in fig. 2.
Step S201, the acquired system feature information of the current service system. In order to determine the uniqueness of the current service system, system feature information of the current service system may be acquired, where the system feature information is a unique identifier of the current service system, and may be information such as a name of the current service system.
Step S202, calling an interface address information packet matched with the system characteristic information from a preset database through a preset parameter acquisition component and the system characteristic information. The preset parameter obtaining component may be the this global parameter obtaining component, and the management server may obtain a specific interface address information packet associated with the current service system from the VUE global variable through the this global parameter obtaining component, for example, the obtained interface address information packet may include a newly added image tree file interface address, where the newly added image tree file interface address may be parameter information that needs to be matched by a component parameter in the image tree service component.
Step S203, acquiring component parameters associated with the basic service package of the initial service component, so as to determine component parameters to be configured according to a selection instruction of a user.
In order to configure the initial service component, component parameters that need to be configured need to be determined according to a selection instruction of a user, and typically, component parameters associated with a basic service package may be stored in a configuration file of the initial service component so as to be convenient for calling and adjusting.
Step S204, corresponding interface address information is selected from the called interface address information packet according to the determined component parameters. In general, different component parameters correspond to different interface address information, so after the component parameters are determined, the management server can select interface address information matched with the determined component parameters from the invoked interface address information packet, for example, when the component parameters in the image tree service component are parameters needing to be newly added, the newly added image tree file interface address can be selected from the current interface address information packet and configured into the component parameters.
Step S205, the selected interface address information is correspondingly configured into the determined component parameters to obtain the configured target business component. After the selected interface address information is correspondingly configured into the determined component parameters, the configured target service component can be obtained, so that the use of the initial service component in different service systems is realized, namely the multiplexing of the initial service component is realized, the use and maintenance efficiency of the initial service component is improved, the corresponding upgrading is convenient, and the workload is reduced.
Step S104, analyzing and installing the target business component into the current business system.
In this embodiment, the management server may parse the target service component, so as to install the target service component to the current service system, so as to implement application to the target service component.
In one embodiment, the target service component includes a basic service package and related parameter information, so the present embodiment further includes the following steps:
step S105, if the service component upgrade request is detected, updating the basic service package of the current target service component according to the service component upgrade request to obtain an updated target service component.
In this embodiment, if the management server detects a service component upgrade request, the management server may correspondingly upgrade the basic service package of the target service component according to the request, so as to obtain an updated target service component. Because the basic service package can realize the basic function of the target service component, the whole target service component can be upgraded by only upgrading the basic service package, and meanwhile, the target service components of other service systems can be upgraded, thereby improving the corresponding upgrading efficiency and accuracy. In particular, the upgrade of the initial service component in the NPM can be realized by executing the command 'NPM install-save component name' in the NPM, so that the subsequent continuous use is convenient, and the workload of user maintenance is reduced.
In summary, the embodiment of the invention not only can effectively improve the multiplexing rate of the service components, but also is convenient for modification and upgrading, reduces the maintenance cost and improves the user experience.
Referring to fig. 3, fig. 3 is a schematic flow chart of a service component multiplexing method according to another embodiment of the present invention. As shown in fig. 3, the steps of the method include steps S301a to S304. The explanation and detailed explanation of the steps similar to steps S101 to S104 in the above embodiment are omitted herein, and the following detailed explanation is added to the steps in this embodiment.
Step 301a, if a service component development request is received, generating a corresponding development interface according to the service component development request.
In this embodiment, if the management server receives the service component development request, the management server may analyze the service component development request to generate a corresponding development interface, so that the user may perform corresponding development according to the needs.
Step S301b, receiving component development information input by a user in a development interface, and generating a corresponding basic service package according to the component development information.
In this embodiment, if component development information input by a user at a development interface is received, a corresponding basic service package may be generated according to the component development information, where the basic service package may implement some common functions of a service system, for example, processing a file, and so on.
Step S301c, configuring a plurality of associated component parameters for the basic service packet, and determining the basic service packet configured with the component parameters as an initial service component.
In this embodiment, in order to perform personalized configuration on the basic service packet, so as to adapt to multiplexing requirements of different service components, it is necessary to configure and associate a plurality of component parameters for the basic service packet, and determine the basic service packet after the component parameters are configured as an initial service component.
Step S301d, storing the determined initial service component in a preset node packet manager.
In this embodiment, in order to facilitate corresponding calling and management, the determined initial service component needs to be stored in a preset node packet manager.
Step S301, if a service component loading request is received, the service component loading request is parsed to obtain corresponding component feature information.
Step S302, calling an initial service component matched with the component from a preset node packet manager according to the component characteristic information; the node packet manager comprises a plurality of different initial service components, wherein different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet.
Step S303, calling an interface address information packet matched with the system characteristic information of the current service system from a preset database according to the acquired system characteristic information of the current service system, and configuring the called interface address information packet into corresponding component parameters of an initial service component to obtain a target service component after configuration is completed; the preset database comprises a plurality of different interface address information packets, the different interface address information packets are associated with different system characteristic information, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters.
Step S304, analyzing and installing the target business component into the current business system.
In an embodiment, as shown in fig. 4, before the step S301, the method further includes:
in step S301e, system feature information of different service systems is obtained.
In step S301f, an interface address packet of each service system is defined.
Step S301g, after associating the interface address information packet defined by each service system with the system characteristic information, storing the interface address information packet in a preset database. In order to realize personalized setting of different service systems, the application of an initial service component in the different service systems is improved, the related interface address information in the service systems is required to be firstly subjected to statistical storage, namely, the system characteristic information of the different service systems can be obtained, interface address information packets of each service system are defined, then the interface address information packets defined by each system are associated with the system characteristic information, and the associated interface address information packets are stored in a preset database. For example, when the database is a VUE global variable, the interface address packet may be defined as a global_variable.js file, and the global_variable.js file may be mounted under the VUE global variable, so as to facilitate call configuration.
Referring to fig. 5, in response to the above-mentioned method for multiplexing service components, an embodiment of the present invention further provides a device for multiplexing service components, where the device 100 includes: parsing unit 101, component calling unit 102, processing unit 103, and installation unit 104.
And the parsing unit 101 is configured to parse the service component loading request to obtain corresponding component feature information if the service component loading request is received.
In this embodiment, the user may configure a corresponding service component for the service system according to its own requirement. When the management server of the service system receives the service component loading request, the service loading request can be analyzed, and corresponding component characteristic information can be acquired. The component characteristic information refers to characteristic information which can be uniquely identified and is provided by a service component which needs to be loaded for the service system by a user, and for example, the component characteristic information can be information such as a name or a storage address of the service component.
The component calling unit 102 is configured to call an initial service component matched with the component from a preset node packet manager according to the component characteristic information; the node packet manager comprises a plurality of different initial service components, wherein different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet.
In this embodiment, the preset node packet manager may be a preset manager for storing different initial service components. The node packet manager is generally named Node Package Manager, NPM for short, and is based on node. Js packet manager. The node packet manager can conveniently realize the sharing and reuse of codes of related component modules by developers, so that users can conveniently realize the multiplexing of service components, correspondingly improve and upgrade the service components and the like. In particular, different initial service components are matched and associated with different component characteristic information so as to identify corresponding functions thereof, thereby facilitating the selection and the calling of users. Furthermore, each initial service package can comprise a basic service package for realizing certain basic functions, and meanwhile, in order to realize different requirements of different users, a plurality of component parameters can be set for the basic service package in an associated way, so that the user can input different component parameters to change the related functions of the service components, thereby realizing specific functions.
For example, different component parameters may correspond to inputting parameter information such as different interface address information. Specifically, when the service system encapsulates a service component of a video tree, the service component of the video tree can realize functions of previewing, zooming in, zooming out, rotating to view, renaming, deleting, adding new files, adjusting file classification, checking files and the like. The image tree service component is configured to call a background interface address matched with the background interface address, that is, the image tree service component is an initial service component with the background interface address of the current service system configured as parameter information, that is, the background interface address can be the parameter information corresponding to the component parameters of the initial service component.
The processing unit 103 is configured to call an interface address information packet matched with the system feature information of the current service system from a preset database according to the acquired system feature information of the current service system, and configure the called interface address information packet into corresponding component parameters of the initial service component, so as to obtain a target service component after configuration is completed; the preset database comprises a plurality of different interface address information packets, the different interface address information packets are associated with different system characteristic information, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters.
In this embodiment, the preset database may include a plurality of different interface address information packets. And different interface address information packets can correspond to different service systems, and each interface address information packet is associated with different system characteristic information for being conveniently identified and called.
Optionally, the preset database is a VUE global variable. The global variable is implemented by asserting the prototype property of Vue. Prototype. GLOBAL in the main. Js file. The interface addresses of different service systems may be different, so that the interface address of the current service system can be saved through a global variable, and the initial service components do not need to pay attention to the interface address of the service system, so that the interface differences of the service systems are shielded, and the reusability of the initial service components is improved. The interface address packet may be a global_variable. Js file, which is used to define an interface address in a service system.
Furthermore, as the service component may need to call a plurality of interface address information in the actual call process so as to realize different functions, the called interface address information packet can be configured into the corresponding component parameters of the initial service component according to the requirements of the user, so that the user can select the required interface address information from the interface address information packet to configure according to the requirements, the multiplexing flexibility of the service component is improved, and the storage space required by the service system is reduced.
In an embodiment, as shown in fig. 6, the processing unit 103 may include a feature acquisition unit 201, a packet calling unit 202, a parameter acquisition unit 203, an information selection unit 204, and a component configuration unit 205.
A feature acquiring unit 201, configured to acquire system feature information of a current service system. In order to determine the uniqueness of the current service system, system feature information of the current service system may be acquired, where the system feature information is a unique identifier of the current service system, and may be information such as a name of the current service system.
The packet calling unit 202 is configured to call, from a preset database, an interface address packet matching with the system feature information through a preset parameter obtaining component and the system feature information. The preset parameter obtaining component may be the this global parameter obtaining component, and the management server may obtain a specific interface address information packet associated with the current service system from the VUE global variable through the this global parameter obtaining component, for example, the obtained interface address information packet may include a newly added image tree file interface address, where the newly added image tree file interface address may be parameter information that needs to be matched by a component parameter in the image tree service component.
And the parameter obtaining unit 203 is configured to obtain component parameters associated with the basic service package of the initial service component, so as to determine component parameters to be configured according to a selection instruction of a user.
In order to configure the initial service component, component parameters that need to be configured need to be determined according to a selection instruction of a user, and typically, component parameters associated with a basic service package may be stored in a configuration file of the initial service component so as to be convenient for calling and adjusting.
An information selecting unit 204, configured to select corresponding interface address information from the invoked interface address information packet according to the determined component parameter. In general, different component parameters correspond to different interface address information, so after the component parameters are determined, the management server can select interface address information matched with the determined component parameters from the invoked interface address information packet, for example, when the component parameters in the image tree service component are parameters needing to be newly added, the newly added image tree file interface address can be selected from the current interface address information packet and configured into the component parameters.
The component configuration unit 205 is configured to correspondingly configure the selected interface address information into the determined component parameters, so as to obtain the configured target service component. After the selected interface address information is correspondingly configured into the determined component parameters, the configured target service component can be obtained, so that the use of the initial service component in different service systems is realized, namely the multiplexing of the initial service component is realized, the use and maintenance efficiency of the initial service component is improved, the corresponding upgrading is convenient, and the workload is reduced.
And the installation unit 104 is used for analyzing and installing the target service component into the current service system.
In this embodiment, the management server may parse the target service component, so as to install the target service component to the current service system, so as to implement application to the target service component.
In one embodiment, the target service component includes a basic service package and related parameter information, so the present embodiment further includes the following steps:
and the updating unit 105 is configured to update the basic service package of the current target service component according to the service component upgrade request if the service component upgrade request is detected, so as to obtain an updated target service component.
In this embodiment, if the management server detects a service component upgrade request, the management server may correspondingly upgrade the basic service package of the target service component according to the request, so as to obtain an updated target service component. Because the basic service package can realize the basic function of the target service component, the whole target service component can be upgraded by only upgrading the basic service package, and meanwhile, the target service components of other service systems can be upgraded, thereby improving the corresponding upgrading efficiency and accuracy. In particular, the upgrade of the initial service component in the NPM can be realized by executing the command 'NPM install-save component name' in the NPM, so that the subsequent continuous use is convenient, and the workload of user maintenance is reduced.
In summary, the embodiment of the invention not only can effectively improve the multiplexing rate of the service components, but also is convenient for modification and upgrading, reduces the maintenance cost and improves the user experience.
Referring to fig. 7, in response to the above-mentioned method for multiplexing service components, another embodiment of the present invention further provides a device for multiplexing service components, where the device 300 includes: interface generation unit 301a, service package generation unit 301b, parameter configuration unit 301c, component storage unit 301d, parsing unit 301, component calling unit 302, processing unit 303, and installation unit 304.
The interface generating unit 301a is configured to generate a corresponding development interface according to a service component development request if the service component development request is received.
In this embodiment, if the management server receives the service component development request, the management server may analyze the service component development request to generate a corresponding development interface, so that the user may perform corresponding development according to the needs.
The service package generating unit 301b is configured to receive component development information input by a user at a development interface, and generate a corresponding basic service package according to the component development information.
In this embodiment, if component development information input by a user at a development interface is received, a corresponding basic service package may be generated according to the component development information, where the basic service package may implement some common functions of a service system, for example, processing a file, and so on.
A parameter configuration unit 301c, configured to configure a plurality of component parameters associated with the basic service packet, and determine the basic service packet configured with the component parameters as an initial service component.
In this embodiment, in order to perform personalized configuration on the basic service packet, so as to adapt to multiplexing requirements of different service components, it is necessary to configure and associate a plurality of component parameters for the basic service packet, and determine the basic service packet after the component parameters are configured as an initial service component.
And the component storage unit 301d is configured to store the determined initial service component in a preset node packet manager.
In this embodiment, in order to facilitate corresponding calling and management, the determined initial service component needs to be stored in a preset node packet manager.
The parsing unit 301 is configured to parse the service component loading request to obtain corresponding component feature information if the service component loading request is received.
The component calling unit 302 is configured to call an initial service component matched with the component from a preset node packet manager according to the component feature information; the node packet manager comprises a plurality of different initial service components, wherein different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet.
The processing unit 303 is configured to call an interface address information packet matched with the system feature information of the current service system from a preset database according to the acquired system feature information of the current service system, and configure the called interface address information packet into corresponding component parameters of the initial service component, so as to obtain a target service component after configuration is completed; the preset database comprises a plurality of different interface address information packets, the different interface address information packets are associated with different system characteristic information, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters.
And the installation unit 304 is configured to parse and install the target service component into the current service system.
In an embodiment, as shown in fig. 8, before the parsing unit 301, the method further includes:
an information obtaining unit 301e is configured to obtain system feature information of different service systems.
A packet definition unit 301f, configured to define an interface address packet of each service system.
And the association unit 301g is configured to associate the interface address information packet defined by each service system with the system feature information thereof, and store the associated interface address information packet in a preset database. In order to realize personalized setting of different service systems, the application of an initial service component in the different service systems is improved, the related interface address information in the service systems is required to be firstly subjected to statistical storage, namely, the system characteristic information of the different service systems can be obtained, interface address information packets of each service system are defined, then the interface address information packets defined by each system are associated with the system characteristic information, and the associated interface address information packets are stored in a preset database. For example, when the database is a VUE global variable, the interface address packet may be defined as a global_variable.js file, and the global_variable.js file may be mounted under the VUE global variable, so as to facilitate call configuration.
It should be noted that, as those skilled in the art can clearly understand, the specific implementation process of the service component multiplexing apparatus 100 and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, the description is omitted here.
As can be seen from the above, in terms of hardware implementation, the above parsing unit 101, component calling unit 102, processing unit 103, and installation unit 104 may be embedded in hardware or may be independent of the apparatus for life insurance report, or may be stored in software in a memory of the service component multiplexing apparatus, so that the processor calls and executes the operations corresponding to the above units. The processor may be a Central Processing Unit (CPU), microprocessor, single-chip microcomputer, etc.
The service component multiplexing means described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 9.
Fig. 9 is a schematic structural diagram of a computer device according to the present invention. The device may be a server, where the server may be a stand-alone server, or may be a server cluster formed by a plurality of servers.
With reference to FIG. 9, the computer device 600 includes a processor 602, memory, internal memory 604, and a network interface 605 connected by a system bus 601, where the memory may include a non-volatile storage medium 603 and internal memory 604.
The non-volatile storage medium 603 may store an operating system 6031 and a computer program 6032 that, when executed, may cause the processor 602 to perform a business component multiplexing method.
The processor 602 is used to provide computing and control capabilities to support the operation of the overall computer device 600.
The internal memory 604 provides an environment for the execution of a computer program 6032 in the non-volatile storage medium 603, which computer program 6032, when executed by the processor 602, causes the processor 602 to perform a business component multiplexing method.
The network interface 605 is used for network communication with other devices. It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and does not constitute a limitation of the computer device 600 to which the present application is applied, and that a particular computer device 600 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 602 is configured to execute a computer program 6032 stored in a memory to implement the steps of a service component multiplexing method as described above.
It should be appreciated that in embodiments of the present application, the processor 602 may be a central processing unit (Central Processing Unit, CPU), the processor 602 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program which, when executed by a processor, causes the processor to perform the steps of a service component multiplexing method as described above.
The storage medium is a physical, non-transitory storage medium, and may be, for example, a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (8)

1. A method for multiplexing service components, the method comprising:
if a service component loading request is received, analyzing the service component loading request to obtain corresponding component characteristic information;
calling an initial service component matched with the node packet manager from a preset node packet manager according to the component characteristic information; the node packet manager comprises a plurality of different initial service components, wherein different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet;
the acquired system characteristic information of the current service system;
calling an interface address information packet matched with the system characteristic information from a preset database through a preset parameter acquisition component and the system characteristic information;
acquiring component parameters associated with a basic service package of the initial service component, so as to determine the component parameters to be configured according to a selection instruction of a user;
selecting corresponding interface address information from the called interface address information packet according to the determined component parameters;
correspondingly configuring the selected interface address information into the determined component parameters to obtain the configured target service component; the system comprises a preset database, a plurality of interface address information packets and a plurality of control modules, wherein the preset database comprises a plurality of different interface address information packets, the different interface address information packets are associated with different system characteristic information, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters;
And analyzing and installing the target service component into the current service system.
2. The method of claim 1, wherein, if a service component loading request is received, before the step of parsing the service component loading request to obtain corresponding component characteristic information, the method further comprises:
if a service component development request is received, generating a corresponding development interface according to the service component development request;
receiving component development information input by a user in a development interface, and generating a corresponding basic service package according to the component development information;
configuring a plurality of associated component parameters for the basic service package, and determining the basic service package with the component parameters as an initial service component;
and storing the determined initial service component into a preset node packet manager.
3. The method of claim 2, wherein the method further comprises:
acquiring system characteristic information of different service systems;
defining an interface address information packet of each service system;
and after the interface address information packet defined by each service system is associated with the system characteristic information, storing the interface address information packet into a preset database.
4. The method of claim 1 wherein the predetermined database is a VUE global variable and the interface address packet is a global_variable.
5. The method of claim 1, wherein the target service component comprises a base service package and related parameter information, and wherein after the step of parsing and installing the target service component into a current service system, further comprising:
if a service component upgrading request is detected, updating a basic service package of a current target service component according to the service component upgrading request to obtain an updated target service component.
6. A service component multiplexing device, the device comprising:
the analyzing unit is used for analyzing the service component loading request to obtain corresponding component characteristic information if the service component loading request is received;
the component calling unit is used for calling the initial service component matched with the component from a preset node packet manager according to the component characteristic information; the node packet manager comprises a plurality of different initial service components, wherein different initial service components are matched and associated with different component characteristic information, and each initial service component comprises a basic service packet and a plurality of component parameters associated with the basic service packet;
The feature acquisition unit is used for acquiring system feature information of the current service system;
the information packet calling unit is used for calling an interface address information packet matched with the system characteristic information from a preset database through a preset parameter acquisition component and the system characteristic information;
the parameter acquisition unit is used for acquiring the component parameters associated with the basic service package of the initial service component so as to determine the component parameters to be configured according to the selection instruction of the user;
an information selection unit for selecting corresponding interface address information from the called interface address information packet according to the determined component parameters;
the component configuration unit is used for correspondingly configuring the selected interface address information into the determined component parameters so as to obtain the configured target service component; the system comprises a preset database, a plurality of interface address information packets and a plurality of control modules, wherein the preset database comprises a plurality of different interface address information packets, the different interface address information packets are associated with different system characteristic information, each interface address information comprises a plurality of interface address information, and the different interface address information corresponds to different component parameters;
and the installation unit is used for analyzing and installing the target service component into the current service system.
7. A computer device, characterized in that it comprises a memory and a processor, on which a computer program is stored, which processor implements the method according to any of claims 1-5 when executing the computer program.
8. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, causes the processor to perform the method according to any of claims 1-5.
CN201910843502.3A 2019-09-06 2019-09-06 Service component multiplexing method, device, computer equipment and storage medium Active CN110543327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910843502.3A CN110543327B (en) 2019-09-06 2019-09-06 Service component multiplexing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910843502.3A CN110543327B (en) 2019-09-06 2019-09-06 Service component multiplexing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110543327A CN110543327A (en) 2019-12-06
CN110543327B true CN110543327B (en) 2023-08-01

Family

ID=68712743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910843502.3A Active CN110543327B (en) 2019-09-06 2019-09-06 Service component multiplexing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110543327B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104182A (en) * 2019-12-17 2020-05-05 深圳前海环融联易信息科技服务有限公司 Method and device for quickly arranging business based on componentization, computer equipment and storage medium
CN113765868B (en) * 2020-08-17 2023-08-08 北京沃东天骏信息技术有限公司 Service processing method and device
CN112635034A (en) * 2020-12-30 2021-04-09 微医云(杭州)控股有限公司 Service authority system, authority distribution method, electronic device and storage medium
CN113656048A (en) * 2021-08-25 2021-11-16 工银科技有限公司 Business component code installation method, tool and component code sharing system
CN116107561B (en) * 2023-04-14 2023-06-23 湖南云畅网络科技有限公司 Low-code-based action node rapid construction method, system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273126A (en) * 2017-06-15 2017-10-20 中国银行股份有限公司 Application and development method and apparatus
CN107798617A (en) * 2017-04-07 2018-03-13 平安科技(深圳)有限公司 Insurance business treating method and apparatus
CN110007902A (en) * 2019-03-12 2019-07-12 中国平安财产保险股份有限公司 The method and device of business processing flow configuration

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055702B (en) * 2018-02-08 2023-06-27 广州虎牙信息科技有限公司 Method, system and client for displaying business components
CN109582303A (en) * 2018-10-31 2019-04-05 平安科技(深圳)有限公司 General purpose module call method, device, computer equipment and storage medium
CN110109712A (en) * 2019-04-04 2019-08-09 平安科技(深圳)有限公司 Service Component loading method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798617A (en) * 2017-04-07 2018-03-13 平安科技(深圳)有限公司 Insurance business treating method and apparatus
CN107273126A (en) * 2017-06-15 2017-10-20 中国银行股份有限公司 Application and development method and apparatus
CN110007902A (en) * 2019-03-12 2019-07-12 中国平安财产保险股份有限公司 The method and device of business processing flow configuration

Also Published As

Publication number Publication date
CN110543327A (en) 2019-12-06

Similar Documents

Publication Publication Date Title
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
JP5658283B2 (en) Application operating method, apparatus and system
RU2421785C2 (en) Automated control of device drivers
WO2016177061A1 (en) Upgrade method and apparatus using over-the-air download technology
CN111752637B (en) Multi-service inspection management method and device, computer equipment and storage medium
US9576153B2 (en) Device and method for providing information from a backend component to a frontend component by a secure device management abstraction and unification module
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
US8990929B2 (en) Auditing application activities
TW201807571A (en) Method, device, terminal, server and system for generating containers capable of increasing the creation speed of the container
CN107844306B (en) Application program repairing method and device, storage medium and terminal
US10075477B2 (en) Method, system and server for self-healing of electronic apparatus
US20050091259A1 (en) Framework to build, deploy, service, and manage customizable and configurable re-usable applications
CN108920157B (en) Nginx software installation method and device, computer equipment and storage medium
CN106681749A (en) Local code patch updating method and device based on Android platform
CN111625260A (en) Method and system based on mixed mobile application program upgrading
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN111770174A (en) Cloud platform deployment method, device, equipment and readable storage medium
CN113835713B (en) Source code packet downloading method, device, computer equipment and storage medium
CN111200744B (en) Multimedia playing control method and device and intelligent equipment
CN109831779B (en) Upgrade package downloading method, device, server, terminal and system
EP3091435A1 (en) Resource management method and device for terminal system
CN111752577A (en) System version upgrading method and device
US20210248056A1 (en) Method for evaluating application deployment, apparatus, computer program product, and readable medium
CN112416384A (en) Software upgrading method and device and computer equipment
WO2016206437A1 (en) Rom package generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant