WO2021042849A1 - Cloud platform, service processing method, command interface and computer device - Google Patents

Cloud platform, service processing method, command interface and computer device Download PDF

Info

Publication number
WO2021042849A1
WO2021042849A1 PCT/CN2020/099397 CN2020099397W WO2021042849A1 WO 2021042849 A1 WO2021042849 A1 WO 2021042849A1 CN 2020099397 W CN2020099397 W CN 2020099397W WO 2021042849 A1 WO2021042849 A1 WO 2021042849A1
Authority
WO
WIPO (PCT)
Prior art keywords
command
service processing
service
information
processing command
Prior art date
Application number
PCT/CN2020/099397
Other languages
French (fr)
Chinese (zh)
Inventor
张钊
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021042849A1 publication Critical patent/WO2021042849A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Definitions

  • This application belongs to the field of computer technology, and in particular relates to a cloud platform, business processing method, command interface, and computer equipment.
  • the inventor realizes that in the existing cloud platform, there are many service interfaces provided to the outside.
  • the cloud platform receives a service request, the parameter verification is confused, and it is difficult to call multiple service interfaces to cooperate with each other to realize a composite service.
  • the embodiments of the present application provide a cloud platform, service processing method, command interface, and computer equipment to solve the problem that the existing cloud platform has many service interfaces provided to the outside.
  • the cloud platform receives a service request, Parameter verification is chaotic, and it is difficult to call multiple service interfaces to cooperate with each other to realize composite services.
  • the first aspect of the embodiments of the present application provides a cloud platform, including: a command interface, a database, and a business module;
  • the database is used to record configuration information and routing information corresponding to various command types
  • the command interface is used to receive a service processing command, obtain corresponding configuration information and routing information according to the command type of the service processing command, configure the service processing command according to the configuration information, and process the configured service
  • the command is routed to the service module corresponding to the routing information for service processing, and the processing result fed back by the service module is returned to the issuer of the service processing command;
  • the service module is configured to receive the configured service processing command, perform service processing according to the configured service processing command, and feed back the processing result to the command interface.
  • the second aspect of the embodiments of the present application provides a service processing method, including:
  • the processing result fed back by the service module is received, and the processing result is returned to the issuer of the service processing command.
  • the third aspect of the embodiments of the present application provides a command interface, including:
  • the command receiving module is configured to receive a service processing command, and obtain the command type of the service processing command;
  • An information acquisition module for acquiring configuration information and routing information corresponding to the command type from a database
  • the configuration routing module is configured to configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
  • the result feedback module is configured to receive the processing result fed back by the service module, and return the processing result to the issuer of the service processing command.
  • the fourth aspect of the embodiments of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • a computer program stored in the memory and running on the processor.
  • the processing result fed back by the service module is received, and the processing result is returned to the issuer of the service processing command.
  • the fifth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
  • the processing result fed back by the service module is received, and the processing result is returned to the issuer of the service processing command.
  • a unified command interface and database configuration combination is adopted, and only a command interface is provided to the outside.
  • the cloud platform receives a business processing command, it executes the business processing command according to the configuration information and routing information recorded in the database. Configuration and routing.
  • a unified command interface is beneficial Parameter verification, to avoid the confusion of parameter verification caused by the use of different interfaces for each business module.
  • a composite business needs to be implemented, only the corresponding business processing commands need to be issued and integrated according to the logical relationship. There is no need to coordinate multiple different business interfaces. It solves the problem that in the existing cloud platform, there are many business interfaces provided to the outside, when the cloud platform receives a business request, the parameter verification is confused, and it is difficult to call multiple business interfaces to cooperate with each other to achieve composite services.
  • FIG. 1 is a schematic structural diagram of a cloud platform provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the implementation process of a service processing method provided by an embodiment of the present application
  • Fig. 3 is a schematic diagram of a command interface provided by an embodiment of the present application.
  • Fig. 4 is a schematic diagram of a computer device provided by an embodiment of the present application.
  • the term “if” can be interpreted as “when” or “once” or “in response to determination” or “in response to detection” depending on the context .
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • the cloud platform, business processing method, command interface, and computer equipment involved in the embodiments of the present application are applied to the field of big data technology.
  • the cloud platform of Embodiment 1 of the present application includes: a command interface 101, a database 102, and a business module 103;
  • the database 102 is used to record configuration information and routing information corresponding to various command types
  • the command interface 101 is configured to receive service processing commands, obtain corresponding configuration information and routing information according to the command type of the service processing commands, configure the service processing commands according to the configuration information, and set the configured service
  • the processing command is routed to the service module 103 corresponding to the routing information for service processing, and the processing result fed back by the service module 103 is returned to the issuer of the service processing command;
  • the service module 103 is configured to receive the configured service processing command, perform service processing according to the configured service processing command, and feed back the processing result to the command interface 101.
  • a unified command interface 101 and database 102 configuration framework structure is adopted.
  • the cloud platform only provides the command interface 101 externally, and can only send service processing commands to the cloud platform externally, which are developed separately from the traditional service modules 103 Compared with the architecture of the corresponding interface, it is conducive to uniform parameter verification and avoids the occurrence of chaotic parameter verification.
  • the command interface 101 When the command interface 101 receives a service processing command, it queries the corresponding configuration information and routing information from the database 102, and configures and routes the service processing command according to the configuration information and routing information. When a new service module 103 or service module 103 is added When changing, only need to add or change the corresponding configuration information and routing information in the database 102, without the need to develop new interfaces, which facilitates interface management and reduces the workload of developers.
  • the service module 103 When the service module 103 receives the configured service processing command, it performs service processing according to the configured service processing command, and feeds back the processing result to the command interface 101 so that the command interface 101 returns the processing result to the issuer of the service processing command.
  • the service processing method in the second embodiment of the present application includes:
  • Step S201 Receive a service processing command, and obtain the command type of the service processing command;
  • the command interface When the command interface receives a business processing command sent from the outside of the cloud platform (such as a browser), the command type corresponding to the business processing command is obtained.
  • Step S202 Obtain configuration information and routing information corresponding to the command type from the database;
  • the command interface After the command interface obtains the command type corresponding to the service processing command, it queries the corresponding configuration information and routing information from the database according to the command type.
  • Step S203 Configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
  • the command interface queries the configuration information and routing information, you can configure the service processing commands according to the configuration information. For example, you can configure the session information of the service processing commands, the interface authentication method, whether the verification code is required, and SMS verification. .
  • the configured service processing command is routed to the corresponding service module for processing.
  • the address accessed by the service processing command is not the address provided by the command issuer, but the address provided by the routing information.
  • Step S204 Receive the processing result fed back by the service module, and return the processing result to the issuer of the service processing command.
  • the service module After receiving the configured service processing command, the service module performs service processing according to the service processing command, and feeds back the processing interface to the command interface.
  • the command interface After the command interface receives the processing result fed back by the business module, it returns the processing result to the issuer of the business processing command to complete the current business processing flow.
  • the configuring the service processing command according to the configuration information, and routing the configured service processing command to the service module corresponding to the routing information for service processing specifically includes:
  • the session information contains user information and other content.
  • the corresponding session information can be added to the service processing command according to the configuration information, so as to distinguish the issuer of the service processing command.
  • the business processing command with the session information added is routed to the business processing module corresponding to the routing information for business processing.
  • the command interface feeds back the processing result to the correct according to the session information The issuer of the business processing order to avoid feedback of the processing result to the wrong issuer.
  • the method further includes:
  • the routing of the service processing command with session information added to the service module corresponding to the routing information for service processing specifically includes:
  • the service processing command with the session information added is routed to the service module corresponding to the routing information for service processing;
  • the business processing command with the session information added can be routed to the business module corresponding to the routing information for business processing.
  • the receiving the processing result fed back by the service module and returning the processing result to the issuer of the service processing command specifically includes:
  • the processing result After receiving the processing result, the processing result can be packaged in a preset package format.
  • the encapsulated processing result is returned to the issuer of the business processing command.
  • the data format returned by each interface is inconsistent, and the issuer of the business processing command often needs to configure multiple data reading plug-ins.
  • a unified format is used for encapsulation, and the issuer of the business processing command receives the processing After the result, a unified data reading plug-in can be used to read the processing result, which is convenient for data verification and reading.
  • the command interface can limit the flow of gateway requests during the running process. For example, it can limit the number of commands issued by each IP within a preset time period to avoid malicious attacks.
  • the command interface when the command interface receives the service processing command, the corresponding configuration information and routing information are queried from the database, and the service processing command is configured and routed according to the configuration information and routing information.
  • the combination of the command interface and database configuration can easily manage the interface and verify the parameters.
  • session information can be added to the business processing command to distinguish the issuer of the business processing command, and permission verification can be performed, and corresponding operations can be performed according to the permission verification result.
  • the information can be encapsulated in a preset encapsulation format to ensure the consistency of the format of the information output by the command interface.
  • the third embodiment of the present application provides a command interface.
  • the command interface includes:
  • the command receiving module 301 is configured to receive a service processing command, and obtain the command type of the service processing command;
  • the information obtaining module 302 is configured to obtain configuration information and routing information corresponding to the command type from a database;
  • the configuration routing module 303 is configured to configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
  • the result feedback module 304 is configured to receive the processing result fed back by the service module, and return the processing result to the issuer of the service processing command.
  • configuration routing module 303 specifically includes:
  • An information adding submodule configured to add corresponding session information for the service processing command according to the configuration information
  • the information routing sub-module is used to route the service processing command added with the session information to the service module corresponding to the routing information for service processing.
  • configuration routing module 303 further includes:
  • the authority verification sub-module is used to perform authority verification on the service processing command to which the session information is added according to the configuration information
  • the information routing submodule is specifically:
  • the pass routing sub-module is used to route the service processing command with session information added to the service module corresponding to the routing information for service processing if the authority verification is passed;
  • the failure reporting sub-module is configured to return abnormal error reporting information to the issuer of the service processing command if the authorization verification fails.
  • the result feedback module 304 specifically includes:
  • the result encapsulation submodule is used to receive the processing result fed back by the service module, and encapsulate the processing result in a preset encapsulation format;
  • the encapsulation return sub-module is used to return the encapsulated processing result to the issuer of the service processing command.
  • Fig. 4 is a schematic diagram of a computer device provided in a fourth embodiment of the present application.
  • the computer device 4 of this embodiment includes a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and running on the processor 40.
  • the processor 40 executes the computer program 42, the functions of each module/unit in the above cloud platform embodiment are realized.
  • the cloud platform includes a command interface, a database, and a business module.
  • the processor 40 executes the computer program corresponding to the command interface
  • the steps in the foregoing service processing method embodiment can be implemented, as shown in steps S201 to S204 as shown in Fig. 2; or when the processor 40 executes the computer program corresponding to the command interface, it can implement each module in the foregoing command interface embodiment.
  • the function of the unit is the function of the modules 301 to 304 as shown in Fig. 3.
  • the computer program 42 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 41 and executed by the processor 40 to complete This application.
  • the one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 42 in the computer device 4.
  • the computer program 42 can be divided into a command interface, a database, and a business module.
  • the command interface can include a command receiving module, an information acquisition module, a configuration routing module, and a result feedback module.
  • the specific functions of each module in the command interface are as follows:
  • the command receiving module is configured to receive a service processing command, and obtain the command type of the service processing command;
  • An information acquisition module for acquiring configuration information and routing information corresponding to the command type from a database
  • the configuration routing module is configured to configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
  • the result feedback module is configured to receive the processing result fed back by the service module, and return the processing result to the issuer of the service processing command.
  • the computer device 4 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the computer device may include, but is not limited to, a processor 40 and a memory 41.
  • FIG. 4 is only an example of the computer device 4, and does not constitute a limitation on the computer device 4. It may include more or less components than those shown in the figure, or a combination of certain components, or different components.
  • the computer device may also include input and output devices, network access devices, buses, and the like.
  • the so-called processor 40 may be a central processing unit (Central Processing Unit, CPU), or may be other general-purpose processors or digital signal processors. (Digital Signal Processor, DSP), ASIC (Application Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 41 may be an internal storage unit of the computer device 4, such as a hard disk or a memory of the computer device 4.
  • the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), Secure Digital (Secure Digital, SD) card, flash memory card (Flash Card) and so on.
  • the memory 41 may also include both an internal storage unit of the computer device 4 and an external storage device.
  • the memory 41 is used to store the computer program and other programs and data required by the computer device.
  • the memory 41 can also be used to temporarily store data that has been output or will be output.
  • the disclosed apparatus/computer equipment and method may be implemented in other ways.
  • the device/computer equipment embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer-readable storage medium may be non-volatile or volatile.
  • the present application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program.
  • the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, it can implement the steps of the foregoing method embodiments.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signal telecommunications signal
  • software distribution media etc.
  • the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction.
  • the computer-readable medium Does not include electrical carrier signals and telecommunication signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present application is applicable to the technical field of computers. Provided are a cloud platform, a service processing method, a command interface and a computer device. The cloud platform comprises: a database for recording configuration information and routing information corresponding to various command types; a command interface for receiving a service processing command, acquiring configuration information and routing information according to the command type of the service processing command, configuring the service processing command according to the configuration information, routing the service processing command to a service module corresponding to the routing information for service processing, and returning a feedback processing result to an issuing party of the command; and the service module for receiving the service processing command, performing service processing according to the service processing command, and feeding a processing result back to the command interface. The present application can solve the problems that in an existing cloud platform, as many external service interfaces are provided, when the cloud platform receives a service request, parameter verification is disordered, and it is difficult to invoke a plurality of service interfaces to cooperate with each other to implement a composite service.

