CN112925803A - Data processing method and device of interface - Google Patents

Data processing method and device of interface Download PDF

Info

Publication number
CN112925803A
CN112925803A CN202110381052.8A CN202110381052A CN112925803A CN 112925803 A CN112925803 A CN 112925803A CN 202110381052 A CN202110381052 A CN 202110381052A CN 112925803 A CN112925803 A CN 112925803A
Authority
CN
China
Prior art keywords
interface
data table
information
parameters
returning
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.)
Pending
Application number
CN202110381052.8A
Other languages
Chinese (zh)
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.)
Taikang Life Insurance Co ltd
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Life Insurance Co ltd
Taikang Insurance Group 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 Taikang Life Insurance Co ltd, Taikang Insurance Group Co Ltd filed Critical Taikang Life Insurance Co ltd
Priority to CN202110381052.8A priority Critical patent/CN112925803A/en
Publication of CN112925803A publication Critical patent/CN112925803A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2425Iterative querying; Query formulation based on the results of a preceding query
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

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

Abstract

The invention provides a data processing method and a data processing device of an interface, wherein the method comprises the following steps: receiving the input parameters of the interface through the data table; wherein the entries of the interface are stored in the data table; acquiring a corresponding database field name according to the access inquiry of the interface; inquiring from the database according to the database field name corresponding to the access parameter of the interface to obtain an inquiry result set; inquiring from the inquiry result set according to the exit of the interface to obtain information corresponding to the exit of the interface; wherein the parameters of the interface are pre-configured in the data table; and returning the participation of the interface and the corresponding information. The device is used for executing the method. The data processing method and the data processing device for the interface provided by the embodiment of the invention reduce the expenditure of a system memory.

Description

