CN110515676A - Interface integration method, device, equipment and storage medium - Google Patents

Interface integration method, device, equipment and storage medium Download PDF

Info

Publication number
CN110515676A
CN110515676A CN201910623589.3A CN201910623589A CN110515676A CN 110515676 A CN110515676 A CN 110515676A CN 201910623589 A CN201910623589 A CN 201910623589A CN 110515676 A CN110515676 A CN 110515676A
Authority
CN
China
Prior art keywords
interface
parameter
interfaces
target
integration
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
CN201910623589.3A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910623589.3A priority Critical patent/CN110515676A/en
Publication of CN110515676A publication Critical patent/CN110515676A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural
    • 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides a kind of interface integration method, device, equipment and storage medium, comprising: receiving interface integration instruction integrates instruction according to the interface and obtains preset interface integration rules;The incoming parameter of each interface is obtained according to the interface integration rules, and the identical interface of incoming parameter is sorted out, and obtains set of interfaces to be combined;First interface set is determined from the set of interfaces to be combined, wherein the first interface in the first interface set is the interface with outflow parameter;The first interface in the first interface set is sorted out, the identical target interface set of structure of outflow parameter is obtained;Interface in the target interface set is merged.The present invention, which is realized, integrates interface according to the incoming parameter and outflow parameter of interface, so that request interface number and request number of times are reduced, to accelerate system response.

Description