Description

一种云平台、业务处理方法、命令接口及计算机设备Cloud platform, business processing method, command interface and computer equipment
本申请要求于2019年09月02日提交中国专利局、申请号为201910824868.6,发明名称为“一种云平台、业务处理方法、命令接口及计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on September 02, 2019, the application number is 201910824868.6, and the invention title is "a cloud platform, business processing method, command interface, and computer equipment", and its entire content Incorporated in this application by reference.
技术领域Technical field
本申请属于计算机技术领域,尤其涉及一种云平台、业务处理方法、命令接口及计算机设备。This application belongs to the field of computer technology, and in particular relates to a cloud platform, business processing method, command interface, and computer equipment.
背景技术Background technique
随着云平台业务的发展,云平台中增加了越来越多的业务功能,这些业务功能需要开发相应的接口,导致云平台对外提供的业务接口越来越多。With the development of cloud platform services, more and more business functions have been added to the cloud platform. These business functions need to develop corresponding interfaces, resulting in more and more business interfaces provided by the cloud platform.
发明人发现这些业务接口在开发的过程标准不统一,当云平台接收到业务请求时,参数校验混乱,并且各个业务接口与业务功能的耦合度较高,难以调用多个业务接口相互配合实现复合型的业务功能。The inventor found that the development process standards of these business interfaces are not uniform. When the cloud platform receives a business request, the parameter verification is confused, and the coupling between each business interface and business function is high, and it is difficult to call multiple business interfaces to cooperate with each other. Complex business functions.
技术问题technical problem
综上,发明人意识到现有的云平台中,对外提供的业务接口多,当云平台接收到业务请求时,参数校验混乱,并且难以调用多个业务接口相互配合实现复合型业务。In summary, the inventor realizes that in the existing cloud platform, there are many service interfaces provided to the outside. When the cloud platform receives a service request, the parameter verification is confused, and it is difficult to call multiple service interfaces to cooperate with each other to realize a composite service.
技术解决方案Technical solutions
有鉴于此,本申请实施例提供了一种云平台、业务处理方法、命令接口及计算机设备,以解决现有的云平台中,对外提供的业务接口多,当云平台接收到业务请求时,参数校验混乱,并且难以调用多个业务接口相互配合实现复合型业务的问题。In view of this, the embodiments of the present application provide a cloud platform, service processing method, command interface, and computer equipment to solve the problem that the existing cloud platform has many service interfaces provided to the outside. When the cloud platform receives a service request, Parameter verification is chaotic, and it is difficult to call multiple service interfaces to cooperate with each other to realize composite services.
本申请实施例的第一方面提供了一种云平台,包括:命令接口、数据库和业务模块;The first aspect of the embodiments of the present application provides a cloud platform, including: a command interface, a database, and a business module;
所述数据库,用于记录各种命令类型对应的配置信息和路由信息;The database is used to record configuration information and routing information corresponding to various command types;
所述命令接口,用于接收业务处理命令,根据所述业务处理命令的命令类型获取对应的配置信息和路由信息,根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理,并将所述业务模块反馈的处理结果返回至所述业务处理命令的发布方;The command interface is used to receive a service processing command, obtain corresponding configuration information and routing information according to the command type of the service processing command, configure the service processing command according to the configuration information, and process the configured service The command is routed to the service module corresponding to the routing information for service processing, and the processing result fed back by the service module is returned to the issuer of the service processing command;
所述业务模块,用于接收所述配置后的业务处理命令,根据所述配置后的业务处理命令进行业务处理,并将处理结果反馈至所述命令接口。The service module is configured to receive the configured service processing command, perform service processing according to the configured service processing command, and feed back the processing result to the command interface.
本申请实施例的第二方面提供了一种业务处理方法,包括:The second aspect of the embodiments of the present application provides a service processing method, including:
接收业务处理命令,获取所述业务处理命令的命令类型;Receiving a service processing command, and obtaining the command type of the service processing command;
从数据库中获取所述命令类型对应的配置信息和路由信息;Obtaining configuration information and routing information corresponding to the command type from the database;
根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;Configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。The processing result fed back by the service module is received, and the processing result is returned to the issuer of the service processing command.
本申请实施例的第三方面提供了一种命令接口,包括:The third aspect of the embodiments of the present application provides a command interface, including:
命令接收模块,用于接收业务处理命令,获取所述业务处理命令的命令类型;The command receiving module is configured to receive a service processing command, and obtain the command type of the service processing command;
信息获取模块,用于从数据库中获取所述命令类型对应的配置信息和路由信息;An information acquisition module for acquiring configuration information and routing information corresponding to the command type from a database;
配置路由模块,用于根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;The configuration routing module is configured to configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
结果反馈模块,用于接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。The result feedback module is configured to receive the processing result fed back by the service module, and return the processing result to the issuer of the service processing command.
本申请实施例的第四方面提供了一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如下步骤:The fourth aspect of the embodiments of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, To achieve the following steps:
接收业务处理命令,获取所述业务处理命令的命令类型;Receiving a service processing command, and obtaining the command type of the service processing command;
从数据库中获取所述命令类型对应的配置信息和路由信息;Obtaining configuration information and routing information corresponding to the command type from the database;
根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;Configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。The processing result fed back by the service module is received, and the processing result is returned to the issuer of the service processing command.
本申请实施例的第五方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:The fifth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
接收业务处理命令,获取所述业务处理命令的命令类型;Receiving a service processing command, and obtaining the command type of the service processing command;
从数据库中获取所述命令类型对应的配置信息和路由信息;Obtaining configuration information and routing information corresponding to the command type from the database;
根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;Configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。The processing result fed back by the service module is received, and the processing result is returned to the issuer of the service processing command.
有益效果Beneficial effect
本申请实施例与现有技术相比存在的有益效果是:Compared with the prior art, the embodiments of this application have the following beneficial effects:
在本申请的云平台中,采用统一的命令接口和数据库配置的组合,对外只提供命令接口,当云平台接收到业务处理命令时,根据数据库中记录的配置信息和路由信息对业务处理命令进行配置和路由,当新增业务模块时,只需要在数据库中新增相应的配置信息和路由信息即可,无需各个业务模块均开发对应的接口,便于接口的管理,并且统一的命令接口有利于参数校验,避免各个业务模块采用不同的接口导致参数校验混乱,当需要实现复合型业务时,只需根据逻辑关系发布整合相应的业务处理命令即可,无需协调多个不同的业务接口,解决了现有的云平台中,对外提供的业务接口多,当云平台接收到业务请求时,参数校验混乱,并且难以调用多个业务接口相互配合实现复合型业务的问题。In the cloud platform of this application, a unified command interface and database configuration combination is adopted, and only a command interface is provided to the outside. When the cloud platform receives a business processing command, it executes the business processing command according to the configuration information and routing information recorded in the database. Configuration and routing. When adding new service modules, you only need to add corresponding configuration information and routing information in the database. There is no need to develop corresponding interfaces for each service module, which is convenient for interface management, and a unified command interface is beneficial Parameter verification, to avoid the confusion of parameter verification caused by the use of different interfaces for each business module. When a composite business needs to be implemented, only the corresponding business processing commands need to be issued and integrated according to the logical relationship. There is no need to coordinate multiple different business interfaces. It solves the problem that in the existing cloud platform, there are many business interfaces provided to the outside, when the cloud platform receives a business request, the parameter verification is confused, and it is difficult to call multiple business interfaces to cooperate with each other to achieve composite services.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only of the present application. For some embodiments, those of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
图1是本申请实施例提供的一种云平台的结构示意图;FIG. 1 is a schematic structural diagram of a cloud platform provided by an embodiment of the present application;
图2是本申请实施例提供的一种业务处理方法的实现流程示意图;FIG. 2 is a schematic diagram of the implementation process of a service processing method provided by an embodiment of the present application;
图3是本申请实施例提供的一种命令接口的示意图;Fig. 3 is a schematic diagram of a command interface provided by an embodiment of the present application;
图4是本申请实施例提供的计算机设备的示意图。Fig. 4 is a schematic diagram of a computer device provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solution described in the present application, specific embodiments are used for description below.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the existence of the described features, wholes, steps, operations, elements and/or components, but does not exclude one or more other features The existence or addition of, whole, step, operation, element, component and/or its collection.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in the specification of this application and the appended claims, unless the context clearly indicates other circumstances, the singular forms "a", "an" and "the" are intended to include plural forms.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should be further understood that the term "and/or" used in the specification and appended claims of this application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "once" or "in response to determination" or "in response to detection" depending on the context . Similarly, the phrase "if determined" or "if detected [described condition or event]" can be interpreted as meaning "once determined" or "in response to determination" or "once detected [described condition or event]" depending on the context ]" or "in response to detection of [condition or event described]".
本申请实施例涉及的云平台、业务处理方法、命令接口及计算机设备,应用于大数据技术领域。The cloud platform, business processing method, command interface, and computer equipment involved in the embodiments of the present application are applied to the field of big data technology.
实施例一:Example one:
下面对本申请实施例一提供的一种云平台进行描述,请参阅附图1,本申请实施例一的云平台包括:命令接口101、数据库102和业务模块103;The following describes a cloud platform provided by Embodiment 1 of the present application. Please refer to FIG. 1. The cloud platform of Embodiment 1 of the present application includes: a command interface 101, a database 102, and a business module 103;
所述数据库102,用于记录各种命令类型对应的配置信息和路由信息;The database 102 is used to record configuration information and routing information corresponding to various command types;
所述命令接口101,用于接收业务处理命令,根据所述业务处理命令的命令类型获取对应的配置信息和路由信息,根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块103进行业务处理,并将所述业务模块103反馈的处理结果返回至所述业务处理命令的发布方;The command interface 101 is configured to receive service processing commands, obtain corresponding configuration information and routing information according to the command type of the service processing commands, configure the service processing commands according to the configuration information, and set the configured service The processing command is routed to the service module 103 corresponding to the routing information for service processing, and the processing result fed back by the service module 103 is returned to the issuer of the service processing command;
所述业务模块103,用于接收所述配置后的业务处理命令,根据所述配置后的业务处理命令进行业务处理,并将处理结果反馈至所述命令接口101。The service module 103 is configured to receive the configured service processing command, perform service processing according to the configured service processing command, and feed back the processing result to the command interface 101.
本实施例的云平台中,采用统一的命令接口101和数据库102配置的框架结构,云平台对外只提供命令接口101,外部只能发送业务处理命令至云平台,与传统各个业务模块103分别开发相应的接口的架构相比,有利于进行统一参数校验,避免参数校验混乱的情况发生。In the cloud platform of this embodiment, a unified command interface 101 and database 102 configuration framework structure is adopted. The cloud platform only provides the command interface 101 externally, and can only send service processing commands to the cloud platform externally, which are developed separately from the traditional service modules 103 Compared with the architecture of the corresponding interface, it is conducive to uniform parameter verification and avoids the occurrence of chaotic parameter verification.
当命令接口101接收到业务处理命令时,从数据库102中查询相应的配置信息和路由信息,根据配置信息和路由信息对业务处理命令进行配置和路由,当新增业务模块103或业务模块103发生变更时,只需在数据库102中新增或变更相应的配置信息和路由信息即可,无需开发新的接口,便于接口的管理,也减少开发人员的工作量。When the command interface 101 receives a service processing command, it queries the corresponding configuration information and routing information from the database 102, and configures and routes the service processing command according to the configuration information and routing information. When a new service module 103 or service module 103 is added When changing, only need to add or change the corresponding configuration information and routing information in the database 102, without the need to develop new interfaces, which facilitates interface management and reduces the workload of developers.
业务模块103接收到配置后的业务处理命令时,根据配置后的业务处理命令进行业务处理,并将处理结果反馈至命令接口101,使得命令接口101将处理结果返回至业务处理命令的发布方。When the service module 103 receives the configured service processing command, it performs service processing according to the configured service processing command, and feeds back the processing result to the command interface 101 so that the command interface 101 returns the processing result to the issuer of the service processing command.
当需要实现复合型业务时,由于采用统一的命令接口101,因此开发人员可以根据业务逻辑整合已存在的命令对象生成新的命令对象,或者云平台外部可以发送复合型的业务处理命令,命令接口接收到复合型的业务处理命令时,解析复合型的业务处理命令中存在的独立的业务处理命令,识别独立的业务处理命令的命令类型和处理时序逻辑,根据命令类型对独立的业务处理命令进行配置,并根据处理时序逻辑依次处理独立的业务处理命令,实现复合型业务,例如,当前存在start和stop两个命令类型,当开发人员需要添加restart的命令类型时,开发人员根据逻辑关系将restart与start和stop进行关联整合,设置调用restart时先执行stop再执行start,实现restart的功能;或者,云平台外部的命令发布方可以发布复合型命令stop+start,从而实现restart的功能。When a composite business needs to be implemented, because the unified command interface 101 is used, developers can integrate existing command objects according to business logic to generate new command objects, or they can send composite business processing commands outside the cloud platform, command interface When receiving a composite business processing command, analyze the independent business processing commands in the composite business processing command, identify the command type and processing sequence logic of the independent business processing command, and perform the independent business processing command according to the command type Configure and process independent business processing commands in turn according to the processing sequence logic to achieve composite services. For example, there are currently two command types start and stop. When developers need to add a restart command type, the developer will restart according to the logical relationship. Associate and integrate with start and stop, set to execute stop and then execute start when restart is called to realize the restart function; or, the external command issuer of the cloud platform can issue the compound command stop+start to realize the restart function.
实施例二:Embodiment two:
下面对本申请实施例二提供的一种业务处理方法进行描述,请参阅附图2,本申请实施例二中的业务处理方法包括:The following describes a service processing method provided in the second embodiment of the present application. Please refer to FIG. 2. The service processing method in the second embodiment of the present application includes:
步骤S201、接收业务处理命令,获取所述业务处理命令的命令类型;Step S201: Receive a service processing command, and obtain the command type of the service processing command;
当命令接口接收到云平台外部(例如浏览器)发送的业务处理命令时,获取业务处理命令对应的命令类型。When the command interface receives a business processing command sent from the outside of the cloud platform (such as a browser), the command type corresponding to the business processing command is obtained.
步骤S202、从数据库中获取所述命令类型对应的配置信息和路由信息;Step S202: Obtain configuration information and routing information corresponding to the command type from the database;
当命令接口获取到业务处理命令对应的命令类型之后,根据命令类型从数据库中查询对应的配置信息和路由信息。After the command interface obtains the command type corresponding to the service processing command, it queries the corresponding configuration information and routing information from the database according to the command type.
步骤S203、根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;Step S203: Configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
当命令接口查询到配置信息和路由信息之后,可以根据配置信息对业务处理命令进行配置,例如,可以对业务处理命令的session信息、接口鉴权方式、是否需要验证码、短信验证等信息进行配置。After the command interface queries the configuration information and routing information, you can configure the service processing commands according to the configuration information. For example, you can configure the session information of the service processing commands, the interface authentication method, whether the verification code is required, and SMS verification. .
然后根据路由信息将配置后的业务处理命令路由至对应的业务模块进行处理,应理解,业务处理命令访问的地址不是命令发布方提供的地址,而是由路由信息提供的地址。Then, according to the routing information, the configured service processing command is routed to the corresponding service module for processing. It should be understood that the address accessed by the service processing command is not the address provided by the command issuer, but the address provided by the routing information.
步骤S204、接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。Step S204: Receive the processing result fed back by the service module, and return the processing result to the issuer of the service processing command.
业务模块接收到配置后的业务处理命令后,根据业务处理命令进行业务处理,并将处理接口反馈至命令接口。After receiving the configured service processing command, the service module performs service processing according to the service processing command, and feeds back the processing interface to the command interface.
命令接口接收到业务模块反馈的处理结果后,将处理结果返回至业务处理命令的发布方,完成本次业务处理流程。After the command interface receives the processing result fed back by the business module, it returns the processing result to the issuer of the business processing command to complete the current business processing flow.
进一步地,所述根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理具体包括:Further, the configuring the service processing command according to the configuration information, and routing the configured service processing command to the service module corresponding to the routing information for service processing specifically includes:
A1、根据所述配置信息为所述业务处理命令添加对应的session信息;A1. Add corresponding session information for the service processing command according to the configuration information;
session信息中包含用户信息等内容,可以根据配置信息为业务处理命令添加对应的session信息,以便区分业务处理命令的发布方。The session information contains user information and other content. The corresponding session information can be added to the service processing command according to the configuration information, so as to distinguish the issuer of the service processing command.
A2、将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理。A2. Route the service processing command with session information added to the service module corresponding to the routing information for service processing.
添加了session信息之后,将添加了session信息的业务处理命令路由至路由信息对应的业务处理模块进行业务处理,业务模块将处理结果反馈至命令接口后,命令接口根据session信息将处理结果反馈至正确的业务处理命令的发布方,避免处理结果反馈至错误的发布方。After the session information is added, the business processing command with the session information added is routed to the business processing module corresponding to the routing information for business processing. After the business module feeds back the processing result to the command interface, the command interface feeds back the processing result to the correct according to the session information The issuer of the business processing order to avoid feedback of the processing result to the wrong issuer.
进一步地,在所述将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理之前还包括:Further, before the routing the service processing command with the session information added to the service module corresponding to the routing information for service processing, the method further includes:
B1、根据所述配置信息对所述添加了session信息的业务处理命令进行权限验证;B1. Perform authority verification on the service processing command with session information added according to the configuration information;
对业务处理命令添加了session信息之后,还可以对业务处理命令进行权限验证,根据权限验证结果执行后续步骤。After adding session information to the business processing command, you can also verify the authority of the business processing command, and perform the subsequent steps according to the result of the authority verification.
对应的,所述将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理具体为:Correspondingly, the routing of the service processing command with session information added to the service module corresponding to the routing information for service processing specifically includes:
C1、若权限验证通过,则将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;C1. If the authority verification is passed, the service processing command with the session information added is routed to the service module corresponding to the routing information for service processing;
如果权限验证通过,则可以将添加了session信息的业务处理命令路由至路由信息对应的业务模块进行业务处理。If the authority verification is passed, the business processing command with the session information added can be routed to the business module corresponding to the routing information for business processing.
C2、若权限验证失败,则返回异常报错信息至所述业务处理命令的发布方。C2. If the authority verification fails, return an abnormal error message to the issuer of the service processing command.
如果权限验证失败,表示业务处理命令的发布方无权访问相应的业务模块,返回异常报错信息至业务处理命令的发布方。If the authority verification fails, it means that the issuer of the business processing command does not have the right to access the corresponding business module, and an exception error message is returned to the issuer of the business processing command.
进一步地,所述接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方具体包括:Further, the receiving the processing result fed back by the service module and returning the processing result to the issuer of the service processing command specifically includes:
D1、接收所述业务模块反馈的处理结果,以预设封装格式对所述处理结果进行封装;D1. Receive the processing result fed back by the service module, and encapsulate the processing result in a preset packaging format;
接收到处理结果后,可以以预设封装格式对处理结果进行封装。After receiving the processing result, the processing result can be packaged in a preset package format.
D2、将封装后的处理结果返回至所述业务处理命令的发布方。D2. Return the encapsulated processing result to the issuer of the service processing command.
封装完成后,将封装后的处理结果返回至业务处理命令的发布方。在传统的方案中,各接口返回的数据格式不一致,业务处理命令的发布方往往需要配置多种数据读取插件,本实施例中采用统一的格式进行封装,业务处理命令的发布方接收到处理结果后,采用统一的数据读取插件读取处理结果即可,便于数据的校验和读取。After the encapsulation is completed, the encapsulated processing result is returned to the issuer of the business processing command. In the traditional solution, the data format returned by each interface is inconsistent, and the issuer of the business processing command often needs to configure multiple data reading plug-ins. In this embodiment, a unified format is used for encapsulation, and the issuer of the business processing command receives the processing After the result, a unified data reading plug-in can be used to read the processing result, which is convenient for data verification and reading.
除了处理结果按照预设封装格式进行封装之外,其他在业务流程中产生的信息,例如异常报错信息等,也可以按照预设格式进行封装,确保输出的信息的格式一致性。In addition to encapsulating the processing result according to the preset encapsulation format, other information generated in the business process, such as abnormal error messages, can also be encapsulated according to the preset format to ensure the format consistency of the output information.
同时,命令接口在运行的过程中,可以进行网关请求限流,例如,可以限制每个IP在预置时长内的命令发布次数,避免遭受恶意攻击。At the same time, the command interface can limit the flow of gateway requests during the running process. For example, it can limit the number of commands issued by each IP within a preset time period to avoid malicious attacks.
本实施例二提供的业务处理方法中,当命令接口接收到业务处理命令后,从数据库中查询对应的配置信息和路由信息,根据配置信息和路由信息对业务处理命令进行配置和路由,采用统一的命令接口和数据库配置的组合,可以方便的对接口进行管理和参数校验,当后续业务模块发生变更时,只需在数据库中变更命令实现对象即可,无需对命令接口进行更改,减少开发人员开发和维护的工作量。In the service processing method provided in the second embodiment, when the command interface receives the service processing command, the corresponding configuration information and routing information are queried from the database, and the service processing command is configured and routed according to the configuration information and routing information. The combination of the command interface and database configuration can easily manage the interface and verify the parameters. When the subsequent business module changes, you only need to change the command implementation object in the database, without changing the command interface, reducing development The workload of personnel development and maintenance.
配置的过程中,可以为业务处理命令添加session信息以便区分业务处理命令的发布方,并且可以进行权限验证,根据权限验证结果执行对应的操作。During the configuration process, session information can be added to the business processing command to distinguish the issuer of the business processing command, and permission verification can be performed, and corresponding operations can be performed according to the permission verification result.
将处理结果和其他信息返回至业务处理命令的发布方时,可以采用预设封装格式对信息进行封装,确保命令接口对外输出的信息的格式一致性。When the processing result and other information are returned to the issuer of the business processing order, the information can be encapsulated in a preset encapsulation format to ensure the consistency of the format of the information output by the command interface.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
实施例三:Example three:
本申请实施例三提供了一种命令接口,为便于说明,仅示出与本申请相关的部分,如图3所示,命令接口包括,The third embodiment of the present application provides a command interface. For ease of description, only the parts related to the present application are shown. As shown in FIG. 3, the command interface includes:
命令接收模块301,用于接收业务处理命令,获取所述业务处理命令的命令类型;The command receiving module 301 is configured to receive a service processing command, and obtain the command type of the service processing command;
信息获取模块302,用于从数据库中获取所述命令类型对应的配置信息和路由信息;The information obtaining module 302 is configured to obtain configuration information and routing information corresponding to the command type from a database;
配置路由模块303,用于根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;The configuration routing module 303 is configured to configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
结果反馈模块304,用于接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。The result feedback module 304 is configured to receive the processing result fed back by the service module, and return the processing result to the issuer of the service processing command.
进一步地,所述配置路由模块303具体包括:Further, the configuration routing module 303 specifically includes:
信息添加子模块,用于根据所述配置信息为所述业务处理命令添加对应的session信息;An information adding submodule, configured to add corresponding session information for the service processing command according to the configuration information;
信息路由子模块,用于将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理。The information routing sub-module is used to route the service processing command added with the session information to the service module corresponding to the routing information for service processing.
进一步地,所述配置路由模块303还包括:Further, the configuration routing module 303 further includes:
权限验证子模块,用于根据所述配置信息对所述添加了session信息的业务处理命令进行权限验证;The authority verification sub-module is used to perform authority verification on the service processing command to which the session information is added according to the configuration information;
对应的,所述信息路由子模块具体为:Correspondingly, the information routing submodule is specifically:
通过路由子模块,用于若权限验证通过,则将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;The pass routing sub-module is used to route the service processing command with session information added to the service module corresponding to the routing information for service processing if the authority verification is passed;
失败报错子模块,用于若权限验证失败,则返回异常报错信息至所述业务处理命令的发布方。The failure reporting sub-module is configured to return abnormal error reporting information to the issuer of the service processing command if the authorization verification fails.
进一步地,所述结果反馈模块304具体包括:Further, the result feedback module 304 specifically includes:
结果封装子模块,用于接收所述业务模块反馈的处理结果,以预设封装格式对所述处理结果进行封装;The result encapsulation submodule is used to receive the processing result fed back by the service module, and encapsulate the processing result in a preset encapsulation format;
封装返回子模块,用于将封装后的处理结果返回至所述业务处理命令的发布方。The encapsulation return sub-module is used to return the encapsulated processing result to the issuer of the service processing command.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the method embodiment of this application, and its specific functions and technical effects can be found in the method embodiment section. I won't repeat it here.
实施例四:Embodiment four:
图4是本申请实施例四提供的计算机设备的示意图。如图4所示,该实施例的计算机设备4包括:处理器40、存储器41以及存储在所述存储器41中并可在所述处理器40上运行的计算机程序42。所述处理器40执行所述计算机程序42时实现上述云平台实施例中各模块/单元的功能,例如,云平台包括命令接口、数据库以及业务模块,当处理器40执行命令接口对应的计算机程序时,可以实现上述业务处理方法实施例中的步骤,如图2所示步骤S201至S204       ;或者所述处理器40执行命令接口对应的计算机程序时,可以实现上述命令接口实施例中各模块/单元的功能,如图3所示模块301至304的功能。Fig. 4 is a schematic diagram of a computer device provided in a fourth embodiment of the present application. As shown in FIG. 4, the computer device 4 of this embodiment includes a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and running on the processor 40. When the processor 40 executes the computer program 42, the functions of each module/unit in the above cloud platform embodiment are realized. For example, the cloud platform includes a command interface, a database, and a business module. When the processor 40 executes the computer program corresponding to the command interface At this time, the steps in the foregoing service processing method embodiment can be implemented, as shown in steps S201 to S204 as shown in Fig. 2; or when the processor 40 executes the computer program corresponding to the command interface, it can implement each module in the foregoing command interface embodiment. The function of the unit is the function of the modules 301 to 304 as shown in Fig. 3.
示例性的,所述计算机程序42可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器41中,并由所述处理器40执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序42在所述计算机设备4中的执行过程。例如,所述计算机程序42可以被分割成命令接口、数据库以及业务模块,命令接口可以包括命令接收模块、信息获取模块、配置路由模块以及结果反馈模块,命令接口中各模块具体功能如下:Exemplarily, the computer program 42 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 41 and executed by the processor 40 to complete This application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 42 in the computer device 4. For example, the computer program 42 can be divided into a command interface, a database, and a business module. The command interface can include a command receiving module, an information acquisition module, a configuration routing module, and a result feedback module. The specific functions of each module in the command interface are as follows:
命令接收模块,用于接收业务处理命令,获取所述业务处理命令的命令类型;The command receiving module is configured to receive a service processing command, and obtain the command type of the service processing command;
信息获取模块,用于从数据库中获取所述命令类型对应的配置信息和路由信息;An information acquisition module for acquiring configuration information and routing information corresponding to the command type from a database;
配置路由模块,用于根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;The configuration routing module is configured to configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
结果反馈模块,用于接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。The result feedback module is configured to receive the processing result fed back by the service module, and return the processing result to the issuer of the service processing command.
所述计算机设备4可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述计算机设备可包括,但不仅限于,处理器40、存储器41。本领域技术人员可以理解,图4仅仅是计算机设备4的示例,并不构成对计算机设备4的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述计算机设备还可以包括输入输出设备、网络接入设备、总线等。The computer device 4 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The computer device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art can understand that FIG. 4 is only an example of the computer device 4, and does not constitute a limitation on the computer device 4. It may include more or less components than those shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, and the like.
所称处理器40可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现场可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 40 may be a central processing unit (Central Processing Unit, CPU), or may be other general-purpose processors or digital signal processors. (Digital Signal Processor, DSP), ASIC (Application Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器41可以是所述计算机设备4的内部存储单元,例如计算机设备4的硬盘或内存。所述存储器41也可以是所述计算机设备4的外部存储设备,例如所述计算机设备4上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器41还可以既包括所述计算机设备4的内部存储单元也包括外部存储设备。所述存储器41用于存储所述计算机程序以及所述计算机设备所需的其他程序和数据。所述存储器41还可以用于暂时地存储已经输出或者将要输出的数据。The memory 41 may be an internal storage unit of the computer device 4, such as a hard disk or a memory of the computer device 4. The memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), Secure Digital (Secure Digital, SD) card, flash memory card (Flash Card) and so on. Further, the memory 41 may also include both an internal storage unit of the computer device 4 and an external storage device. The memory 41 is used to store the computer program and other programs and data required by the computer device. The memory 41 can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional units and modules as required. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only used to facilitate distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/计算机设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/计算机设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/computer equipment and method may be implemented in other ways. For example, the device/computer equipment embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units. Or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。所述计算机可读存储介质可以是非易失性,也可以是易失性。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. The computer-readable storage medium may be non-volatile or volatile. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, it can implement the steps of the foregoing method embodiments. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种云平台,其中,包括:命令接口、数据库和业务模块; A cloud platform, which includes: a command interface, a database, and a business module;
    所述数据库,用于记录各种命令类型对应的配置信息和路由信息;The database is used to record configuration information and routing information corresponding to various command types;
    所述命令接口,用于接收业务处理命令,根据所述业务处理命令的命令类型获取对应的配置信息和路由信息,根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理,并将所述业务模块反馈的处理结果返回至所述业务处理命令的发布方;The command interface is used to receive a service processing command, obtain corresponding configuration information and routing information according to the command type of the service processing command, configure the service processing command according to the configuration information, and process the configured service The command is routed to the service module corresponding to the routing information for service processing, and the processing result fed back by the service module is returned to the issuer of the service processing command;
    所述业务模块,用于接收所述配置后的业务处理命令,根据所述配置后的业务处理命令进行业务处理,并将处理结果反馈至所述命令接口。The service module is configured to receive the configured service processing command, perform service processing according to the configured service processing command, and feed back the processing result to the command interface.
  2. 如权利要求1所述的云平台,其中,所述命令接口还用于: The cloud platform of claim 1, wherein the command interface is also used for:
    当新增所述业务模块或所述业务模块发生变更,在所述数据库中新增或变更对应的配置信息和路由信息。When the service module is newly added or the service module is changed, corresponding configuration information and routing information are added or changed in the database.
  3. 如权利要求1所述的云平台,其中,所述命令接口还用于: The cloud platform of claim 1, wherein the command interface is also used for:
    若接收到复合型的业务处理命令,则解析所述复合型的业务处理命令中存在的独立的业务处理命令;If a composite business processing command is received, analyzing independent business processing commands existing in the composite business processing command;
    识别所述独立的业务处理命令的命令类型和处理时序逻辑,并根据所述独立的业务处理命令的命令类型对所述独立的业务处理命令进行配置;Identifying the command type and processing sequence logic of the independent service processing command, and configuring the independent service processing command according to the command type of the independent service processing command;
    根据所述处理时序逻辑依次处理所述独立的业务处理命令。The independent service processing commands are sequentially processed according to the processing sequence logic.
  4. 一种业务处理方法,其中,包括: A business processing method, which includes:
    接收业务处理命令,获取所述业务处理命令的命令类型;Receiving a service processing command, and obtaining the command type of the service processing command;
    从数据库中获取所述命令类型对应的配置信息和路由信息;Obtaining configuration information and routing information corresponding to the command type from the database;
    根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;Configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
    接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。The processing result fed back by the service module is received, and the processing result is returned to the issuer of the service processing command.
  5. 如权利要求4所述的业务处理方法,其中,所述根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理具体包括: The service processing method of claim 4, wherein the service processing command is configured according to the configuration information, and the configured service processing command is routed to the service module corresponding to the routing information for service processing. include:
    根据所述配置信息为所述业务处理命令添加对应的session信息;Adding corresponding session information to the service processing command according to the configuration information;
    将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理。The service processing command added with the session information is routed to the service module corresponding to the routing information for service processing.
  6. 如权利要求5所述的业务处理方法,其中,在所述将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理之前还包括: The service processing method according to claim 5, wherein before the routing the service processing command with the session information added to the service module corresponding to the routing information for service processing, the method further comprises:
    根据所述配置信息对所述添加了session信息的业务处理命令进行权限验证;Performing authority verification on the service processing command with session information added according to the configuration information;
    对应的,所述将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理具体为:Correspondingly, the routing of the service processing command with session information added to the service module corresponding to the routing information for service processing specifically includes:
    若权限验证通过,则将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;If the authority verification is passed, the service processing command with the session information added is routed to the service module corresponding to the routing information for service processing;
    若权限验证失败,则返回异常报错信息至所述业务处理命令的发布方。If the authorization verification fails, an abnormal error message is returned to the issuer of the service processing command.
  7. 如权利要求4所述的业务处理方法,其中,所述接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方具体包括: The service processing method according to claim 4, wherein the receiving the processing result fed back by the service module and returning the processing result to the issuer of the service processing command specifically comprises:
    接收所述业务模块反馈的处理结果,以预设封装格式对所述处理结果进行封装;Receiving the processing result fed back by the service module, and encapsulating the processing result in a preset encapsulation format;
    将封装后的处理结果返回至所述业务处理命令的发布方。The encapsulated processing result is returned to the issuer of the service processing command.
  8. 一种命令接口,其中,包括: A command interface, including:
    命令接收模块,用于接收业务处理命令,获取所述业务处理命令的命令类型;The command receiving module is configured to receive a service processing command, and obtain the command type of the service processing command;
    信息获取模块,用于从数据库中获取所述命令类型对应的配置信息和路由信息;An information acquisition module for acquiring configuration information and routing information corresponding to the command type from a database;
    配置路由模块,用于根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;The configuration routing module is configured to configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
    结果反馈模块,用于接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。The result feedback module is configured to receive the processing result fed back by the service module, and return the processing result to the issuer of the service processing command.
  9. 如权利要求8所述的命令接口,其中,所述配置路由模块具体包括: The command interface according to claim 8, wherein the configuration routing module specifically comprises:
    信息添加子模块,用于根据所述配置信息为所述业务处理命令添加对应的session信息;An information adding submodule, configured to add corresponding session information for the service processing command according to the configuration information;
    信息路由子模块,用于将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理。The information routing sub-module is used to route the service processing command added with the session information to the service module corresponding to the routing information for service processing.
  10. 如权利要求9所述的命令接口,其中,所述配置路由模块还包括: The command interface according to claim 9, wherein the configuration routing module further comprises:
    权限验证子模块,用于根据所述配置信息对所述添加了session信息的业务处理命令进行权限验证;The authority verification sub-module is used to perform authority verification on the service processing command to which the session information is added according to the configuration information;
    对应的,所述信息路由子模块具体为:Correspondingly, the information routing submodule is specifically:
    通过路由子模块,用于若权限验证通过,则将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;The pass routing sub-module is used to route the service processing command with session information added to the service module corresponding to the routing information for service processing if the authority verification is passed;
    失败报错子模块,用于若权限验证失败,则返回异常报错信息至所述业务处理命令的发布方。The failure reporting sub-module is configured to return abnormal error reporting information to the issuer of the service processing command if the authorization verification fails.
  11. 如权利要求8所述的命令接口,其中,所述结果反馈模块具体包括: The command interface according to claim 8, wherein the result feedback module specifically comprises:
    结果封装子模块,用于接收所述业务模块反馈的处理结果,以预设封装格式对所述处理结果进行封装;The result encapsulation submodule is used to receive the processing result fed back by the service module, and encapsulate the processing result in a preset encapsulation format;
    封装返回子模块,用于将封装后的处理结果返回至所述业务处理命令的发布方。The encapsulation return sub-module is used to return the encapsulated processing result to the issuer of the service processing command.
  12. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如下步骤: A computer device includes a memory, a processor, and a computer program that is stored in the memory and can run on the processor, wherein the processor implements the following steps when the processor executes the computer program:
    接收业务处理命令,获取所述业务处理命令的命令类型;Receiving a service processing command, and obtaining the command type of the service processing command;
    从数据库中获取所述命令类型对应的配置信息和路由信息;Obtaining configuration information and routing information corresponding to the command type from the database;
    根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;Configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
    接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。The processing result fed back by the service module is received, and the processing result is returned to the issuer of the service processing command.
  13. 如权利要求12所述的计算机设备,其中,所述根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理具体包括: The computer device according to claim 12, wherein the configuring the service processing command according to the configuration information, and routing the configured service processing command to the service module corresponding to the routing information for service processing specifically comprises :
    根据所述配置信息为所述业务处理命令添加对应的session信息;Adding corresponding session information to the service processing command according to the configuration information;
    将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理。The service processing command added with the session information is routed to the service module corresponding to the routing information for service processing.
  14. 如权利要求13所述的计算机设备,其中,在所述将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理之前还包括: The computer device according to claim 13, wherein before the routing the service processing command with the session information added to the service module corresponding to the routing information for service processing, the method further comprises:
    根据所述配置信息对所述添加了session信息的业务处理命令进行权限验证;Performing authority verification on the service processing command with session information added according to the configuration information;
    对应的,所述将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理具体为:Correspondingly, the routing of the service processing command with session information added to the service module corresponding to the routing information for service processing specifically includes:
    若权限验证通过,则将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;If the authority verification is passed, the service processing command with the session information added is routed to the service module corresponding to the routing information for service processing;
    若权限验证失败,则返回异常报错信息至所述业务处理命令的发布方。If the authorization verification fails, an abnormal error message is returned to the issuer of the service processing command.
  15. 如权利要求12所述的计算机设备,其中,所述接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方具体包括: The computer device according to claim 12, wherein the receiving the processing result fed back by the service module and returning the processing result to the issuer of the service processing command specifically comprises:
    接收所述业务模块反馈的处理结果,以预设封装格式对所述处理结果进行封装;Receiving the processing result fed back by the service module, and encapsulating the processing result in a preset encapsulation format;
    将封装后的处理结果返回至所述业务处理命令的发布方。The encapsulated processing result is returned to the issuer of the service processing command.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其中,所述计算机程序被处理器执行时实现如下步骤: A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the following steps:
    接收业务处理命令,获取所述业务处理命令的命令类型;Receiving a service processing command, and obtaining the command type of the service processing command;
    从数据库中获取所述命令类型对应的配置信息和路由信息;Obtaining configuration information and routing information corresponding to the command type from the database;
    根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;Configure the service processing command according to the configuration information, and route the configured service processing command to the service module corresponding to the routing information for service processing;
    接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方。The processing result fed back by the service module is received, and the processing result is returned to the issuer of the service processing command.
  17. 如权利要求16所述的计算机可读存储介质,其中,所述根据所述配置信息对所述业务处理命令进行配置,将配置后的业务处理命令路由至所述路由信息对应的业务模块进行业务处理具体包括: The computer-readable storage medium according to claim 16, wherein the service processing command is configured according to the configuration information, and the configured service processing command is routed to the service module corresponding to the routing information for service The processing includes:
    根据所述配置信息为所述业务处理命令添加对应的session信息;Adding corresponding session information to the service processing command according to the configuration information;
    将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理。The service processing command added with the session information is routed to the service module corresponding to the routing information for service processing.
  18. 如权利要求17所述的计算机可读存储介质,其中,在所述将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理之前还包括: 17. The computer-readable storage medium of claim 17, wherein before the routing the service processing command with session information added to the service module corresponding to the routing information for service processing, the method further comprises:
    根据所述配置信息对所述添加了session信息的业务处理命令进行权限验证;Performing authority verification on the service processing command with session information added according to the configuration information;
    对应的,所述将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理具体为:Correspondingly, the routing of the service processing command with session information added to the service module corresponding to the routing information for service processing specifically includes:
    若权限验证通过,则将添加了session信息的业务处理命令路由至所述路由信息对应的业务模块进行业务处理;If the authority verification is passed, the service processing command with the session information added is routed to the service module corresponding to the routing information for service processing;
    若权限验证失败,则返回异常报错信息至所述业务处理命令的发布方。If the authorization verification fails, an abnormal error message is returned to the issuer of the service processing command.
  19. 如权利要求16所述的计算机可读存储介质,其中,所述接收所述业务模块反馈的处理结果,将所述处理结果返回至所述业务处理命令的发布方具体包括: 15. The computer-readable storage medium according to claim 16, wherein the receiving the processing result fed back by the service module and returning the processing result to the issuer of the service processing command specifically comprises:
    接收所述业务模块反馈的处理结果,以预设封装格式对所述处理结果进行封装;Receiving the processing result fed back by the service module, and encapsulating the processing result in a preset encapsulation format;
    将封装后的处理结果返回至所述业务处理命令的发布方。The encapsulated processing result is returned to the issuer of the service processing command.
  20. 如权利要求16至19任一项所述的计算机可读存储介质,其中,所述计算机可读存储介质可以是非易失性,也可以是易失性。 The computer-readable storage medium according to any one of claims 16 to 19, wherein the computer-readable storage medium may be non-volatile or volatile.