Data processing method and device of interface
Technical Field
The invention relates to the technical field of computers, in particular to a data processing method and device of an interface.
Background
In the system project development process, a project is generally divided into a plurality of sub-projects, each of which is developed separately. And after the sub-project is developed, connecting the plurality of sub-projects through the interface.
In the existing project, an interface provided by the project is configured with a set of access participation entity classes according to an object-oriented programming idea. As shown in fig. 1, each interface involves the authoring of two access-participating entity classes, i.e., each interface needs to author a pair of access-participating entity classes to carry access-participating data. With the increasing of external interfaces of the project, the entity classes of access participants to be established are increased in pairs, which results in excessive entity classes of access participants and increases the overhead of system memory.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide a data processing method and apparatus for an interface, which can at least partially solve the problems in the prior art.
In one aspect, the present invention provides a data processing method for an interface, including:
receiving the input parameters of the interface through the data table;
inquiring in a database according to the entry of the interface to obtain an inquiry result set;
inquiring from the inquiry result set according to the exit of the interface to obtain information corresponding to the exit of the interface; wherein the parameters of the interface are pre-configured in the data table;
and returning the participation of the interface and the corresponding information.
In another aspect, the present invention provides a data processing apparatus for an interface, including:
the receiving unit is used for receiving the input parameters of the interface through the data table;
the first query unit is used for querying in a database according to the access parameters of the interface to obtain a query result set;
the second query unit is used for querying and obtaining information corresponding to the interface parameter from the query result set according to the interface parameter; wherein the parameters of the interface are pre-configured in the data table;
and the return unit is used for returning the participation and the corresponding information of the interface.
In another aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the data processing method of the interface according to any of the above embodiments are implemented.
In yet another aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the data processing method of the interface according to any one of the above embodiments.
According to the data processing method and device for the interface, the input parameters of the interface are received through the data table, the corresponding database field names are obtained according to the input parameter query of the interface, the query result set is obtained according to the database field names corresponding to the input parameters of the interface, the information corresponding to the output parameters of the interface is obtained from the query result set according to the output parameters of the interface through query, the output parameters and the corresponding information of the interface are returned, the input parameters and the configuration output parameters are received and configured through the same data table, the processing flow of the output parameters and the input parameters is reduced, and the expenditure of a system memory is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a data flow diagram of a prior art interface.
Fig. 2 is a schematic diagram of data flow of an interface according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a data processing method of an interface according to an embodiment of the present invention.
Fig. 4 is a flowchart illustrating a data processing method of an interface according to another embodiment of the present invention.
Fig. 5 is a flowchart illustrating a data processing method of an interface according to still another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a data processing apparatus of an interface according to an embodiment of the present invention.
Fig. 7 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
In order to facilitate understanding of the technical solutions provided in the present application, the following first describes relevant contents of the technical solutions in the present application.
Fig. 2 is a schematic diagram of data flow of an interface according to an embodiment of the present invention, and as shown in fig. 2, by using the data processing method of an interface according to an embodiment of the present invention, an ingress and egress join is received through a Hashtable, and it is not necessary to write an ingress and egress entity class for the interface in pairs to carry ingress and egress join data, so that a processing flow of the ingress and egress join is reduced, and overhead of a system memory can be reduced. In addition, unnecessary POJO class writing is avoided, the robustness of the system is enhanced while codes of interfaces are written repeatedly, the memory overhead of the system is obviously reduced when the interfaces are required to be increased continuously, and the continuous and stable expansion of the system can be ensured.
Fig. 3 is a schematic flowchart of a data processing method of an interface according to an embodiment of the present invention, and as shown in fig. 3, the data processing method of an interface according to the embodiment of the present invention includes:
s301, receiving the input parameters of the interface through a data table; wherein the entries of the interface are stored in the data table;
specifically, when the interface receives an interface call request, the entry of the interface may be received through the data table. The data table is preset, can be a key value type data table, and stores data in a key-value form. The entry of the interface is stored in the data table so as to receive the entry of the interface through the data table and to carry the exit through the data table. The entry of the interface is set according to actual needs, and the embodiment of the invention is not limited. The execution main body of the data processing method of the interface provided by the embodiment of the invention comprises but is not limited to a computer.
For example, the entry of the interface includes: key 1: company, value 1: xxx; key 2: policy, value 2: xx.
For example, when the data processing method of the interface provided by the embodiment of the present invention is implemented using JAVA language, the entries of the interface may be received through Hashtable.
S302, obtaining a corresponding database field name according to the access inquiry of the interface;
specifically, in order to improve the security of data, a corresponding relationship between the entry participants of the interface and the database field names may be set, and each entry participant corresponds to only one database field name, so that data in the database is prevented from being directly searched through the entry participants. The corresponding database field names may be obtained according to the entry query of the interface.
For example, when the JAVA language is used to implement the data processing method of the interface provided in the embodiment of the present invention, a corresponding database field name may be configured for each entry through the constantsfarpojo class.
S303, inquiring from the database according to the database field name corresponding to the access parameter of the interface to obtain an inquiry result set;
specifically, after the database field names corresponding to the entries of the interface are obtained, corresponding data may be obtained from the database by querying according to the database field names corresponding to the entries of the interface, and the corresponding data may be used as the query result set.
S304, inquiring from the inquiry result set according to the participation of the interface to obtain information corresponding to the participation of the interface; wherein the parameters of the interface are pre-configured in the data table;
specifically, pre-configured parameters of the interface are obtained from the data table, and then information corresponding to the parameters of the interface is queried in the query result set according to the parameters of the interface. The parameter of the interface is configured according to actual needs, and the embodiment of the present invention is not limited.
For example, when the data processing method of the interface provided by the embodiment of the present invention is implemented using JAVA language, the out-reference of the interface may be configured in an annotation manner, for example, the out-reference is set by annotating element Param in @ interfacial priority. Param is a character string array, and a plurality of parameters can be configured.
And S305, returning the participation and the corresponding information of the interface.
Specifically, after the information corresponding to the exit of the interface is obtained through query, the information corresponding to the exit of the interface may be returned to the caller. When the information corresponding to the output parameter of the interface is returned, part of the information may be output, or all of the information may be output, and the information may be set according to actual needs.
For example, when implementing the data processing method of the interface provided by the embodiment of the present invention using JAVA language, whether part of the output parameters corresponds to information or all of the output parameters may be configured in an annotation manner, for example, set by annotating an element Type in @ interface priority, where a Type is 0 to represent part of the output and a Type is 1 to represent all of the output.
According to the data processing method of the interface provided by the embodiment of the invention, the input parameter of the interface is received through the data table, the corresponding database field name is obtained according to the input parameter query of the interface, the query result set is obtained from the database according to the database field name corresponding to the input parameter of the interface, the output parameter of the interface and the corresponding information are returned according to the output parameter of the interface, the information corresponding to the output parameter of the interface is obtained from the query result set by query, the input parameter is received and the output parameter is configured by adopting the same data table, the processing flow of the output parameter and the input parameter is reduced, and the overhead of a system memory is reduced.
Fig. 4 is a schematic flow chart of a data processing method of an interface according to another embodiment of the present invention, and as shown in fig. 4, on the basis of the foregoing embodiments, further, the returning of the information corresponding to the exit of the interface includes:
s3041, name replacement is carried out on the output parameter of the interface, and the output parameter of the replaced interface is obtained;
specifically, in order to improve data security, when the out-references of the interfaces and the corresponding information are output, the out-references of the interfaces are not directly output, name replacement may be performed on the out-references of the interfaces to obtain the out-references of the interfaces after replacement, and the out-references of the out-participating interfaces of the interfaces after replacement correspond to the same information.
For example, when the data processing method of the interface provided by the embodiment of the present invention is implemented using JAVA language, a corresponding alternative name may be configured for each argument through constantsfropojo class.
S3042, returning the participation and the corresponding information of the replaced interface.
Specifically, after obtaining the argument of the replaced interface, the argument of the replaced interface and the corresponding information are returned.
For example, the exit of the interface is area, the exit area is subjected to name replacement, replaced by the taxRate, and then the taxRate is output to avoid revealing the exit area.
On the basis of the above embodiments, further, the entries of the interface include a required entry and a non-required entry.
In particular, the entries of the interface may include must-enter entries and must-not-enter entries, the must-enter entries being used to query the database for data. In some specific scenarios, an input parameter of the interface is a required input item, while in other scenarios, an input parameter is not required, and an input parameter becomes a non-required input item.
For example, the entry of the interface includes: key 1: company, value 1: xxx; key 2: policy, value 2: xx; key 3: name, value 3: x. In a specific scene, key1, value1, key2 and value2 are required input items, and key3 and value3 are non-required input items. And querying corresponding data in the database according to the value1 and the value 2.
On the basis of the above embodiments, further, the exit and entry of the interface exist in the same data record of the database.
Specifically, the exit and entry of the interface exist in the same data record of the database, so that after the query result set is obtained according to the entry query of the interface, the corresponding information can be queried according to the exit of the interface.
For example, as shown in table 1, key1 and value1, key2 and value2, key3 and value3 are entries of the interface, key4 and value4, key5 and value5, and key6 and value6 are entries of the interface, all stored in table 1.
TABLE 1 Tanshen and Tanshen tables
Name of field key1 key2 key3 key4 key5 key6
Field value value1 value2 value3 value4 value5 value6
On the basis of the above embodiments, further, the data table is a key Value data table, that is, the stored out-references and in-references in the data table are both stored in the form of key-Value pairs.
Fig. 5 is a schematic flowchart of a data processing method of an interface according to still another embodiment of the present invention, and as shown in fig. 5, the returning of the exit and the corresponding information of the interface includes:
s3051, acquiring information corresponding to set output parameters from information corresponding to output parameters of the interface according to the set output parameters;
specifically, when the output parameter of the interface and the corresponding information are partially output, the output parameter to be output, that is, the set output parameter, may be set. And acquiring the information corresponding to the set output parameter from the information corresponding to the output parameter of the interface according to the set output parameter.
And S3052, returning the set parameters and the corresponding information.
Specifically, the set parameters and the corresponding information are returned to the calling party.
On the basis of the foregoing embodiments, further, the data processing method of the interface provided in the embodiment of the present invention further includes:
and if the received entry is not inquired in the data table, returning entry error prompt information.
Specifically, when the interface receives the interface call request, if the interface call request includes an entry, it may query whether the same entry exists in the data table according to the entry included in the interface call request, that is, the received entry, and if the received entry is not queried in the data table, it may return entry error prompt information to the caller.
The following describes an implementation procedure of the data processing method of the interface according to an embodiment of the present invention with a specific embodiment.
Firstly, receiving the entry of an interface through a hash table, wherein the entry of the interface comprises a company code and a policy number.
And secondly, inquiring in a database according to the company code and the policy number to obtain detailed information of the policy corresponding to the policy number of the company A as an inquiry result set, wherein the detailed information of the policy comprises the tax stamp rate (the name of a corresponding database field is generea) and a corresponding numerical value.
And thirdly, according to the output parameters of the interface, inquiring from the inquiry result set to obtain the numerical value corresponding to the genes. Wherein, the argument is pre-configured in the hash table.
And fourthly, replacing the reference gene with the taxRate, wherein the corresponding relation between the gene and the taxRate is preset.
And fifthly, returning the taxRate and the value corresponding to the taxRate to the caller.
The following is a process of interface out-participation and in-participation by means of surround notification (@ Around) of JAVA language.
Figure BDA0003012978210000071
Figure BDA0003012978210000081
The whole processing procedure is that Hashtable receives the input parameter requested by the interface, and then the output parameter of the interface is configured through @ InterfacePretreamtent.
The program enters into PolicyController class and then enters into a specific implementation method: in the queryInterfacePrt (), a completed document is returned by calling conventional servcie and the like to subsequently interact with the database mongoDB: csc _ item.
After receiving the queryInterfacePrt (), before preparing to return to the interface calling party, the AOP function automatically calls the return parameter jsonResponse to be assembled according to the requirements of the interface calling party, and the specific implementation process is carried out in a section class:
@ Pointcut is used to configure the entry point of the section, where configuration:
execution (com. taikong. lims. controller. PolicyController.)) is configured to the PolicyController class level, as well as other level configurations such as: to package names, to method names, etc.
@ Around ("aspect ()") configuration surround notification specifically needs to do, after entering a section position, namely when the program enters a PolicyController class, a section processing class interfacepretreatmentasset is called, a section is woven in, then while a jsonResponse is generated, the section program automatically intervenes, a return parameter is obtained through a processed () of an implantation point proceedingpoint, and a customized annotation is carried out: @ InterfacePretreatment selects the processing mode, where the processing mode is 0, i.e., the partial field is output.
The corresponding fields of the argument in mongoDB are: general, and the names of the fields of the output that are referenced are: the taxRate.
After processing, the section class returns jsonResponse to the control layer, and the control layer returns jsonResponse to the calling party.
Fig. 6 is a schematic structural diagram of a data processing apparatus of an interface according to an embodiment of the present invention, and as shown in fig. 6, the data processing apparatus of the interface according to the embodiment of the present invention includes a receiving unit 601, a first querying unit 602, a second querying unit 603, a third querying unit 604, and a returning unit 605, where:
the receiving unit 601 is configured to receive an entry of an interface through a data table; wherein the entries of the interface are stored in the data table; the first query unit 602 is configured to obtain a corresponding database field name according to the entry query of the interface; (ii) a The second query unit 603 is configured to query the database according to the database field name corresponding to the entry of the interface to obtain a query result set; the third query unit 604 is configured to query from the query result set according to the participation of the interface to obtain information corresponding to the participation of the interface; wherein the parameters of the interface are pre-configured in the data table; the returning unit 605 is configured to return the exit of the interface and the corresponding information.
Specifically, when the interface receives an interface call request, the receiving unit 601 may receive an entry of the interface through the data table. The data table is preset, can be a key value type data table, and stores data in a key-value form. The entry of the interface is stored in the data table so as to receive the entry of the interface through the data table and to carry the exit through the data table. The entry of the interface is set according to actual needs, and the embodiment of the invention is not limited.
In order to improve the security of data, the corresponding relationship between the entry participants of the interface and the database field names can be set, each entry participant is uniquely corresponding to one database field name, and the data in the database can be prevented from being directly searched through the entry participants. The first query unit 602 may obtain the corresponding database field name according to the entry query of the interface.
After obtaining the database field names corresponding to the entries of the interface, the second querying unit 603 may query the database according to the database field names corresponding to the entries of the interface to obtain corresponding data as the query result set.
The preconfigured parameters of the interface are obtained from the data table, and the third query unit 604 queries information corresponding to the parameters of the interface in the query result set according to the parameters of the interface. The parameter of the interface is configured according to actual needs, and the embodiment of the present invention is not limited.
After the information corresponding to the exit of the interface is obtained through query, the returning unit 605 may return the information corresponding to the exit of the interface to the caller. When the information corresponding to the output parameter of the interface is returned, part of the information may be output, or all of the information may be output, and the information may be set according to actual needs.
According to the data processing device of the interface provided by the embodiment of the invention, the input parameters of the interface are received through the data table, the corresponding database field names are obtained according to the input parameter query of the interface, the query result set is obtained according to the database field names corresponding to the input parameters of the interface, the output parameters and the corresponding information of the interface are returned according to the output parameters of the interface, the information corresponding to the output parameters of the interface is obtained through the query in the query result set, the same data table is adopted to receive the input parameters and configure the output parameters, the processing flow of the output parameters and the input parameters is reduced, and the expenditure of a system memory is reduced.
The embodiment of the apparatus provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the apparatus are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 7 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 7, the electronic device may include: a processor (processor)701, a communication Interface (Communications Interface)702, a memory (memory)703 and a communication bus 704, wherein the processor 701, the communication Interface 702 and the memory 703 complete communication with each other through the communication bus 704. The processor 701 may call logic instructions in the memory 703 to perform the following method: receiving the input parameters of the interface through the data table; wherein the entries of the interface are stored in the data table; acquiring a corresponding database field name according to the access inquiry of the interface; inquiring from the database according to the database field name corresponding to the access parameter of the interface to obtain an inquiry result set; inquiring from the inquiry result set according to the exit of the interface to obtain information corresponding to the exit of the interface; wherein the parameters of the interface are pre-configured in the data table; and returning the participation of the interface and the corresponding information.
In addition, the logic instructions in the memory 703 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: receiving the input parameters of the interface through the data table; wherein the entries of the interface are stored in the data table; acquiring a corresponding database field name according to the access inquiry of the interface; inquiring from the database according to the database field name corresponding to the access parameter of the interface to obtain an inquiry result set; inquiring from the inquiry result set according to the exit of the interface to obtain information corresponding to the exit of the interface; wherein the parameters of the interface are pre-configured in the data table; and returning the participation of the interface and the corresponding information.
The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: receiving the input parameters of the interface through the data table; wherein the entries of the interface are stored in the data table; acquiring a corresponding database field name according to the access inquiry of the interface; inquiring from the database according to the database field name corresponding to the access parameter of the interface to obtain an inquiry result set; inquiring from the inquiry result set according to the exit of the interface to obtain information corresponding to the exit of the interface; wherein the parameters of the interface are pre-configured in the data table; and returning the participation of the interface and the corresponding information.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A data processing method for an interface, comprising:
receiving the input parameters of the interface through the data table; wherein the entries of the interface are stored in the data table;
acquiring a corresponding database field name according to the access inquiry of the interface;
inquiring from the database according to the database field name corresponding to the access parameter of the interface to obtain an inquiry result set;
inquiring from the inquiry result set according to the exit of the interface to obtain information corresponding to the exit of the interface; wherein the parameters of the interface are pre-configured in the data table;
and returning the participation of the interface and the corresponding information.
2. The method of claim 1, wherein the returning information corresponding to the out-going parameters of the interface comprises:
carrying out name replacement on the output parameter of the interface to obtain the output parameter of the replaced interface;
and returning the participation and the corresponding information of the replaced interface.
3. The method of claim 1, wherein the entries of the interface include must-enter and must-not-enter entries.
4. The method of claim 1, wherein the out-going and in-going of the interface exist in the same data record of the database.
5. The method of claim 1, wherein the data table is a key-value data table.
6. The method of claim 1, wherein the returning the argument of the interface and the corresponding information comprises:
acquiring information corresponding to the set output parameter from the information corresponding to the output parameter of the interface according to the set output parameter;
and returning the set parameters and the corresponding information.
7. The method of any of claims 1 to 6, further comprising:
and if the received entry is not inquired in the data table, returning entry error prompt information.
8. A data processing apparatus of an interface, comprising:
the receiving unit is used for receiving the input parameters of the interface through the data table; wherein the entries of the interface are stored in the data table;
the first query unit is used for acquiring a corresponding database field name according to the access query of the interface;
the second query unit is used for querying from the database according to the database field names corresponding to the entries of the interface to obtain a query result set;
the third query unit is used for querying and obtaining information corresponding to the interface participation from the query result set according to the interface participation; wherein the parameters of the interface are pre-configured in the data table;
and the return unit is used for returning the participation and the corresponding information of the interface.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110381052.8A 2021-04-09 2021-04-09 Data processing method and device of interface Pending CN112925803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110381052.8A CN112925803A (en) 2021-04-09 2021-04-09 Data processing method and device of interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110381052.8A CN112925803A (en) 2021-04-09 2021-04-09 Data processing method and device of interface

