CN110175099A - Interface changes reminding method, device, computer equipment and storage medium - Google Patents

Interface changes reminding method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110175099A
CN110175099A CN201910300452.4A CN201910300452A CN110175099A CN 110175099 A CN110175099 A CN 110175099A CN 201910300452 A CN201910300452 A CN 201910300452A CN 110175099 A CN110175099 A CN 110175099A
Authority
CN
China
Prior art keywords
interface
information
message
target
changes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910300452.4A
Other languages
Chinese (zh)
Other versions
CN110175099B (en
Inventor
夏志雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An 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 CN201910300452.4A priority Critical patent/CN110175099B/en
Publication of CN110175099A publication Critical patent/CN110175099A/en
Application granted granted Critical
Publication of CN110175099B publication Critical patent/CN110175099B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • 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/25Integrating or interfacing systems involving database management systems

Landscapes

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

Abstract

The invention discloses a kind of interfaces to change reminding method, device, computer equipment and storage medium, and this method detects whether current point in time reaches default detection time point by timing;If the current point in time reaches the default detection time point, target interface information corresponding to the index information in local memory is compared, it is whether consistent with the preset interface information in local data base;It is inconsistent with the preset interface information in the local data base, it is determined that the target interface information changes if the target interface information corresponding to the information indexed in the local memory;Prompt information is changed to calling the research staff of method, system to issue interface corresponding to the target interface information to change, the spent time is detected to realize that reduction interface changes, improves the effect that interface changes detection efficiency.

Description

Interface changes reminding method, device, computer equipment and storage medium
Technical field
Reminding method, device, computer equipment are changed the present invention relates to computer field more particularly to a kind of interface and are deposited Storage media.
Background technique
In project development process, the interface being related to is very more, and the calling between each interface is extremely complex, Er Qieyan Interface message is often imported on interface management platform to be managed and safeguard to interface, to call this to connect by hair personnel Message breath is correctly called.During being managed to interface, it usually needs the change conditions of interface are detected, with determination Whether the interface changes.When carrying out interface variation detection, the way of the prior art is usually the project traversed after change Each file compares to extract interface message, then with clean interface information in the code of file, however such does Method efficiency is very low, especially in mega project, since interface quantity is more, when detecting the variation of interface, it is often necessary to It devotes a tremendous amount of time.
Summary of the invention
The present invention provides a kind of interface and changes reminding method, device, computer equipment and storage medium, to reduce interface change It dynamic detection the spent time, improves interface and changes detection efficiency.
A kind of interface variation reminding method, comprising:
Whether timing detection current point in time reaches default detection time point;
If the current point in time reaches the default detection time point, the index information institute compared in local memory is right The target interface information answered, it is whether consistent with the preset interface information in local data base;
If the target interface information corresponding to the information indexed in the local memory, in the local data base The preset interface information it is inconsistent, it is determined that the target interface information changes;
It is changed to calling the research staff of method, system to issue interface corresponding to the target interface information to change Prompt information.
A kind of interface variation suggestion device, comprising:
Detection module, for periodically detecting whether current point in time reaches default detection time point;
Contrast module compares in local memory if reaching the default detection time point for the current point in time Index information corresponding to target interface information, it is whether consistent with the preset interface information in local data base;
Determining module, if the target interface information corresponding to information for being indexed in the local memory, with institute The preset interface information stated in local data base is inconsistent, it is determined that the target interface information changes;
Sending module, for the research staff for calling method, system corresponding to the target interface information to change It issues interface and changes prompt information.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize that above-mentioned interface changes reminding method when executing the computer program.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter Calculation machine program realizes that above-mentioned interface changes reminding method when being executed by processor.
Above-mentioned interface changes in the scheme that reminding method, device, computer equipment and storage medium are realized, is detecting After current point in time reaches default detection time point, believed by target interface corresponding to the index information in comparison local memory Whether breath unanimously determines whether target interface information changes with preset interface information in database, if variation, gives It calls the research staff of method, system to issue interface corresponding to target interface information and changes prompt information, to realize that reducing interface becomes Dynamic detection the spent time, improve the effect that interface changes detection efficiency.
Detailed description of the invention
It, below will be attached needed in the description of this invention in order to illustrate more clearly of technical solution of the present invention Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the application environment schematic diagram that interface changes reminding method in one embodiment of the invention;
Fig. 2 is the schematic diagram that interface changes reminding method in one embodiment of the invention;
Fig. 3 is the schematic diagram that interface changes reminding method in one embodiment of the invention;
Fig. 4 is the schematic diagram that interface changes reminding method in one embodiment of the invention;
Fig. 5 is the schematic diagram that interface changes reminding method in one embodiment of the invention;
Fig. 6 is the schematic diagram that interface changes reminding method in one embodiment of the invention;
Fig. 7 is the schematic diagram that interface changes suggestion device in one embodiment of the invention;
Fig. 8 is the schematic diagram that interface changes suggestion device in one embodiment of the invention;
Fig. 9 is the schematic diagram that interface changes suggestion device in one embodiment of the invention;
Figure 10 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Interface provided in an embodiment of the present invention changes reminding method, can be applicable in the application environment such as Fig. 1, wherein eventually End equipment is communicated by network with server.Terminal device issue timing detection instruction, server after obtaining the instruction, The sequence of operations such as detection, interface message comparison are timed according to the instruction, interface is changed finally by server and is prompted Information is sent to research staff.Wherein, terminal device can be, but not limited to various personal computers, laptop, intelligent hand Machine, tablet computer and portable wearable device.Server can use the either multiple server compositions of independent server Server cluster is realized.
In one embodiment, it as shown in Fig. 2, providing a kind of interface variation reminding method, applies in Fig. 1 in this way It is illustrated, includes the following steps: for server
S10: whether timing detection current point in time reaches default detection time point.
Wherein, current point in time refers to the time point on the server of runnable interface management system, interface management system Refer to the system that the interface to each operation system is managed collectively, includes supply method, system and called side system in operation system System;At the time of default detection time point refers to whether the monitoring interface pre-set changes, for example, presetting daily Evening 23:00 starts to monitor whether interface changes.
Specifically, real-time monitoring can be carried out to the current point in time on the server for monitoring interface management system, as long as It monitors that the current point in time on server reaches default detection time point each time, is carried out subsequent operation.For example, default Detection time point point is daily 23:00, real-time monitors the current point in time on server and reaches 23:00, then starts to execute Subsequent operation.
S20: it if current point in time reaches default detection time point, compares corresponding to the index information in local memory Target interface information, it is whether consistent with the preset interface information in local data base.
Wherein, interface refers to application programming interface, also referred to as API (Application Programming Interface).Interface message refers to interface name, interface attributes included in interface, the parameter of interface method and interface Etc. information.Wherein, preset interface information refers to being stored in advance in the supply method, system in the database of interface management system Original interface message, preset interface information include preset interface name, preset path name and preset field information;Preset field letter Breath includes parameter name, parameter type, method name etc.;
In supply method, system, usually there are two types of interface, a kind of interface for being available to supplying party's system itself and calling, one Kind is available to the interface for calling method, system to call, and target interface information refers to being supplied to the interface for calling method, system to call Information.Specifically, target interface information can be when detecting that the current point in time of interface management system reaches default detection Between when putting, supply in the code file of method, system, be supplied to the interface message for calling method, system to call.Illustratively, if detection Before current point in time on to the server of interface management system reaches default detection time point, Project-developing personnel are to business The interface of system is modified, then correspondingly, the target interface information extracted is then Project-developing personnel to operation system Interface modify after supply method, system interface message.Target interface name, destination path name and aiming field information, Aiming field information includes parameter name, parameter type, method name etc..
Index information in local memory refers to the information for having extracted index effect to target interface information, such as interface The path of name or interface.Index information be it is preconfigured, index information can be extracted from item code file in advance, Then index information is stored in local memory again.
Specifically, if current point in time, which reaches, presets detection time point, in the local memory for comparing interface management system Target interface information corresponding to the index information stored is with the preset interface information in the database of interface management system It is no consistent.
In this embodiment, preset interface information is original interface message in database, by comparing local data base In original interface message with whether target interface information corresponding to the index information in memory consistent can judge interface Whether information changes, if not identical, proves that the target interface information of supply method, system changes;If they are the same, then it demonstrate,proves The target interface information of bright supply method, system does not change.
In some other embodiments, if current point in time does not reach default detection time point, interface is continued to test Whether the current point in time of management system reaches default detection time point.
S30: it if target interface information corresponding to the information indexed in local memory, is connect with default in local data base Message breath is inconsistent, it is determined that target interface information changes.
S40: it is changed to calling the research staff of method, system to issue interface corresponding to the target interface information to change Prompt information.
Wherein, it is the prompt for prompting the target interface information of supply method, system to change that interface, which changes prompt information, Information.The interface, which changes prompt information, may include the specific situation of change of target interface provided by supply method, system.
It is alternatively possible to which the mailbox by way of mail to the research staff for calling method, system, which issues a package, contains interface Change the mail of prompt information, wherein the email address of the research staff of method, system is called to be stored in advance.Optionally, also It can be pre-configured with the publisher that interface management system changes prompt information as interface, call method, system as subscriber, adopt With the mode of distribution subscription to the research staff's sending interface variation prompt information for calling method, system.
In this embodiment, due to the index information in local memory can direct mapping objects interface message, so energy It is enough that target interface information is directly found according to the index information in local memory, to directly extract target interface information, no Each class file must be traversed again from item code again to obtain target interface name, then from the corresponding interface of target interface name Middle extraction target interface information reduces traversal class file come the step of obtaining target interface name, to improve interface message It reduces interface message and detects the time it takes, improve interface detection efficiency.
In one embodiment, as shown in figure 3, step S40: to calling corresponding to the target interface information to change The research staff of method, system issues interface and changes prompt information, comprising the following steps:
S41: it obtains interface and calls mapping relation information, wherein interface calls mapping relation information to be used to indicate supplying party The supply of interface and call relation between system and calling method, system.
Wherein, interface calls mapping relation information to refer to the supply of the interface between each operation system and the pass with calling System.For example, there is tetra- operation systems of A, B, C, D, system A provides an interface and calls to system B, system C, system D, then this Interface between four operation systems calls mapping relations to provide interface for system A and calls to system B, C, D.According to this interface Call mapping relations, it can be deduced that interface calls mapping relation information are as follows:
Wherein, Service_provider is the supply method, system of interface, and Service_consumer is the calling of interface Method, system.
Specifically, if detection show that the interface message of supply method, system changes, from the data of interface management system The interface that each operation system is obtained in library calls mapping relation information.
In some other embodiments, it if the interface message of supply method, system does not change, executes timing and detects Whether the current point in time of interface management system reaches the operation of default detection time point.
S42: calling method, system corresponding to the interface message to change is determined according to interface calling mapping relation information.
Specifically, mapping relation information is called according to interface to determine system, supplying party corresponding to the interface message to change System and calling method, system.For example, interface calls mapping relation information are as follows:
If the supply method, system that interface message changes is system A, mapping relation information is called to determine according to interface The corresponding calling method, system of system A is system B, system C and system D out.
In this embodiment, by calling mapping relation information to determine corresponding to the interface message to change according to interface Calling method, system, can be avoided further interface change prompt information send error, avoid interfering research staff.
S43: it is changed to calling the research staff of method, system to issue interface corresponding to the target interface information to change Prompt information.
Specifically, the method for issuing interface variation prompt information, which may is that, is determining the interface message institute to change After corresponding supply method, system and calling method, system, the research staff for calling method, system is obtained from the database of interface management system Email address, further according to call method, system research staff email address, to research staff mailbox transmission interface change The mail of prompt information.
Wherein, mail changes prompt information as Mail Contents, using target interface information as attachment using interface.Illustratively, The data type of parameter productType in data-query interfaces provided by consumer credit control system (dataQuery) Long int is become by int, then is that mail can be with to calling the data-query interfaces system to issue interface to change prompt information It is:
It is had changed with lower interface:
System name: consumer credit control system;Interface name: data-query interfaces (dataQuery);
Parameter name: productType, data type: long int;
Variation explanation: the data type of parameter productType becomes long int by int.
In this embodiment, mapping relation information is called by obtaining interface, calls mapping relation information true according to interface Surely calling method, system corresponding to the interface message to change is capable of determining that the calling method, system for calling the interface, in turn It is capable of determining that the corresponding research staff of calling method, system with the interface;To calling corresponding to the interface message to change The research staff of method, system issues interface and changes prompt information, can be realized and is simply sent to the change conditions of target interface information The research staff for calling the target interface avoids research staff from receiving too many interface transition information, causes to be stranded to research staff It disturbs.
In one embodiment, as shown in figure 4, step S40 gives called side corresponding to the target interface information to change The research staff of system issues interface and changes prompt information, includes the following steps:
S44: the message that the interface message for issuing supply method, system to message cache list changes, message cache list It is to call mapping relations to pre-establish according to the interface between supply method, system, and calling method, system.
Wherein, message cache list, which refers to, changes message for receiving interface and saves the container of message subscribing person, wherein Message subscribing refers to the supply method, system for calling the interface.
Specifically, if the interface message of supply method, system changes, one interface message of triggering changes signal, And the signal is transmitted to by message cache list by server.
S45: according to the message subscribing list of message cache list, disappear what the interface message for supplying method, system changed The breath person that is pushed to message subscribing, message subscribing person are the calling method, system for calling the interface message to change, message subscribing column Table includes the calling method, system for having subscribed the interface message to change.
Specifically, server is detecting message cache list upon receipt of the signal, begins stepping through message caching column Each of table message subscribing person, and disappear what is changed to the message subscribing person's transmission interface information currently traversed Breath.Wherein it is possible to which interface message variation message to be sent to the research staff for calling method, system by the method for sending mail.
In this embodiment, by using the method for Publish-subscribe, i.e., supply method, system is issued to message cache list The message that interface message changes will supply the interface message of method, system according to the message subscribing list of message cache list The message to change is pushed to message subscribing person, can be realized that be simply sent to call by the change conditions of target interface information should The research staff of target interface avoids research staff from receiving too many interface transition information, causes to perplex to research staff.
In the embodiment that the index information in a local memory includes target interface name and destination path name, such as Fig. 5 It is shown, in step S20, compares and deposited in target interface information corresponding to the index information in local memory and local data base Whether the preset interface information of storage is consistent, includes the following steps:
S21: target interface name and destination path name are extracted from local memory, wherein the entitled supplying party of target interface System is supplied to the name for the interface for calling method, system to call, and the entitled supply method, system of destination path, which is supplied to, calls method, system tune The pathname in path where interface.
Specifically, the current point in time in the computer equipment for detecting interface management system reaches default detection time Point extracts target interface name and destination path name from local memory.Wherein, since target interface name and target interface roadbed are It is changeless, therefore, the corresponding target interface name of target interface and target can be extracted from item code file in advance Then target interface name and destination path name are stored in local memory by interface path again.By by target interface name and mesh Mark interface path is pre-configured with, and is enabled to when whether comparison target interface information changes each time, it is not necessary to again from project generation Target interface name is extracted in code file, but target interface is directly directly extracted according to target interface name and target interface pathname Information.
S22: in the item code file for obtaining supply method, system, target class file corresponding to destination path name.
Wherein, class file is the file good with programming language.Distinct program language has the different class texts for expanding name name Part.For example, the entitled .java of the expansion of the class file of JAVA, the entitled .cs of the expansion of the class file of C#, the expansion of the class file of C++ Entitled .cpp.Target class file refers to class file corresponding to destination path name.
Specifically, target can be obtained by retrieving the how corresponding class file of destination path in item code file Class file.
S23: being matched using canonical matching in target class file, the parameter name of interface corresponding to target interface name, ginseng Several classes of types, method name obtain aiming field information.
Wherein, the name for the parameter that the entitled interface of parameter is passed to and returns;Parameter type is the ginseng that interface is incoming and returns Several data types;The name of method in the entitled interface of method.
Specifically, the ginseng of interface corresponding to a target interface name in a target class file is matched by canonical matching Several, parameter type and method name obtain aiming field information.Wherein, parameter name and method name are ordered with ad hoc rules Name, it could be matched in this way by canonical.
It should be noted that parameter type has had specific redaction rule in programming language, therefore, parameter type without It need to be named with ad hoc rules.
S24: target interface name, destination path name and aiming field information are packaged, target interface information is obtained.
Illustratively, can by target interface name, destination path name and aiming field Information encapsulation be JSON format or Person's XML format.
S25: whether the preset interface information stored in comparison target interface information and local data base is consistent.
Specifically, the target in the target interface information of supply method, system can be compared by the way of string matching Preset interface name, preset path name in interface name, destination path name and aiming field information and preset interface information and default Whether field information is consistent.Wherein, target interface information and preset interface information have all been encapsulated as same data format.
Illustratively, target interface information and preset interface information have been encapsulated as the data of JSON format, then compare In the data of JSON format, whether the identical corresponding value of every key is identical.For example, target interface information are as follows:
" interfaceName ": " dataQuery ",
“dataQuery”:{
" functionName ": " functionA ",
" parameterName ": " productType ",
“dataType”:“long int”
};
Preset interface information are as follows:
"interfaceName":"dataQuery";
“dataQuery”:{
" functionName ": " functionA ",
" parameterName ": " productType ",
“dataType”:“int”
};
Compare key in target interface information and preset interface information be interfaceName, dataQuery, Whether value corresponding to parameterName and dataType is all identical.
Wherein, in the target interface information and preset interface information of JSON format, the data before colon (:) are key, The subsequent data of colon (:) are the corresponding value of each key
In this specific embodiment, the target interface information of method, system is supplied by extracting, then compares target interface information With whether preset interface information consistent determines whether interface message changes, can accurately know the variation feelings of interface message Condition.
It in this embodiment, can be fast by the way that target interface name and destination path name are stored in local memory in advance Speed extracts target interface information, because target interface name and destination path name are all fixed and invariable, each target interface name It is only corresponding with a target interface, so, in the extraction process of target interface information, it is only necessary to extract mesh from destination path Class file is marked, then extracts target interface information corresponding to target interface name from target class file, reduces traversal project Code file improves the extraction rate of target interface information from item code file the step of extraction target interface name, thus It can achieve the effect that rapidly extracting goes out target interface information.
In one embodiment, as shown in fig. 6, after step S40, it further includes following steps which, which changes reminding method:
S50: the preset interface information in local data base is replaced with into target interface information.
Specifically, which is the renewal process of the preset interface information in database, and update method can be interface The preset interface information that the supply method, system that interface changes occurs in the database of management system replaces with supplying party's aims of systems Interface message.Such as: (dataQuery) parameter of data-query interfaces provided by consumer credit control system productType Parameter type long int, preset interface information are become by int are as follows:
"interfaceName":"dataQuery";
“dataQuery”:{
" functionName ": " functionA ",
" parameterName ": " productType ",
" dataType ": " int ", };
Then by " dataType " in preset interface information: " int " replace with " dataType ": " long int ".
Wherein, dataQuery is interface name, and productType is parameter name, and long int and int are parameter type, FunctionA is method name.
In this specific embodiment, the preset interface information in the database of interface management system is replaced with into target interface Information can be managed the interface message of supply method, system, so that when whether detection interface message changes next time, energy Enough get accurate interface message.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, a kind of interface variation suggestion device is provided, which changes suggestion device and above-described embodiment Middle interface changes reminding method and corresponds.As shown in fig. 7, it includes detection module 10, comparison mould that the interface, which changes suggestion device, Block 20, determining module 30 and sending module 40.Detailed description are as follows for each functional module:
Detection module 10, for periodically detecting whether current point in time reaches default detection time point;
Contrast module 20 compares the index in local memory if reaching default detection time point for current point in time Target interface information corresponding to information, it is whether consistent with the preset interface information in local data base;
Determining module 30, if target interface information corresponding to information for being indexed in local memory, with local data Preset interface information in library is inconsistent, it is determined that target interface information changes;
Sending module 40, for research staff's hair to calling method, system corresponding to the target interface information to change Outgoing interface changes prompt information.
Optionally, as shown in figure 8, sending module 40 includes: acquiring unit 41, determination unit 42 and transmission unit 43.Respectively Detailed description are as follows for functional module:
First acquisition unit 41 calls mapping relation information for obtaining interface, wherein interface calls mapping relation information It is used to indicate supply method, system and calls the supply of interface and call relation between method, system;
Determination unit 42, for calling mapping relation information to determine corresponding to the interface message to change according to interface Call method, system;
Transmission unit 43, for research staff's hair to calling method, system corresponding to the target interface information to change Outgoing interface changes prompt information.
Optionally, as shown in figure 9, sending module 40 includes: release unit 44 and push unit 45.Each functional module is detailed It is described as follows:
Release unit 44, what the target interface information for issuing supply method, system to message cache list changed disappears Breath, message cache list are to call mapping relations to pre-establish according to the interface between supply method, system, and calling method, system;
Push unit 45 will supply the target interface of method, system for the message subscribing list according to message cache list The message that information changes is pushed to message subscribing person, message subscribing person are the called sides for calling the interface message to change System, message subscribing list include the calling method, system for having subscribed the interface message to change.
Optionally, contrast module 20 includes: that extraction unit, second acquisition unit, matching unit, encapsulation unit and comparison are single Member.Detailed description are as follows for each functional module:
Extraction unit, for extracting target interface name and destination path name from local memory, wherein target interface name The name for the interface for calling method, system to call is supplied to for supply method, system, the entitled supply method, system of destination path is supplied to calling The pathname in path where the interface that method, system calls;
Second acquisition unit, for obtaining in the item code file for supplying method, system, mesh corresponding to destination path name Mark class file;
Matching unit is matched in target class file for being matched using canonical, interface corresponding to target interface name Parameter name, parameter type, method name obtain aiming field information;
Encapsulation unit obtains target for target interface name, destination path name and aiming field information to be packaged Interface message.
Comparison unit, for compare the preset interface information stored in target interface information and local data base whether one It causes.
Optionally, after cue module 50, further includes: replacement module.Detailed description are as follows for the functional module:
Replacement module, for the preset interface information in local data base to be replaced with target interface information.
The specific of suggestion device, which is changed, about interface limits the limit that may refer to that reminding method is changed above for interface Fixed, details are not described herein.Above-mentioned interface change the modules in suggestion device can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 10.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is used to store the email address of preset interface information and called side system research and development personnel.The computer equipment Network interface be used to communicate with external terminal by network connection.To realize one when the computer program is executed by processor Kind interface changes reminding method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor perform the steps of when executing computer program
Whether timing detection current point in time reaches default detection time point;
If current point in time reaches default detection time point, target corresponding to the index information in local memory is compared Whether the preset interface information in interface message, with local data base is consistent;
If target interface information corresponding to the information indexed in local memory, believe with the preset interface in local data base It ceases inconsistent, it is determined that target interface information changes;
Prompt is changed to calling the research staff of method, system to issue interface corresponding to the target interface information to change Information.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Whether timing detection current point in time reaches default detection time point;
If current point in time reaches default detection time point, target corresponding to the index information in local memory is compared Whether the preset interface information in interface message, with local data base is consistent;
If target interface information corresponding to the information indexed in local memory, believe with the preset interface in local data base It ceases inconsistent, it is determined that target interface information changes;
Prompt is changed to calling the research staff of method, system to issue interface corresponding to the target interface information to change Information.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of interface changes reminding method characterized by comprising
Whether timing detection current point in time reaches default detection time point;
If the current point in time reaches the default detection time point, compare corresponding to the index information in local memory Target interface information, it is whether consistent with the preset interface information in local data base;
If the target interface information corresponding to the information indexed in the local memory, with the institute in the local data base It is inconsistent to state preset interface information, it is determined that the target interface information changes;
Prompt is changed to calling the research staff of method, system to issue interface corresponding to the target interface information to change Information.
2. interface as described in claim 1 changes reminding method, which is characterized in that described to believe to the interface to change The research staff of the corresponding calling method, system of breath issues interface and changes prompt information, comprising:
It obtains interface and calls mapping relation information, wherein the interface calls mapping relation information to be used to indicate supply method, system The supply of interface and call relation between the calling method, system;
The called side corresponding to the interface message to change is determined according to interface calling mapping relation information System;
Interface is issued to the research staff of the calling method, system corresponding to the target interface information to change to change Prompt information.
3. interface as described in claim 1 changes reminding method, which is characterized in that described to be connect to the target to change The research staff of the corresponding calling method, system of message breath issues interface and changes prompt information, comprising:
The message that the target interface information for issuing the supply method, system to message cache list changes, the message Cache list is to call mapping relations to pre-establish according to the supply method, system and the interface called between method, system 's;
According to the message subscribing list of the message cache list, the target interface information of the supply method, system is occurred The message of variation is pushed to message subscribing person, the message subscribing person be call described in the called side of interface message that changes System, the message subscribing list include the calling method, system for having subscribed the interface message to change.
4. interface as described in claim 1 changes reminding method, which is characterized in that index information includes in the local memory Target interface name and destination path name, it is described comparison local memory in index information corresponding to target interface information, with this Whether the preset interface information in ground database is consistent, comprising:
The target interface name and the destination path name are extracted from the local memory, wherein the target interface name The name for the interface that the calling method, system calls, the entitled supply of destination path are supplied to for the supply method, system The pathname in path where method, system is supplied to the interface that the calling method, system calls;
In the item code file for obtaining the supply method, system, target class file corresponding to the destination path name;
It is matched using canonical matching in the target class file, the parameter name of interface corresponding to the target interface name, ginseng Several classes of types, method name obtain aiming field information;
The target interface name, the destination path name and the aiming field information are packaged, the target is obtained Interface message.
Whether consistent compare the preset interface information stored in the target interface information and the local data base.
5. interface as described in claim 1 changes reminding method, which is characterized in that described to believe to the interface to change The research staff of the corresponding calling method, system of breath issues after interface variation prompt information, further includes:
The preset interface information in the local data base is replaced with into the target interface information.
6. a kind of interface changes suggestion device characterized by comprising
Detection module, for periodically detecting whether current point in time reaches default detection time point;
Contrast module compares the rope in local memory if reaching the default detection time point for the current point in time The corresponding target interface information of fuse breath, it is whether consistent with the preset interface information in local data base;
Determining module, if the target interface information corresponding to information for being indexed in the local memory, with described The preset interface information in ground database is inconsistent, it is determined that the target interface information changes;
Sending module, for being issued to the research staff of calling method, system corresponding to the target interface information to change Interface changes prompt information.
7. interface as claimed in claim 6 changes suggestion device, which is characterized in that the sending module includes:
Acquiring unit calls mapping relation information for obtaining interface, wherein the interface calls mapping relation information for referring to Show the supply of interface and call relation between supply method, system and the calling method, system;
Determination unit, for calling mapping relation information to determine corresponding to the interface message to change according to the interface The calling method, system;
Transmission unit, for the research staff to the calling method, system corresponding to the target interface information to change It issues interface and changes prompt information.
8. interface as claimed in claim 6 changes suggestion device, which is characterized in that the sending module includes:
Release unit, what the target interface information for issuing the supply method, system to message cache list changed Message, the message cache list are to call mapping according to the supply method, system and the interface called between method, system What relationship pre-established;
Push unit, for the message subscribing list according to the message cache list, by the mesh of the supply method, system The message that changes of mark interface message is pushed to message subscribing person, the message subscribing person be call described in change connect The calling method, system of message breath, the message subscribing list include having subscribed the calling of the interface message to change Method, system.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to Any one of 5 interfaces change reminding method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization interface as described in any one of claim 1 to 5 changes reminding method when the computer program is executed by processor.
CN201910300452.4A 2019-04-15 2019-04-15 Interface change prompting method and device, computer equipment and storage medium Active CN110175099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910300452.4A CN110175099B (en) 2019-04-15 2019-04-15 Interface change prompting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910300452.4A CN110175099B (en) 2019-04-15 2019-04-15 Interface change prompting method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110175099A true CN110175099A (en) 2019-08-27
CN110175099B CN110175099B (en) 2023-02-03

Family

ID=67689867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910300452.4A Active CN110175099B (en) 2019-04-15 2019-04-15 Interface change prompting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110175099B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110752950A (en) * 2019-10-23 2020-02-04 中国联合网络通信集团有限公司 Update detection method and device for cloud resource pool and terminal equipment
CN111045948A (en) * 2019-12-13 2020-04-21 盛科网络(苏州)有限公司 Method, apparatus and storage medium for checking interface signal between modules
CN111708589A (en) * 2020-06-17 2020-09-25 中国银行股份有限公司 Information processing system, method, device and readable storage medium
CN112817994A (en) * 2021-02-02 2021-05-18 中国工商银行股份有限公司 Incidence relation asset management device, system and method
CN113076134A (en) * 2021-04-08 2021-07-06 广州虎牙科技有限公司 API change monitoring method, system, client and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1505325A (en) * 2002-11-28 2004-06-16 ��������ֽ�ɷ����޹�˾ Network interface management system and method thereof
WO2010000158A1 (en) * 2008-07-02 2010-01-07 华为技术有限公司 Route state detection method, device and system
CN105045577A (en) * 2015-06-29 2015-11-11 用友优普信息技术有限公司 Interface change prompting method and interface change prompting system
CN109067780A (en) * 2018-09-17 2018-12-21 平安科技(深圳)有限公司 Detection method, device, computer equipment and the storage medium of crawler user

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1505325A (en) * 2002-11-28 2004-06-16 ��������ֽ�ɷ����޹�˾ Network interface management system and method thereof
WO2010000158A1 (en) * 2008-07-02 2010-01-07 华为技术有限公司 Route state detection method, device and system
CN105045577A (en) * 2015-06-29 2015-11-11 用友优普信息技术有限公司 Interface change prompting method and interface change prompting system
CN109067780A (en) * 2018-09-17 2018-12-21 平安科技(深圳)有限公司 Detection method, device, computer equipment and the storage medium of crawler user

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110752950A (en) * 2019-10-23 2020-02-04 中国联合网络通信集团有限公司 Update detection method and device for cloud resource pool and terminal equipment
CN111045948A (en) * 2019-12-13 2020-04-21 盛科网络(苏州)有限公司 Method, apparatus and storage medium for checking interface signal between modules
CN111708589A (en) * 2020-06-17 2020-09-25 中国银行股份有限公司 Information processing system, method, device and readable storage medium
CN111708589B (en) * 2020-06-17 2024-04-16 中国银行股份有限公司 Information processing system, method, device and readable storage medium
CN112817994A (en) * 2021-02-02 2021-05-18 中国工商银行股份有限公司 Incidence relation asset management device, system and method
CN112817994B (en) * 2021-02-02 2024-01-30 中国工商银行股份有限公司 Association relationship asset management device, system and method
CN113076134A (en) * 2021-04-08 2021-07-06 广州虎牙科技有限公司 API change monitoring method, system, client and electronic equipment

Also Published As

Publication number Publication date
CN110175099B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN110175099A (en) Interface changes reminding method, device, computer equipment and storage medium
CN105005532B (en) A kind of system and method for automatic test application programming interfaces stability
CN109064345A (en) Message treatment method, system and computer readable storage medium
CN109447609A (en) Method of payment, device, computer equipment and storage medium
CN108446362A (en) Data cleansing processing method, device, computer equipment and storage medium
CN110162509A (en) File comparison method, device, computer equipment and storage medium
CN109542428A (en) Method for processing business, device, computer equipment and storage medium
CN109445842A (en) Rule generating method, device, computer equipment and storage medium
CN109714319A (en) Management system, method, apparatus, computer equipment and the storage medium of micro services
CN102368261A (en) Expandable running maintenance report generation method
CN110309109B (en) Data monitoring method, device, computer equipment and storage medium
CN109656778A (en) Data capture method, device, computer equipment and storage medium
CN108304554A (en) File declustering method, apparatus, computer equipment and storage medium
CN109918435A (en) A kind of processing method and system of business interface
CN108848142A (en) Information push method, device, computer equipment and storage medium
CN109359809A (en) Task distribution method, system, computer equipment and storage medium
CN110489086A (en) Process executes control method, device, computer equipment and storage medium
CN109858257B (en) Access control method and device
CN111581169A (en) Data import method and device, computer equipment and storage medium
CN112631633A (en) Function module upgrading method and device based on double-core intelligent electric meter
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN108763046A (en) Thread operation and monitoring method, device, computer equipment and storage medium
CN106610845A (en) Information management method, device, server and system
CN107704362A (en) A kind of method and device based on Ambari monitoring big data components
WO2020253044A1 (en) Service configuration method and apparatus, and computer device and storage medium

Legal Events

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