CN111200523B - Method, device, equipment and storage medium for configuring middle platform system - Google Patents
Method, device, equipment and storage medium for configuring middle platform system Download PDFInfo
- Publication number
- CN111200523B CN111200523B CN201911390475.5A CN201911390475A CN111200523B CN 111200523 B CN111200523 B CN 111200523B CN 201911390475 A CN201911390475 A CN 201911390475A CN 111200523 B CN111200523 B CN 111200523B
- Authority
- CN
- China
- Prior art keywords
- client
- target
- data source
- message
- template
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method, a device, equipment and a storage medium for configuring a middle platform system, wherein the method comprises the following steps: registering a data source according to the information of the third-party interface, collecting the return parameters of the client, and registering the return parameters as a client template; associating the data source with the client template to configure a mapping relationship; and receiving the message request sent by the client and sending a return message to the client based on the mapping relation. The invention greatly simplifies the access difficulty of the data source, shortens the access period and reduces the labor cost by configuring the mapping relation in the middle system based on research and development management.
Description
Technical Field
The present invention relates to the field of computer research and development technologies, and in particular, to a method, an apparatus, a device, and a storage medium for configuring a middle platform system.
Background
Currently, a middle station system has become a trend of the development of the internet. More and more pocket platforms are beginning to switch to the midst system and thus require access to more underlying interface services. The current mainstream implementation mode is that the data source accessed by each third party interface needs the stages of scheduling, demand, design, coding implementation, test, implementation and the like, so that the access implementation period of the data source is longer and the labor cost is higher.
Disclosure of Invention
The invention provides a configuration method, a device, equipment and a storage medium of a middle station system, which aim to simplify the access difficulty of a data source, shorten the access period and reduce the labor cost.
In order to achieve the above object, the present invention provides a method for configuring a central system, the method comprising:
registering a data source according to the information of the third-party interface, collecting the return parameters of the client, and registering the return parameters as a client template;
associating the data source with the client template to configure a mapping relationship;
and receiving the message request sent by the client and sending a return message to the client based on the mapping relation.
Preferably, before the step of receiving the message request sent by the client and sending the return message to the client based on the mapping relationship, the method further includes:
and configuring the area information of each area in the application program page, and returning the area information to the client.
Preferably, the step of receiving the request of the client and returning the corresponding message to the client according to the mapping relationship includes:
receiving a request of the client, and acquiring corresponding region information, wherein the region information comprises a target data source and target client templates, the target data source is one or more of the data sources, and the target client templates are one or more of the client templates;
and acquiring an initial message based on the target data source, extracting target fields required by the target client template from the initial message, assembling the target fields into a return message, and sending the return message to the client.
Preferably, the step of extracting the target field required by the target client template from the initial message to be assembled into a return message includes:
extracting point numbers distinguished among different levels of fields in the initial message, and converting each level of fields into a tree according to the point numbers, wherein fields before and after the point numbers are positioned at different levels of the tree;
comparing each path of the tree with the target client template, searching nodes corresponding to the target client template from each path, and forming a value taking path according to the nodes corresponding to the target client template;
and traversing and replacing according to the value path to obtain target fields required by the target client template, and assembling the target fields into a return message.
Preferably, the step of configuring the area information of each area in the application page and returning the area information to the client further includes:
and verifying the configured area information, and outputting production information after verification is successful.
Preferably, the step of registering the data source according to the information of the third party interface includes:
acquiring an interface type of a third party interface;
and if the interface type is one of preset types, registering the interface information of the third-party interface to a central system to generate the data source, wherein the interface information comprises a URL (uniform resource locator ), a request parameter, a value path and a timeout condition.
Preferably, the step of associating the data source with the client template and configuring the data source into a mapping relationship further includes:
and testing the third party interface, and if the third party interface fails the test, reconfiguring the mapping relation and retesting until the test passes.
In addition, the embodiment of the invention also provides a configuration device of the middle platform system, which comprises:
the registration module is used for registering a data source according to the information of the third-party interface, collecting the return parameters of the client, and registering the return parameters as a client template;
the configuration module is used for associating the data source with the client template and configuring the data source and the client template into a mapping relation;
and the return module is used for receiving the message request sent by the client and sending a return message to the client based on the mapping relation.
In addition, the embodiment of the invention also provides a middle-stage system configuration device, which comprises a processor, a memory and a middle-stage system configuration program stored in the memory, wherein the middle-stage system configuration program realizes the steps of the middle-stage system configuration method when being run by the processor.
In addition, the embodiment of the invention also provides a computer storage medium, wherein the computer storage medium is stored with a middle-stage system configuration program, and the middle-stage system configuration program realizes the steps of the middle-stage system configuration method when being run by a processor.
Compared with the prior art, the invention provides a method, a device, equipment and a storage medium for configuring a middle platform system, wherein the method comprises the following steps: registering a data source according to the information of the third-party interface, collecting the return parameters of the client, and registering the return parameters as a client template; associating the data source with the client template to configure a mapping relationship; and receiving the message request sent by the client and sending a return message to the client based on the mapping relation. The invention greatly simplifies the access difficulty of the data source, shortens the access period and reduces the labor cost by configuring the mapping relation in the middle system based on research and development management.
Drawings
Fig. 1 is a schematic hardware structure of a configuration device of a central system according to embodiments of the present invention;
FIG. 2 is a flowchart of a first embodiment of a method for configuring a system of the present invention;
FIG. 3 is a flowchart of a second embodiment of a method for configuring a system of the present invention;
FIG. 4 is a flowchart of a third embodiment of a method for configuring a system of the present invention;
fig. 5 is a schematic diagram of functional modules of a first embodiment of a system configuration device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention mainly relates to a configuration device of a middle platform system, which refers to network connection equipment capable of realizing network connection, and the configuration device of the middle platform system can be a server, a cloud platform and the like. In addition, the mobile terminal related to the embodiment of the invention can be mobile network equipment such as a mobile phone, a tablet personal computer and the like.
Referring to fig. 1, fig. 1 is a schematic hardware configuration diagram of a configuration device of a middle station system according to embodiments of the present invention. In an embodiment of the present invention, the configuration device of the middle platform system may include a processor 1001 (for example, a central processing unit Central Processing Unit, a CPU), a communication bus 1002, an input port 1003, an output port 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communications between these components; the input port 1003 is used for data input; the output port 1004 is used for data output, and the memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may be an optional storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 is not limiting of the invention and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 in fig. 1, which is a readable storage medium, may include an operating system, a network communication module, an application program module, and a midrange system configuration program. In fig. 1, the network communication module is mainly used for connecting with a server and performing data communication with the server; the processor 1001 may call the configuration program of the middle stage system stored in the memory 1005 and execute the configuration method of the middle stage system according to the embodiment of the present invention.
The embodiment of the invention provides a configuration method of a middle station system.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a method for configuring a system in the present invention.
For a system, the foreground refers to the front-end platform of the system, which is the application layer that interacts directly with the end user. The background refers to a back-end platform of the system, and the value of the background is to store and calculate core data. Background services are usually micro-services, mainly meeting high performance and stability. A single background is difficult to meet the requirement of complex business, and a plurality of background services are often required to be combined to completely realize normal functions. The middle platform system is used for connecting the background and the foreground, so that the service multiplexing effect is achieved, common services do not need repeated investment and construction, construction cost and maintenance cost are reduced, service capability iteration can be rapidly carried out, and foreground service change is efficiently supported.
In this embodiment, the method for configuring a middle platform system is applied to a middle platform system configuration device, and the method includes:
step S101, registering a data source according to information of a third party interface, collecting return parameters of a client, and registering the return parameters as a client template;
the data source is a device or original media for providing certain required data, all information for establishing database connection is stored in the data source, just as files can be found in a file system by specifying file names, and corresponding data links can be found by the correct data source. And a plurality of data sources of the third party interfaces can be connected in the middle platform system so as to meet the requirement of a client on a large number of data sources.
In this embodiment, a third party interface is provided in the intermediate system to obtain the data source. The step of registering the data source based on the information of the third party interface comprises:
acquiring an interface type of a third party interface;
typically, interfaces are web services interfaces, dubbo interfaces, rpc (remote procedure call) interfaces, GET, POST, PUT, DELETE, TRACE in http, etc. When an access request of a third party interface is received, firstly, the interface type of the third party interface is obtained.
If the interface type is one of preset types, registering interface information of the third party interface to a central system to generate the data source, wherein the interface information comprises: URL (uniform resource locator ), request parameters, value path, and timeout condition.
In this embodiment, a preset type is set based on the intermediate system, and the intermediate system may also configure an interface according to the preset type. The preset type includes one or more of the interface types, for example, a dubbo interface, a rpc interface, a GET in http, and a POST are set as preset types. And if the interface type is one of preset types, registering the interface information of the third-party interface to a middle system to generate the data source. The interface information in this embodiment includes URL (uniform resourcelocator ), request parameters, value path, and timeout condition. Otherwise, if the interface type is not one of the preset types, no registration is performed.
After the data source is successfully registered, the background system can perform data request according to the URL in the data source and assemble request parameters from parameters of the shop window interface, login state, operation release and region. And then sending the request parameters to the third party interface according to the request parameters. It will be appreciated that in order to guarantee a low response latency for the interface, parallel requests may be set.
In this embodiment, the return parameters of the client need to be collected. The requirements of different clients on the return parameters are different, so that the message returned by the third party interface according to the request parameters can not meet the requirements of different clients, and the middle system needs to be respectively set according to the requirements of the clients. And firstly, collecting the return parameters expected by the client, and registering the return parameters into a client template, wherein the client template designates a message format. Further, the backend system may configure the ID of the client template such that the ID corresponds to the message format. Therefore, the foreground can obtain the message meeting the requirements only by rendering according to the client template, greatly reduces the development workload of the front end and is beneficial to realizing quick response.
Step S102, associating the data source with the client template to configure a mapping relation;
because the fields needed by different client templates are different, the data sources need to be associated with the client templates to realize quick response and facilitate management of the data sources. The mainstream template engines widely used in java (a computer programming language) at present have a free marker and a high speed, but consume a large amount of CPU resources each time a message in a specified format needs to be rendered, the throughput is low, and the non-functional requirement of high performance is difficult to meet.
In this embodiment, the data source is associated with the client template, and configured into a mapping relationship, so as to characterize a field required in the client template, so as to simply and quickly provide a message meeting the requirement for the client.
Step S103, receiving the message request sent by the client, and sending a return message to the client based on the mapping relation.
After the mapping relation is configured successfully, the middle station system can quickly and effectively return corresponding messages after receiving the message sending request of the client. Wherein the return message is set based on the client template.
According to the technical scheme, the data source is registered according to the information of the third-party interface, the return parameters of the client are collected, and the return parameters are registered as the client template; associating the data source with the client template to configure a mapping relationship; the method comprises the steps of receiving a message request sent by a client and sending a return message to the client based on the mapping relation, so that the access difficulty of a data source is greatly simplified, the access period is shortened, and the labor cost is reduced by configuring the mapping relation in a middle system based on research and development management.
As shown in fig. 3, a second embodiment of the present invention provides a method for configuring a central system, based on the first embodiment shown in fig. 2, before the step of receiving a message request sent by the client and sending a return message to the client based on the mapping relationship, the method further includes:
step S1031, configuring area information of each area in the application page, and returning the area information to the client.
Generally, a page of an application program includes a plurality of regions, and information displayed in different regions is also different, so that in order to accommodate each region in the application program page, region information of each region in the application program page needs to be configured. The region information includes a target data source and a target client template, the target data source being one or more of the data sources, the target client template being one or more of the client templates. For example, if there are five areas displaying different contents in a certain page, the respective data sources and client templates of the five areas are set respectively, so that after receiving a message acquisition instruction sent by a user, a corresponding message can be returned quickly.
Further, the step of receiving the request of the client and returning the corresponding message to the client according to the mapping relationship includes:
step a, receiving a request of the client, and acquiring corresponding region information, wherein the region information comprises a target data source and target client templates, the target data source is one or more of the data sources, and the target client templates are one or more of the client templates;
in this embodiment, after receiving the request of the client, the corresponding area information is acquired, where the area information includes a preconfigured data source and a client template, the acquired corresponding data source is marked as a target client source, and the acquired corresponding client template is marked as a target client template. It is to be appreciated that the target data sources are one or more of the data sources and the target client templates are one or more of the client templates.
And b, acquiring an initial message based on the target data source, extracting target fields required by the target client template from the initial message, assembling the target fields into a return message, and sending the return message to the client.
After the middle station system acquires the target data source, the data request is carried out according to the target data source, and an initial message is acquired. And after the initial message is acquired, extracting target fields required by the target client template from the initial message, and assembling the target fields into a return message.
Further, the step of extracting the target field required by the target client template from the initial message to assemble a return message includes:
extracting point numbers distinguished among different levels of fields in the initial message, and converting each level of fields into a tree according to the point numbers, wherein fields before and after the point numbers are positioned at different levels of the tree;
in this embodiment, all fields and the value paths of each field in the return packet are preconfigured, for example, the value paths are set to point division. In particular, the fields of different levels are distinguished by a dot number, according to which each field of different levels is converted into a tree, and it is understood that the fields before and after the dot number are divided into different levels of the tree. For example, for an initial message showingflowlist [3], mainTitle, a point number ".", then the fields showingflowlist [3] and mainTitle before and after the point number are extracted, and the two fields are divided into different levels of the tree. The field before the first point number may be used as the root node of the tree, e.g., shopWindowlist [3] as the root node, mainTitle as the leaf node of the next level.
Comparing each path of the tree with the target client template, searching nodes corresponding to the target client template from each path, and forming a value taking path according to the nodes corresponding to the target client template;
in this embodiment, whether next node content to be assembled exists after the node corresponding to the level field is judged according to a depth-first search algorithm, and if the next node content exists, the assembly is continued; if the next node content does not exist, the fact that the content is searched is indicated, and the search path is used as a value path of the field.
And traversing and replacing according to the value path to obtain target fields required by the target client template, and assembling the target fields into a return message.
Therefore, the return message required by the client can be obtained according to the client template.
Further, the step of configuring the area information in the application page and returning the area information to the client further includes:
and verifying the configured area information, and outputting production information after verification is successful.
In practical applications, it is necessary to verify the configured area information. The test is carried out by abutting against the client, and if the message corresponding to the target client template can be displayed in the area of the application program page, the verification is successful; otherwise, if the message corresponding to the target client template cannot be displayed in the area of the application page, the verification failure is indicated, and detection correction needs to be performed on the configured area information, and verification is repeated until the verification is successful.
After verification is successful, the production information can be output.
According to the technical scheme, the method and the device for obtaining the regional information comprise the steps of receiving a request of a client and obtaining the corresponding regional information, wherein the regional information comprises a target data source and a target client template; and acquiring an initial message based on the target data source, extracting target fields required by the target client template from the initial message, assembling the initial message into a return message, and sending the return message to the client, so that the access difficulty of the data source is greatly simplified, the access period is shortened, and the labor cost is reduced by configuring the mapping relation in a middle system based on research and development management.
As shown in fig. 4, a third embodiment of the present invention provides a method for configuring a middle platform system, based on the first and second embodiments, where the step of associating the data source with the client template and configuring the data source into a mapping relationship further includes:
and S1021, testing the third party interface, and if the third party interface fails the test, reconfiguring the mapping relation and retesting until the test passes.
In order to ensure the correctness and stability of the third party interface, the third party interface needs to be tested after configuration is completed. In general, testing requires that a simulation client send a request message to a server, and the server receives and parses the request message, then makes a corresponding response, and sends a return message to the client.
In this embodiment, a connection is established between a client and a server through the third party interface, a test request message is sent after the connection is established, a test response message is returned after the server receives the test request message, the response message is compared with an expected message after the test response message is received, and if the response message is consistent with the expected message, the third party interface is judged to pass the test. And setting the expected message according to the client template in the mapping relation. If the response message is inconsistent with the expected message or the response message is not received, the third party interface is judged to pass the test, and the mapping relation is required to be corrected and then the test is carried out again until the test is passed. After the test is passed, the steps are executed: and receiving the message request sent by the client and sending a return message to the client based on the mapping relation.
It can be appreciated that step S1021 may be at the step of: the configuration of the area information of each area in the application page and the return of the area information to the client may be performed before or after the step, which can achieve the same effect, and will not be described herein.
According to the technical scheme, the third party interface is tested, and if the third party interface does not pass the test, the mapping relation is reconfigured and retested until the test passes. The access difficulty of the data source is greatly simplified, the access period is shortened, and the labor cost is reduced.
In addition, the embodiment also provides a configuration device of the middle station system. Referring to fig. 5, fig. 5 is a schematic functional block diagram of a first embodiment of a system configuration device according to the present invention.
The configuration device of the middle-stage system provided by the invention is a virtual device, which is stored in the memory 1005 of the configuration device of the middle-stage system shown in fig. 1, so as to realize all functions of the configuration program of the middle-stage system: the system comprises a data source, a client and a client template, wherein the data source is used for registering according to information of a third-party interface, collecting return parameters of the client, and registering the return parameters as the client template; the data source is used for associating the data source with the client template and is configured into a mapping relation; and the method is used for receiving the message request sent by the client and sending a return message to the client based on the mapping relation.
Specifically, the middle station system matching device in this embodiment includes:
the registration module 10 is used for registering a data source according to the information of the third party interface, collecting the return parameters of the client, and registering the return parameters as a client template;
a configuration module 20, configured to associate the data source with the client template, and configure the data source and the client template into a mapping relationship;
and the return module 30 is configured to receive the message request sent by the client, and send a return message to the client based on the mapping relationship.
Further, the configuration module is further configured to:
and configuring the area information of each area in the application program page, and returning the area information to the client.
Further, the configuration module is further configured to:
receiving a request of the client, and acquiring corresponding region information, wherein the region information comprises a target data source and target client templates, the target data source is one or more of the data sources, and the target client templates are one or more of the client templates;
and acquiring an initial message based on the target data source, extracting target fields required by the target client template from the initial message, assembling the target fields into a return message, and sending the return message to the client.
Further, the return module is further configured to:
extracting point numbers distinguished among different levels of fields in the initial message, and converting each level of fields into a tree according to the point numbers, wherein fields before and after the point numbers are positioned at different levels of the tree;
comparing each path of the tree with the target client template, searching nodes corresponding to the target client template from each path, and forming a value taking path according to the nodes corresponding to the target client template;
and traversing and replacing according to the value path to obtain target fields required by the target client template, and assembling the target fields into a return message.
Further, the return module is further configured to:
and verifying the configured area information, and outputting production information after verification is successful.
Further, the registration module is further configured to:
acquiring an interface type of a third party interface;
and if the interface type is one of preset types, registering the interface information of the third-party interface to a central system to generate the data source, wherein the interface information comprises a URL (uniform resource locator ), a request parameter, a value path and a timeout condition.
Further, the mapping module is further configured to:
and testing the third party interface, and if the third party interface fails the test, reconfiguring the mapping relation and retesting until the test passes.
In addition, the embodiment of the invention also provides a configuration device of the middle-stage system, which comprises a processor, a memory and a configuration program of the middle-stage system stored in the memory, wherein when the configuration program of the middle-stage system is run by the processor, the steps of the configuration method of the middle-stage system are realized, and are not repeated here.
Compared with the prior art, the method, the device, the equipment and the storage medium for configuring the middle platform system provided by the invention comprise the following steps: registering a data source according to the information of the third-party interface, collecting the return parameters of the client, and registering the return parameters as a client template; associating the data source with the client template to configure a mapping relationship; and receiving the message request sent by the client and sending a return message to the client based on the mapping relation. The invention greatly simplifies the access difficulty of the data source, shortens the access period and reduces the labor cost by configuring the mapping relation in the middle system based on research and development management.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a terminal device to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or modifications in the structures or processes described in the specification and drawings, or the direct or indirect application of the present invention to other related technical fields, are included in the scope of the present invention.
Claims (8)
1. A method for configuring a midst system, the method comprising:
registering a data source according to the information of the third-party interface, collecting the return parameters of the client, and registering the return parameters as a client template;
associating the data source with the client template to configure a mapping relationship;
receiving a message request sent by the client, and sending a return message to the client based on the mapping relation;
the step of receiving the message request sent by the client and sending a return message to the client based on the mapping relation comprises the following steps:
receiving a request of the client, and acquiring corresponding region information, wherein the region information comprises a target data source and target client templates, the target data source is one or more of the data sources, and the target client templates are one or more of the client templates;
acquiring an initial message based on the target data source, extracting point numbers distinguishing between different levels of fields in the initial message, and converting each level of fields into a tree according to the point numbers, wherein the fields before and after the point numbers are positioned at different levels of the tree;
comparing each path of the tree with the target client template, searching nodes corresponding to the target client template from each path, and forming a value taking path according to the nodes corresponding to the target client template;
and traversing and replacing according to the value path to obtain target fields required by the target client template, assembling the target fields into a return message, and sending the return message to the client.
2. The method of claim 1, wherein the step of receiving the message request sent by the client and sending a return message to the client based on the mapping relationship further comprises, prior to:
and configuring the area information of each area in the application program page, and returning the area information to the client.
3. The method of claim 2, wherein the step of configuring the area information of each area in the application page and returning the area information to the client further comprises:
and verifying the configured area information, and outputting production information after verification is successful.
4. The method of claim 1, wherein the step of registering the data source based on the information of the third party interface comprises:
acquiring an interface type of a third party interface;
and if the interface type is one of preset types, registering the interface information of the third-party interface to a central system to generate the data source, wherein the interface information comprises a URL (uniform resource locator ), a request parameter, a value path and a timeout condition.
5. The method of claim 1, wherein the step of associating the data source with the client template to be configured as a mapping relationship further comprises, after:
and testing the third party interface, and if the third party interface fails the test, reconfiguring the mapping relation and retesting until the test passes.
6. A center system configuration apparatus, characterized in that the center system configuration apparatus includes:
the registration module is used for registering a data source according to the information of the third-party interface, collecting the return parameters of the client, and registering the return parameters as a client template;
the configuration module is used for associating the data source with the client template and configuring the data source and the client template into a mapping relation;
the return module is used for receiving the message request sent by the client and sending a return message to the client based on the mapping relation;
the return module is further configured to receive a request of the client, and obtain corresponding area information, where the area information includes a target data source and a target client template, the target data source is one or more of the data sources, and the target client template is one or more of the client templates;
acquiring an initial message based on the target data source, extracting point numbers distinguishing between different levels of fields in the initial message, and converting each level of fields into a tree according to the point numbers, wherein the fields before and after the point numbers are positioned at different levels of the tree;
comparing each path of the tree with the target client template, searching nodes corresponding to the target client template from each path, and forming a value taking path according to the nodes corresponding to the target client template;
and traversing and replacing according to the value path to obtain target fields required by the target client template, assembling the target fields into a return message, and sending the return message to the client.
7. A mid-plane system configuration device, characterized in that it comprises a processor, a memory and a mid-plane system configuration program stored in the memory, which, when being executed by the processor, implements the steps of the mid-plane system configuration method according to any one of claims 1-5.
8. A computer storage medium, wherein a middle stage system configuration program is stored on the computer storage medium, and when the middle stage system configuration program is executed by a processor, the steps of the middle stage system configuration method according to any one of claims 1-5 are implemented.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911390475.5A CN111200523B (en) | 2019-12-27 | 2019-12-27 | Method, device, equipment and storage medium for configuring middle platform system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911390475.5A CN111200523B (en) | 2019-12-27 | 2019-12-27 | Method, device, equipment and storage medium for configuring middle platform system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111200523A CN111200523A (en) | 2020-05-26 |
CN111200523B true CN111200523B (en) | 2023-08-22 |
Family
ID=70746950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911390475.5A Active CN111200523B (en) | 2019-12-27 | 2019-12-27 | Method, device, equipment and storage medium for configuring middle platform system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111200523B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112769975B (en) * | 2020-12-31 | 2022-06-24 | 武汉联影医疗科技有限公司 | Data integration method and device, server and storage medium |
CN113326316A (en) * | 2021-04-14 | 2021-08-31 | 深圳新贝奥数字科技有限公司 | Rapid data synchronization method for heterogeneous system |
CN113312045B (en) * | 2021-06-10 | 2024-04-16 | 车智互联(北京)科技有限公司 | Data processing method, system and computing device |
CN114300153A (en) * | 2021-12-30 | 2022-04-08 | 浙江太美医疗科技股份有限公司 | Medical data transmission method, device, computer equipment and storage medium |
CN114567621B (en) * | 2022-04-29 | 2022-07-12 | 成都瑞华康源科技有限公司 | Client-side adaptive response content control system, method and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651656A (en) * | 2008-08-12 | 2010-02-17 | 新奥特(北京)视频技术有限公司 | Method and system for message conversion in system integration of global station network of television station |
CN102571550A (en) * | 2010-12-30 | 2012-07-11 | 北京亿阳信通软件研究院有限公司 | General information interaction platform and method |
CN104601522A (en) * | 2013-10-30 | 2015-05-06 | 中国移动通信集团北京有限公司 | Method, device and system for realizing interaction between mobile client and service system |
CN108965203A (en) * | 2017-05-18 | 2018-12-07 | 腾讯科技(深圳)有限公司 | A kind of resource access method and server |
-
2019
- 2019-12-27 CN CN201911390475.5A patent/CN111200523B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651656A (en) * | 2008-08-12 | 2010-02-17 | 新奥特(北京)视频技术有限公司 | Method and system for message conversion in system integration of global station network of television station |
CN102571550A (en) * | 2010-12-30 | 2012-07-11 | 北京亿阳信通软件研究院有限公司 | General information interaction platform and method |
CN104601522A (en) * | 2013-10-30 | 2015-05-06 | 中国移动通信集团北京有限公司 | Method, device and system for realizing interaction between mobile client and service system |
CN108965203A (en) * | 2017-05-18 | 2018-12-07 | 腾讯科技(深圳)有限公司 | A kind of resource access method and server |
Also Published As
Publication number | Publication date |
---|---|
CN111200523A (en) | 2020-05-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111200523B (en) | Method, device, equipment and storage medium for configuring middle platform system | |
US9639444B2 (en) | Architecture for end-to-end testing of long-running, multi-stage asynchronous data processing services | |
US10582550B2 (en) | Generating sequenced instructions for connecting through captive portals | |
CN111683066B (en) | Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium | |
CN105302885B (en) | full-text data extraction method and device | |
CN111241182A (en) | Data processing method and apparatus, storage medium, and electronic apparatus | |
CN110798445B (en) | Public gateway interface testing method and device, computer equipment and storage medium | |
CN110602056A (en) | Service parameter transmission method and device | |
US20220035661A1 (en) | Task generation | |
CN113806037A (en) | Service calling method and device, storage medium and electronic equipment | |
CN112231230A (en) | Test case management method and device, electronic equipment and storage medium | |
CN109600381B (en) | Interface adaptation method, device and system | |
CN116974948B (en) | Service system testing method, system, equipment and medium | |
CN111930625B (en) | Log acquisition method, device and system based on cloud service platform | |
CN115202800A (en) | Edge cloud service data processing method and device, computer equipment and storage medium | |
CN114915566A (en) | Application identification method, device, equipment and computer readable storage medium | |
CN109672732B (en) | Interface adaptation method, device and system | |
CN112235124A (en) | Method and device for configuring pico-cell, storage medium and electronic device | |
KR20210000041A (en) | Method and apparatus for analyzing log data in real time | |
CN108737350B (en) | Information processing method and client | |
CN114610732A (en) | Bottom-pocketing data processing method and device | |
US20220035638A1 (en) | Task execution | |
CN112597531A (en) | Data product management method and device | |
CN114371884A (en) | Method, device, equipment and storage medium for processing Flink calculation task | |
KR101584661B1 (en) | RTE-based big data analysis system and method |
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 | ||
GR01 | Patent grant |