CN113687965B - Data interaction method, device, equipment and storage medium - Google Patents

Data interaction method, device, equipment and storage medium Download PDF

Info

Publication number
CN113687965B
CN113687965B CN202111237334.7A CN202111237334A CN113687965B CN 113687965 B CN113687965 B CN 113687965B CN 202111237334 A CN202111237334 A CN 202111237334A CN 113687965 B CN113687965 B CN 113687965B
Authority
CN
China
Prior art keywords
data
data interaction
returning
target
return
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
Application number
CN202111237334.7A
Other languages
Chinese (zh)
Other versions
CN113687965A (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.)
Shenzhen Gongyifu Electronic Technology Co ltd
Original Assignee
Shenzhen Gongyifu Electronic Technology Co 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 Shenzhen Gongyifu Electronic Technology Co ltd filed Critical Shenzhen Gongyifu Electronic Technology Co ltd
Priority to CN202111237334.7A priority Critical patent/CN113687965B/en
Publication of CN113687965A publication Critical patent/CN113687965A/en
Application granted granted Critical
Publication of CN113687965B publication Critical patent/CN113687965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The invention belongs to the field of computers, and discloses a data interaction method, a data interaction device, data interaction equipment and a storage medium. The method comprises the following steps: acquiring joint debugging information in an interface document corresponding to a channel party, and judging whether a specified returning body exists in the joint debugging information or not; when no designated return body exists, acquiring data demand characteristics corresponding to joint debugging information; searching a corresponding target return body from a preset return body library according to the data demand characteristics; and performing data interaction with the channel side according to the target returning body. According to the invention, when no designated return body exists, the data requirement characteristics corresponding to the joint debugging information are obtained; searching a corresponding target return body from a preset return body library according to the data demand characteristics; and performing data interaction with the channel side according to the target returning body. Compared with the existing mode that developers need to communicate the data transmission format or the return body in advance during data interaction, the mode of the invention can improve the development efficiency and reduce the joint debugging cost during data interaction.

Description

