CN112328656A - Service query method, device, equipment and storage medium based on middle platform architecture - Google Patents

Service query method, device, equipment and storage medium based on middle platform architecture Download PDF

Info

Publication number
CN112328656A
CN112328656A CN202011205626.8A CN202011205626A CN112328656A CN 112328656 A CN112328656 A CN 112328656A CN 202011205626 A CN202011205626 A CN 202011205626A CN 112328656 A CN112328656 A CN 112328656A
Authority
CN
China
Prior art keywords
service
document
architecture
interface information
service document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011205626.8A
Other languages
Chinese (zh)
Other versions
CN112328656B (en
Inventor
邓策超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202011205626.8A priority Critical patent/CN112328656B/en
Publication of CN112328656A publication Critical patent/CN112328656A/en
Application granted granted Critical
Publication of CN112328656B publication Critical patent/CN112328656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a data processing technology, and discloses a service query method based on a middle platform architecture, which comprises the following steps: performing document conversion on all system services in the distributed system based on a pre-created middle platform architecture service center to generate a service document set; loading interface information corresponding to each service document in the service document set into the corresponding service document to generate a target service document set; writing the target service document set with the configured access authority into a distributed search engine; receiving a service query instruction input by a user in the Chinese platform architecture service center, and querying interface information in a corresponding target service document from a 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 target service document. Furthermore, the invention relates to blockchain techniques, in which the set of service profiles can be stored. The invention can improve the service query efficiency.

Description

Service query method, device, equipment and storage medium based on middle platform architecture
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for service query based on a middle platform architecture.
Background
With the increasing popularity of distributed service architecture across large enterprises, a middle platform architecture based on this architecture, coupled with the idea of "middle platform," has been a necessary trend to provide fast service capabilities. When the distributed services need to be connected with each other to inquire the service, because the distributed services are relatively independent, the traditional 'middle desk' thought architecture generally adopts a mode that a corresponding service system provides an interface document, and realizes corresponding service inquiry according to the provided interface document. The method has the problems that the formats of the service documents are not uniform and the service documents are easy to lose, so that the service query efficiency among the distributed services is influenced, and certain time and labor cost are brought.
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 content of the first and second substances,
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.
Drawings
Fig. 1 is a schematic flowchart of a service query method based on a middle-level architecture according to an embodiment of the present invention;
fig. 2 is a detailed flowchart illustrating a step of the method for querying a service based on a middle-office architecture of fig. 1 according to a first embodiment of the present invention;
fig. 3 is a block diagram of a service query apparatus based on a middle desk architecture according to an embodiment of the present invention;
fig. 4 is a schematic internal structural diagram of an electronic device implementing a service query method based on a middlebox architecture according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
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.

Claims (10)

1. A service query method based on a middle platform architecture is characterized by comprising the following steps:
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.
2. The method for querying services based on a middle desk architecture of claim 1, wherein before the document transformation of all system services in a distributed system based on the pre-created middle desk architecture service center to generate a service document set, the method further comprises:
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.
3. The method for querying services based on a middle desk architecture of claim 1, wherein the generating the service document set by performing document transformation on all system services in the distributed system based on the pre-created middle desk architecture service center comprises:
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.
4. The method for querying services based on the middle desk architecture according to claim 3, wherein the loading the system services into the document conversion process of the program operation package comprises:
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.
5. The method for querying services based on the middlebox architecture of claim 1, wherein the identifying interface information corresponding to each service document in the service document set comprises:
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.
6. The method for querying services based on the middle desk architecture according to claim 1, wherein the loading the interface information into the corresponding service document and generating the target service document set comprises:
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.
7. The method for querying services based on the middlebox architecture as claimed in any one of claims 1 to 6, wherein the writing the set of target service documents configured with the access rights into a distributed search engine comprises:
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.
8. A device for querying services based on a middle desk architecture, the device comprising:
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;
and the return module is used for returning the query error information to the user when the interface information is not queried, or returning a query result to the user according to the access right of the corresponding target service document when the interface information is queried.
9. An electronic device, characterized in that the electronic device comprises:
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 content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for service query based on the middle station architecture according to any one of claims 1 to 7.
CN202011205626.8A 2020-11-02 2020-11-02 Service query method, device, equipment and storage medium based on middle platform architecture Active CN112328656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011205626.8A CN112328656B (en) 2020-11-02 2020-11-02 Service query method, device, equipment and storage medium based on middle platform architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011205626.8A CN112328656B (en) 2020-11-02 2020-11-02 Service query method, device, equipment and storage medium based on middle platform architecture

Publications (2)

Publication Number Publication Date
CN112328656A true CN112328656A (en) 2021-02-05
CN112328656B CN112328656B (en) 2024-06-25

Family

ID=74324490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011205626.8A Active CN112328656B (en) 2020-11-02 2020-11-02 Service query method, device, equipment and storage medium based on middle platform architecture

Country Status (1)

Country Link
CN (1) CN112328656B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114036031A (en) * 2022-01-05 2022-02-11 阿里云计算有限公司 Scheduling system and method for resource service application in enterprise digital middleboxes

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463602A (en) * 2017-06-15 2017-12-12 努比亚技术有限公司 A kind of log processing method and server, client
CN109445841A (en) * 2018-11-08 2019-03-08 深圳乐信软件技术有限公司 Interface document management method, device, server and storage medium
US20190340193A1 (en) * 2018-05-07 2019-11-07 Apple Inc. Lyric search service
CN111045656A (en) * 2020-03-12 2020-04-21 大汉软件股份有限公司 Method and system for constructing platform system infrastructure in government affair service
CN111464513A (en) * 2020-03-19 2020-07-28 北京邮电大学 Data detection method, device, server and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463602A (en) * 2017-06-15 2017-12-12 努比亚技术有限公司 A kind of log processing method and server, client
US20190340193A1 (en) * 2018-05-07 2019-11-07 Apple Inc. Lyric search service
CN109445841A (en) * 2018-11-08 2019-03-08 深圳乐信软件技术有限公司 Interface document management method, device, server and storage medium
CN111045656A (en) * 2020-03-12 2020-04-21 大汉软件股份有限公司 Method and system for constructing platform system infrastructure in government affair service
CN111464513A (en) * 2020-03-19 2020-07-28 北京邮电大学 Data detection method, device, server and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
楼凤丹;裴旭斌;王志强;纪德良;: "基于云计算及大数据技术的电力搜索引擎技术研究", 电网与清洁能源, no. 12, 25 December 2016 (2016-12-25) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114036031A (en) * 2022-01-05 2022-02-11 阿里云计算有限公司 Scheduling system and method for resource service application in enterprise digital middleboxes
CN114036031B (en) * 2022-01-05 2022-06-24 阿里云计算有限公司 Scheduling system and method for resource service application in enterprise digital middleboxes

Also Published As

Publication number Publication date
CN112328656B (en) 2024-06-25

Similar Documents

Publication Publication Date Title
CN112948427B (en) Data query method, device, equipment and storage medium
CN112418798A (en) Information auditing method and device, electronic equipment and storage medium
CN112417503A (en) Method and device for authorizing post authority, electronic equipment and storage medium
CN111651453A (en) User historical behavior query method and device, electronic equipment and storage medium
CN113946690A (en) Potential customer mining method and device, electronic equipment and storage medium
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN112580079A (en) Authority configuration method and device, electronic equipment and readable storage medium
CN114979120A (en) Data uploading method, device, equipment and storage medium
CN112256783A (en) Data export method and device, electronic equipment and storage medium
CN114880368A (en) Data query method and device, electronic equipment and readable storage medium
CN115129753A (en) Data blood relationship analysis method and device, electronic equipment and storage medium
CN114491646A (en) Data desensitization method and device, electronic equipment and storage medium
CN113434542A (en) Data relation identification method and device, electronic equipment and storage medium
CN113468175A (en) Data compression method and device, electronic equipment and storage medium
CN112328656B (en) Service query method, device, equipment and storage medium based on middle platform architecture
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN115102770A (en) Resource access method, device and equipment based on user permission and storage medium
CN115114297A (en) Data lightweight storage and search method and device, electronic equipment and storage medium
CN114840388A (en) Data monitoring method and device, electronic equipment and storage medium
CN113609428A (en) Method, device, equipment and medium for online checking prototype design file based on Git
CN114611477A (en) Design recommendation method and device for data table, electronic equipment and medium
CN114116673A (en) Data migration method based on artificial intelligence and related equipment
CN114003661A (en) Offline data entry method and device, electronic equipment and storage medium
CN113918305A (en) Node scheduling method and device, electronic equipment and readable storage medium
CN113407657A (en) Data query method, device, equipment and storage medium based on single-level database

Legal Events

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