PCT/CN2020/099397 2019-09-02 2020-06-30 Cloud platform, service processing method, command interface and computer device WO2021042849A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910824868.6 2019-09-02
CN201910824868.6A CN110601880B (en) 2019-09-02 2019-09-02 Cloud platform, service processing method, command interface and computer equipment

Publications (1)

Publication Number Publication Date
WO2021042849A1 true WO2021042849A1 (en) 2021-03-11

Family

ID=68857075

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/099397 WO2021042849A1 (en) 2019-09-02 2020-06-30 Cloud platform, service processing method, command interface and computer device

Country Status (2)

Country Link
CN (1) CN110601880B (en)
WO (1) WO2021042849A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110601880B (en) * 2019-09-02 2022-08-26 平安科技(深圳)有限公司 Cloud platform, service processing method, command interface and computer equipment
CN111193807A (en) * 2020-01-09 2020-05-22 北京辰森世纪科技股份有限公司 Information interaction method and device, storage medium and computer equipment
CN114422343B (en) * 2020-10-13 2023-12-29 腾讯科技(深圳)有限公司 Service configuration method, device, system and computer readable storage medium
CN112416357A (en) * 2020-11-17 2021-02-26 杭州米络星科技(集团)有限公司 Communication method and device based on business module and electronic equipment
CN112565031B (en) * 2020-11-30 2023-05-05 福州汇思博信息技术有限公司 Parameter configuration method and terminal for PPP connection
CN112667324B (en) * 2020-12-30 2023-12-05 凌云光技术股份有限公司 Method and device for calling command class in command mode
CN112905313A (en) * 2021-01-21 2021-06-04 深圳市元征科技股份有限公司 Task processing method and device and electronic equipment
CN113835756A (en) * 2021-09-28 2021-12-24 深圳大普微电子科技有限公司 Host command analysis method and device, solid state disk controller and solid state disk
CN115328581B (en) * 2022-08-05 2023-10-27 科东(广州)软件科技有限公司 Management device and method for modularized business fusion based on heterogeneous system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014046694A1 (en) * 2012-09-24 2014-03-27 Empire Technology Development Llc Decentralized cloud workflows
CN105847364A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Public cloud object storage method based on uniform domain name and public cloud object storage system based on uniform domain name
CN206149327U (en) * 2016-11-22 2017-05-03 北京万方数据股份有限公司 Information cloud management platform and information system of enterprise
CN108449418A (en) * 2018-03-29 2018-08-24 新华三云计算技术有限公司 A kind of mixed cloud platform management system and method
CN108492195A (en) * 2018-03-08 2018-09-04 中国平安人寿保险股份有限公司 Extensive method, equipment and storage medium are joined by a kind of entering for regulation engine packet
CN109743205A (en) * 2018-12-29 2019-05-10 浪潮电子信息产业股份有限公司 A kind of cloud platform OS network management, device and server
CN110601880A (en) * 2019-09-02 2019-12-20 平安科技(深圳)有限公司 Cloud platform, service processing method, command interface and computer equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7225244B2 (en) * 2000-05-20 2007-05-29 Ciena Corporation Common command interface
CN102036058B (en) * 2010-12-20 2014-07-02 南京中兴新软件有限责任公司 Method, server, terminal and system for switching videos in video monitoring system
CN105681115A (en) * 2016-04-01 2016-06-15 北京新奥特云视科技有限公司 OnAir all-media cloud platform application method and system
CN109815013A (en) * 2019-01-02 2019-05-28 深圳壹账通智能科技有限公司 Business data processing method, device, computer equipment and storage medium
CN109933626B (en) * 2019-02-12 2024-01-30 平安科技(深圳)有限公司 Financial business data processing method and device and financial transaction terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014046694A1 (en) * 2012-09-24 2014-03-27 Empire Technology Development Llc Decentralized cloud workflows
CN105847364A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Public cloud object storage method based on uniform domain name and public cloud object storage system based on uniform domain name
CN206149327U (en) * 2016-11-22 2017-05-03 北京万方数据股份有限公司 Information cloud management platform and information system of enterprise
CN108492195A (en) * 2018-03-08 2018-09-04 中国平安人寿保险股份有限公司 Extensive method, equipment and storage medium are joined by a kind of entering for regulation engine packet
CN108449418A (en) * 2018-03-29 2018-08-24 新华三云计算技术有限公司 A kind of mixed cloud platform management system and method
CN109743205A (en) * 2018-12-29 2019-05-10 浪潮电子信息产业股份有限公司 A kind of cloud platform OS network management, device and server
CN110601880A (en) * 2019-09-02 2019-12-20 平安科技(深圳)有限公司 Cloud platform, service processing method, command interface and computer equipment