Data interaction method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data interaction method, apparatus, device, and storage medium.
Background
With the development of the internet, the connection between different organizations is more and more intimate, and the communication between internet companies is available, under the large background of the network, the connection between internet companies is frequent and intensive, but at present, a unified return is not used for unifying the return specifications of the existing internet companies. The different return bodies in different departments in an enterprise always need to communicate documents in advance, information is extracted according to the return bodies of the other parties at any time, the establishment of development standards is not facilitated, the development efficiency is reduced, and because different mechanisms have respective standards, the differences can be embodied only when joint debugging is performed, and the standards can be continuously updated along with the time, and the structures of the return bodies can be frequently replaced in the development process of the system, so that the development cost of the enterprise is increased.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a data interaction method, a data interaction device, data interaction equipment and a data interaction storage medium, and aims to solve the technical problems of high data interaction cost and low development efficiency caused by the fact that developers need to communicate data transmission formats or a return body in advance during data interaction in the prior art.
In order to achieve the above object, the present invention provides a data interaction method, which comprises the following steps:
acquiring joint debugging information in an interface document corresponding to a channel party, and judging whether a specified returning body exists in the joint debugging information or not;
when the designated returning body does not exist, acquiring data requirement characteristics corresponding to the joint debugging information;
searching a corresponding target return body from a preset return body library according to the data demand characteristics;
and performing data interaction with the channel side according to the target returning body.
Optionally, after the step of searching for the corresponding target return volume from the preset return volume library according to the data requirement characteristic, the method further includes:
when the target return body is not found, generating a return body assistance request according to the data demand characteristics;
and sending the returned body assistance request to corresponding assisting personnel so that the assisting personnel enter a target returned body according to the returned body assistance request.
Optionally, after the step of obtaining the joint debugging information in the interface document corresponding to the channel party and determining whether the specified returning body exists in the joint debugging information, the method further includes:
when a designated returning body exists in the joint debugging information, determining target data information required by the channel side according to the interface document and the designated returning body;
determining a target parameter value according to the target data information, and filling the designated return body according to the target parameter value;
and sending the filled designated returning body to the channel side to complete data interaction with the channel side.
Optionally, the step of searching for the corresponding target return volume from a preset return volume library according to the data requirement characteristics includes:
determining the number of parameters, the name of the parameters and the number of data nesting layers according to the data demand characteristics;
selecting a test return body from the preset return body library according to the number of the parameters, the name of the parameters and the number of the data nesting layers;
performing data interaction test with the channel side according to the test return body, and receiving a test result fed back by the channel side;
judging whether the data interaction is successfully completed or not according to the test result;
and when the data interaction is successfully completed, taking the test returning body as the target returning body.
Optionally, after the step of determining the target data information required by the channel party according to the interface document and the specified returnable body when the specified returnable body exists in the joint debugging information, the method further includes:
generating return body information according to the designated return body and the interface document;
and updating a preset return body library according to the return body information.
Optionally, after the step of performing data interaction with the channel side according to the target returning body, the method further includes:
acquiring interactive data sent by the channel party;
acquiring an internal returning body, and filling the internal returning body according to the interactive data;
and receiving a data request sent by a third party, generating a demand return body according to the filled internal return body and the data request, and sending the demand return body to the third party.
Optionally, after the step of performing data interaction with the channel side according to the target returning body, the method further includes:
receiving a return body acquisition request of the channel side;
searching a corresponding returning body from the preset returning body library according to the returning body acquisition request;
and sending the corresponding return body to the channel side.
In addition, to achieve the above object, the present invention further provides a data interaction apparatus, including:
the judging module is used for acquiring the joint debugging information in the interface document corresponding to the channel party and judging whether a specified returning body exists in the joint debugging information or not;
the acquisition module is used for acquiring the data demand characteristics corresponding to the joint debugging information when the specified returning body does not exist;
the searching module is used for searching a corresponding target return body from a preset return body library according to the data demand characteristics;
and the data interaction module is used for performing data interaction with the channel side according to the target returning body.
In addition, to achieve the above object, the present invention further provides a data interaction device, including: a memory, a processor and a data interaction program stored on the memory and executable on the processor, the data interaction program being configured to implement the steps of the data interaction method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium, which stores a data interaction program, and the data interaction program, when executed by a processor, implements the steps of the data interaction method as described above.
The method comprises the steps of obtaining joint debugging information in an interface document corresponding to a channel side, and judging whether a specified returning body exists in the joint debugging information or not; when the designated returning body does not exist, acquiring data requirement characteristics corresponding to the joint debugging information; searching a corresponding target return body from a preset return body library according to the data demand characteristics; and performing data interaction with the channel side according to the target returning body. According to the invention, when no designated return body exists, the data requirement characteristics corresponding to the joint debugging information are obtained; searching a corresponding target return body from a preset return body library according to the data demand characteristics; and performing data interaction with the channel side according to the target returning body. Compared with the existing mode that developers need to communicate the data transmission format or the return body in advance during data interaction, the mode of the invention can improve the development efficiency and reduce the joint debugging cost during data interaction.
Drawings
FIG. 1 is a schematic structural diagram of a data interaction device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a data interaction method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a data interaction method according to a second embodiment of the present invention;
FIG. 4 is a block diagram of a data interaction device according to a first 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.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a data interaction device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the data interaction device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the architecture shown in FIG. 1 does not constitute a limitation of data interaction devices, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a data interactive program.
In the data interaction device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the data interaction device of the present invention may be disposed in the data interaction device, and the data interaction device calls the data interaction program stored in the memory 1005 through the processor 1001 and executes the data interaction method provided by the embodiment of the present invention.
Based on the data interaction device, an embodiment of the present invention provides a data interaction method, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the data interaction method of the present invention.
In this embodiment, the data interaction method includes the following steps:
step S10: acquiring joint debugging information in an interface document corresponding to a channel party, and judging whether a specified returning body exists in the joint debugging information.
It should be noted that the execution subject of the embodiment may be a computing service device with data processing, network communication and program running functions, such as a mobile phone, a tablet computer, a personal computer, etc., or an electronic device or a data interaction system capable of implementing the above functions. The present embodiment and the following embodiments will be described below by taking the data interactive system as an example.
It should be noted that the channel side may be an application or a system that needs to perform data interaction with the data interaction system in this embodiment. The joint debugging information may include information such as data information that the channel side needs to obtain from the data interaction system and a specified returning body, for example, the joint debugging information includes a parameter name, a parameter number, a nesting layer number, a specified returning body, and the like that the channel side needs to obtain, where the specified returning body may be similar to { resp: XXX; msg: XXX; data { XXX } } and the like.
In specific implementation, when the data interaction system performs data interaction with the channel party, the joint debugging information in the interface document corresponding to the channel party is acquired, and whether a specified retuning body exists in the joint debugging information is judged.
Further, in order to improve the efficiency of data interaction, after the step S10, the method further includes: when a designated returning body exists in the joint debugging information, determining target data information required by the channel side according to the interface document and the designated returning body; determining a target parameter value according to the target data information, and filling the designated return body according to the target parameter value; and sending the filled designated returning body to the channel side to complete data interaction with the channel side.
It should be noted that the target data information may be data information that the channel side needs to acquire, because the return body generally includes only information such as a parameter name and the like, and may not include specific information corresponding to the parameter name, it is necessary to acquire a specific meaning of each parameter in the return body according to the interface document, for example, the parameter name in the return body is name, but in the data interaction process, it is not clear whether an english name or a chinese name or an abbreviated name corresponding to the name is known, and therefore, it is necessary to accurately determine a specific direction of the parameter name in the return body in combination with the interface document. The target parameter value may be a parameter value corresponding to a parameter in a return body specified by the distributor. Determining the target parameter value according to the target data information may be obtaining the target parameter value from a database of the data interaction system according to the target data information.
Further, in order to improve the efficiency of data interaction, after the step of determining the target data information required by the channel side according to the interface document and the specified returnable body when the specified returnable body exists in the joint debugging information, the method further includes: generating return body information according to the designated return body and the interface document; and updating a preset return body library according to the return body information.
It should be noted that the information of the returned body may include the specified returned body and description information corresponding to the specified returned body, and the description information may be a description of each parameter in the returned body and may be obtained according to the interface document. And storing the return body information into the preset return body library, and directly selecting a corresponding return body according to the preset return body library when data interaction is performed next time, so that the efficiency of data interaction is improved. The communication cost can be reduced when the data interaction system is convenient to perform data interaction with other systems. The return information of other channel parties or external mechanisms can be collected and incorporated into the data interaction system, and the communication cost can be reduced when the data interaction system cooperates with other channel parties or external mechanisms in the future.
Step S20: and when the specified returning body does not exist, acquiring the data requirement characteristics corresponding to the joint debugging information.
It should be noted that the data requirement characteristic may be a characteristic of the data required by the channel provider, and may include the number of parameters, name of parameters, number of nested layers, and the like of the data required by the channel provider, for example, the data required by the channel provider is table data, and the table has 4 columns, which respectively correspond to: ID. Name, quantity and detailed information. The detailed information of the 4 th list table data corresponds to a plurality of subdata, the data demand characteristics of the channel side can be that the number of parameters is 4, the number of nested layers is 2, and the detailed information can be { ID: XXX; name is XXX; quality: XXX; details { one: XXX; two (two): XXX; ...}}
Step S30: and searching a corresponding target return body from a preset return body library according to the data demand characteristics.
It should be noted that the preset returnable body library may be a collection containing a plurality of types of returnable bodies maintained in advance. The searching for the corresponding target returning body from the preset returning body library according to the data demand characteristics may be searching for the corresponding target returning body from the preset returning body library according to the characteristics of the number of parameters, the name of the parameters, the number of nested layers, and the like in the data demand characteristics.
It should be understood that the data interaction system comprises a plurality of different returners, namely the preset returner library is formed. When the channel side does not specify the return body, data interaction can be carried out according to the return body in the preset return body library, so that the time for developers to communicate and confirm the data return format and the return body is reduced, and the data interaction efficiency is improved.
Further, in order to improve the efficiency of data interaction, after the step S30, the method further includes: when the target return body is not found, generating a return body assistance request according to the data demand characteristics; and sending the returned body assistance request to corresponding assisting personnel so that the assisting personnel enter a target returned body according to the returned body assistance request.
It should be noted that the retuning-body assisting request may be a request for requesting the assisting person to generate a retuning body corresponding to the joint debugging information. When receiving the request for assisting the returning body, the assisting personnel can compile the corresponding returning body according to the data requirement characteristics and take the compiled returning body as the target returning body, so that the data interaction system provides data for the channel party according to the target returning body.
Step S40: and performing data interaction with the channel side according to the target returning body.
It should be noted that the data interaction between the target returning body and the channel side may be performed by confirming target data information that needs to be acquired by the channel side according to the target returning body, further acquiring the target data, filling the target returning body according to the target data, and returning to the channel side, so that the channel side can directly use the target data in the filled returning body.
Further, in order to improve the efficiency of data interaction, after the step S40, the method further includes the steps of: acquiring interactive data sent by the channel party; acquiring an internal returning body, and filling the internal returning body according to the interactive data; and receiving a data request sent by a third party, generating a demand return body according to the filled internal return body and the data request, and sending the demand return body to the third party.
It should be noted that the internal returning body may be an execution main body of this embodiment, that is, a returning body maintained inside the data interaction system, and may store the received data returned by the channel side in a format in the internal returning body.
It should be understood that, during data interaction, not only the data interaction system returns data to the channel side according to the return body specified by the channel side, but also the channel side returns or sends data to the data interaction system, after the data interaction system receives the data sent by the channel side, the data interaction system needs to process and store the data, and at this time, the data sent by the channel side is received and stored according to the return body specified in the data interaction system, namely the internal return body, so as to be used by a third party or other channel sides. The third party may be other applications in the data interaction system or other applications performing data interaction with the data interaction system, for example, the data interaction system includes an application a and an application B, after the application a receives data sent by the channel side, the application a needs to be internally converted into a data format that can be directly recognized by the application B, at this time, a uniform return body may be maintained inside the data interaction system, that is, data received by the application a and the application B are both stored in a format specified by the return body, so that the application a and the application B can both directly use data in the internal return body. The requirement returnable body may be a returnable body generated according to a data request of a third party and the filled internal returnable body.
Further, in order to improve the efficiency of data interaction, after the step S40, the method further includes the steps of: receiving a return body acquisition request of the channel side; searching a corresponding returning body from the preset returning body library according to the returning body acquisition request; and sending the corresponding return body to the channel side.
It should be noted that the request for obtaining the returners may be a request that the channel side needs to obtain the returners in a preset returner library in the data interaction system. In the process of data interaction with a channel party, the data interaction system continuously absorbs and stores the return bodies of other channel parties and a third party. The data interaction system can also share the stored returned bodies to other channel parties or a third party for use, so that the other channel parties can directly reference the returned bodies of the systems and the applications, and can update in real time, thereby improving the efficiency of data interaction.
The embodiment acquires the joint debugging information in the interface document corresponding to the channel side and judges whether a specified returning body exists in the joint debugging information or not; when the designated returning body does not exist, acquiring data requirement characteristics corresponding to the joint debugging information; searching a corresponding target return body from a preset return body library according to the data demand characteristics; and performing data interaction with the channel side according to the target returning body. In the embodiment, when the designated returning body does not exist, the data requirement characteristic corresponding to the joint debugging information is acquired; searching a corresponding target return body from a preset return body library according to the data demand characteristics; and performing data interaction with the channel side according to the target returning body. Compared with the existing mode that developers need to communicate data transmission formats or return data in advance during data interaction, the mode can improve development efficiency and reduce joint debugging cost during data interaction.
Referring to fig. 3, fig. 3 is a flowchart illustrating a data interaction method according to a second embodiment of the present invention.
Based on the first embodiment described above, in the present embodiment, the step S30 includes:
step S301: and determining the number of parameters, the name of the parameters and the number of data nesting layers according to the data demand characteristics.
It should be noted that the number of the parameters may be the number of the parameters in the joint information in the interface document corresponding to the channel party, that is, the number of the parameters in the data that the channel party needs to acquire, for example, if the channel party needs to acquire three pieces of data information, namely, the number of the parameters is three. The parameter name may be a parameter name of acquired data defined by the channel side, for example, the channel side needs to acquire three pieces of data information, namely ID, name and number, and specifies that the respective corresponding parameter names are ID, name and number, respectively, and when returning data to the channel side, parameter values corresponding to the three pieces of data information, namely ID, name and number, are bound with the respective corresponding parameter names and then returned, for example, the parameter values corresponding to the three pieces of data information are: 1. and A and 20. The format returned may be { id: 1; name: a; number: 20; }. If the data corresponding to a certain parameter name contains several data, the number of nested layers is two, for example, if the data also contains parameters such as id and name, the nested parameters of the return body are two.
Step S302: and selecting a test return body from the preset return body library according to the number of the parameters, the name of the parameters and the number of the data nesting layers.
It should be noted that the test returner may be a returner for testing whether data interaction can be successfully completed. The selecting of the test returning body from the preset returning body library according to the number of the parameters, the name of the parameters and the number of the data nesting layers may be selecting a returning body which is consistent with the number of the parameters, the name of the parameters and the number of the data nesting layers from the preset returning body library as the test returning body. Wherein, the test return body can be a plurality of.
Step S303: and carrying out data interaction test with the channel side according to the test return body, and receiving a test result fed back by the channel side.
It should be noted that, the data interaction test performed between the test returning body and the channel side may be to return required data to the channel side by using the test returning body. The test result may be feedback information of data returned by the data interaction system according to the test return body received by the channel party. For example, if the selected test return body is not suitable for the required data corresponding to the channel side, the channel side may not be able to analyze the data or may lose the data when receiving the test return body filled with data. At this time, the channel side may feed back the error information as a test result to the data interaction system.
Step S304: and judging whether the data interaction is successfully completed or not according to the test result.
It should be noted that the determining whether the data interaction is successfully completed according to the test result may be determining that the data interaction is not successfully completed if errors such as data failure analysis or data loss exist in the test result, that is, the selected test return entity is not applicable to the channel side. And if the test result has no errors such as data failure analysis or data loss, judging that the data interaction is successfully completed, namely, selecting the test return body to be suitable for the channel side.
Step S305: and when the data interaction is successfully completed, taking the test returning body as the target returning body.
In a specific implementation, when the data interaction is successfully completed by using the test returning body, it is determined that the test returning body can be used for performing data interaction with the channel side, and at this time, the test returning body is used as the target returning body.
The embodiment determines the number of parameters, the name of the parameters and the number of data nesting layers according to the data demand characteristics; selecting a test return body from the preset return body library according to the number of the parameters, the name of the parameters and the number of the data nesting layers; performing data interaction test with the channel side according to the test return body, and receiving a test result fed back by the channel side; judging whether the data interaction is successfully completed or not according to the test result; and when the data interaction is successfully completed, taking the test returning body as the target returning body. In the embodiment, a test return body is selected from a preset return body library according to the number of parameters, the name of the parameters and the number of data nesting layers, data interaction test is carried out on the test return body and a channel side, and a test result fed back by the channel side is received; when the data interaction is successfully completed, the test return body is used as the target return body, so that the determination of the return body is automatically completed without manual intervention, the communication cost of developers in the data interaction process is reduced, and the efficiency of development and data interaction is improved.
Referring to fig. 4, fig. 4 is a block diagram of a data interaction device according to a first embodiment of the present invention.
As shown in fig. 4, the data interaction apparatus provided in the embodiment of the present invention includes:
the judging module 10 is configured to acquire joint debugging information in an interface document corresponding to a channel side, and judge whether a specified retuning body exists in the joint debugging information;
an obtaining module 20, configured to obtain, when the designated returning body does not exist, a data requirement characteristic corresponding to the joint debugging information;
the searching module 30 is configured to search a corresponding target returning body from a preset returning body library according to the data requirement characteristic;
and the data interaction module 40 is used for performing data interaction with the channel side according to the target returning body.
The embodiment acquires the joint debugging information in the interface document corresponding to the channel side and judges whether a specified returning body exists in the joint debugging information or not; when the designated returning body does not exist, acquiring data requirement characteristics corresponding to the joint debugging information; searching a corresponding target return body from a preset return body library according to the data demand characteristics; and performing data interaction with the channel side according to the target returning body. In the embodiment, when the designated returning body does not exist, the data requirement characteristic corresponding to the joint debugging information is acquired; searching a corresponding target return body from a preset return body library according to the data demand characteristics; and performing data interaction with the channel side according to the target returning body. Compared with the existing mode that developers need to communicate data transmission formats or return data in advance during data interaction, the mode can improve development efficiency and reduce joint debugging cost during data interaction.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the parameter operation method provided in any embodiment of the present invention, and are not described herein again.
Based on the first embodiment of the data interaction device of the present invention, a second embodiment of the data interaction device of the present invention is provided.
In this embodiment, the searching module 30 is further configured to generate a return body assistance request according to the data requirement characteristic when the target return body is not found; and sending the returned body assistance request to corresponding assisting personnel so that the assisting personnel enter a target returned body according to the returned body assistance request.
Further, the determining module 10 is further configured to determine, when a specified retuning object exists in the joint debugging information, target data information required by the channel party according to the interface document and the specified retuning object; determining a target parameter value according to the target data information, and filling the designated return body according to the target parameter value; and sending the filled designated returning body to the channel side to complete data interaction with the channel side.
Further, the searching module 30 is further configured to determine the number of parameters, the name of the parameter, and the number of data nesting layers according to the data requirement characteristics; selecting a test return body from the preset return body library according to the number of the parameters, the name of the parameters and the number of the data nesting layers; performing data interaction test with the channel side according to the test return body, and receiving a test result fed back by the channel side; judging whether the data interaction is successfully completed or not according to the test result; and when the data interaction is successfully completed, taking the test returning body as the target returning body.
Further, the judging module 10 is further configured to generate a return body information according to the specified return body and the interface document; and updating a preset return body library according to the return body information.
Further, the data interaction module 40 is further configured to obtain interaction data sent by the channel side; acquiring an internal returning body, and filling the internal returning body according to the interactive data; and receiving a data request sent by a third party, generating a demand return body according to the filled internal return body and the data request, and sending the demand return body to the third party.
Further, the data interaction module 40 is further configured to receive a request for obtaining a returned entity of the channel side; searching a corresponding returning body from the preset returning body library according to the returning body acquisition request; and sending the corresponding return body to the channel side.
Other embodiments or specific implementation manners of the data interaction device of the present invention may refer to the above method embodiments, and are not described herein again.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a data interaction program, and the data interaction program, when executed by a processor, implements the steps of the data interaction method described above.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A data interaction method is characterized by comprising the following steps:
acquiring joint debugging information in an interface document corresponding to a channel party, and judging whether a specified returning body exists in the joint debugging information or not;
when the designated returning body does not exist, acquiring data requirement characteristics corresponding to the joint debugging information;
searching a corresponding target return body from a preset return body library according to the data demand characteristics;
performing data interaction with the channel party according to the target returning body;
the step of searching for the corresponding target return body from a preset return body library according to the data demand characteristics comprises the following steps:
determining the number of parameters, the name of the parameters and the number of data nesting layers according to the data demand characteristics;
selecting a test return body from the preset return body library according to the number of the parameters, the name of the parameters and the number of the data nesting layers;
performing data interaction test with the channel side according to the test return body, and receiving a test result fed back by the channel side;
judging whether the data interaction is successfully completed or not according to the test result;
and when the data interaction is successfully completed, taking the test returning body as the target returning body.
2. The data interaction method of claim 1, wherein after the step of searching for the corresponding target returning body from the preset returning body library according to the data requirement characteristics, the method further comprises:
when the target return body is not found, generating a return body assistance request according to the data demand characteristics;
and sending the returned body assistance request to corresponding assisting personnel so that the assisting personnel enter a target returned body according to the returned body assistance request.
3. The data interaction method of claim 1, wherein after the step of obtaining the joint tone information in the interface document corresponding to the channel party and determining whether the specified retuning object exists in the joint tone information, the method further comprises:
when a designated returning body exists in the joint debugging information, determining target data information required by the channel side according to the interface document and the designated returning body;
determining a target parameter value according to the target data information, and filling the designated return body according to the target parameter value;
and sending the filled designated returning body to the channel side to complete data interaction with the channel side.
4. The data interaction method according to claim 3, wherein after the step of determining the target data information required by the channel party according to the interface document and the specified retuning body when the specified retuning body exists in the joint debugging information, the method further comprises:
generating return body information according to the designated return body and the interface document;
and updating a preset return body library according to the return body information.
5. The data interaction method of any one of claims 1 to 4, wherein after the step of performing data interaction with the channel side according to the target returning body, the method further comprises:
acquiring interactive data sent by the channel party;
acquiring an internal returning body, and filling the internal returning body according to the interactive data;
and receiving a data request sent by a third party, generating a demand return body according to the filled internal return body and the data request, and sending the demand return body to the third party.
6. The data interaction method of any one of claims 1 to 4, wherein after the step of performing data interaction with the channel side according to the target returning body, the method further comprises:
receiving a return body acquisition request of the channel side;
searching a corresponding returning body from the preset returning body library according to the returning body acquisition request;
and sending the corresponding return body to the channel side.
7. A data interaction device, the data interaction device comprising:
the judging module is used for acquiring the joint debugging information in the interface document corresponding to the channel party and judging whether a specified returning body exists in the joint debugging information or not;
the acquisition module is used for acquiring the data demand characteristics corresponding to the joint debugging information when the specified returning body does not exist;
the searching module is used for searching a corresponding target return body from a preset return body library according to the data demand characteristics;
the data interaction module is used for carrying out data interaction with the channel side according to the target returning body;
the searching module is further used for determining the number of parameters, the name of the parameters and the number of data nesting layers according to the data demand characteristics; selecting a test return body from the preset return body library according to the number of the parameters, the name of the parameters and the number of the data nesting layers; performing data interaction test with the channel side according to the test return body, and receiving a test result fed back by the channel side; judging whether the data interaction is successfully completed or not according to the test result; and when the data interaction is successfully completed, taking the test returning body as the target returning body.
8. A data interaction device, characterized in that the device comprises: a memory, a processor, and a data interaction program stored on the memory and executable on the processor, the data interaction program configured to implement the steps of the data interaction method of any of claims 1 to 6.
9. A storage medium having stored thereon a data interaction program, which when executed by a processor implements the steps of the data interaction method of any one of claims 1 to 6.
CN202111237334.7A 2021-10-25 2021-10-25 Data interaction method, device, equipment and storage medium Active CN113687965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111237334.7A CN113687965B (en) 2021-10-25 2021-10-25 Data interaction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111237334.7A CN113687965B (en) 2021-10-25 2021-10-25 Data interaction method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113687965A CN113687965A (en) 2021-11-23
CN113687965B true CN113687965B (en) 2022-03-01