Interface integration method, device, equipment and storage medium
Technical field
The present invention relates to the interfacing field of network management more particularly to a kind of interface integration method, device, equipment and Storage medium.
Background technique
Internet system is all initially integrated design, and all function code business realizings are all complete in a system At as user constantly increases, business also can be more and more diversified, complexity, stability, the maintainability of corresponding system Also it is increasingly difficult to control.
So business demand is more and more with the rise and development of the serviceization of operation system, functional module is increasingly The request interface of complexity, each page is also more and more, and system is caused to respond slack-off problem.
Summary of the invention
The main purpose of the present invention is to provide a kind of interface integration method, device, equipment and storage mediums, it is intended to solve System responds slack-off technical problem.
To achieve the above object, the present invention provides a kind of interface integration method, and the interface integration method includes following step It is rapid:
Receiving interface integration instruction, integrates instruction according to the interface and obtains preset interface integration rules;
The incoming parameter of each interface is obtained according to the interface integration rules, and the identical interface of incoming parameter is returned Class obtains set of interfaces to be combined;
First interface set is determined from the set of interfaces to be combined, wherein in the first interface set One interface is the interface with outflow parameter;
The first interface in the first interface set is sorted out, the identical mesh of structure of outflow parameter is obtained Mark set of interfaces;
Interface in the target interface set is merged.
Optionally, the step of interface by the target interface set merges include:
The calling mark for obtaining the interface in the target interface set determines that the target connects based on calling mark The calling opportunity of interface in mouth set;
Calling opportunity identical second interface set is determined from the target interface set;
Interface in the second interface set is merged.
Optionally, the step of interface by the target interface set merges include:
The calling mark for obtaining the interface in the target interface set determines that the target connects based on calling mark The called side of interface in mouth set;
The identical third set of interfaces of called side is determined from the target interface set;
Interface in the third set of interfaces is merged.
Optionally, the step of interface by the target interface set merges include:
Obtain the first interface parameter of the interface in the target interface set;
The Interface status type of the first interface is determined based on the first interface parameter, wherein the Interface status Type includes logging state and non-logging state;
The interface to be combined for belonging to logging state in the target interface set is merged, it will be in the first interface The interface to be combined for belonging to non-logging state merges.
Optionally, the incoming parameter that each interface is obtained according to the interface integration rules, and incoming parameter is identical Interface the step of being sorted out, obtaining set of interfaces to be combined after, the interface integration method further include:
The 4th set of interfaces is determined from the set of interfaces to be combined, wherein in the 4th set of interfaces Two interfaces are the interface without outflow parameter;
Obtain the second interface parameter of the second interface in the 4th set of interfaces;
The interface type that the second interface is determined based on the second interface parameter, according to interface type to described second Interface is classified, to obtain the first classification results;
Similar interface in first classification results is merged.
Optionally, the interface type includes return type, the similar interface by first classification results into Row merge the step of include:
The third interface of return type is determined based on first classification results, and is obtained each third interface and returned The data format of data;
Format classifies the third interface based on the data, to obtain the second classification results;
Similar interface in second classification results is merged.
Optionally, the interface integration method further include:
Special field is added in interface after merging, if receiving multiple data acquisition requests, by described special Whether the incoming parameter that field detects each interface requests corresponding interface is identical;
If detecting, the incoming parameter of each data acquisition request corresponding interface is identical, according to the interface requests from local Data cached middle acquisition resource.
Optionally, the interface conformity device includes:
Receiving module obtains preset interface according to interface integration instruction and integrates for receiving interface integration instruction Rule;
First judgment module, for obtaining the incoming parameter of each interface according to the interface integration rules, and by incoming ginseng The identical interface of number is sorted out, and set of interfaces to be combined is obtained;
Second judgment module, for determining first interface set from the set of interfaces to be combined, wherein described First interface in one set of interfaces is the interface with outflow parameter;
Third judgment module is spread out of for sorting out to the first interface in the first interface set The identical target interface set of the structure of parameter;
Merging module, for merging the interface in the target interface set.
In addition, to achieve the above object, the present invention also provides a kind of interface conformity device, the interface conformity device packet It includes:
Receiving module obtains preset interface according to interface integration instruction and integrates for receiving interface integration instruction Rule;
First judgment module, for obtaining the incoming parameter of each interface according to the interface integration rules, and by incoming ginseng The identical interface of number is sorted out, and set of interfaces to be combined is obtained;
Second judgment module, for determining first interface set from the set of interfaces to be combined, wherein described First interface in one set of interfaces is the interface with outflow parameter;
Third judgment module is spread out of for sorting out to the first interface in the first interface set The identical target interface set of the structure of parameter;
Merging module, for merging the interface in the target interface set.
In addition, to achieve the above object, the present invention also provides a kind of interface integration equipment, the interface integration equipment includes Processor, memory and it is stored in the interface integrated process that can be executed on the memory and by the processor, wherein institute When stating interface integrated process and being executed by the processor, realize such as the step of above-mentioned interface integration method.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, being stored with interface on the storage medium Integrated process, wherein realizing when the interface integrated process is executed by processor such as the step of above-mentioned interface integration method.
The present invention provides a kind of interface integration method, device, equipment and storage medium, connects first by incoming parameter is identical Mouth is sorted out, and obtains set of interfaces to be combined, then judges whether the interface in set of interfaces to be combined has outflow parameter, And determine the first interface set with outflow parameter, and according to the interface of outflow parameter to the interface in first interface set Sorted out, obtain the identical target interface set of interface of outflow parameter, and target interface set is merged, and then will Multiple interfaces merge into an interface, reduce request interface number and interface requests number, accelerate system response.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for the interface integration equipment that various embodiments of the present invention are related to;
Fig. 2 is the flow diagram of interface integration method first embodiment of the present invention;
Fig. 3 is the functional block diagram of interface conformity device first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to interface integration method be mainly used in interface integration equipment, which can To be that PC (personal computer personal computer), portable computer, mobile terminal etc. have display and processing function Equipment.
Referring to Fig.1, Fig. 1 is the hardware structural diagram of interface integration equipment involved in the embodiment of the present invention.This In inventive embodiments, interface integration equipment may include (such as the central processing unit Central Processing of processor 1001 Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 For realizing the connection communication between these components;User interface 1003 may include display screen (Display), input unit ratio Such as keyboard (Keyboard);Network interface 1004 optionally may include that (such as WI-FI connects standard wireline interface and wireless interface Mouthful);Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), Such as magnetic disk storage, memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.This field Technical staff is appreciated that hardware configuration shown in Fig. 1 and does not constitute a limitation of the invention, and may include more than illustrating Or less component, perhaps combine certain components or different component layouts.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of storage medium may include that operating system, network are logical Believe module and interface integrated process.In Fig. 1, network communication module is mainly used for connecting server, is counted with server According to communication;And processor 1001 can call the interface integrated process stored in memory 1005, and execute the embodiment of the present invention The interface integration method of offer.
The embodiment of the invention provides a kind of interface integration methods.
It is the flow diagram of interface integration method first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, the executing subject of the interface integration method is interface integration equipment, and interface integration equipment can When receiving interface integration instruction, instruction is integrated according to interface and obtains preset interface integration rules, it is then whole according to interface Normally the interface of application program is merged, so that multiple interfaces are merged into an interface, reduces request interface number And interface requests number, and then accelerate system response.
The interface integration equipment can be the terminal devices such as mobile phone, PC, palm PC and tablet computer, be chosen as Fig. 1 institute The equipment shown.The interface integration method the following steps are included:
Step S10, receiving interface integration instruction, integrates instruction according to the interface and obtains preset interface integration rules;
In the present embodiment, in the interface integration instruction for receiving user, instruction is integrated according to the interface of user and is obtained The integration rules of interface integration, wherein interface integration rules include according to the incoming parameter of each interface, outflow parameter to interface into Row integration, integrates interface according to the calling opportunity of each interface, called side, is carried out according to the interface type of interface to interface Integration, integrates interface according to the Interface status type of interface, the interface of same third party system will be called to integrate Deng.
Step S20, obtains the incoming parameter of each interface according to the interface integration rules, and connects incoming parameter is identical Mouth is sorted out, and set of interfaces to be combined is obtained;
In the present embodiment, the incoming parameter of each interface is obtained according to integration rules and outflow parameter, incoming parameter are Refer to that interface initiates the parameter that backstage is transmitted to when request to backstage, outflow parameter is to be returned to after backstage receives request by interface The parameter that caller uses.Classified according to incoming parameter to interface, the identical interface of parameter will be spread out of and sorted out, obtained Set of interfaces to be combined.
Step S30 determines first interface set from the set of interfaces to be combined, wherein the first interface collection First interface in conjunction is the interface with outflow parameter;
In the present embodiment, when interface is not received by the data of server return, then interface does not have outflow parameter, So then needing the outflow parameter to interface to judge when the outflow parameter of interface is identical, specifically, if in each interface There are the identical interfaces of incoming parameter, then the identical interface of incoming parameter are divided into one kind, and determine set of interfaces to be combined, And detect with the presence or absence of the first interface with outflow parameter in set of interfaces to be combined, if there is tool in set of interfaces to be combined There is the first interface of outflow parameter, then all first interfaces is formed into first interface set.
Step S40 sorts out the first interface in the first interface set, obtains the structure of outflow parameter Identical target interface set.
In the present embodiment, if there is the identical first interface of outflow parameter in first interface set, detection first is connect Whether the structure of the outflow parameter of the first interface in mouth set is identical.
Further, if detect that the structure of the outflow parameter of the first interface in first interface set is identical, may be used also It is whether consistent with the outflow parameter for detecting first interface, if the outflow parameter of first interface is consistent, by the first interface to be combined It merges, the structure for spreading out of parameter is used to characterize the type of the literal of outflow parameter, it can will be same type of literal The interface of the outflow parameter of amount is integrated together, and by interface is returned to tune after backstage receives request since outflow parameter refers to The parameter that user uses, so, when the structure of the outflow parameter of several interfaces is identical, then illustrate these interfaces to asking After asking, the structure of the parameter of outflow is identical, then can merge these interfaces, thus reduce interface requests number, In, which includes the literal variable of character string, the literal variable of array, the literal variable of object etc., detects the outflow of first interface Whether the literal of the whether identical outflow parameter for referring to detection first structure of the structure of parameter is identical literal, wherein Array literal includes the array of multiple number compositions, and character string literal includes the character string of multiple character compositions, object word Face amount includes multiple objects, for example, { name: " zhuzhenwei ", age:18 }, is object literal.
Step S50 merges the interface in the target interface set.
In the present embodiment, the first interface in first interface set is sorted out, obtains the structure phase of outflow parameter With target interface set when, then the interface in target interface set is merged, for example, homepage interface have A1, A2, A3, The incoming parameter of A4, B1, B2, B3 interface, this 4 interfaces of A1, A2, A3, A4 is identical, and the structure of the outflow parameter of four interfaces It is identical, then A1, A2, A3, A4 can be merged into an A interface, the incoming parameter of this 3 interfaces of B1, B2, B3 is identical, and person The structure of the outflow parameter of three interfaces is identical, then these three interfaces can be merged into a B interface, thus, it is detecting When A1, A2, A3, A4 corresponding requests, it will will all request corresponding parameter to be transmitted to backstage by A interface, and detect B1, B2, B3 When corresponding requests, corresponding parameter will will be all requested to be transmitted to backstage by B interface, the incoming parameter of interface is identical if detecting When, then no need to send multiple requests.
The interface integration method that the present embodiment proposes is integrated by receiving interface and is instructed, and is integrated and is instructed according to the interface Preset interface integration rules are obtained, the incoming parameter of each interface is then obtained according to the interface integration rules, and will be passed to The identical interface of parameter is sorted out, and set of interfaces to be combined is obtained, and is then determined from the set of interfaces to be combined One set of interfaces, wherein the first interface in the first interface set is the interface with outflow parameter, followed by described The first interface in first interface set is sorted out, and obtains the identical target interface set of structure of outflow parameter, most The interface in the target interface set is merged afterwards;Incoming parameter and outflow parameter according to interface are realized to interface It is integrated, reduces request interface number and request number of times, to accelerate system response.
It is proposed the second embodiment of interface integration method of the present invention based on first embodiment, in the present embodiment, step S40 packet It includes:
Step S51 is obtained the calling mark of the interface in the target interface set, is identified based on the calling and determine institute State the calling opportunity of the interface in target interface set;
In the present embodiment, which identifies the calling opportunity for determining each interface, and calling opportunity refers to that the page loads When time for calling, for example, some interfaces are loaded in page open, interface be to be loaded in user's clicking operation (as clicked some interfaces triggered after button).Sentence so can be identified to the calling of the interface in target interface set It is disconnected, the calling opportunity for determining first interface is identified according to the calling of the first interface to be combined.
Step S52 determines calling opportunity identical second interface set from the target interface set;
Step S53 merges the interface in the second interface set.
In the present embodiment, according to the calling opportunity of the interface in target interface set to the interface in target interface set Classify, determines with the presence or absence of calling opportunity identical interface in target interface set, adjusted if existing in target interface set With opportunity identical interface, then opportunity identical interface will be called to be divided into one kind, so as to determine from target interface set Opportunity identical second interface set is called to click user for example, the interface loaded in page open is divided into one kind out The interface loaded when operation is divided into one kind, and the interface that by page open when loads merges into an interface, and user is clicked and is grasped As when the interface that loads merge into an interface.
The interface integration method that the present embodiment proposes, by the calling mark for obtaining the interface in the target interface set Know, based on the calling opportunity of the interface for calling mark to determine in the target interface set, then from the target interface Calling opportunity identical second interface set is determined in set, finally closes the interface in the second interface set And;It realizes and interface is merged by the calling opportunity of interface, further reduced request interface number and request number of times, from And accelerate system response.
Based on first embodiment, the 3rd embodiment of interface integration method of the present invention is proposed, in the present embodiment, step S40 Include:
Step S54 is obtained the calling mark of the interface in the target interface set, is identified based on the calling and determine institute State the called side of the interface in target interface set;
In the present embodiment, calling mark also can determine that the called side of each interface, and called side includes native and H5, should Called side indicates the page type of interface corresponding page, and page type includes the native page and the H5 page, and the native page is Referring to the page triggered by native function, the H5 page includes the page triggered by H5 function, so, it can indicate really according to calling The called side of interface in the set of interfaces that sets the goal.
Step S55 determines the identical third set of interfaces of called side from the target interface set;
In the present embodiment, it can be classified to the interface in target interface set according to called side, and determine target It whether there is the identical interface of called side in set of interfaces, and if it exists, then can be identical by called side in target interface set Interface is divided into one kind, to determine the identical third set of interfaces of called side from target interface set.
Step S56 merges the interface in the third set of interfaces.
It in the present embodiment, will be in target interface set if there are the identical interfaces of called side in target interface set The identical interface class of called side is a kind of, and the identical interface of called side in target interface set is merged, for example, if connecing The request for receiving user determines that corresponding page type to be presented is the native page or the H5 page according to request, by page Noodles type accordant interface is divided into one kind, for example, it is assumed that homepage has 18 interfaces, script H5 triggering has 7 interfaces, native touching Hair has 11 interfaces, by called side difference integrated interface, merges into H5 and triggers 3 interfaces, native triggers 5 interfaces.
The interface integration method that the present embodiment proposes, by the calling mark for obtaining the interface in the target interface set Know, based on the called side of the interface for calling mark to determine in the target interface set, then from the target interface collection The identical third set of interfaces of called side is determined in conjunction, finally merges the interface in the third set of interfaces;It is real Show and interface has been merged according to called side, further reduced request interface number and request number of times, to accelerate system Response.
Based on first embodiment, the fourth embodiment of interface integration method of the present invention is proposed, in the present embodiment, step S50 Include:
Step S57 obtains the first interface parameter of the interface in the target interface set;
In the present embodiment, the first interface parameter in target interface set can be judged, according to first interface Parameter more accurately merges interface.
Step S58 determines the Interface status type of the first interface based on the first interface parameter, wherein described Interface status type includes logging state and non-logging state;
In the present embodiment, include the field of mark interface logging state in first interface parameter, joined according to first interface Number is able to detect the Interface status type of interface, which includes login and non-login two states, and user logs in It is different from the interface for being not logged on APP calling that APP opens the interface called when the page.According to the interface in target interface set First interface parameter can determine the Interface status type of the interface in target interface set,
Step S59 merges the interface to be combined for belonging to logging state in the target interface set, by described The interface to be combined for belonging to non-logging state in one interface merges.
In the present embodiment, the interface that logging state is belonged in target interface set is merged, by non-logging state The interface of lower calling merges.
The interface integration method that the present embodiment proposes, by the first interface for obtaining the interface in the target interface set Parameter is then based on the Interface status type that the first interface parameter determines the first interface, wherein the Interface status Type includes logging state and non-logging state, finally, connecing the to be combined of logging state is belonged in the target interface set Mouth merges, and the interface to be combined that non-logging state is belonged in the first interface is merged;It realizes according to interface Interface status type interface is merged, to further reduced request interface number and request number of times, to accelerate System response.
Based on first embodiment, the 5th embodiment of interface integration method of the present invention is proposed, in the present embodiment, step S20 Later, further includes:
Step S60 determines the 4th set of interfaces from the set of interfaces to be combined, wherein the 4th sets of interfaces Second interface in conjunction is the interface without outflow parameter;
In the present embodiment, when there is the interface for not having outflow parameter in set of interfaces to be combined, can will not have There is the interface of outflow parameter to be divided into one kind, so that it is determined that the 4th set of interfaces out.
Step S70 obtains the second interface parameter of the second interface in the 4th set of interfaces;
It in the present embodiment, include the field of mark interface type in second interface parameter, according to second interface parameter energy The interface type of interface is enough detected, interface type includes return type and without return type, which refers to that interface will return Parameter is returned out, no return type refers to that interface does not return to outflow parameter.It can determine interface according to second interface parameter Type is return type still without return type, and the identical interface of interface type is divided into one kind, for example, being to return by interface type The interface for returning type is divided into one kind, is that the interface without return type is divided into one kind by interface type, to obtain the first classification knot Fruit.
Step S80 merges the similar interface in first classification results.
In the present embodiment, a kind of similar interface will be divided into the first classification results to merge, specifically, will be returned The interface of Class Type merges into an interface, the interface of no return type is merged into an interface, no return interface is using different Step form initiates request, and without waiting for response results.
Further, the field of the data format returned due to the interface of return type is different, so, acceptable basis should Data format integrates interface.Specifically, the step that the similar interface by first classification results merges Suddenly include:
Step S81, the third interface of return type is determined based on first classification results, and obtains each third The data format of interface returned data;
It in the present embodiment, include that the interface of return type is divided into one kind in the first classification results, it will be without return class The interface of type is divided into one kind, so, the third interface of return type can be determined according to the first classification results, and obtain third and connect The data format of mouth returned data.
Step S82, format classifies the third interface based on the data, to obtain the second classification results;
Step S83 merges the similar interface in second classification results.
In the present embodiment, classified according to third interface of the data format to return type, for example, some interfaces return The data format returned is json format, and the data format that some interfaces returns is a string of character msg: ' system is busy, please later again Examination ', so, it can also be classified according to the difference of interface returned data format, the identical interface of data format is divided into one Class, according to the second classification results, the identical similar interface of data format is merged with obtaining the second classification results.
The interface integration method that the present embodiment proposes, by determining the of return type based on first classification results Three interfaces, and the data format of each third interface returned data is obtained, the data format is then based on by the third Interface is classified, and to obtain the second classification results, is then merged the similar interface in second classification results;It is real Show and interface has been merged according to the data format of interface, further reduced request interface number and request number of times, thus plus Fast system response.
Based on any of the above embodiment, the sixth embodiment of interface integration method of the present invention is proposed, in the present embodiment, interface Integration method further include:
Step S90 adds special field in interface after merging, if receiving multiple data acquisition requests, passes through Whether the incoming parameter that the special field detects each interface requests corresponding interface is identical;
In the present embodiment, after carrying out interface merging, it is rear and after interface add special field, the special field packet JkslUseCache field is included, special field user determines whether interface needs to cache, if incoming parameter and/or outflow parameter It is identical, then only need to cache once incoming parameter and/or outflow parameter.
When receiving multiple data acquisition requests, the biography of each data acquisition request calling interface is detected according to special field Whether identical enter parameter.
Step S100, if detecting, the incoming parameter of each interface requests corresponding interface is identical, according to the interface requests Resource is obtained from local cache data.
In the present embodiment, identical if detecting the corresponding incoming parameter of each data acquisition request, it will be from local cache Resource is obtained, request time can be shortened if obtaining local resource, is such as initiated again when this period, data had modification or update Interface requests obtain resource, rather than request all resources, this also greatly reduces request time.
The addition special field that the present embodiment proposes is examined if receiving multiple interface requests by the special field Whether the incoming parameter for surveying each interface requests corresponding interface is identical, if then detecting the incoming ginseng of each interface requests corresponding interface Number is identical, then resource is obtained from local cache data according to the interface requests;When using and request to reduce APP memory Between.
In addition, the embodiment of the present invention also provides a kind of interface conformity device.
It is the functional block diagram of interface conformity device first embodiment of the present invention referring to Fig. 3, Fig. 3.
Interface conformity device of the present invention is virtual bench, is stored in the memory 1005 of interface integration equipment shown in Fig. 1, Functional for realizing the institute of interface integrated process: receiving interface integration instruction obtains default according to interface integration instruction Interface integration rules;Obtain the incoming parameter of each interface according to the interface integration rules, and connect incoming parameter is identical Mouth is sorted out, and set of interfaces to be combined is obtained;First interface set is determined from the set of interfaces to be combined, wherein First interface in the first interface set is the interface with outflow parameter;To described in the first interface set One interface is sorted out, and the identical target interface set of structure of outflow parameter is obtained;By connecing in the target interface set Mouth merges.
Specifically, in the present embodiment, the interface conformity device includes:
It is whole to obtain preset interface according to interface integration instruction for receiving interface integration instruction for receiving module 101 Normally;
First classifying module 102 for obtaining the incoming parameter of each interface according to the interface integration rules, and will be passed to The identical interface of parameter is sorted out, and set of interfaces to be combined is obtained;
Second classifying module 103, for determining first interface set from the set of interfaces to be combined, wherein institute Stating the first interface in first interface set is the interface with outflow parameter;
Third classifying module 104 is passed for sorting out to the first interface in the first interface set The identical target interface set of the structure of parameter out;
Merging module 105, for merging the interface in the target interface set.
Further, the merging module 105 is used for:
The calling mark for obtaining the interface in the target interface set determines that the target connects based on calling mark The calling opportunity of interface in mouth set;
Calling opportunity identical second interface set is determined from the target interface set;
Interface in the second interface set is merged.
Further, the merging module 105 is used for:
The calling mark for obtaining the interface in the target interface set determines that the target connects based on calling mark The called side of interface in mouth set;
The identical third set of interfaces of called side is determined from the target interface set;
Interface in the third set of interfaces is merged.
Further, the merging module 105 is used for:
Obtain the first interface parameter of the interface in the target interface set;
The Interface status type of the first interface is determined based on the first interface parameter, wherein the Interface status Type includes logging state and non-logging state;
The interface to be combined for belonging to logging state in the target interface set is merged, it will be in the first interface The interface to be combined for belonging to non-logging state merges.
Further, the merging module 105 is used for:
The 4th set of interfaces is determined from the set of interfaces to be combined, wherein in the 4th set of interfaces Two interfaces are the interface without outflow parameter;
Obtain the second interface parameter of the second interface in the 4th set of interfaces;
The interface type that the second interface is determined based on the second interface parameter, according to interface type to described second Interface is classified, to obtain the first classification results;
Similar interface in first classification results is merged.
Further, the merging module 105 is used for:
The third interface of return type is determined based on first classification results, and is obtained each third interface and returned The data format of data;
Format classifies the third interface based on the data, to obtain the second classification results;
Similar interface in second classification results is merged.
Further, the interface conformity device further include:
Detection module, for adding special field in interface after merging, if receiving multiple data acquisition requests, Whether the incoming parameter for detecting each interface requests corresponding interface by the special field is identical;
Module is obtained, if for detecting that the incoming parameter of each data acquisition request corresponding interface is identical, according to Interface requests obtain resource from local cache data.
Wherein, each in the function realization and above-mentioned interface integration method embodiment of modules in above-mentioned interface conformity device Step is corresponding, and function and realization process no longer repeat one by one here.
In addition, the embodiment of the present invention also provides a kind of storage medium.
Interface integrated process is stored on storage medium of the present invention, wherein the interface integrated process is executed by processor When, it realizes such as the step of above-mentioned interface integration method.
Wherein, interface integrated process, which is performed realized method, can refer to each reality of interface integration method of the present invention Example is applied, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of interface integration method, which is characterized in that the interface integration method the following steps are included:
Receiving interface integration instruction, integrates instruction according to the interface and obtains preset interface integration rules;
The incoming parameter of each interface is obtained according to the interface integration rules, and the identical interface of incoming parameter is sorted out, Obtain set of interfaces to be combined;
First interface set is determined from the set of interfaces to be combined, wherein first in the first interface set connects Mouth is the interface with outflow parameter;
The first interface in the first interface set is sorted out, the identical target of structure for obtaining outflow parameter connects Mouth set;
Interface in the target interface set is merged.
2. interface integration method as described in claim 1, which is characterized in that the interface by the target interface set The step of merging include:
The calling mark for obtaining the interface in the target interface set determines the target interface collection based on calling mark The calling opportunity of interface in conjunction;
Calling opportunity identical second interface set is determined from the target interface set;
Interface in the second interface set is merged.
3. interface integration method as described in claim 1, which is characterized in that the interface by the target interface set The step of merging include:
The calling mark for obtaining the interface in the target interface set determines the target interface collection based on calling mark The called side of interface in conjunction;
The identical third set of interfaces of called side is determined from the target interface set;
Interface in the third set of interfaces is merged.
4. interface integration method as described in claim 1, which is characterized in that the interface by the target interface set The step of merging include:
Obtain the first interface parameter of the interface in the target interface set;
The Interface status type of the first interface is determined based on the first interface parameter, wherein the Interface status type Including logging state and non-logging state;
The interface to be combined for belonging to logging state in the target interface set is merged, will be belonged in the first interface The interface to be combined of non-logging state merges.
5. interface integration method as described in claim 1, which is characterized in that described to be obtained respectively according to the interface integration rules The incoming parameter of interface, and after the step of sorting out by the identical interface of incoming parameter, obtain set of interfaces to be combined, institute State interface integration method further include:
The 4th set of interfaces is determined from the set of interfaces to be combined, wherein second in the 4th set of interfaces connects Mouth is the interface without outflow parameter;
Obtain the second interface parameter of the second interface in the 4th set of interfaces;
The interface type that the second interface is determined based on the second interface parameter, according to interface type to the second interface Classify, to obtain the first classification results;
Similar interface in first classification results is merged.
6. interface integration method as claimed in claim 5, which is characterized in that the interface type includes return type, described The step of similar interface in first classification results is merged include:
The third interface of return type is determined based on first classification results, and obtains each third interface returned data Data format;
Format classifies the third interface based on the data, to obtain the second classification results;
Similar interface in second classification results is merged.
7. interface integration method as claimed in any one of claims 1 to 6, which is characterized in that the interface integration method also wraps It includes:
Special field is added in interface after merging, if receiving multiple data acquisition requests, passes through the special field Whether the incoming parameter for detecting each interface requests corresponding interface is identical;
If detecting, the incoming parameter of each data acquisition request corresponding interface is identical, according to the interface requests from local cache Resource is obtained in data.
8. a kind of interface conformity device, which is characterized in that the interface conformity device includes:
Receiving module integrates instruction according to the interface and obtains preset interface integration rules for receiving interface integration instruction;
First judgment module, for obtaining the incoming parameter of each interface according to the interface integration rules, and by incoming parameter phase Same interface is sorted out, and set of interfaces to be combined is obtained;
Second judgment module, for determining first interface set from the set of interfaces to be combined, wherein described first connects First interface in mouth set is the interface with outflow parameter;
Third judgment module obtains outflow parameter for sorting out to the first interface in the first interface set The identical target interface set of structure;
Merging module, for merging the interface in the target interface set.
9. a kind of interface integration equipment, which is characterized in that the interface integration equipment includes processor, memory and storage On the memory and the interface integrated process that can be executed by the processor, wherein the interface integrated process is by the place When managing device and executing, the step of realizing interface integration method as described in any one of claims 1 to 7.
10. a kind of storage medium, which is characterized in that interface integrated process is stored on the storage medium, wherein the interface When integrated process is executed by processor, the step of realizing interface integration method as described in any one of claims 1 to 7.
CN201910623589.3A 2019-07-11 2019-07-11 Interface integration method, device, equipment and storage medium Pending CN110515676A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910623589.3A CN110515676A (en) 2019-07-11 2019-07-11 Interface integration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910623589.3A CN110515676A (en) 2019-07-11 2019-07-11 Interface integration method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110515676A true CN110515676A (en) 2019-11-29

