A business operation method, device, electronic device and readable medium
By selecting the target service layer and functional interface according to the identification information of the service request in the business operation method, the compatibility problems of different service providers on the hardware and operating systems are solved, and the compatible operation of the same business code on multiple platforms is achieved, which reduces the Development difficulty and cost.
Patent Information
- Application Number
- CN202210121391.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-09
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2042-02-09
AI Technical Summary
Due to the different hardware and operating system configurations of different service providers, the compatibility of the same business code on different platforms is poor, and multiple business code versions are required, which increases the development difficulty and cost.
After receiving the service request, the target service layer is selected based on the service identification information carried by the request, and the functional interface encapsulated by the software or hardware service is selected from the target service layer, and the corresponding service is called to process the service request.
It realizes compatibility of running the same business code on the hardware and operating systems of different service providers, reducing development difficulty and cost.
Smart Images

Figure CN114564203B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a service operation method, a service operation device, an electronic device and a computer-readable medium. Background Art
[0002] Different smart service devices are composed of hardware provided by different service providers and use different operating systems. When running services on smart devices, it is necessary to call the interfaces of different service providers to obtain the service processing services of the corresponding service providers.
[0003] Due to the different configurations of hardware and operating systems of different service providers, different versions of business codes of the same business have different compatibility in the hardware and operating systems of different service providers. In order to run the same business on the hardware and operating systems of different service providers, it is necessary to develop multiple business code versions of the same business for the hardware and operating systems of different service providers, which increases the difficulty and cost of development. Summary of the invention
[0004] The embodiments of the present invention provide a business operation method, device, electronic device and computer-readable storage medium to solve the problem that it is difficult and costly to develop multiple business code versions for the same business.
[0005] The embodiment of the present invention discloses a service operation method, including:
[0006] Receive business requests sent by the front end;
[0007] Selecting a target service layer according to the service identification information carried in the service request;
[0008] 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;
[0009] The corresponding service is called through the target function interface to process the business corresponding to the business request.
[0010] Optionally, selecting a target service layer according to the service identification information carried in the service request includes:
[0011] The software service layer or the hardware service layer is selected as the target service layer according to the service identification information carried in the service request.
[0012] Optionally, selecting a target functional interface from at least one functional interface in the target service layer includes:
[0013] The hardware adaptation layer receives the service request sent by the device management module;
[0014] Determine the first port according to the service identification information carried in the service request;
[0015] Calling a second port in the application program interface layer, and sending the service request to the service extension manager through the second port in the application program interface layer; the second port corresponds to the first port in the hardware adaptation layer;
[0016] The service extension 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; the target function interface corresponds to the second port in the application program interface layer.
[0017] Optionally, the method further comprises:
[0018] Receiving an access request sent by a user, the front end acquiring and storing at least one business code file corresponding to the access request from the back end;
[0019] The front end parses the business code file and displays the business interface corresponding to the business code file to the user.
[0020] Optionally, the method further comprises:
[0021] Displaying a business development interface to a user through a business development platform; the business development interface includes at least one preset process component;
[0022] In response to the user's operation request for the process component, generating a visual flow chart in the business development interface based on the process component selected by the user and the connection relationship between the process components set by the user, and displaying it to the user;
[0023] In response to the user's request for converting the visual flowchart, a business process file is generated based on the process components in the visual flowchart and the connection relationships between the process components.
[0024] The embodiment of the present invention also discloses a service operation device, including:
[0025] A first receiving module, used to receive a service request sent by a front end;
[0026] A selection module, used to select a target service layer according to the service identification information carried in the service request;
[0027] A selection module, configured to select 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;
[0028] The first processing module is used to call the corresponding service through the target function interface to process the business corresponding to the business request.
[0029] Optionally, the selection module includes:
[0030] The selection submodule is used to select the software service layer or the hardware service layer as the target service layer according to the service identification information carried in the service request.
[0031] Optionally, the selection module includes:
[0032] A receiving submodule, used for the hardware adaptation layer to receive the service request sent by the device management module;
[0033] A determination submodule, configured to determine the first port according to the service identification information carried in the service request;
[0034] A sending submodule, used for calling the second port in the application program interface layer, and sending the service request to the service extension manager through the second port in the application program interface layer; the second port corresponds to the first port in the hardware adaptation layer;
[0035] The conversion submodule is used for the service extension manager to convert the service request into a target format service request according to a preset protocol, and send the target format service request to the target function interface in the hardware service layer; the target function interface corresponds to the second port in the application program interface layer.
[0036] Optionally, the device further comprises:
[0037] An acquisition module, configured to receive an access request sent by a user, wherein the front end acquires and stores at least one business code file corresponding to the access request from the back end;
[0038] The parsing module is used for the front end to parse the business code file and display the business interface corresponding to the business code file to the user.
[0039] Optionally, the device further comprises:
[0040] A display module, used to display a business development interface to a user through a business development platform; the business development interface includes at least one preset process component;
[0041] A first generating module, configured to respond to an operation request of the user for the process component, generate a visual flow chart in the business development interface based on the process component selected by the user and the connection relationship between the process components set by the user, and display the visual flow chart to the user;
[0042] The second generating module is used to respond to the user's conversion request for the visual flowchart and generate a business process file based on the process components in the visual flowchart and the connection relationship between the process components.
[0043] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0044] The memory is used to store computer programs;
[0045] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0046] The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.
[0047] The embodiments of the present invention include the following advantages:
[0048] Through the business operation method of the embodiment of the present invention, after receiving the business request sent by the front end, the target service layer can be selected according to the business identification information carried by the business request, so as to determine the service layer where the service to be called is located; the target functional interface is selected from at least one functional interface in the target service layer, and the functional interface encapsulates at least one software service or the same hardware service of at least one service provider, so that the corresponding service can be called through the target functional interface to process the business corresponding to the business request. Through the business operation method, the same type of services of different service providers can be encapsulated in one interface, and when the front end runs the business, it is not necessary to consider which specific service provider's service to call, and the business can be sent to the service layer through the interface, and the service layer uses the corresponding service to process the business, so that when the same business code version is running, it can be compatible with the hardware and operating systems of different service providers. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a flowchart of a method for operating a service provided in an embodiment of the present invention;
[0050] Figure 2 is a flowchart of another service operation method provided in an embodiment of the present invention;
[0051] Figure 3 It is a structural diagram of a service operation method provided in an embodiment of the present invention;
[0052] Figure 4is a structural diagram of a business development platform provided in an embodiment of the present invention;
[0053] Figure 5 is a structural block diagram of a service operation device provided in an embodiment of the present invention;
[0054] Figure 6 is a block diagram of an electronic device provided in an embodiment of the present invention;
[0055] Figure 7 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0057] Reference Figure 1 , shows a flowchart of a business operation method provided in an embodiment of the present invention, which may specifically include the following steps:
[0058] Step 101, receiving a service request sent by a front end;
[0059] In an embodiment of the present invention, a business platform can be set up, and the business platform can include a front end and a back end. The front end can be used to develop business and display business interfaces to users for user operation; the back end can be used to store business code files, provide an interface for the front end to call back end services, and provide service provider software services and hardware services.
[0060] The front end may include a browser simulating an intelligent self-service device application during the test process, and may include an application on an intelligent self-service device in actual application. The intelligent self-service device may include a cash device (ATM), a non-cash device, an information query device, a mobile phone, and a computer. The service request may include service identification information, service data, a requester name, and a responder name.
[0061] When a user initiates a service request at the front end, the device management module in the back end may receive the service request sent by the front end so as to process the service corresponding to the service request using software services or hardware services in the back end.
[0062] Step 102, selecting a target service layer according to the service identification information carried in the service request;
[0063] After receiving the service request, the device management module needs to send the service request to the service layer for processing, so the device management module needs to select a target service layer in the service layer to send the service request to the target service layer for processing.
[0064] Specifically, the service request may carry service identification information, and the device management module may select a target service layer according to the service identification information carried in 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, service 1001 may correspond to service layer A, service 1002 may correspond to service layer B, service 1003 may correspond to service layer C, and so on, which is not limited in the present invention.
[0065] Step 103, 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;
[0066] In an embodiment of the present invention, the target service layer may include at least one functional interface, and 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 services may include file read and write services, 8583 message services, and transmission control protocol services; the hardware services may include storage services, computing services, fingerprint recognition services, and face recognition services. For example, file read and write services, 8583 message services, and transmission control protocol services may be encapsulated to provide a software service interface; storage services of different service providers may be encapsulated to provide a storage service interface; computing services of different service providers may be encapsulated to provide a computing service interface.
[0067] Since the software service or hardware service is encapsulated, the service can be called by calling the interface corresponding to the service. Specifically, because the target service layer includes at least one functional interface, after selecting the target service layer, in order to call the service processing business on the target service layer, the target functional interface can be selected from at least one functional interface in the target service layer according to the business identification information carried by the business request. The business identification information is used to identify the business in order to distinguish different businesses. The business identification information can be a business ID. For example, business 1001a can correspond to functional interface a in service layer A, business 1002b can correspond to functional interface b in service layer B, business 1003c corresponds to functional interface c in service layer C, and so on. The present invention does not limit this.
[0068] Step 104: Call the corresponding service through the target function interface to process the business corresponding to the business request.
[0069] In order to process the business, after selecting the target functional interface, the service corresponding to the target functional interface can be called to process the business corresponding to the business request. Specifically, the service layer may include a second receiving module and a first processing module, the second receiving module can receive the business request, and the first processing module can call the service corresponding to the target functional interface to process the business corresponding to the business request. Among them, the first processing module presets a judgment rule for determining which specific service provider's service among the encapsulated services is used to process the business. For example, the business request can be configured with parameters corresponding to a certain service provider, and the first processing module can use the service of the service provider corresponding to the parameters to process the business according to the parameters.
[0070] Through the business operation method of the embodiment of the present invention, after receiving the business request sent by the front end, the target service layer can be selected according to the business identification information carried by the business request, so as to determine the service layer where the service to be called is located; the target functional interface is selected from at least one functional interface in the target service layer, and the functional interface encapsulates at least one software service or the same hardware service of at least one service provider, so that the corresponding service can be called through the target functional interface to process the business corresponding to the business request. Through the business operation method, the same type of services of different service providers can be encapsulated in one interface, and when the front end runs the business, it is not necessary to consider which specific service provider's service to call, and the business can be sent to the service layer through the interface, and the service layer uses the corresponding service to process the business, so that when the same business code version is running, it can be compatible with the hardware and operating systems of different service providers.
[0071] Reference Figure 2 , shows a flowchart of another service operation method provided in an embodiment of the present invention, which may specifically include the following steps:
[0072] Step 201, receiving a service request sent by the front end;
[0073] In an embodiment of the present invention, a business platform can be set up, and the business platform can include a front end and a back end. The front end can be used to develop business and display business interfaces to users for user operation; the back end can be used to store business code files, provide an interface for the front end to call back end services, and provide service provider software services and hardware services.
[0074] The front end may include a browser simulating an intelligent self-service device application during the test process, and may include an application on an intelligent self-service device in actual application. The intelligent self-service device may include a cash device (ATM), a non-cash device, an information query device, a mobile phone, and a computer. The service request may include service identification information, service data, a requester name, and a responder name.
[0075] When a user initiates a service request at the front end, the device management module in the back end may receive the service request sent by the front end so as to process the service corresponding to the service request using software services or hardware services in the back end.
[0076] Step 202, selecting the software service layer or the hardware service layer as the target service layer according to the service identification information carried in the service request;
[0077] After receiving the service request, the device management module needs to send the service request to the service layer for processing, so the device management module needs to select a target service layer in the service layer to send the service request to the target service layer for processing.
[0078] In an embodiment of the present invention, the target service layer may include 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 the service in order to distinguish different services. The service identification information may be a service ID. For example, service 1001 may correspond to the software service layer, service 1002 may correspond to the software service layer, service 1003 may correspond to the hardware service layer, service 1004 may correspond to the hardware service layer, and so on. The present invention does not limit this.
[0079] 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;
[0080] In an embodiment of the present invention, the target service layer may include at least one functional interface, and 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 services may include file read and write services, 8583 message services, and transmission control protocol services; the hardware services may include storage services, computing services, fingerprint recognition services, and face recognition services. For example, file read and write services, 8583 message services, and transmission control protocol services may be encapsulated to provide a software service interface; storage services of different service providers may be encapsulated to provide a storage service interface; computing services of different service providers may be encapsulated to provide a computing service interface.
[0081] Since the software service or hardware service is encapsulated, the service can be called by calling the interface corresponding to the service. Specifically, because the target service layer includes at least one functional interface, after selecting the target service layer, in order to call the service processing business on the target service layer, the target functional interface can be determined from at least one functional interface in the target service layer according to the business identification information carried by the business request. The business identification information is used to identify the business in order to distinguish different businesses. The business identification information can be a business ID. For example, business 1001a can correspond to functional interface a in service layer A, business 1002b can correspond to functional interface b in service layer B, business 1003c corresponds to functional interface c in service layer C, and so on. The present invention does not limit this.
[0082] In one embodiment of the present invention, the selecting a target functional interface from at least one functional interface in the target service layer includes:
[0083] S11, the hardware adaptation layer receives the service request sent by the device management module;
[0084] Among them, the back end may include a device management module, a hardware adaptation layer, an application program interface layer, and a service extension manager. The device management module can be used to receive the service request sent by the front end; the hardware adaptation layer may include at least one port, which corresponds to the functional interface on the hardware service layer; the application program interface layer may include at least one port, which corresponds to the functional interface on the hardware service layer; the service extension manager can be used to convert the service request format according to a preset protocol.
[0085] Since the hardware service layer functional interface is an industry standard interface defined by the XFS protocol (Financial Service Extension Protocol), the XFS protocol contains a series of stable, open interface interfaces, and hides the system complexity from users and developers. It defines the specification of the communication between the application program interface and the hardware service layer interface, and maintains the highest level of compatibility in the application program interface and the hardware service layer interface definition to adapt to the expansion capabilities of new and enhanced functions, and is suitable for special services and equipment needs of financial applications. The application program interface is also an industry standard interface, so the device management module cannot directly communicate with the hardware service layer, nor can it directly call the application program interface, so a hardware adaptation layer can be set between the device management module and the application program interface layer, and the application program interface layer is called by the hardware adaptation layer to communicate with the hardware service layer.
[0086] In order to communicate with the hardware service layer by calling the application program interface layer through the hardware adaptation layer, the service request may be first sent to the hardware adaptation layer. The hardware adaptation layer may include a third receiving module for receiving the service request sent by the device management module.
[0087] S12, determining a first port according to the service identification information carried in the service request;
[0088] 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 based on the service identification information carried in the service request, and the first port corresponds to the target function interface in the hardware service layer.
[0089] S13, calling the second port in the application program interface layer, and sending the service request to the service extension manager through the second port in the application program interface layer; the second port corresponds to the first port in the hardware adaptation layer;
[0090] The application program interface layer may include a second port, and the second port corresponds to the first port in the hardware adaptation layer. In order to communicate with the hardware service layer so as to send the service request to the hardware service layer for processing, the second port in the application program interface layer corresponding to the first port in the hardware adaptation layer may be called.
[0091] Since the format of the service request sent by the front end is different from the service request format that can be recognized by the hardware service layer, the service request can be first sent to the service extension manager through the second port in the application interface layer corresponding to the first port in the hardware adaptation layer, and the service request is format converted by the service extension manager.
[0092] S14, the service extension 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; the target function interface corresponds to the second port in the application program interface layer.
[0093] Since the format of the business request sent by the front end is different from the business request format that can be recognized by the hardware service layer, the business request can be converted into a target format business request through the service extension manager, so that the hardware service layer can recognize the target format business request and call the service corresponding to the target function interface to process the business corresponding to the target format business request.
[0094] Specifically, the service extension manager can convert the service request into a target format service request according to a preset protocol, and send the target format service request to the target function interface in the hardware service layer corresponding to the second port in the application interface layer, and call the corresponding service through the target function interface to process the service corresponding to the target format service request.
[0095] Step 204: Call the corresponding service through the target function interface to process the business corresponding to the business request.
[0096] In order to process the business, after determining the target functional interface, the service corresponding to the target functional interface can be called to process the business corresponding to the business request. Specifically, the service layer may include a second receiving module and a first processing module, the second receiving module can receive the business request, and the first processing module can call the service corresponding to the target functional interface to process the business corresponding to the business request. Among them, the first processing module presets a judgment rule for determining which specific service provider's service in the encapsulated service is used to process the business. For example, the business request can be configured with parameters corresponding to a certain service provider, and the first processing module can use the service of the service provider corresponding to the parameters to process the business according to the parameters.
[0097] In one embodiment of the present invention, the method further comprises:
[0098] S21, receiving an access request sent by a user, and the front end obtaining and storing at least one business code file corresponding to the access request from the back end;
[0099] In an embodiment of the present invention, the front end may receive an access request sent by a user, obtain at least one business code file corresponding to the access request from the back end according to the access request, and store the at least one business code file corresponding to the access request in the front end buffer. The business code file may include a business interface code file, a business interface process file, and a business process diagram file.
[0100] Specifically, the user can enter a URL in the browser of the front end, and the browser accesses the storage server of the back end according to the URL entered by the user. The storage server extracts the business code file and returns it to the browser according to the access request of the browser. The browser downloads the business code file and stores it in the browser buffer.
[0101] S22, the front end parses the business code file and displays the business interface corresponding to the business code file to the user.
[0102] In the embodiment of the present invention, the front end may load the business code file stored in the buffer, and parse the business code file, so as to display the business interface corresponding to the business code file to the user.
[0103] Specifically, the browser in the front end can respond to the URL entered by the user in the browser and load the business code file and the Java Script file. The Java Script file can be a scripting language that can be used to create dynamically updated content, control multimedia, create image animations, etc. The browser can run the Java Script file and use the Java Script file to parse the business code file. After the business code file is parsed, the business interface can be displayed to the user on the browser page, and the business process also starts to run. During the operation of the business process, the software and hardware services will be called according to the user's operation to process the business.
[0104] In one embodiment of the present invention, the method further comprises:
[0105] S31, displaying a business development interface to a user through a business development platform; the business development interface includes at least one preset process component;
[0106] In the embodiment of the present invention, the front end may include a service development platform for users to develop services according to their needs. Specifically, the service platform may display a service development interface to users, and users may operate on the user development interface to develop services.
[0107] The business development interface may include at least one preset process component. Users may directly use these preset process components when developing a business, or modify and adjust them according to the actual needs of the business being developed, thereby reducing the time required for users to develop a business. For example, the preset process components may include a start component, an end component, an action component (dynamic component), and a page display component. The start component may be used to start a business, the end component may be used to end a business, the page display component may be used to display a business interface, and the action component may be used to execute a business process.
[0108] S32, in response to the user's operation request for the process component, generating a visual flow chart in the business development interface based on the process component selected by the user and the connection relationship between the process components set by the user, and displaying it to the user;
[0109] In the embodiment of the present invention, the business development platform can respond to the user's dragging operation on the process components, display all the process components dragged by the user on the business development interface, and can add pointing arrows between the process components in response to the user's pointing operation, and can further display the process instructions entered by the user above or below the arrow on the business development interface, so that based on these operations taken by the user, a visual flowchart formed based on these operations can be displayed on the business development interface. Displaying each step of the business process on the business development platform interface makes the business process steps fully visualized, and also facilitates users to check the business process, so that errors can be discovered in a timely manner, and it is also more convenient to modify.
[0110] S33, in response to the user's request for converting the visual flowchart, generating a business process file based on the process components in the visual flowchart and the connection relationships between the process components.
[0111] After the visual flowchart is generated, a business process file may be generated based on the process components in the visual flowchart and the connection relationships between the process components in response to a user's request for converting the visual flowchart.
[0112] Specifically, a conversion button can be set on the business development interface. After the visual flowchart is generated, the business flowchart can be automatically converted into a business process file in response to the user's operation on the conversion button based on the process components in the visual flowchart, the directional relationship between the process components, and the process instructions above or below the arrow. The business development platform can automatically generate a business process file directly based on the business flowchart, greatly reducing the time required for users to develop businesses and improving business development efficiency.
[0113] As a specific example of the present invention, Figure 3 is a structural diagram of a service operation method provided in an embodiment of the present invention, such as Figure 3As shown, the business platform may include a browser 301. First, a user may enter a website address 302 on the browser 301. The browser 301 may respond to the website address 302 entered by the user in the browser 301, and load a JavaScript file 303 and a business code file 304 stored in a cache area. The browser 301 may run the JavaScript file 303, and parse the business code file 304 using the JavaScript file 303. After the business code file 304 is parsed, a business interface may be displayed to the user on the browser 301 page, and the business process may also start to run. During the running of the business process, the software and hardware services may be called according to the user's operation to process the business. The browser 301 can first call the device management module 306 in the interface call layer 305, and send the service request to the device management module 306. 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 interface of the software service layer 307 can be called to call the software service processing service through the interface; if the hardware service layer 311 is selected, the device management module 306 can 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 first port to call, the hardware adaptation layer 308 can call the second port on the application program interface layer 309. The second port on the hardware program interface layer 309 and the first port on the hardware adaptation layer 308 are ports with the same purpose. 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 interface layer 309; the service extension manager 310 converts the service request into a target format service request, and sends it to the target function interface on the hardware service layer 311 corresponding to the second port on the application interface layer 309, and calls the corresponding service processing service through the target function interface.
[0114] As a specific example of the present invention, Figure 4 is a schematic diagram of the structure of a business development platform provided in an embodiment of the present invention, such as Figure 4As shown, the business platform shown may include a business development platform 401 and a business layer 409. The business development platform 401 may be provided with a simulation SP 402 and a simulation P end 403. The simulation SP 402 is driven by the hardware manufacturer, and the simulation P end 403 imitates the bank backend. The simulation SP 402 and the simulation P end 403 are used in combination, and the purpose is to simulate the actions and results of the ATM hardware on an ordinary PC, so that the entire ATM hardware can be debugged on an ordinary PC. The business development platform is also provided with a middleware testing tool 404, which is used to test the accuracy of the developed middleware content. The business development platform 401 may be provided with a visual business process editor 405, and the visual business process editor 405 may include a module configuration 406, a message configuration 407, and a process drawing 408. The business layer 409 may display a browser Web 410, a process library and an interface library 411, a process engine 412, and a data stream 413 developed on the business development platform. After the development is completed, the developed business code file can be stored on the back-end server. The process library and interface library 411 correspond to the developed business process and business interface, the process engine 412 is used to call the process code file, and the data flow 413 can be a module for saving and obtaining user data.
[0115] Through the business operation method of the embodiment of the present invention, after receiving the business request sent by the front end, the software service layer or the hardware service layer can be selected as the target service layer according to the business identification information carried by the business request, so as to determine the service layer where the service to be called is located; select a target functional interface from at least one functional interface in the target service layer, the functional interface encapsulates at least one software service or at least one hardware service of the same service provider, so that the corresponding service can be called through the target functional interface to process the business corresponding to the business request. Through the business operation method, the same type of services of different service providers can be encapsulated in one interface, and when the front end runs the business, it does not need to consider which specific service provider's service to call, and can send the business to the service layer through the interface, and the service layer uses the corresponding service to process the business, so that when the same business code version is running, it can be compatible with the hardware and operating systems of different service providers.
[0116] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0117] Reference Figure 5 , shows a structural block diagram of a service operation device provided in an embodiment of the present invention, which may specifically include the following modules:
[0118] The first receiving module 501 is used to receive a service request sent by a front end;
[0119] A selection module 502 is used to select a target service layer according to the service identification information carried in the service request;
[0120] A determination module 503 is configured to select 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;
[0121] The first processing module 504 is used to call the corresponding service through the target function interface to process the business corresponding to the business request.
[0122] Optionally, the selection module includes:
[0123] The selection submodule is used to select the software service layer or the hardware service layer as the target service layer according to the service identification information carried in the service request.
[0124] Optionally, the selection module includes:
[0125] A receiving submodule, used for the hardware adaptation layer to receive the service request sent by the device management module;
[0126] A determination submodule, configured to determine the first port according to the service identification information carried in the service request;
[0127] A sending submodule, used for calling the second port in the application program interface layer, and sending the service request to the service extension manager through the second port in the application program interface layer; the second port corresponds to the first port in the hardware adaptation layer;
[0128] The conversion submodule is used for the service extension manager to convert the service request into a target format service request according to a preset protocol, and send the target format service request to the target function interface in the hardware service layer; the target function interface corresponds to the second port in the application program interface layer.
[0129] Optionally, the device further comprises:
[0130] An acquisition module, configured to receive an access request sent by a user, wherein the front end acquires and stores at least one business code file corresponding to the access request from the back end;
[0131] The parsing module is used for the front end to parse the business code file and display the business interface corresponding to the business code file to the user.
[0132] Optionally, the device further comprises:
[0133] A display module, used to display a business development interface to a user through a business development platform; the business development interface includes at least one preset process component;
[0134] A first generating module, configured to respond to an operation request of the user for the process component, generate a visual flow chart in the business development interface based on the process component selected by the user and the connection relationship between the process components set by the user, and display the visual flow chart to the user;
[0135] The second generating module is used to respond to the user's conversion request for the visual flowchart and generate a business process file based on the process components in the visual flowchart and the connection relationship between the process components.
[0136] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0137] In addition, an embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes 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 communicate with each other through the communication bus 604.
[0138] Memory 603, used for storing computer programs;
[0139] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps:
[0140] Receive business requests sent by the front end;
[0141] Selecting a target service layer according to the service identification information carried in the service request;
[0142] 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;
[0143] The corresponding service is called through the target function interface to process the business corresponding to the business request.
[0144] Optionally, selecting a target service layer according to the service identification information carried in the service request includes:
[0145] The software service layer or the hardware service layer is selected as the target service layer according to the service identification information carried in the service request.
[0146] Optionally, selecting a target functional interface from at least one functional interface in the target service layer includes:
[0147] The hardware adaptation layer receives the service request sent by the device management module;
[0148] Determine the first port according to the service identification information carried in the service request;
[0149] Calling a second port in the application program interface layer, and sending the service request to the service extension manager through the second port in the application program interface layer; the second port corresponds to the first port in the hardware adaptation layer;
[0150] The service extension 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; the target function interface corresponds to the second port in the application program interface layer.
[0151] Optionally, the method further comprises:
[0152] Receiving an access request sent by a user, the front end acquiring and storing at least one business code file corresponding to the access request from the back end;
[0153] The front end parses the business code file and displays the business interface corresponding to the business code file to the user.
[0154] Optionally, the method further comprises:
[0155] Displaying a business development interface to a user through a business development platform; the business development interface includes at least one preset process component;
[0156] In response to the user's operation request for the process component, generating a visual flow chart in the business development interface based on the process component selected by the user and the connection relationship between the process components set by the user, and displaying it to the user;
[0157] In response to the user's request for converting the visual flowchart, a business process file is generated based on the process components in the visual flowchart and the connection relationships between the process components.
[0158] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0159] The communication interface is used for communication between the above terminal and other devices.
[0160] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0161] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0162] like Figure 7 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 701 is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the business operation method described in the above embodiment.
[0163] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the service operation method described in the above embodiment.
[0164] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can 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 the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center 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 can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0165] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0166] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0167] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection 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.
Claims
1. A business operation method, characterized in that: Applied in a business platform, the business platform includes a front end and a back end, the method includes: Receive business requests sent by the front end; Selecting a target service layer according to the service identification information carried in the service request; 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; Calling a corresponding service through the target function interface to process the business corresponding to the business request; The backend includes a device management module, a hardware adaptation layer, an application program interface layer, and a service extension manager, wherein the device management module is used to receive the service request sent by the frontend; The selecting a target functional interface from at least one functional interface in the target service layer comprises: The hardware adaptation layer receives the service request sent by the device management module; Determine the first port according to the service identification information carried in the service request; Calling a second port in the application program interface layer, and sending the service request to the service extension manager through the second port in the application program interface layer; the second port corresponds to the first port in the hardware adaptation layer; The service extension 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; the target function interface corresponds to the second port in the application program interface layer.
2. The method according to claim 1, characterized in that The backend includes a software service layer and a hardware service layer. The selecting a target service layer according to the service identification information carried in the service request includes: The software service layer or the hardware service layer is selected as the target service layer according to the service identification information carried in the service request.
3. The method according to claim 1, characterized in that The method further comprises: Receiving an access request sent by a user, the front end acquiring and storing at least one business code file corresponding to the access request from the back end; The front end parses the business code file and displays the business interface corresponding to the business code file to the user.
4. The method according to claim 1, characterized in that: The front end also includes a business development platform, and the method further includes: Displaying a business development interface to a user through a business development platform; the business development interface includes at least one preset process component; In response to the user's operation request for the process component, generating a visual flow chart in the business development interface based on the process component selected by the user and the connection relationship between the process components set by the user, and displaying it to the user; In response to the user's request for converting the visual flowchart, a business process file is generated based on the process components in the visual flowchart and the connection relationships between the process components.
5. A service operation device, characterized in that: Applied in a business platform, the business platform includes a front end and a back end, and the device includes: A first receiving module, used to receive a service request sent by a front end; A selection module, used to select a target service layer according to the service identification information carried in the service request; A selection module, configured to select 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; A first processing module, configured to call a corresponding service through the target function interface to process the business corresponding to the business request; The backend includes a device management module, a hardware adaptation layer, an application program interface layer, and a service extension manager. The device management module is used to receive the service request sent by the front end; The selection module comprises: A receiving submodule, used for the hardware adaptation layer to receive the service request sent by the device management module; A determination submodule, configured to determine the first port according to the service identification information carried in the service request; A sending submodule, used for calling the second port in the application program interface layer, and sending the service request to the service extension manager through the second port in the application program interface layer; the second port corresponds to the first port in the hardware adaptation layer; The conversion submodule is used for the service extension manager to convert the service request into a target format service request according to a preset protocol, and send the target format service request to the target function interface in the hardware service layer; the target function interface corresponds to the second port in the application program interface layer.
6. The device according to claim 5, characterized in that The backend includes a software service layer and a hardware service layer. The selection module comprises: The selection submodule is used to select the software service layer or the hardware service layer as the target service layer according to the service identification information carried in the service request.
7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 4 when executing the program stored in the memory.
8. One or more computer-readable media having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method and device for service development
CN106648660A
Service interaction method and device, computer equipment and storage medium
CN112068818A