Family

ID=78587735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111237334.7A Active CN113687965B (en) 2021-10-25 2021-10-25 Data interaction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113687965B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155891A (en) * 2015-04-02 2016-11-23 阿里巴巴集团控股有限公司 Interface test method, interface description data library generating method and device
CN112287009A (en) * 2020-11-03 2021-01-29 平安普惠企业管理有限公司 Interface calling and interface data warehousing method, device, equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2878685B1 (en) * 2004-11-30 2007-02-02 Gemplus Sa PRO-ACTIVE SESSION TRIGGER FROM AN APPLET IN A CHIP CARD
CN106648384B (en) * 2015-10-29 2022-02-08 创新先进技术有限公司 Service calling method and device
CN108121606B (en) * 2016-11-26 2021-02-19 深圳壹账通智能科技有限公司 Method and device for generating coded data based on joint debugging interface
CN110908890A (en) * 2018-09-18 2020-03-24 亿阳信通股份有限公司 Automatic test method and device for interface
CN110096395A (en) * 2019-03-12 2019-08-06 深圳壹账通智能科技有限公司 Interface joint debugging test method, device, computer equipment and storage medium
CN111190596A (en) * 2019-12-24 2020-05-22 平安普惠企业管理有限公司 Joint debugging method and device, computer equipment and readable storage medium
CN111679968A (en) * 2020-04-28 2020-09-18 平安普惠企业管理有限公司 Interface calling abnormity detection method and device, computer equipment and storage medium
CN112363935A (en) * 2020-11-11 2021-02-12 平安普惠企业管理有限公司 Data joint debugging method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155891A (en) * 2015-04-02 2016-11-23 阿里巴巴集团控股有限公司 Interface test method, interface description data library generating method and device
CN112287009A (en) * 2020-11-03 2021-01-29 平安普惠企业管理有限公司 Interface calling and interface data warehousing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113687965A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
CN102571403A (en) Realization method and device for general data quality control adapter
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN110659206A (en) Simulation architecture establishing method, device, medium and electronic equipment based on microservice
CN112667697A (en) Method and device for acquiring real estate information by combining RPA and AI
CN110825395B (en) Multi-plug-in layered deployment system, device and medium
CN115617780A (en) Data import method, device, equipment and storage medium
CN107368407B (en) Information processing method and device
CN109902027A (en) A kind of TPC-DS test method and system convenient to carry out
CN113687965B (en) Data interaction method, device, equipment and storage medium
CN112612706A (en) Automated testing method, computer device and storage medium
CN111444101A (en) Method and device for automatically creating product test defects
CN111538672A (en) Test case layered test method, computer device and computer-readable storage medium
CN114896487A (en) Method, system and medium for implementing a blockchain browser with front end interacting with blockchain
CN114895997A (en) Task association method and device and electronic equipment
CN113495723A (en) Method and device for calling functional component and storage medium
CN112597036A (en) Universal baffle testing method and device
CN111880773A (en) Data processing method and device, electronic equipment and storage medium
CN115221338B (en) Knowledge graph construction method and system and computer equipment
CN113704672B (en) Comment method based on browser plug-in, browser plug-in and readable storage medium
CN113608996B (en) Mirror image compiling test method, system, device and readable storage medium
CN113656022B (en) Software development method and device, computer equipment and storage medium
CN112445790B (en) Report data storage method, device, equipment and medium
CN117240746A (en) Method, system, equipment and medium for starting baffle based on contract test
CN116108089A (en) Big data testing method, computer equipment and storage medium
CN113781178A (en) Decoration data integration application method and device and readable storage medium

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