Also Published As

Publication number Publication date
CN110601880A (en) 2019-12-20
CN110601880B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
WO2021042849A1 (en) Cloud platform, service processing method, command interface and computer device
CN108268253B (en) Interface code generation method and terminal equipment
WO2020062793A1 (en) Message queue-based request processing method, apparatus and device, and storage medium
WO2021139788A1 (en) Cloud gateway configuration method, system, apparatus, and computer readable storage medium
CN110266764B (en) Gateway-based internal service calling method and device and terminal equipment
WO2020119536A1 (en) Alliance chain information release control method and terminal device
WO2018184535A1 (en) Insurance service processing method and device, server, and storage medium
CN111026367A (en) Micro-service arranging method and device, terminal equipment and storage medium
WO2020119476A1 (en) Alliance chain information release control method and terminal equipment
CN107133231B (en) Data acquisition method and device
CN109032590B (en) Configuration method, device, terminal and storage medium of visual development environment
CN107870989A (en) webpage generating method and terminal device
WO2019127773A1 (en) Method and apparatus for processing sales of insurance product, storage medium, and terminal
WO2021164462A1 (en) Data encryption method, data decryption method, computer device, and medium
CN114979103A (en) Open API integration and management method and computer equipment
CN113381866A (en) Service calling method, device, equipment and storage medium based on gateway
CN113190513A (en) Data integration system and method
CN107040613A (en) A kind of message transmitting method and system
CN111447273B (en) Cloud processing system and data processing method based on cloud processing system
CN110535724B (en) Application program network read-write limiting method and device, electronic equipment and storage medium
CN114157662B (en) Cloud platform parameter adaptation method, device, terminal equipment and storage medium
CN111324645B (en) Block chain data processing method and device
CN107566499A (en) The methods, devices and systems of data syn-chronization
CN107247581A (en) The construction method of model is delivered in network analysis with Outline Design
CN111142863A (en) Page generation method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20861646

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20861646

Country of ref document: EP

Kind code of ref document: A1