Family

ID=68622613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910623589.3A Pending CN110515676A (en) 2019-07-11 2019-07-11 Interface integration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110515676A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209325A (en) * 2019-12-31 2020-05-29 深信服科技股份有限公司 Service system interface identification method, device and storage medium
CN111427581A (en) * 2020-03-26 2020-07-17 山东浪潮通软信息科技有限公司 Method, device, equipment and medium for realizing type multi-inheritance
CN112612509A (en) * 2020-12-23 2021-04-06 天聚地合(苏州)数据股份有限公司 Interface integration method and device, electronic equipment and storage medium
CN114020319A (en) * 2021-09-28 2022-02-08 深圳市潮流网络技术有限公司 Interface calling method, device, server and computer readable storage medium
CN115061742A (en) * 2022-06-02 2022-09-16 中移(杭州)信息技术有限公司 Program interface calling method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200368A1 (en) * 2002-04-18 2003-10-23 Musumeci Gian-Paolo D. System and method for dynamically tuning interrupt coalescing parameters
US20110078599A1 (en) * 2009-09-30 2011-03-31 Sap Ag Modification Free UI Injection into Business Application
WO2017054208A1 (en) * 2015-09-30 2017-04-06 华为技术有限公司 Method and apparatus for determining and indicating air interface resource
CN108037959A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Interface intelligence merging method, mobile terminal and computer-readable recording medium
CN108762898A (en) * 2018-04-09 2018-11-06 平安科技(深圳)有限公司 A kind of management method, terminal device and the computer readable storage medium of thread interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200368A1 (en) * 2002-04-18 2003-10-23 Musumeci Gian-Paolo D. System and method for dynamically tuning interrupt coalescing parameters
US20110078599A1 (en) * 2009-09-30 2011-03-31 Sap Ag Modification Free UI Injection into Business Application
WO2017054208A1 (en) * 2015-09-30 2017-04-06 华为技术有限公司 Method and apparatus for determining and indicating air interface resource
CN108037959A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Interface intelligence merging method, mobile terminal and computer-readable recording medium
CN108762898A (en) * 2018-04-09 2018-11-06 平安科技(深圳)有限公司 A kind of management method, terminal device and the computer readable storage medium of thread interface

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209325A (en) * 2019-12-31 2020-05-29 深信服科技股份有限公司 Service system interface identification method, device and storage medium
CN111209325B (en) * 2019-12-31 2024-02-23 深信服科技股份有限公司 Service system interface identification method, device and storage medium
CN111427581A (en) * 2020-03-26 2020-07-17 山东浪潮通软信息科技有限公司 Method, device, equipment and medium for realizing type multi-inheritance
CN111427581B (en) * 2020-03-26 2023-02-21 山东浪潮通软信息科技有限公司 Method, device, equipment and medium for realizing type multi-inheritance
CN112612509A (en) * 2020-12-23 2021-04-06 天聚地合(苏州)数据股份有限公司 Interface integration method and device, electronic equipment and storage medium
CN114020319A (en) * 2021-09-28 2022-02-08 深圳市潮流网络技术有限公司 Interface calling method, device, server and computer readable storage medium
CN115061742A (en) * 2022-06-02 2022-09-16 中移(杭州)信息技术有限公司 Program interface calling method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110515676A (en) Interface integration method, device, equipment and storage medium
US20160241589A1 (en) Method and apparatus for identifying malicious website
CN112559086B (en) Applet page rendering method and device, electronic equipment and readable storage medium
CN108512710A (en) Test method based on testing tool and testing tool
CN104598513B (en) A kind of method of data flow control and system based on web page frame
CN109947650B (en) Script step processing method, device and system
CN108052442A (en) A kind of engine test method, terminal and computer readable storage medium
CN108334608A (en) Link generation method, device, storage medium and the electronic equipment of five application page
CN108024019A (en) Message display method and device
US10621259B2 (en) URL error-correcting method, server, terminal and system
CN109525509A (en) Network interface card mirror image packet snapping method, terminal and readable storage medium storing program for executing
CN110225104A (en) Data capture method, device and terminal device
CN108073506A (en) Test method and device
CN113792341B (en) Automatic detection method, device, equipment and medium for privacy compliance of application program
WO2021129335A1 (en) Operation monitoring method and apparatus, operation analysis method and apparatus
CN106357480A (en) Method and device for monitoring network performance of application and mobile terminal
CN110362565A (en) The topological relation between a group node is being used and updated in affair clustering
CN115022098B (en) Artificial intelligence safety target range content recommendation method, device and storage medium
CN106487887A (en) A kind of method realizing quick registration and terminal
CN108764374A (en) Image classification method, system, medium and electronic equipment
WO2021223177A1 (en) Abnormal file detection method and related product
CN108039956A (en) Using monitoring method, system and computer-readable recording medium
CN111309307A (en) Method and device for integrating VUE page and workflow system
CN115061939B (en) Data set security test method, device and storage medium
CN106302011A (en) Method of testings based on multiterminal and terminal

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191129