Disclosure of Invention
The invention provides a service query method, a service query device, electronic equipment and a computer readable storage medium based on a middle platform architecture, and mainly aims to solve the problems that service document formats are not uniform and documents are easy to lose when a distributed system performs service docking query so as to improve service query efficiency.
In order to achieve the above object, the present invention provides a service query method based on a middle station architecture, which includes:
performing document conversion on all system services in the distributed system based on a pre-established middle platform architecture service center to generate a service document set;
identifying interface information corresponding to each service document in the service document set, and loading the interface information into the corresponding service document to generate a target service document set;
configuring the access authority of the target service document set, and writing the target service document set with the access authority into a distributed search engine;
receiving a service query instruction input by a user in the middle platform architecture service center, and querying interface information in a corresponding target service document from the distributed search engine;
if the interface information is not inquired, returning inquiry error information to the user;
and if the interface information is inquired, returning the inquiry result to the user according to the access authority of the corresponding target service document.
Optionally, before the document conversion is performed on all system services in the distributed system by the service center based on the pre-created middle desk architecture, and a service document set is generated, the method further includes:
the method comprises the steps of creating a middle platform architecture service framework in a preset system integration development environment, constructing a service configuration file in the middle platform architecture service framework, deploying the middle platform architecture service framework to a server according to the service configuration file, and obtaining a middle platform architecture service center.
Optionally, the performing, by the service center based on a pre-created middle desk architecture, document conversion on all system services in the distributed system to generate a service document set, including:
acquiring a program operation package of the middle platform architecture service center and system services of each subsystem in the distributed system;
loading the system service into a document conversion process of the program operation package;
and performing document conversion on the system service by using the document conversion process to generate a service document set.
Optionally, the loading the system service into the document conversion process of the program operation package includes:
acquiring a program code of the system service, establishing a data interaction channel between the program code and the document conversion process by using a linear table, and executing the loading of the system service according to the data interaction channel.
Optionally, the identifying interface information corresponding to each service document in the service document set includes:
acquiring an interface environment of the service document, and inquiring attribute parameters of the interface environment;
and identifying the interface information of the service document according to the attribute parameters.
Optionally, the loading the interface information into a corresponding service document to generate a target service document set includes:
and constructing a first configuration file of the interface information, acquiring a second configuration file of the service document, and transmitting the first configuration file to the second configuration file by using a transmission tool to obtain a target service document set.
Optionally, the writing the target service document set configured with the access right into a distributed search engine includes:
creating a document index repository in the distributed search engine;
setting a corresponding document data table in the document index database according to the document type of the target service document in the target service document set, and configuring document fields in the document data table;
and executing the writing of the target service documents in the target service document set based on the document field.
In order to solve the above problem, the present invention further provides a service query apparatus based on the middle desk architecture, where the apparatus includes:
the conversion module is used for carrying out document conversion on all system services in the distributed system based on a pre-established middle platform architecture service center to generate a service document set;
the loading module is used for identifying interface information corresponding to each service document in the service document set, loading the interface information into the corresponding service document and generating a target service document set;
the writing module is used for configuring the access authority of the target service document set and writing the target service document set with the configured access authority into a distributed search engine;
the query module is used for receiving a service query instruction input by a user in the middle platform architecture service center and querying interface information in a corresponding target service document from the distributed search engine;
the return module is used for returning the inquiry error information to the user when the interface information is not inquired; or when the interface information is inquired, returning the inquiry result to the user according to the access right of the corresponding target service document.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to implement the above-mentioned method for querying a service based on a middle desk architecture.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program is executed by a processor in an electronic device to implement the above-mentioned method for querying a service based on a middle station architecture.
The embodiment of the invention firstly carries out document conversion on all system services in the distributed system based on the pre-established middle platform architecture service center to generate a service document set, thereby ensuring that the formats of the service documents are kept uniform when the distributed system carries out service docking inquiry; secondly, the embodiment of the invention loads the interface information and configures the access authority to the service document set, thereby realizing the order of the built middle platform architecture service center when inquiring the service documents; furthermore, the embodiment of the invention writes the target service document set with the configured access authority into a distributed search engine, and queries the corresponding target service document from the distributed search engine in response to a service query instruction based on the middle platform architecture of the middle platform architecture service center to obtain a query result, thereby ensuring that the generated service document is not easy to lose. Therefore, the service query method, the service query device, the electronic equipment and the storage medium based on the middle platform architecture can improve the service query efficiency.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a service query method based on a middle platform architecture. The execution subject of the service query method based on the middle-station architecture includes, but is not limited to, at least one of electronic devices, such as a server and a terminal, which can be configured to execute the method provided by the embodiments of the present application. In other words, the method for querying a service based on the middle-office architecture may be performed by software or hardware installed in a terminal device or a server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Referring to fig. 1, a flow diagram of a service query method based on a middle-level architecture according to an embodiment of the present invention is shown. In the embodiment of the present invention, the service query method based on the middle platform architecture includes:
and S1, performing document conversion on all system services in the distributed system based on the pre-created middle-platform architecture service center, and generating a service document set.
In a preferred embodiment of the present invention, the midrange architecture service center refers to a system for managing all services in a distributed system, and the midrange architecture service center is created based on a midrange idea and deployed in one server in a corresponding distributed system. The middle station idea is an idea of centralized management of projects.
Wherein the distributed system is a complete system formed by two or more subsystems deployed on different servers together with one system formed by a distributed service system architecture. For example: the order system, the warehousing system, the logistics system and the payment system form a complete online sales system.
Further, an alternative embodiment of the present invention further comprises creating the platform architecture service center. In detail, the embodiment of the present invention creates the platform architecture service center by the following method:
the method comprises the steps of creating a middle platform architecture service framework in a preset system integration development environment, constructing a service configuration file in the middle platform architecture service framework, deploying the middle platform architecture service framework to a server according to the service configuration file, and obtaining a middle platform architecture service center.
The preset system integration development environment may be MyEclipse, the middle platform architecture service framework is created through a springcloud framework, the service configuration file is used for connecting the created middle platform architecture service framework with an external environment, and it is required to state that deployment of the server corresponds to a server for managing distributed system deployment corresponding to the middle platform architecture service center.
In the embodiment of the present invention, referring to fig. 2, the performing document conversion on all system services in a distributed system by using a preset-based middle platform architecture service center to generate a service document set includes:
s10, acquiring a program operation package of the middle platform architecture service center and system services of each subsystem in the distributed system;
s11, loading the system service into the document conversion process of the program operation package;
and S12, carrying out document conversion on the system service by using the document conversion process to generate a service document set.
The program operation package can be understood as jar package, and is used for a platform architecture service center in the operation of the server.
The system service refers to a corresponding service provided in a corresponding subsystem, such as an order logistics query service, an order type query service, an order price query service, and the like provided by an order system.
The loading the system service into the document conversion process of the program operation package includes: acquiring a program code of the system service, establishing a data interaction channel between the program code and the document conversion process by using a queue (linear table), and executing the loading of the system service according to the data interaction channel.
The document conversion is used for carrying out format unification on the service documents of the system service, and the format unification of the service documents output by each subsystem in the distributed system is ensured.
Further, in order to ensure high availability of the service document set, the service document set may also be stored in a blockchain node.
S2, identifying interface information corresponding to each service document in the service document set, loading the interface information into the corresponding service document, and generating a target service document set.
In the embodiment of the invention, because the service document usually corresponds to corresponding interface information, such as an interface name, a responsible person, development time and the like of the service document, the invention generates the target service document set by identifying the interface information corresponding to each service document in the service document set and marking the interface information in the corresponding service document, so as to conveniently integrate and manage the service document and avoid the occurrence of service query errors caused by the fact that the interface information cannot be queried.
In detail, the identifying interface information corresponding to each service document in the service document set includes:
acquiring an interface environment of the service document, inquiring attribute parameters of the interface environment by using a post () method, and identifying interface information of the service document according to the attribute parameters.
Further, in this embodiment of the present invention, the loading the interface information into a corresponding service document to generate a target service document set includes:
and constructing a first configuration file of the interface information, acquiring a second configuration file of the service document, and transmitting the first configuration file to the second configuration file by using a transmission tool to obtain a target service document set.
In a preferred embodiment of the present invention, the first configuration file of the interface information is constructed by a JavaScript script, and the second configuration file is obtained by a get () method.
S3, configuring the access authority of the target service document set, and writing the target service document set with the configured access authority into a distributed search engine.
Because the target service documents contained in the target service document set have certain privacy, in order to ensure the security of the corresponding target service documents, the embodiment of the invention configures the access authority for the target service documents, so as to realize the stability of the middle platform architecture service center when the target service documents are checked, and ensure the orderly use of the middle platform system.
Preferably, the configuration of the access right in the embodiment of the present invention sets the access right of the target service document set according to the level of the user role, for example, sets the developer right type to 4, and assigns the basic document rights such as the development requirement description document, the interface query document, and the system operation manual to 4; setting the authority type of a project manager as 3, and assigning higher-security document authority of project quotation documents, project construction period manual distribution and the like as 3; at this time, the developer can only see all the documents with the authority of 4 in the middle platform architecture service center, the document with the authority of 3 is not viewed, and the user with the authority level of 3 can view all the documents with the authorities of 3 and 4.
Further, when the target service document set is queried from the middle platform architecture service center, because the middle platform architecture service center provides the function of service document centralized management, the service documents are not easy to be searched, and the problem that the service documents are easy to lose exists, the embodiment of the invention writes the target service document set after the access authority is configured into the distributed search engine. Preferably, in the embodiment of the present invention, the distributed search engine is an Elasticsearch. The Elasticissearch has a distributed search engine and a data analysis engine and supports the functions of full-text retrieval, structured retrieval, data analysis and near real-time processing of mass data. Wherein the index of the Elasticissearch corresponds to a database of a relational database (mysql, oracle, etc.), the type corresponds to a table of the relational database, and the field corresponds to a field of the table.
In detail, the writing the target service document set configured with the access right into a distributed search engine includes:
creating a document index library in the distributed search engine, setting a corresponding document data table in the document index library according to the document type of the target service document in the target service document set, configuring document fields in the document data table, and writing the target service document in the target service document set by utilizing a fragmentation technology based on the document fields.
In an optional embodiment, the creation of the document index database, the setting of the document data table and the configuration of the document field are implemented by java language.
S4, receiving a service query instruction input by a user in the middle platform architecture service center, and querying the interface information in the corresponding target service document from the distributed search engine.
In a preferred embodiment of the present invention, a service query instruction (for example, query an order stream in an order subsystem) triggered by a user in a visual interface of the middle-platform architecture service center is received, and interface information in a target service document is queried from the distributed search engine in response to the service query instruction of the middle-platform architecture service center.
The visual interface refers to a front-end page of the middle platform architecture service center, and the function of user interaction is achieved.
If the interface information is not inquired, executing S5 and returning inquiry error information to the user;
and if the interface information is inquired, executing S6, and returning the inquiry result to the user according to the access right of the corresponding target service document.
In the embodiment of the present invention, the returning a query result to the user according to the access right of the corresponding target service document includes: and obtaining the access authority corresponding to the target service document and the user level, if the user level is not higher than the access authority of the target service document, returning the information which cannot be checked to the user, and if the user level is higher than the access authority of the target service document, returning the target service document to the user.
The embodiment of the invention firstly carries out document conversion on all system services in the distributed system based on the pre-established middle platform architecture service center to generate a service document set, thereby ensuring that the formats of the service documents are kept uniform when the distributed system carries out service docking inquiry; secondly, the embodiment of the invention loads the interface information and configures the access authority to the service document set, thereby realizing the order of the built middle platform architecture service center when inquiring the service documents; furthermore, the embodiment of the invention writes the target service document set with the configured access authority into a distributed search engine, and queries the corresponding target service document from the distributed search engine in response to the service query instruction of the middle-platform architecture service center to obtain a query result, thereby ensuring that the generated service document is not easy to lose. Therefore, the service query method based on the middle platform architecture can improve the service query efficiency.
Fig. 3 is a functional block diagram of a service inquiry apparatus based on the middle station architecture according to the present invention.
The service inquiry apparatus 100 based on the middle desk architecture according to the present invention can be installed in an electronic device. According to the implemented functions, the service query device based on the middle desk architecture can comprise a conversion module 101, a loading module 102, a writing module 103, a query module 104 and a returning module 105. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the conversion module 101 is configured to perform document conversion on all system services in the distributed system based on a pre-created middle desk architecture service center, and generate a service document set.
In a preferred embodiment of the present invention, the midrange architecture service center refers to a system for managing all services in a distributed system, and the midrange architecture service center is created based on a midrange idea and deployed in one server in a corresponding distributed system. The middle station idea is an idea of centralized management of projects.
Wherein the distributed system is a complete system formed by two or more subsystems deployed on different servers together with one system formed by a distributed service system architecture. For example: the order system, the warehousing system, the logistics system and the payment system form a complete online sales system.
Further, in an optional embodiment of the present invention, the converting module 101 further includes creating the platform architecture service center. In detail, the conversion module 101 creates the platform infrastructure service center by:
the method comprises the steps of creating a middle platform architecture service framework in a preset system integration development environment, constructing a service configuration file in the middle platform architecture service framework, deploying the middle platform architecture service framework to a server according to the service configuration file, and obtaining a middle platform architecture service center.
The preset system integration development environment may be MyEclipse, the middle platform architecture service framework is created through a springcloud framework, the service configuration file is used for connecting the created middle platform architecture service framework with an external environment, and it is required to state that deployment of the server corresponds to a server for managing distributed system deployment corresponding to the middle platform architecture service center.
In the embodiment of the present invention, the previously created middle desk architecture service center performs document conversion on all system services in the distributed system to generate a service document set, and the conversion module 101 is implemented in the following manner:
step I, acquiring a program operation package of the middle platform architecture service center and system services of each subsystem in the distributed system;
step II, loading the system service into a document conversion process of the program operation package;
and III, performing document conversion on the system service by using the document conversion process to generate a service document set.
The program operation package can be understood as jar package, and is used for a platform architecture service center in the operation of the server.
The system service refers to a corresponding service provided in a corresponding subsystem, such as an order logistics query service, an order type query service, an order price query service, and the like provided by an order system.
The loading of the system service into the document conversion process of the program operation package is performed by the conversion module 101 in the following manner:
acquiring a program code of the system service, establishing a data interaction channel between the program code and the document conversion process by using a queue (linear table), and executing the loading of the system service according to the data interaction channel.
The document conversion is used for carrying out format unification on the service documents of the system service, and the format unification of the service documents output by each subsystem in the distributed system is ensured.
Further, in order to ensure high availability of the service document set, the service document set may also be stored in a blockchain node.
The loading module 102 is configured to identify interface information corresponding to each service document in the service document set, and load the interface information into the corresponding service document to generate a target service document set.
In the embodiment of the present invention, since the service document usually corresponds to corresponding interface information, such as an interface name, a responsible person, development time, and the like of the service document, in the present invention, the loading module 102 generates a target service document set by identifying the interface information corresponding to each service document in the service document set and marking the interface information in the corresponding service document, so as to facilitate integrated management of the service document and avoid a service query error caused by not querying the interface information.
In detail, the loading module 102 identifies interface information corresponding to each service document in the service document set, and executes the following steps:
acquiring an interface environment of the service document, inquiring attribute parameters of the interface environment by using a post () method, and identifying interface information of the service document according to the attribute parameters.
Further, in the embodiment of the present invention, the loading module 102 loads the interface information into a corresponding service document to generate a target service document set, and executes the following steps:
and constructing a first configuration file of the interface information, acquiring a second configuration file of the service document, and transmitting the first configuration file to the second configuration file by using a transmission tool to obtain a target service document set.
In a preferred embodiment of the present invention, the first configuration file of the interface information is constructed by a JavaScript script, and the second configuration file is obtained by a get () method.
The writing module 103 is configured to configure the access right of the target service document set, and write the target service document set after the access right is configured into the distributed search engine.
Since the target service documents included in the target service document set have a certain privacy, in order to ensure the security of the corresponding target service documents, in the embodiment of the present invention, the write module 103 configures access rights for the target service documents, so as to implement the stability of the middle desk architecture service center when viewing the target service documents, and ensure a orderly use of the middle desk system.
Preferably, the configuration of the access right in the embodiment of the present invention sets the access right of the target service document set according to the level of the user role, for example, sets the developer right type to 4, and assigns the basic document rights such as the development requirement description document, the interface query document, and the system operation manual to 4; setting the authority type of a project manager as 3, and assigning higher-security document authority of project quotation documents, project construction period manual distribution and the like as 3; at this time, the developer can only see all the documents with the authority of 4 in the middle platform architecture service center, the document with the authority of 3 is not viewed, and the user with the authority level of 3 can view all the documents with the authorities of 3 and 4.
Further, when the target service document set is queried from the middle platform architecture service center, because the middle platform architecture service center provides the function of service document centralized management, the service documents are not easy to be searched, and the problem that the service documents are easy to lose exists, the embodiment of the invention writes the target service document set after the access authority is configured into the distributed search engine. Preferably, in the embodiment of the present invention, the distributed search engine is an Elasticsearch. The Elasticissearch has a distributed search engine and a data analysis engine and supports the functions of full-text retrieval, structured retrieval, data analysis and near real-time processing of mass data. Wherein the index of the Elasticissearch corresponds to a database of a relational database (mysql, oracle, etc.), the type corresponds to a table of the relational database, and the field corresponds to a field of the table.
In detail, the writing module 103 writes the target service document set configured with the access right into a distributed search engine, and executes the following steps:
creating a document index library in the distributed search engine, setting a corresponding document data table in the document index library according to the document type of the target service document in the target service document set, configuring document fields in the document data table, and writing the target service document in the target service document set by utilizing a fragmentation technology based on the document fields.
In an optional embodiment, the creation of the document index database, the setting of the document data table and the configuration of the document field are implemented by java language.
The query module 104 is configured to receive a service query instruction input by a user at the middle-platform architecture service center, and query interface information in a corresponding target service document from the distributed search engine.
In a preferred embodiment of the present invention, the query module 104 receives a service query instruction (for example, query an order stream in an order subsystem) triggered by a user in a visual interface of the middle-platform architecture service center, and queries interface information in a target service document from the distributed search engine in response to the service query instruction of the middle-platform architecture service center.
The visual interface refers to a front-end page of the middle platform architecture service center, and the function of user interaction is achieved.
And the returning 105 module is used for returning the query error information to the user when the interface information is not queried.
The return 105 module is further configured to return a query result to the user according to the access right of the corresponding target service document when the interface information is queried.
In the embodiment of the present invention, the return 105 module returns the query result to the user according to the access right of the corresponding target service document, and is implemented in the following manner:
and obtaining the access authority corresponding to the target service document and the user level, if the user level is not higher than the access authority of the target service document, returning the information which cannot be checked to the user, and if the user level is higher than the access authority of the target service document, returning the target service document to the user.
The embodiment of the invention firstly carries out document conversion on all system services in the distributed system based on the pre-established middle platform architecture service center to generate a service document set, thereby ensuring that the formats of the service documents are kept uniform when the distributed system carries out service docking inquiry; secondly, the embodiment of the invention loads the interface information and configures the access authority to the service document set, thereby realizing the order of the built middle platform architecture service center when inquiring the service documents; furthermore, the embodiment of the invention writes the target service document set with the configured access authority into a distributed search engine, and queries the corresponding target service document from the distributed search engine in response to the service query instruction of the middle-platform architecture service center to obtain a query result, thereby ensuring that the generated service document is not easy to lose. Therefore, the service inquiry device based on the middle platform framework can improve the efficiency of service inquiry.
Fig. 4 is a schematic structural diagram of an electronic device implementing the service query method based on the middle-level architecture according to the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as a middle desk architecture based service query program 12, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash memory Card (FlashCard), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of a service inquiry based on the middle station architecture, but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a control unit (control unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (for example, executing a service query based on a middle station architecture, and the like) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 4 only shows an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The staging architecture based service query 12 stored by the memory 11 in the electronic device 1 is a combination of instructions that, when executed in the processor 10, enable:
performing document conversion on all system services in the distributed system based on a pre-established middle platform architecture service center to generate a service document set;
identifying interface information corresponding to each service document in the service document set, and loading the interface information into the corresponding service document to generate a target service document set;
configuring the access authority of the target service document set, and writing the target service document set with the access authority into a distributed search engine;
receiving a service query instruction input by a user in the middle platform architecture service center, and querying interface information in a corresponding target service document from the distributed search engine;
if the interface information is not inquired, returning inquiry error information to the user;
and if the interface information is inquired, returning the inquiry result to the user according to the access authority of the corresponding target service document.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a non-volatile computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb-disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-only memory (ROM).
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.