Publications (1)

Publication Number Publication Date
CN112925803A true CN112925803A (en) 2021-06-08

Family

ID=76173819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110381052.8A Pending CN112925803A (en) 2021-04-09 2021-04-09 Data processing method and device of interface

Country Status (1)

Country Link
CN (1) CN112925803A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115801914A (en) * 2022-11-29 2023-03-14 重庆长安汽车股份有限公司 Multi-protocol network data exchange method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120005223A1 (en) * 2010-06-30 2012-01-05 International Business Machines Corporation Simplified query generation from prior query results
CN107818161A (en) * 2017-10-30 2018-03-20 山东浪潮通软信息科技有限公司 A kind of data capture method and device
CN110083605A (en) * 2019-04-24 2019-08-02 天津中新智冠信息技术有限公司 Traffic table querying method, device, server and computer readable storage medium
CN110109656A (en) * 2019-03-25 2019-08-09 平安科技(深圳)有限公司 Interface analogy method, device, computer equipment and storage medium
CN111090667A (en) * 2019-12-04 2020-05-01 北京奇艺世纪科技有限公司 Data processing method, device, server and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120005223A1 (en) * 2010-06-30 2012-01-05 International Business Machines Corporation Simplified query generation from prior query results
CN107818161A (en) * 2017-10-30 2018-03-20 山东浪潮通软信息科技有限公司 A kind of data capture method and device
CN110109656A (en) * 2019-03-25 2019-08-09 平安科技(深圳)有限公司 Interface analogy method, device, computer equipment and storage medium
CN110083605A (en) * 2019-04-24 2019-08-02 天津中新智冠信息技术有限公司 Traffic table querying method, device, server and computer readable storage medium
CN111090667A (en) * 2019-12-04 2020-05-01 北京奇艺世纪科技有限公司 Data processing method, device, server and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115801914A (en) * 2022-11-29 2023-03-14 重庆长安汽车股份有限公司 Multi-protocol network data exchange method
CN115801914B (en) * 2022-11-29 2024-04-30 重庆长安汽车股份有限公司 Multi-protocol network data exchange method

