Disclosure of Invention
The embodiment of the invention provides a service operation method, a device, electronic equipment and a computer readable storage medium, which are used for solving the problems of high development difficulty and high development cost of a plurality of service code versions aiming at the same service.
The embodiment of the invention discloses a service operation method, which comprises the following steps:
Receiving a service request sent by a front end;
selecting a target service layer according to the service identification information carried by the service request;
Selecting a target functional interface from at least one functional interface in the target service layer, wherein the functional interface encapsulates at least one software service or the same hardware service of at least one service provider;
and calling corresponding service to process the service corresponding to the service request through the target function interface.
Optionally, the selecting a target service layer according to the service identifier information carried by the service request includes:
And selecting the software service layer or the hardware service layer as a target service layer according to the service identification information carried by the service request.
Optionally, the selecting a target function interface from at least one function interface in the target service layer includes:
the hardware adaptation layer receives the service request sent by the equipment management module;
Determining a first port according to service identification information carried by the service request;
Calling a second port in the application program interface layer, and sending the service request to a service expansion manager through the second port in the application program interface layer, wherein the second port corresponds to the first port in the hardware adaptation layer;
The service expansion manager converts the service request into a target format service request according to a preset protocol, and sends the target format service request to the target function interface in the hardware service layer, wherein the target function interface corresponds to a second port in the application program interface layer.
Optionally, the method further comprises:
Receiving an access request sent by a user, wherein the front end acquires and stores at least one service code file corresponding to the access request from the rear end;
and the front end analyzes the service code file and displays a service interface corresponding to the service code file to a user.
Optionally, the method further comprises:
Displaying a service development interface to a user through a service development platform, wherein the service development interface comprises at least one preset flow component;
Responding to the operation request of the user for the flow components, generating a visual flow chart in the service development interface based on the connection relation between the flow components selected by the user and the flow components set by the user, and displaying the visual flow chart to the user;
and responding to the conversion request of the user for the visual flow chart, and generating a business flow file based on the flow components in the visual flow chart and the connection relation between the flow components.
The embodiment of the invention also discloses a service operation device, which comprises:
The first receiving module is used for receiving the service request sent by the front end;
The selecting module is used for selecting a target service layer according to the service identification information carried by the service request;
A selection module for selecting a target functional interface from at least one functional interface in the target service layer, the functional interface encapsulating at least one software service or the same hardware service of at least one service provider;
and the first processing module is used for calling the corresponding service to process the service corresponding to the service request through the target function interface.
Optionally, the selecting module includes:
And the selecting sub-module is used for selecting the software service layer or the hardware service layer as a target service layer according to the service identification information carried by the service request.
Optionally, the selecting module includes:
The receiving sub-module is used for receiving the service request sent by the equipment management module by the hardware adaptation layer;
A determining submodule, configured to determine a first port according to service identifier information carried by the service request;
The sending sub-module is used for calling a second port in the application program interface layer and sending the service request to a service expansion manager through the second port in the application program interface layer, wherein the second port corresponds to the first port in the hardware adaptation layer;
The conversion sub-module is used for converting the service request into a target format service request according to a preset protocol by the service expansion manager and sending the target format service request to the target function interface in the hardware service layer, wherein the target function interface corresponds to the second port in the application program interface layer.
Optionally, the apparatus further comprises:
The front end acquires and stores at least one service code file corresponding to the access request from the rear end;
and the analysis module is used for analyzing the service code file by the front end and displaying a service interface corresponding to the service code file to a user.
Optionally, the apparatus further comprises:
the system comprises a service development platform, a display module and a display module, wherein the service development platform is used for displaying a service development interface to a user;
the first generation module is used for responding to the operation request of the user for the flow components, generating a visual flow chart in the service development interface based on the connection relation between the flow components selected by the user and the flow components set by the user and displaying the visual flow chart to the user;
and the second generation module is used for responding to the conversion request of the user for the visual flow chart and generating a business flow file based on the flow components in the visual flow chart and the connection relation between the flow components.
The embodiment of the invention also discloses electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
The processor is configured to implement the method according to the embodiment of the present invention when executing the program stored in the memory.
Embodiments of the invention also disclose one or more computer-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the methods described in the embodiments of the invention.
The embodiment of the invention has the following advantages:
According to the service operation method, after receiving the service request sent by the front end, a target service layer can be selected according to the service identification information carried by the service request so as to determine the service layer where the service to be called is located, and a target function interface is selected from at least one function interface in the target service layer, wherein the function interface encapsulates at least one software service or the same hardware service of at least one service provider, so that the service corresponding to the service request can be processed by calling the corresponding service through the target function interface. By the service running method, the same service of different service providers can be packaged in one interface, the service of which service provider is specific can be called when the front end runs the service, the service can be sent to the service layer through the interface, and the service layer adopts corresponding service to process the service, so that the hardware and the operating system of different service providers can be compatible when the same service code version runs.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Referring to fig. 1, a step flowchart of a service operation method provided in an embodiment of the present invention may specifically include the following steps:
step 101, receiving a service request sent by a front end;
In the embodiment of the invention, a service platform can be arranged, and the service platform can comprise a front end and a back end, wherein the front end can be used for developing services and displaying a service interface for users to operate, and the back end can be used for storing service code files, providing interfaces for calling back end services by the front end, providing software services and hardware services of a service provider.
The front end can comprise a browser simulating application of the intelligent self-service equipment in the testing process, and in practical application, the front end can comprise application on the intelligent self-service equipment, and the intelligent self-service equipment can comprise cash equipment (ATM), cashless equipment, information inquiry equipment, a mobile phone and a computer. The service request may include service identification information, service data, a requester name, a responder name.
When a user initiates a service request at a front end, a device management module in the back end can receive the service request sent by the front end, so that a software service or a hardware service in the back end is adopted to process a service corresponding to the service request.
102, Selecting a target service layer according to service identification information carried by the service request;
after receiving the service request, the device management module needs to send the service request to a service layer for processing, so the device management module needs to select a target service layer from the service layers so as to send the service request to the target service layer for processing.
Specifically, the service request may carry service identification information, and the device management module may select the target service layer according to the service identification information carried by the service request. The service identification information is used to identify the service so as to distinguish different services, and the service identification information may be a service ID, for example, the service 1001 may correspond to the service layer a, the service 1002 may correspond to the service layer B, the service 1003 corresponds to the service layer C, and the like, which is not limited in this aspect of the present invention.
Step 103, selecting a target function interface from at least one function interface in the target service layer, wherein the function interface encapsulates at least one software service or the same hardware service of at least one service provider;
In an embodiment of the present invention, the target service layer may include at least one functional interface, where the functional interface may encapsulate at least one software service, or the functional interface may encapsulate the same hardware service of at least one service provider. The software service may include a file read-write service, a 8583 message service, and a transmission control protocol service, and the hardware service may include a storage service, an operation service, a fingerprint identification service, and a face recognition service. For example, file read-write service, 8583 message service and transmission control protocol service can be packaged to provide a software service interface, storage service of different service providers can be packaged to provide a storage service interface, and operation service of different service providers can be packaged to provide an operation service interface.
Since the software service or the hardware service is encapsulated, the service can be called by calling an interface corresponding to the service. Specifically, because the target service layer includes at least one functional interface, after the target service layer is selected, in order to invoke a service processing service on the target service layer, the target functional interface may be selected from at least one functional interface in the target service layer according to service identification information carried by the service request. The service identification information is used to identify the service so as to distinguish between different services, and the service identification information may be a service ID, for example, service 1001a may correspond to an a-function interface in service layer a, service 1002B may correspond to an B-function interface in service layer B, service 1003C corresponds to an C-function interface in service layer C, and so on, which the present invention is not limited.
And 104, calling corresponding service to process the service corresponding to the service request through the target function interface.
In order to process the service, after the target function interface is selected, the service corresponding to the target function interface can be called to process the service corresponding to the service request. Specifically, the service layer may include a second receiving module and a first processing module, where the second receiving module may receive the service request, and the first processing module may call a service corresponding to the target function interface to process a service corresponding to the service request. The first processing module is preset with a judging rule for judging which service provider of the packaged service is adopted to process the service. For example, the service request may configure a parameter corresponding to a certain service provider, and the first processing module may process the service according to the parameter by using a service of the service provider corresponding to the parameter.
According to the service operation method, after receiving the service request sent by the front end, a target service layer can be selected according to the service identification information carried by the service request so as to determine the service layer where the service to be called is located, and a target function interface is selected from at least one function interface in the target service layer, wherein the function interface encapsulates at least one software service or the same hardware service of at least one service provider, so that the service corresponding to the service request can be processed by calling the corresponding service through the target function interface. By the service running method, the same service of different service providers can be packaged in one interface, the service of which service provider is specific can be called when the front end runs the service, the service can be sent to the service layer through the interface, and the service layer adopts corresponding service to process the service, so that the hardware and the operating system of different service providers can be compatible when the same service code version runs.
Referring to fig. 2, a flowchart illustrating steps of another service operation method provided in an embodiment of the present invention may specifically include the following steps:
step 201, receiving a service request sent by a front end;
In the embodiment of the invention, a service platform can be arranged, and the service platform can comprise a front end and a back end, wherein the front end can be used for developing services and displaying a service interface for users to operate, and the back end can be used for storing service code files, providing interfaces for calling back end services by the front end, providing software services and hardware services of a service provider.
The front end can comprise a browser simulating application of the intelligent self-service equipment in the testing process, and in practical application, the front end can comprise application on the intelligent self-service equipment, and the intelligent self-service equipment can comprise cash equipment (ATM), cashless equipment, information inquiry equipment, a mobile phone and a computer. The service request may include service identification information, service data, a requester name, a responder name.
When a user initiates a service request at a front end, a device management module in the back end can receive the service request sent by the front end, so that a software service or a hardware service in the back end is adopted to process a service corresponding to the service request.
Step 202, selecting the software service layer or the hardware service layer as a target service layer according to the service identification information carried by the service request;
after receiving the service request, the device management module needs to send the service request to a service layer for processing, so the device management module needs to select a target service layer from the service layers so as to send the service request to the target service layer for processing.
In the embodiment of the invention, the target service layer can comprise a software service layer and a hardware service layer. Specifically, the service request may carry service identification information, and the device management module may select the software service layer or the hardware service layer as the target service layer according to the service identification information carried by the service request. The service identification information is used to identify a service so as to distinguish between different services, and the service identification information may be a service ID, for example, the service 1001 may correspond to a software service layer, the service 1002 may correspond to a software service layer, the service 1003 corresponds to a hardware service layer, the service 1004 corresponds to a hardware service layer, and the like, which is not limited in this aspect of the present invention.
Step 203, selecting a target functional interface from at least one functional interface in the target service layer, wherein the functional interface encapsulates at least one software service or the same hardware service of at least one service provider;
In an embodiment of the present invention, the target service layer may include at least one functional interface, where the functional interface may encapsulate at least one software service, or the functional interface may encapsulate the same hardware service of at least one service provider. The software service may include a file read-write service, a 8583 message service, and a transmission control protocol service, and the hardware service may include a storage service, an operation service, a fingerprint identification service, and a face recognition service. For example, file read-write service, 8583 message service and transmission control protocol service can be packaged to provide a software service interface, storage service of different service providers can be packaged to provide a storage service interface, and operation service of different service providers can be packaged to provide an operation service interface.
Since the software service or the hardware service is encapsulated, the service can be called by calling an interface corresponding to the service. Specifically, because the target service layer includes at least one functional interface, after the target service layer is selected, in order to invoke a service processing service on the target service layer, the target functional interface may be determined from the at least one functional interface in the target service layer according to service identification information carried by the service request. The service identification information is used to identify the service so as to distinguish between different services, and the service identification information may be a service ID, for example, service 1001a may correspond to an a-function interface in service layer a, service 1002B may correspond to an B-function interface in service layer B, service 1003C corresponds to an C-function interface in service layer C, and so on, which the present invention is not limited.
In one embodiment of the present invention, the selecting a target function interface from at least one function interface in the target service layer includes:
s11, the hardware adaptation layer receives the service request sent by the equipment management module;
The back end can comprise a device management module, a hardware adaptation layer, an application program interface layer and a service expansion manager, wherein the device management module can be used for receiving the service request sent by the front end, the hardware adaptation layer can comprise at least one port which corresponds to a functional interface on a hardware service layer respectively, the application program interface layer can comprise at least one port which corresponds to a functional interface on the hardware service layer respectively, and the service expansion manager can be used for converting a service request format according to a preset protocol.
Because the hardware service layer function interface is an industry standard interface defined by xfs protocol (financial service extension protocol), the xfs protocol comprises a series of stable and open interface interfaces, and hides the complexity of the system from users and developers, and the definition is the standard of communication between the application program interface and the hardware service layer interface, and the highest-level compatibility is kept on the definition of the application program interface and the hardware service layer interface, so as to adapt to the expansion capability of new and enhanced functions, and be suitable for special service and equipment requirements of financial application. The application program interface is also an industry standard interface, so the device management module cannot directly communicate with the hardware service layer or can not directly call the application program interface, and a hardware adaptation layer can be arranged between the device management module and the application program interface layer, and the application program interface layer is called through the hardware adaptation layer to communicate with the hardware service layer.
In order to communicate with the hardware service layer by the hardware adaptation layer invoking the application program interface layer, the service request may be sent to the hardware adaptation layer first. The hardware adaptation layer may include a third receiving module, configured to receive the service request sent by the device management module.
S12, determining a first port according to service identification information carried by the service request;
The hardware adaptation layer may include a second processing module, after receiving the service request sent by the device management module, the second processing module may determine a first port according to service identification information carried by the service request, where the first port corresponds to the target function interface in the hardware service layer.
S13, calling a second port in the application program interface layer, and sending the service request to a service expansion manager through the second port in the application program interface layer, wherein the second port corresponds to the first port in the hardware adaptation layer;
The application program interface layer may include a second port, where the second port corresponds to the first port in the hardware adaptation layer. In order to communicate with the hardware service layer to send the service request to the hardware service layer for processing, a second port in the application program interface layer corresponding to the first port in the hardware adaptation layer may be invoked.
Because the format of the service request sent by the front end is different from the format of the service request which can be identified by the hardware service layer, the service request can be sent to the service expansion manager through a second port corresponding to the first port in the hardware adaptation layer in the application program interface layer, and the service expansion manager can perform format conversion on the service request.
S14, the service expansion manager converts the service request into a target format service request according to a preset protocol, and sends the target format service request to the target function interface in the hardware service layer, wherein the target function interface corresponds to the second port in the application program interface layer.
Because the format of the service request sent by the front end is different from the format of the service request which can be identified by the hardware service layer, the service request can be converted into the service request with the target format through the service extension manager, so that the hardware service layer can identify the service request with the target format, and call the service corresponding to the target function interface to process the service corresponding to the service request with the target format.
Specifically, the service extension manager may convert the service request into a target format service request according to a preset protocol, and send the target format service request to a target function interface corresponding to the second port in the application program interface layer in the hardware service layer, and call a corresponding service to process a service corresponding to the target format service request through the target function interface.
Step 204, the corresponding service is called through the target function interface to process the service corresponding to the service request.
In order to process the service, after the target function interface is determined, the service corresponding to the target function interface can be called to process the service corresponding to the service request. Specifically, the service layer may include a second receiving module and a first processing module, where the second receiving module may receive the service request, and the first processing module may call a service corresponding to the target function interface to process a service corresponding to the service request. The first processing module is preset with a judging rule for judging which service provider of the packaged service is adopted to process the service. For example, the service request may configure a parameter corresponding to a certain service provider, and the first processing module may process the service according to the parameter by using a service of the service provider corresponding to the parameter.
In one embodiment of the invention, the method further comprises:
S21, receiving an access request sent by a user, and acquiring and storing at least one service code file corresponding to the access request from the rear end by the front end;
In the embodiment of the invention, the front end can receive the access request sent by the user, acquire at least one service code file corresponding to the access request from the rear end according to the access request, and store the service code file corresponding to the at least one access request in the front end buffer area. The service code file may include a service interface code file, a service interface flow file, and a service flow chart file.
Specifically, the user may input a website in the front-end browser, the browser accesses the storage server at the rear end for the website input by the user, and the storage server extracts the service code file according to the access request of the browser and returns the service code file to the browser, and the browser downloads the service code file and stores the service code file in the browser buffer area.
S22, the front end analyzes the service code file and displays a service interface corresponding to the service code file to a user.
In the embodiment of the invention, the front end can load the service code file stored in the buffer area and analyze the service code file, so that a service interface corresponding to the service code file can be displayed to a user.
Specifically, the browser in the front end can respond to the website input by the user in the browser, and load the service code file and the Java Script file. The Java Script file may be a scripting language that may be used to create dynamically updated content, control multimedia, animate images, and the like. The browser can run the Java Script file, the service code file is analyzed by adopting the Java Script file, a service interface can be displayed to a user on a browser page after the service code file is analyzed, a service flow also starts to run, and software and hardware services can be called for the operation of the user to process the service in the running process of the service flow.
In one embodiment of the invention, the method further comprises:
s31, displaying a service development interface to a user through a service development platform, wherein the service development interface comprises at least one preset flow component;
In the embodiment of the invention, the front end can comprise a service development platform for users to develop services according to requirements. Specifically, the service platform may present a service development interface to a user, where the user may operate to develop a service.
The service development interface can comprise at least one preset flow component, and a user can directly use the preset flow components when developing the service, and can also modify and adjust the service according to the actual requirement of the developed service, so that the time required by the user to develop the service is shortened. For example, the preset flow components may include a start component, an end component, an action component (dynamic component), and a page display component. The start component can be used to initiate a business, the end component can be used to end a business, the page display component can be used to display a business interface, and the action component can be used to execute a business process.
S32, responding to the operation request of the user for the flow components, generating a visual flow chart in the service development interface based on the connection relation between the flow components selected by the user and the flow components set by the user, and displaying the visual flow chart to the user;
in the embodiment of the invention, the service development platform can respond to the dragging operation of the user on the flow components, display all the flow components dragged by the user on a service development interface, add pointing arrows between the flow components according to the pointing operation of the user, and further display the flow instructions input by the user above or below the arrows on the service development interface, so that a visual flow chart formed based on the operations can be displayed on the service development interface based on the operations adopted by the user. Each step of the business process is displayed on the business development platform interface, so that the business process steps are completely visualized, a user can conveniently check the business process, errors can be found in time, and meanwhile, the modification is convenient.
S33, responding to the conversion request of the user for the visual flow chart, and generating a business flow file based on the flow components in the visual flow chart and the connection relation between the flow components.
After the visual flow chart is generated, a business flow file can be generated based on the flow components in the visual flow chart and the connection relation between the flow components in response to a conversion request of a user for the visual flow chart.
Specifically, a conversion button may be disposed on the service development interface, after the visual flowchart is generated, the operation of the user on the conversion button may be responded, and the service flowchart may be automatically converted into a service flowchart file based on the flow components in the visual flowchart, the pointing relationship among the flow components, and the flow instruction above or below the arrow. The service development platform can directly automatically generate the service flow file based on the service flow chart, thereby greatly reducing the time required by a user for developing the service and improving the service development efficiency.
As a specific example of the present invention, fig. 3 is a schematic structural diagram of a service running method provided in the embodiment of the present invention, as shown in fig. 3, the service platform may include a browser 301, first, a user may input a web address 302 on the browser 301, and the browser 301 may load a Java Script file 303 and a service code file 304 stored in a cache area in response to the web address 302 input by the user in the browser 301. The browser 301 may run the Java Script file 303, analyze the service code file 304 by using the Java Script file 303, and after the service code file 304 is analyzed, a service interface may be displayed to the user on a page of the browser 301, and a service flow may also start to run, where in the running process of the service flow, a software and hardware service may be invoked for the operation of the user to process the service. The browser 301 may first call the device management module 306 in the interface call layer 305 to send a service request to the device management module 306, and after the device management module 306 determines whether to select the software service layer 307 or the hardware service layer 311, in step 304, if the software service layer 307 is selected, the browser may call an interface of the software service layer 307, and call the software service to process a service through the interface, and if the hardware service layer 311 is selected, the device management module 306 may first send the service request to the hardware adaptation layer 308, and the hardware adaptation layer 308 determines to call a specific port on the hardware adaptation layer 308. After determining the invoked first port, the hardware adaptation layer 308 may invoke a second port on the application program interface layer 309, where the second port on the hardware program interface layer 309 and the first port on the hardware adaptation layer 308 are the same purpose port. In step 307, the hardware adaptation layer 308 sends the service request to the service extension manager 310 by calling the second port on the application program interface layer 309, and the service extension manager 310 converts the service request into a service request in a target format and sends the service request to a target function interface on the hardware service layer 311 corresponding to the second port on the application program interface layer 309, and calls a corresponding service processing service through the target function interface.
As a specific example of the present invention, fig. 4 is a schematic structural diagram of a service development platform provided in the embodiment of the present invention, and as shown in fig. 4, the service development platform may include a service development platform 401 and a service layer 409, where the service development platform 401 may be provided with a simulation SP 402 and a simulation P end 403, where the simulation SP 402 is driven by a hardware vendor, the simulation P end 403 is a bank-simulating background, and the simulation SP 402 and the simulation P end 403 are used in combination, so as to simulate actions and results of ATM hardware on a common PC, and thus debug the whole ATM hardware on the common PC. The service development platform is further provided with a middleware testing tool 404 for testing the accuracy of the developed middleware content. The service development platform 401 may be provided with a visual service flow editor 405, where the visual service flow editor 405 may include a module configuration 406, a message configuration 407, and a flow drawing 408. The service layer 409 may be a browser Web 410, a flow library and interface library 411, a flow engine 412, and a data stream 413, which are developed on a service development platform, and after the development is completed, the developed service code file may be stored on a server at the back end. The flow library and interface library 411 corresponds to a developed business flow and business interface, the flow engine 412 is used to call a flow code file, and the data flow 413 may be a module for storing and acquiring user data.
According to the service operation method, after receiving the service request sent by the front end, the software service layer or the hardware service layer can be selected as a target service layer according to the service identification information carried by the service request so as to determine the service layer where the service to be called is located, a target function interface is selected from at least one function interface in the target service layer, and the function interface encapsulates at least one software service or the same hardware service of at least one service provider, so that the corresponding service for processing the service corresponding to the service request can be called through the target function interface. By the service running method, the same service of different service providers can be packaged in one interface, the service of which service provider is specific can be called when the front end runs the service, the service can be sent to the service layer through the interface, and the service layer adopts corresponding service to process the service, so that the hardware and the operating system of different service providers can be compatible when the same service code version runs.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 5, a block diagram of a service running device provided in an embodiment of the present invention is shown, which may specifically include the following modules:
A first receiving module 501, configured to receive a service request sent by a front end;
a selecting module 502, configured to select a target service layer according to service identifier information carried by the service request;
A determining module 503, configured to select a target functional interface from at least one functional interface in the target service layer, where the functional interface encapsulates at least one software service or at least one hardware service of a service provider;
the first processing module 504 is configured to invoke a corresponding service to process a service corresponding to the service request through the target function interface.
Optionally, the selecting module includes:
And the selecting sub-module is used for selecting the software service layer or the hardware service layer as a target service layer according to the service identification information carried by the service request.
Optionally, the selecting module includes:
The receiving sub-module is used for receiving the service request sent by the equipment management module by the hardware adaptation layer;
A determining submodule, configured to determine a first port according to service identifier information carried by the service request;
The sending sub-module is used for calling a second port in the application program interface layer and sending the service request to a service expansion manager through the second port in the application program interface layer, wherein the second port corresponds to the first port in the hardware adaptation layer;
The conversion sub-module is used for converting the service request into a target format service request according to a preset protocol by the service expansion manager and sending the target format service request to the target function interface in the hardware service layer, wherein the target function interface corresponds to the second port in the application program interface layer.
Optionally, the apparatus further comprises:
The front end acquires and stores at least one service code file corresponding to the access request from the rear end;
and the analysis module is used for analyzing the service code file by the front end and displaying a service interface corresponding to the service code file to a user.
Optionally, the apparatus further comprises:
the system comprises a service development platform, a display module and a display module, wherein the service development platform is used for displaying a service development interface to a user;
the first generation module is used for responding to the operation request of the user for the flow components, generating a visual flow chart in the service development interface based on the connection relation between the flow components selected by the user and the flow components set by the user and displaying the visual flow chart to the user;
and the second generation module is used for responding to the conversion request of the user for the visual flow chart and generating a business flow file based on the flow components in the visual flow chart and the connection relation between the flow components.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In addition, the embodiment of the invention also provides an electronic device, as shown in fig. 6, which comprises a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 complete communication with each other through the communication bus 604,
A memory 603 for storing a computer program;
The processor 601 is configured to execute the program stored in the memory 603, and implement the following steps:
Receiving a service request sent by a front end;
selecting a target service layer according to the service identification information carried by the service request;
Selecting a target functional interface from at least one functional interface in the target service layer, wherein the functional interface encapsulates at least one software service or the same hardware service of at least one service provider;
and calling corresponding service to process the service corresponding to the service request through the target function interface.
Optionally, the selecting a target service layer according to the service identifier information carried by the service request includes:
And selecting the software service layer or the hardware service layer as a target service layer according to the service identification information carried by the service request.
Optionally, the selecting a target function interface from at least one function interface in the target service layer includes:
the hardware adaptation layer receives the service request sent by the equipment management module;
Determining a first port according to service identification information carried by the service request;
Calling a second port in the application program interface layer, and sending the service request to a service expansion manager through the second port in the application program interface layer, wherein the second port corresponds to the first port in the hardware adaptation layer;
The service expansion manager converts the service request into a target format service request according to a preset protocol, and sends the target format service request to the target function interface in the hardware service layer, wherein the target function interface corresponds to a second port in the application program interface layer.
Optionally, the method further comprises:
Receiving an access request sent by a user, wherein the front end acquires and stores at least one service code file corresponding to the access request from the rear end;
and the front end analyzes the service code file and displays a service interface corresponding to the service code file to a user.
Optionally, the method further comprises:
Displaying a service development interface to a user through a service development platform, wherein the service development interface comprises at least one preset flow component;
Responding to the operation request of the user for the flow components, generating a visual flow chart in the service development interface based on the connection relation between the flow components selected by the user and the flow components set by the user, and displaying the visual flow chart to the user;
and responding to the conversion request of the user for the visual flow chart, and generating a business flow file based on the flow components in the visual flow chart and the connection relation between the flow components.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central Processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), a digital signal processor (DIGITAL SIGNAL Processing, DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
In yet another embodiment provided by the present invention, as shown in fig. 7, there is further provided a computer readable storage medium 701, in which instructions are stored, which when run on a computer, cause the computer to perform the service running method described in the above embodiment.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the business operation method described in the above embodiment is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.