Similar Documents

Publication Publication Date Title
CN108427684B (en) Data query method and device and computing equipment
CN107784044B (en) Table data query method and device
CN109189799B (en) Service data query method, device, computer equipment and storage medium
USRE46690E1 (en) Method and system of splitting and merging information spaces
CN108230089A (en) A kind of online order processing method, system and device
CN110032568B (en) Data structure reading and updating method and device, and electronic equipment
US20200210829A1 (en) Network off-line model processing method, artificial intelligence processing device and related products
CN108376064B (en) Rule engine system and related method of rule engine
CN113326523A (en) Privacy calculation method and device and electronic equipment
CN110888672B (en) Expression engine implementation method and system based on metadata architecture
CN112925803A (en) Data processing method and device of interface
CN113934526A (en) Construction method and device of business process
CN110955712A (en) Development API processing method and device based on multiple data sources
CN112269915B (en) Service processing method, device, equipment and storage medium
EP3693905A1 (en) Context based service technology
CN113312675A (en) Attribute checking method and device, electronic equipment and storage medium
CN115544132A (en) Data import method and system and electronic equipment
CN115525445A (en) Intelligent message distribution processing method, system, device, equipment and medium
CN111324368B (en) Data sharing method and server
CN108052380B (en) Business function docking method and device, computer equipment and storage medium
CN111597240A (en) Data export method, data export device, computer equipment and storage medium
CN115277140B (en) Policy configuration, risk identification method and device, readable storage medium and computing device
CN112965740B (en) Asset information export method and device
CN113645574B (en) Communication method and electronic equipment
CN115827703B (en) Enumeration data query method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210608