WO2018201978A1 - Interface call data processing method, apparatus, computer device and storage medium - Google Patents

Interface call data processing method, apparatus, computer device and storage medium Download PDF

Info

Publication number
WO2018201978A1
WO2018201978A1 PCT/CN2018/084762 CN2018084762W WO2018201978A1 WO 2018201978 A1 WO2018201978 A1 WO 2018201978A1 CN 2018084762 W CN2018084762 W CN 2018084762W WO 2018201978 A1 WO2018201978 A1 WO 2018201978A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
information
call
log
log file
Prior art date
Application number
PCT/CN2018/084762
Other languages
French (fr)
Chinese (zh)
Inventor
陈林
张国辉
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2018201978A1 publication Critical patent/WO2018201978A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems

Definitions

  • the present application relates to the field of computer technologies, and in particular, to an interface call data processing method, apparatus, computer device, and storage medium.
  • the registration center is used as a third party to judge and forward the interface call request.
  • an interface call data processing method, apparatus, computer apparatus, and non-transitory computer readable storage medium are provided.
  • An interface call data processing method including:
  • the formatted call parameters are allocated to the corresponding target interface for calling processing.
  • An interface calls a data processing device, including:
  • An acquiring module configured to receive an interface call request, obtain a target interface code in the interface call request, and obtain a target data format corresponding to the target interface code
  • a format conversion module configured to perform a corresponding format conversion on the calling parameter in the interface call request according to the obtained target data format
  • An interface address mapping module configured to obtain an interface address corresponding to the target interface code according to a mapping relationship between an interface code and an interface address set in the interface routing service
  • the processing module is configured to allocate the formatted call parameters to the corresponding target interface according to the interface address for calling processing.
  • a computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to execute The following steps:
  • the formatted call parameters are allocated to the corresponding target interface for calling processing.
  • One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of:
  • the formatted call parameters are allocated to the corresponding target interface for calling processing.
  • FIG 1 is an application environment diagram of an interface call data processing method in accordance with one or more embodiments.
  • FIG. 2 is a block diagram of a computer device in accordance with one or more embodiments.
  • FIG. 3 is a flow diagram of an interface call data processing method in accordance with one or more embodiments.
  • FIG. 4 is a flow diagram of a callback step of returning data in accordance with one or more embodiments.
  • FIG. 5 is a flow diagram of a log file generation step in accordance with one or more embodiments.
  • FIG. 6 is a flow diagram of a log file generation step in accordance with another or more embodiments.
  • FIG. 7 is a block diagram of an interface call data processing apparatus in accordance with one or more embodiments.
  • FIG. 8 is a block diagram of an interface call data processing apparatus in accordance with another or more embodiments.
  • FIG. 9 is a block diagram of an interface call data processing apparatus in accordance with yet one or more embodiments.
  • FIG. 1 is an application environment diagram of an interface call data processing method in an embodiment.
  • the application environment includes an interface 110 and a called platform 120 that are connected through a network.
  • the interface invoking device 110 refers to a device that initiates an interface call request to request an interface in the called platform 120.
  • the interface invoking device 110 can be either a terminal or a server.
  • the called platform 120 refers to a platform system that provides an interface called by the interface calling device 110. For example, when the interface invoking device 110 needs to use a certain function in the called platform 120, an interface call request is sent to the called platform 120 to request to call the corresponding interface in the called platform 120 for implementing the function.
  • the interface is not limited to being invoked by the called platform. It can be understood that the called platform 120 can also have the capability of calling interfaces of other devices or platforms.
  • the called platform 120 receives the interface call request sent by the interface invoking device 110, obtains the target interface code in the interface call request, and obtains the target format corresponding to the target interface code; according to the acquired target format, the interface call request Call the parameters for the corresponding format conversion.
  • the called platform 120 obtains the interface address corresponding to the target interface code according to the mapping relationship between the interface code and the interface address configured in the interface routing service. And according to the interface address, the formatted call parameters are allocated to the corresponding target interface in the called platform 120 for call processing.
  • the computer device may be the called platform 120 in FIG. 1, and the called platform 120 may be implemented by a separate server or a server cluster composed of multiple physical servers.
  • the computer device includes a processor, memory, and network interface coupled by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • a non-volatile storage medium of a computer device stores an operating system and computer readable instructions.
  • the internal memory in the computer device provides an environment for the operation of the operating system and computer readable instructions in the non-volatile storage medium.
  • the computer readable instructions when executed by a processor, cause the processor to perform an interface call data processing method.
  • the network interface is used to connect to the network for communication, such as receiving an interface call request.
  • FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • an interface call data processing method is provided. This embodiment is mainly illustrated by the method applied to the called platform in FIG. 1 above. Referring to FIG. 3, the interface calling data processing method specifically includes the following steps:
  • the interface calling device sends an interface call request to the called platform when the interface of the called platform is to be called, and the interface call request includes the target interface code.
  • the target interface is the interface that is requested to be called.
  • the target interface encoding is used to uniquely identify the target interface.
  • the target interface code in the interface call request may be one or more, that is, the called platform may receive calls to multiple interfaces in parallel.
  • the target data format is a data format conforming to the interface specification of the interface corresponding to the target interface encoding.
  • the correspondence between the interface code and the data format is pre-stored in the called platform, and the called platform acquires the target data format corresponding to the target interface code according to the correspondence.
  • the call parameters are included in the interface call request.
  • the call parameter refers to the parameter related to the interface call processing. It can be understood that the called interface can perform corresponding call processing according to the calling parameter to obtain data that the interface calls the device to call.
  • the calling parameter in the interface call request needs to be converted according to the target data format corresponding to the target interface, that is, converted into a target. Interface specification data.
  • the interface routing service is set in the called platform.
  • An interface routing service is a program that can be used to implement interface routing addressing.
  • the interface route addressing function refers to the function of routing the address to the address of the corresponding interface according to the interface code. It can be understood that the interface routing service does not only have the interface routing address function, and the interface routing service can also have other functions.
  • the mapping relationship between the interface code and the interface address is preset in the interface routing service.
  • the interface code corresponds to the interface address mapping.
  • the called platform acquires an interface address corresponding to the target interface code according to the mapping relationship. Interface address, used to find the corresponding interface in the called platform.
  • the corresponding interface is found in the called platform, and the found interface is the target interface.
  • the called platform allocates the formatted call parameters to the found target interface, and the target interface performs corresponding call processing according to the formatted call parameters.
  • the above interface invokes a data processing method, and by setting an interface routing service in the called platform itself, when receiving an interface call request, the mapping relationship between the interface code and the interface address set in the service may be directly obtained according to the interface reason, that is, the interface may be obtained.
  • the target interface can be found according to the interface address.
  • the registration center needs to be specially set to make the interface call, which greatly reduces the cost of the interface call processing.
  • the call parameter in the interface call request is subjected to corresponding format conversion; and the call parameter transfer after the format transfer refers to the target interface corresponding to the interface address, thereby avoiding the The calling interface does not recognize the error caused by the data.
  • the method further includes a step of invoking data return, specifically including the following steps:
  • the initial data format of the call parameter in the interface call request refers to the data format of the call parameter in the interface call request before the format conversion according to the target format.
  • the initial data format including the calling parameter in the interface call request may be, and the called platform may directly obtain the initial data format of the calling parameter included in the interface call request.
  • the called platform performs format analysis on the calling parameters before the format conversion to extract the corresponding format data, and obtains the corresponding initial data format according to the extracted format data combination.
  • a plurality of data format templates may be preset in the called platform, and the calling parameters before the format conversion are matched and analyzed with each data format template, and the data format template with the highest matching degree is used as the calling parameter before the format conversion.
  • the initial data format may be preset in the called platform, and the calling parameters before the format conversion are matched and analyzed with each data format template, and the data format template with the highest matching degree is used as the calling parameter before the format conversion.
  • step S402 is not limited to being performed after step S310, and step S402 can be performed after step S302 and any step before step S404.
  • S404 Perform format conversion on the data obtained after the call processing based on the initial data format.
  • the called platform may perform call processing according to the call parameter converted by the format interface by the target interface, and obtain corresponding data after the call processing, and the data obtained by the call processing is data required by the interface calling device.
  • the called platform can perform corresponding format conversion on the data obtained after the call is processed according to the initial data format. It can be understood that the data converted according to the initial data format conforms to the data format requirements of the interface calling device.
  • the called platform may return the format converted data directly to the interface calling device according to the data channel established between the two when the interface calling device sends the interface call request.
  • the called platform can also return the format converted data to the interface calling device by other means.
  • the implementation manner of returning the format converted data to the interface calling device by the called platform is not limited, as long as the format converted data is returned to the interface calling device.
  • the initial data format of the calling parameter in the interface call request is automatically obtained, and after the called data is acquired, the data obtained after the processing is automatically converted according to the initial data format, and then returned, that is, The called platform end completes the conversion of the data format, and does not need to perform data format conversion on the interface calling device side, which reduces the requirement for the interface calling device, thereby improving the applicability of the called platform.
  • the method further includes: invoking log information according to the interface routing service record interface; the recorded interface call log information includes call log information of any interface in the invoked platform.
  • the interface invokes log information, including interface call time information, interface information of the requested call, and returned data information.
  • the interface calls time information which may include the interface call start time and the time of returning the called data or the duration of the interface call.
  • the interface information requested to be invoked may include the target interface encoding of the requested call.
  • the returned data information returned may include information such as the size or format of the data being called.
  • the interface routing service in the called platform has an interface call log information management function.
  • the interface invokes the log information management function, which may include a record function for calling the log of the interface.
  • the interface call log information management function may further include an access authority verification function for the interface call log, a function of integrating the call log information, and a function of outputting the call log information to generate a corresponding log file.
  • the interface routing service can uniformly record the interface call log information.
  • the interface calls log information, which is the log information related to the interface call.
  • the log information is called according to the interface recorded by the interface routing service, including the call log information of any interface in the called platform.
  • the interface routing service uniformly records the interface call logs uniformly, and implements unified management of the call log information of the interface, thereby avoiding the independent management of the self-log information of the programs corresponding to the interfaces, and the interface call is caused.
  • the log information is mixed with other massive log information without using the query of the log information for the interface.
  • the program corresponding to each interface is also prevented from independently managing the interface call log information, and the interface call log information is too scattered, which is not conducive to the analysis of the interface call.
  • the interface routing service uniformly records the interface call logs uniformly, which implements centralized management of the interface call log information, and improves the efficiency of query log information and interface call problem analysis.
  • the method further includes a log file generating step, which specifically includes the following steps:
  • the interface invokes a log file generation request for requesting the generation of an interface to call the relevant log file.
  • the user (such as a technician) can perform an interface call log file generating operation on the terminal, and the terminal generates and sends a corresponding interface call log file generating request to the called platform in response to the operation.
  • the interface call log file generation request includes a user identifier, and the user identifier is used to uniquely identify a user who performs an interface call log file generation operation.
  • the correspondence between the user identifier and the rights profile is preset in the called platform.
  • a rights profile is a file that describes the operation rights information of the corresponding user.
  • the called platform obtains a rights configuration file corresponding to the user identifier in the interface call log file generation request according to the correspondence between the user identifier and the rights configuration file.
  • the permission information obtained by the called platform to resolve the permission configuration file may include permission information for accessing the log information of the interface, and may also include other operation authority information of the user.
  • the permission information for accessing the log information of the interface may include operation permission information such as querying, filtering, or outputting the log information of the interface.
  • the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output, and the corresponding log file is generated.
  • the interface calls the log file generation permission, which refers to the corresponding log information output and the permission to generate the log file.
  • the called platform may determine, according to the permission information, whether the interface call log file generation authority is satisfied, and if yes, obtain log information corresponding to the interface call log file generation permission from the interface call log information recorded in the interface routing service, and output the log information. To generate the corresponding log file, if not, you can return the prompt message that the interface call log file generation request failed or not process.
  • the called platform determines whether the interface call log file generation permission is satisfied according to the permission information, and may determine whether the interface permission log file generation permission is included in the permission information.
  • the log information corresponding to the interface call log file generation permission is an interface call log information that can be queried and outputted to generate a log file. It can be understood that the interface invokes the log file generation permission, which may be a log file generation permission for calling the log information of all the interfaces recorded in the interface call service, or may be a log file generation of the interface call log information recorded in the interface call service. Permissions.
  • the log file generation authority is generated, and when the interface call log file generation permission is satisfied, the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output. Generate the appropriate log file. Greatly improved security.
  • step S508 specifically includes the following steps:
  • the permission information is multi-level permission information, and the permission information may include role level rights, function level rights, data level rights, and operation level rights.
  • a role is the work or location of a user in an organization or task.
  • the permissions for different roles can be different.
  • the head of the human resources department and the general manager of the human resources department are in different roles.
  • Function level permission refers to the user's permission to use some functions.
  • the access interface call log belongs to a function permission.
  • Data level permissions refer to the permissions of the data content that can be accessed. For example, you can access all interface call log information, which belongs to data level permissions.
  • Operation level permissions refer to the operation rights to accessible data, such as output permissions, such as output, add, and delete.
  • the authority information is controlled according to the following hierarchical relationship: role level level authority -> function level level authority -> data level level authority -> operation level level authority. That is, the role level authority is the top level authority management level, and the operation level authority is the lowest level authority management level.
  • the called platform obtains data and/or permission judgment according to the authority information, it may sequentially perform the hierarchical order of the role level authority->function level level authority->data level level authority->operation level level authority.
  • the function permission of the access interface call log refers to the access function of the call log to the interface.
  • the called platform determines, according to the permission information, whether the function level permission corresponding to the acquired user role includes the function permission of the access interface call log, and if yes, the user role has the function permission to access the interface call log.
  • the called platform When the user role has the function permission to access the interface call log, the called platform further obtains the content access authority information of the interface call log corresponding to the user role according to the permission information.
  • the content access permission information of the interface call log refers to the access right (equivalent to the data level level authority) of the content of the interface call log, which is used to represent the accessible interface call log information.
  • the called platform determines whether the user role has the log file generation permission for the accessible interface call log information represented by the content access authority information according to the permission information.
  • Log file generation permission refers to the permission to output log information to the interface to generate log files (equivalent to operation level permissions).
  • the called platform acquires the interface call log represented by the content access permission information and corresponding to the log file generation authority. Information, that is, get the interface call log information that can be accessed and output.
  • the interface call log information that is represented by the obtained content access right information and corresponds to the log file generation authority may be the interface call log information corresponding to one or more interfaces in the called platform.
  • the invoked platform may directly output the obtained interface call log information according to a log file generation format to generate a corresponding log file.
  • the invoked platform may sort the output of the acquired interface call log information by an interface dimension or by an occurrence timing of the interface call log information to generate a corresponding log file.
  • the called platform may also select the corresponding interface call log information to output the corresponding interface call log information according to the preset rule or other requirements in the interface call log generation request to generate a corresponding log file.
  • the multi-level authority information of the role level permission->function level authority->data level level authority->operation level level authority is refined, and the granularity of the authority control of the generation of the log file is refined, so that the authority management is more controlled. Effective, and thus improved security.
  • the interface call log file generation request further includes a log information query condition.
  • Step S608 comprising: querying corresponding log information from the acquired interface call log information according to the log information query condition; outputting the invoked interface call log information to generate an interface call log file.
  • the log information query condition refers to the filter condition for invoking log information on the interface. Specifically, when the user invokes the log file generation operation, the user can input the log information query condition in the terminal interface to obtain the interface call log information that meets the requirements. In the terminal interface, the user can input the log information query condition or manually input the customized log information query condition by selecting the method.
  • the log information query condition further refines the query of the log information, improves the validity and flexibility of the log information query, and avoids the resources caused by the queried log information not meeting the user requirements. waste.
  • an interface call data processing apparatus 700 includes an acquisition module 702, a format conversion module 704, an interface address mapping module 706, and a call processing module 708, where:
  • the obtaining module 702 is configured to receive an interface call request, obtain a target interface code in the interface call request, and obtain a target data format corresponding to the target interface code.
  • the format conversion module 704 is configured to perform corresponding format conversion on the calling parameter in the interface call request according to the acquired target data format
  • the interface address mapping module 706 is configured to obtain an interface address corresponding to the target interface code according to the mapping relationship between the interface code and the interface address set in the interface routing service.
  • the calling processing module 708 is configured to allocate the formatted call parameters to the corresponding target interface according to the interface address for calling processing.
  • the obtaining module 702 is further configured to obtain an initial data format of the calling parameter in the interface call request.
  • the format conversion module 704 is further configured to perform format conversion on the data obtained after the call processing based on the initial data format; and return the data obtained after the format conversion.
  • the apparatus 700 further includes:
  • the log information recording module 710 is configured to invoke log information according to the interface routing service record interface; the recorded interface call log information includes call log information of any interface in the called platform.
  • the obtaining module 702 is further configured to obtain an interface call log file generation request, and obtain a rights configuration file corresponding to the user identifier in the interface call log file generation request.
  • the apparatus 700 further includes:
  • the permission information parsing module 712 is configured to parse the rights configuration file to obtain corresponding authority information.
  • the log file generating module 714 is configured to: when it is determined that the interface call log file generation permission is satisfied according to the permission information, obtain log information corresponding to the interface call log file generation authority information from the interface routing service, and output the corresponding log file.
  • the log file generating module 714 is further configured to acquire a user role corresponding to the user identifier according to the rights information; and when the user role has the function permission of the access interface to invoke the log, obtain the interface call log corresponding to the user role.
  • the content access permission information when the user role invokes the log information on the accessible interface represented by the content access permission information, and has the log file generation permission, the content access permission information is represented, and the log file generation authority is corresponding.
  • the interface invokes log information; the corresponding log file is generated according to the obtained interface call log information.
  • the interface call log file generation request further includes a log information query condition.
  • the log file generating module 714 is further configured to: according to the log information query condition, query the corresponding log information from the acquired interface call log information; output the query interface call log information, and generate an interface call log file.
  • Each of the modules in the above-described interface call data processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • a computer apparatus comprising a memory and one or more processors having stored therein computer readable instructions that, when executed by the processor, cause one or more processors The following steps are performed: receiving an interface call request, obtaining a target interface code in the interface call request, acquiring a target data format corresponding to the target interface code, and performing a format conversion on the call parameter in the interface call request according to the acquired target data format.
  • the interface address corresponding to the target interface code is obtained; according to the interface address, the formatted call parameter is allocated to the corresponding target interface for calling processing.
  • the computer readable instructions further cause the processor to: obtain an initial data format of the call parameters in the interface call request; format convert the data obtained after the call processing based on the initial data format; return format The data obtained after conversion.
  • the computer readable instructions further cause the processor to perform the step of: invoking log information in accordance with an interface routing service record interface; the recorded interface call log information includes call log information for any of the interfaces in the invoked platform.
  • the computer readable instructions further cause the processor to: obtain an interface call log file generation request; obtain a rights configuration file corresponding to the user identifier in the interface call log file generation request; and resolve the rights configuration file The corresponding permission information is obtained.
  • the permission to generate the interface call log file is determined according to the permission information
  • the log information corresponding to the interface call log generation authority information is obtained from the interface routing service and output, and the corresponding log file is generated.
  • the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output, and the corresponding information is generated.
  • the log file includes: obtaining a user role corresponding to the user identifier according to the permission information; and obtaining the content access permission information of the interface call log corresponding to the user role when the user role has the function permission of the access interface to invoke the log; Invoking log information to the accessible interface represented by the content access permission information, and having the log file generation permission, acquiring the interface calling log information represented by the content access permission information and corresponding to the log file generating permission; Call the log information to generate the corresponding log file.
  • the interface call log file generation request further includes a log information query condition; the processor performs a log file according to the acquired interface call log information, and includes: obtaining the corresponding log file according to the log information query condition.
  • the interface calls the log information to query the corresponding log information; the queried interface calls the log information output, and generates an interface call log file.
  • a storage medium storing computer readable instructions, when executed by one or more processors, causes one or more processors to perform the steps of: receiving an interface call Requesting, obtaining the target interface code in the interface call request; obtaining the target data format corresponding to the target interface code; performing the format conversion on the call parameter in the interface call request according to the acquired target data format; setting according to the interface routing service
  • the mapping relationship between the interface code and the interface address obtains the interface address corresponding to the target interface code; according to the interface address, the format converted call parameter is allocated to the corresponding target interface for calling processing.
  • the computer readable instructions further cause the processor to: obtain an initial data format of the call parameters in the interface call request; format convert the data obtained after the call processing based on the initial data format; return format The data obtained after conversion.
  • the computer readable instructions further cause the processor to perform the step of: invoking log information in accordance with an interface routing service record interface; the recorded interface call log information includes call log information for any of the interfaces in the invoked platform.
  • the computer readable instructions further cause the processor to: obtain an interface call log file generation request; obtain a rights configuration file corresponding to the user identifier in the interface call log file generation request; and resolve the rights configuration file The corresponding permission information is obtained.
  • the permission to generate the interface call log file is determined according to the permission information
  • the log information corresponding to the interface call log generation authority information is obtained from the interface routing service and output, and the corresponding log file is generated.
  • the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output, and the corresponding information is generated.
  • the log file includes: obtaining a user role corresponding to the user identifier according to the permission information; and obtaining the content access permission information of the interface call log corresponding to the user role when the user role has the function permission of the access interface to invoke the log; Invoking log information to the accessible interface represented by the content access permission information, and having the log file generation permission, acquiring the interface calling log information represented by the content access permission information and corresponding to the log file generating permission; Call the log information to generate the corresponding log file.
  • the interface call log file generation request further includes a log information query condition; the processor performs a log file according to the acquired interface call log information, and includes: obtaining the corresponding log file according to the log information query condition.
  • the interface calls the log information to query the corresponding log information; the queried interface calls the log information output, and generates an interface call log file.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Abstract

An interface call data processing method, comprising: receiving an interface call request, and acquiring a target interface code in said interface call request; acquiring a target data format corresponding to the target interface code; performing corresponding format conversion on call parameters in said interface call request according to the acquired target data format; acquiring an interface address corresponding to the target interface code according to mapping between interface codes and interface addresses configured in an interface routing service; according to the interface address, allocating the format-converted call parameters to a corresponding target interface for call processing.

Description

接口调用数据处理方法、装置、计算机设备和存储介质Interface call data processing method, device, computer device and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年05月04日提交中国专利局,申请号为2017103094589,发明名称为“接口调用数据处理方法、装置和计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims to be filed on May 4, 2017, the Chinese Patent Office, the number of which is incorporated herein by reference. In this application.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种接口调用数据处理方法、装置、计算机设备和存储介质。The present application relates to the field of computer technologies, and in particular, to an interface call data processing method, apparatus, computer device, and storage medium.
背景技术Background technique
现如今,单一平台系统包括的业务类型以及功能模块越来越多,造成同一平台中的接口类型众多、调用方式差异大小不一。目前是通过注册中心作为第三方,来对接口调用请求进行判断以及转发。Nowadays, single-platform systems include more and more types of services and functional modules, resulting in many types of interfaces in the same platform, and different calling methods vary in size. At present, the registration center is used as a third party to judge and forward the interface call request.
然而,发明人意识到,注册中心通常需要以业务线维度进行建立,一般一个业务线需要建立一个对应的注册中心,这样一来,整个系统平台就需要耗费较多资源和成本来建立注册中心集群。However, the inventor realized that the registration center usually needs to be established in the line of business dimension. Generally, a service line needs to establish a corresponding registration center, so that the entire system platform needs to spend more resources and costs to establish a registration center cluster. .
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种接口调用数据处理方法、装置、计算机设备和非易失性计算机可读存储介质。In accordance with various embodiments disclosed herein, an interface call data processing method, apparatus, computer apparatus, and non-transitory computer readable storage medium are provided.
一种接口调用数据处理方法,包括:An interface call data processing method, including:
接收接口调用请求,获取所述接口调用请求中的目标接口编码;Receiving an interface call request, and acquiring a target interface code in the interface call request;
获取与目标接口编码对应的目标数据格式;Obtaining a target data format corresponding to the target interface encoding;
按照获取的所述目标数据格式,将所述接口调用请求中的调用参数进行相应的格式转换;And correspondingly converting the calling parameter in the interface call request according to the obtained target data format;
根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与所述目标接口编码对应的接口地址;及Obtaining an interface address corresponding to the target interface code according to a mapping relationship between the interface code and the interface address set in the interface routing service; and
根据所述接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。According to the interface address, the formatted call parameters are allocated to the corresponding target interface for calling processing.
一种接口调用数据处理装置,包括:An interface calls a data processing device, including:
获取模块,用于接收接口调用请求,获取所述接口调用请求中的目标接口编码;以及获取与目标接口编码对应的目标数据格式;An acquiring module, configured to receive an interface call request, obtain a target interface code in the interface call request, and obtain a target data format corresponding to the target interface code;
格式转换模块,用于按照获取的所述目标数据格式,将所述接口调用请求中的调用参数进行相应的格式转换;a format conversion module, configured to perform a corresponding format conversion on the calling parameter in the interface call request according to the obtained target data format;
接口地址映射模块,用于根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与所述目标接口编码对应的接口地址;及An interface address mapping module, configured to obtain an interface address corresponding to the target interface code according to a mapping relationship between an interface code and an interface address set in the interface routing service; and
调用处理模块,用于根据所述接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。The processing module is configured to allocate the formatted call parameters to the corresponding target interface according to the interface address for calling processing.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to execute The following steps:
接收接口调用请求,获取所述接口调用请求中的目标接口编码;Receiving an interface call request, and acquiring a target interface code in the interface call request;
获取与目标接口编码对应的目标数据格式;Obtaining a target data format corresponding to the target interface encoding;
按照获取的所述目标数据格式,将所述接口调用请求中的调用参数进行相应的格式转换;And correspondingly converting the calling parameter in the interface call request according to the obtained target data format;
根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与所述目标接口编码对应的接口地址;及Obtaining an interface address corresponding to the target interface code according to a mapping relationship between the interface code and the interface address set in the interface routing service; and
根据所述接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。According to the interface address, the formatted call parameters are allocated to the corresponding target interface for calling processing.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of:
接收接口调用请求,获取所述接口调用请求中的目标接口编码;Receiving an interface call request, and acquiring a target interface code in the interface call request;
获取与目标接口编码对应的目标数据格式;Obtaining a target data format corresponding to the target interface encoding;
按照获取的所述目标数据格式,将所述接口调用请求中的调用参数进行相应的格式转换;And correspondingly converting the calling parameter in the interface call request according to the obtained target data format;
根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与所述目标接口编码对应的接口地址;及Obtaining an interface address corresponding to the target interface code according to a mapping relationship between the interface code and the interface address set in the interface routing service; and
根据所述接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。According to the interface address, the formatted call parameters are allocated to the corresponding target interface for calling processing.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features, objects, and advantages of the invention will be apparent from the description and appended claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提 下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图1为根据一个或多个实施例中接口调用数据处理方法的应用环境图。1 is an application environment diagram of an interface call data processing method in accordance with one or more embodiments.
图2为根据一个或多个实施例中计算机设备的框图。2 is a block diagram of a computer device in accordance with one or more embodiments.
图3为根据一个或多个实施例中接口调用数据处理方法的流程示意图。3 is a flow diagram of an interface call data processing method in accordance with one or more embodiments.
图4为根据一个或多个实施例中调用数据返回步骤的流程示意图。4 is a flow diagram of a callback step of returning data in accordance with one or more embodiments.
图5为根据一个或多个实施例中日志文件生成步骤的流程示意图。FIG. 5 is a flow diagram of a log file generation step in accordance with one or more embodiments.
图6为根据另一个或多个实施例中日志文件生成步骤的流程示意图。6 is a flow diagram of a log file generation step in accordance with another or more embodiments.
图7为根据一个或多个实施例中接口调用数据处理装置的框图。7 is a block diagram of an interface call data processing apparatus in accordance with one or more embodiments.
图8为根据另一个或多个实施例中接口调用数据处理装置的框图。8 is a block diagram of an interface call data processing apparatus in accordance with another or more embodiments.
图9为根据又一个或多个实施例中接口调用数据处理装置的框图。9 is a block diagram of an interface call data processing apparatus in accordance with yet one or more embodiments.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
图1为一个实施例中接口调用数据处理方法的应用环境图。参照图1,该应用环境包括通过网络连接的接口调用设备110和被调用平台120。其中,接口调用设备110,是指发起接口调用请求,以请求调用被调用平台120中的接口的设备。接口调用设备110可以是终端也可以是服务器。被调用平台120,是指提供接口调用设备110所请求调用的接口的平台系统。比如,接口调用设备110需要使用被调用平台120中的某一功能时,则会发送接口调用请求至被调用平台120,以请求调用被调用平台120中用于实现该功能的相应接口。需要说明的是,这里并不局限于被调用平台只能被调用接口,可以理解,被调用平台120也可以具备调用其它设备或平台的接口的能力。FIG. 1 is an application environment diagram of an interface call data processing method in an embodiment. Referring to FIG. 1, the application environment includes an interface 110 and a called platform 120 that are connected through a network. The interface invoking device 110 refers to a device that initiates an interface call request to request an interface in the called platform 120. The interface invoking device 110 can be either a terminal or a server. The called platform 120 refers to a platform system that provides an interface called by the interface calling device 110. For example, when the interface invoking device 110 needs to use a certain function in the called platform 120, an interface call request is sent to the called platform 120 to request to call the corresponding interface in the called platform 120 for implementing the function. It should be noted that the interface is not limited to being invoked by the called platform. It can be understood that the called platform 120 can also have the capability of calling interfaces of other devices or platforms.
具体地,被调用平台120接收接口调用设备110发送的接口调用请求,获取接口调用请求中的目标接口编码,以及获取目标接口编码对应的目标格式;按照获取的目标格式,将接口调用请求中的调用参数进行相应的格式转换。被调用平台120根据接口路由服务中配置的接口编码与接口地址之间的映射关系,获取与目标接口编码对应的接口地址。并根据接口地址,将格式转换后的调用参数分配至被调用平台120中相应的目标接口进行调用处理。Specifically, the called platform 120 receives the interface call request sent by the interface invoking device 110, obtains the target interface code in the interface call request, and obtains the target format corresponding to the target interface code; according to the acquired target format, the interface call request Call the parameters for the corresponding format conversion. The called platform 120 obtains the interface address corresponding to the target interface code according to the mapping relationship between the interface code and the interface address configured in the interface routing service. And according to the interface address, the formatted call parameters are allocated to the corresponding target interface in the called platform 120 for call processing.
图2为一个实施例中计算机设备的内部结构示意图。该计算机设备可以是图1中的被调用平台120,被调用平台120可以用独立的服务器或是多个物理服务器组成的服务器集群来实现。参照图2,该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内 存储器。计算机设备的非易失性存储介质存储有操作系统和计算机可读指令。计算机设备中的内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机可读指令被处理器执行时,可使得所述处理器执行一种接口调用数据处理方法。网络接口用于连接网络进行通信,比如接收接口调用请求等。2 is a schematic diagram showing the internal structure of a computer device in an embodiment. The computer device may be the called platform 120 in FIG. 1, and the called platform 120 may be implemented by a separate server or a server cluster composed of multiple physical servers. Referring to Figure 2, the computer device includes a processor, memory, and network interface coupled by a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. A non-volatile storage medium of a computer device stores an operating system and computer readable instructions. The internal memory in the computer device provides an environment for the operation of the operating system and computer readable instructions in the non-volatile storage medium. The computer readable instructions, when executed by a processor, cause the processor to perform an interface call data processing method. The network interface is used to connect to the network for communication, such as receiving an interface call request.
本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。It will be understood by those skilled in the art that the structure shown in FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied. The specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
如图3所示,在其中一个实施例中,提供了一种接口调用数据处理方法。本实施例主要以该方法应用于上述图1中的被调用平台来举例说明。参照图3,该接口调用数据处理方法具体包括如下步骤:As shown in FIG. 3, in one of the embodiments, an interface call data processing method is provided. This embodiment is mainly illustrated by the method applied to the called platform in FIG. 1 above. Referring to FIG. 3, the interface calling data processing method specifically includes the following steps:
S302,接收接口调用请求,获取接口调用请求中的目标接口编码。S302. Receive an interface call request, and obtain a target interface code in the interface call request.
具体地,接口调用设备在想要调用被调用平台的接口时,向被调用平台发送接口调用请求,接口调用请求中包括目标接口编码。目标接口,是指所请求调用的接口。目标接口编码用于唯一标识目标接口。Specifically, the interface calling device sends an interface call request to the called platform when the interface of the called platform is to be called, and the interface call request includes the target interface code. The target interface is the interface that is requested to be called. The target interface encoding is used to uniquely identify the target interface.
在其中一个实施例中,接口调用请求中的目标接口编码可以为一个或多个,即被调用平台可以并行接收对多个接口的调用。In one of the embodiments, the target interface code in the interface call request may be one or more, that is, the called platform may receive calls to multiple interfaces in parallel.
S304,获取与目标接口编码对应的目标数据格式。S304. Obtain a target data format corresponding to the target interface code.
目标数据格式,是符合目标接口编码所对应接口的接口规范的数据格式。The target data format is a data format conforming to the interface specification of the interface corresponding to the target interface encoding.
在其中一个实施例中,被调用平台中预先存储了接口编码和数据格式之间的对应关系,被调用平台根据该对应关系,获取与目标接口编码对应的目标数据格式。In one embodiment, the correspondence between the interface code and the data format is pre-stored in the called platform, and the called platform acquires the target data format corresponding to the target interface code according to the correspondence.
S306,按照获取的目标数据格式,将接口调用请求中的调用参数进行相应的格式转换。S306. Perform the format conversion on the calling parameter in the interface call request according to the obtained target data format.
接口调用请求中包括调用参数。调用参数,是指与接口调用处理相关的参数。可以理解,被调用的接口可以根据该调用参数进行相应的调用处理,以获取接口调用设备所需要调用的数据。The call parameters are included in the interface call request. The call parameter refers to the parameter related to the interface call processing. It can be understood that the called interface can perform corresponding call processing according to the calling parameter to obtain data that the interface calls the device to call.
可以理解,不同的接口可以有不同的接口规范,当需要调用目标接口时,需要按照目标接口所对应的目标数据格式,将接口调用请求中的调用参数进行相应的格式转换,即转换成符合目标接口规范的数据。It can be understood that different interfaces may have different interface specifications. When the target interface needs to be called, the calling parameter in the interface call request needs to be converted according to the target data format corresponding to the target interface, that is, converted into a target. Interface specification data.
S308,根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与目标接口编码对应的接口地址。S308. Obtain an interface address corresponding to the target interface code according to the mapping relationship between the interface code and the interface address set in the interface routing service.
被调用平台中设置了接口路由服务。接口路由服务,是一种可以用于实现接口路由寻址功能的程序。接口路由寻址功能,是指根据接口编码可以路 由到其所对应接口的地址的功能。可以理解,这里并不限定接口路由服务只具有接口路由寻址功能,接口路由服务还可以具备其它功能。The interface routing service is set in the called platform. An interface routing service is a program that can be used to implement interface routing addressing. The interface route addressing function refers to the function of routing the address to the address of the corresponding interface according to the interface code. It can be understood that the interface routing service does not only have the interface routing address function, and the interface routing service can also have other functions.
具体地,接口路由服务中预先设置了接口编码和接口地址之间的映射关系。接口编码与接口地址一一映射对应。被调用平台根据该映射关系,获取与目标接口编码对应的接口地址。接口地址,用于查找到被调用平台中对应的接口。Specifically, the mapping relationship between the interface code and the interface address is preset in the interface routing service. The interface code corresponds to the interface address mapping. The called platform acquires an interface address corresponding to the target interface code according to the mapping relationship. Interface address, used to find the corresponding interface in the called platform.
S310,根据接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。S310, according to the interface address, assigning the formatted call parameter to the corresponding target interface for calling processing.
具体地,根据接口地址,在被调用平台中查找到对应的接口,该查找到的接口即为目标接口。被调用平台将格式转换后的调用参数分配至该查找到的目标接口,该目标接口根据该格式转换后的调用参数进行相应的调用处理。Specifically, according to the interface address, the corresponding interface is found in the called platform, and the found interface is the target interface. The called platform allocates the formatted call parameters to the found target interface, and the target interface performs corresponding call processing according to the formatted call parameters.
上述接口调用数据处理方法,通过在被调用平台本身中设置接口路由服务,在接收接口调用请求时,可以直接根据该接口理由服务中设置的接口编码与接口地址之间的映射关系,即可以获取到与目标接口的接口地址,根据该接口地址即可查找到目标接口,相较于传统方法中需要专门设置注册中心来进行接口调用而言,大大减少了接口调用处理的成本。此外,按照与目标接口编码对应的目标数据格式,将所述接口调用请求中的调用参数进行相应的格式转换;并将格式转后的调用参数分配指与接口地址相应的目标接口,避免了所调用接口无法识别数据所造成的报错情况。The above interface invokes a data processing method, and by setting an interface routing service in the called platform itself, when receiving an interface call request, the mapping relationship between the interface code and the interface address set in the service may be directly obtained according to the interface reason, that is, the interface may be obtained. To the interface address with the target interface, the target interface can be found according to the interface address. Compared with the traditional method, the registration center needs to be specially set to make the interface call, which greatly reduces the cost of the interface call processing. In addition, according to the target data format corresponding to the target interface code, the call parameter in the interface call request is subjected to corresponding format conversion; and the call parameter transfer after the format transfer refers to the target interface corresponding to the interface address, thereby avoiding the The calling interface does not recognize the error caused by the data.
如图4所示,在其中一个实施例中,该方法还包括调用数据返回步骤,具体包括以下步骤:As shown in FIG. 4, in one embodiment, the method further includes a step of invoking data return, specifically including the following steps:
S402,获取接口调用请求中的调用参数的初始数据格式。S402. Acquire an initial data format of a call parameter in an interface call request.
接口调用请求中的调用参数的初始数据格式,是指接口调用请求中的调用参数在按照目标格式进行格式转换前的数据格式。The initial data format of the call parameter in the interface call request refers to the data format of the call parameter in the interface call request before the format conversion according to the target format.
具体地,可以是接口调用请求中包括该调用参数的初始数据格式,被调用平台可以直接获取接口调用请求中包括的该调用参数的初始数据格式。Specifically, the initial data format including the calling parameter in the interface call request may be, and the called platform may directly obtain the initial data format of the calling parameter included in the interface call request.
也可以是,被调用平台对格式转换前的调用参数,进行格式解析,以提取对应的格式数据,根据提取的格式数据组合得到相应的初始数据格式。Alternatively, the called platform performs format analysis on the calling parameters before the format conversion to extract the corresponding format data, and obtains the corresponding initial data format according to the extracted format data combination.
还可以是,被调用平台中可以预先设置多个数据格式模板,将格式转换前的调用参数与各个数据格式模板进行匹配分析,将匹配度最高的数据格式模板作为格式转换前的调用参数所对应的初始数据格式。In addition, a plurality of data format templates may be preset in the called platform, and the calling parameters before the format conversion are matched and analyzed with each data format template, and the data format template with the highest matching degree is used as the calling parameter before the format conversion. The initial data format.
可以理解,步骤S402并不限定于在步骤S310之后执行,该步骤S402可以在步骤S302之后以及步骤S404之前的任意步骤执行。It can be understood that step S402 is not limited to being performed after step S310, and step S402 can be performed after step S302 and any step before step S404.
S404,基于初始数据格式对调用处理后得到的数据进行格式转换。S404: Perform format conversion on the data obtained after the call processing based on the initial data format.
具体地,被调用平台可以通过目标接口根据该格式转换后的调用参数, 进行调用处理,并于调用处理后得到相应的数据,该调用处理后得到的数据为接口调用设备所需要的数据。Specifically, the called platform may perform call processing according to the call parameter converted by the format interface by the target interface, and obtain corresponding data after the call processing, and the data obtained by the call processing is data required by the interface calling device.
被调用平台可以按照初始数据格式,对该调用处理后得到的数据进行相应的格式转换。可以理解,按照初始数据格式转换后的数据符合接口调用设备的数据格式要求。The called platform can perform corresponding format conversion on the data obtained after the call is processed according to the initial data format. It can be understood that the data converted according to the initial data format conforms to the data format requirements of the interface calling device.
S406,返回格式转换后的数据。S406, returning the format converted data.
具体地,被调用平台可以根据接口调用设备发送接口调用请求时,两者之间所建立的数据通道,将格式转换后的数据直接返回至接口调用设备。被调用平台也可以通过其它方式将格式转换后的数据返回至接口调用设备。这里,对被调用平台将格式转换后的数据返回至接口调用设备的实现方式不做限定,只要满足将格式转换后的数据返回至接口调用设备即可。Specifically, the called platform may return the format converted data directly to the interface calling device according to the data channel established between the two when the interface calling device sends the interface call request. The called platform can also return the format converted data to the interface calling device by other means. Here, the implementation manner of returning the format converted data to the interface calling device by the called platform is not limited, as long as the format converted data is returned to the interface calling device.
上述实施例中,通过自动获取接口调用请求中的调用参数的初始数据格式,在获取所调用的数据后,自动根据该初始数据格式将调用处理后得到的数据进行格式转换后再返回,即在被调用平台端完成了数据格式的转换,而不需要在接口调用设备端进行数据格式转换,减少了对接口调用设备的要求,从而也提高了被调用平台的适用性。In the above embodiment, the initial data format of the calling parameter in the interface call request is automatically obtained, and after the called data is acquired, the data obtained after the processing is automatically converted according to the initial data format, and then returned, that is, The called platform end completes the conversion of the data format, and does not need to perform data format conversion on the interface calling device side, which reduces the requirement for the interface calling device, thereby improving the applicability of the called platform.
在其中一个实施例中,该方法还包括:根据接口路由服务记录接口调用日志信息;记录的接口调用日志信息包括对被调用平台中的任意接口的调用日志信息。In one embodiment, the method further includes: invoking log information according to the interface routing service record interface; the recorded interface call log information includes call log information of any interface in the invoked platform.
接口调用日志信息,包括接口调用时间信息、所请求调用的接口信息以及返回的所调用的数据信息等。接口调用时间信息,可以包括接口调用起始时间和返回所调用的数据的时间或接口调用时长等。所请求调用的接口信息,可以包括所请求调用的目标接口编码。返回的所调用的数据信息,可以包括返回所调用的数据的大小或格式等信息。The interface invokes log information, including interface call time information, interface information of the requested call, and returned data information. The interface calls time information, which may include the interface call start time and the time of returning the called data or the duration of the interface call. The interface information requested to be invoked may include the target interface encoding of the requested call. The returned data information returned may include information such as the size or format of the data being called.
具体地,被调用平台中的接口路由服务具备接口调用日志信息管理功能。接口调用日志信息管理功能,可以包括对接口调用日志的记录功能。在其中一个实施例中,接口调用日志信息管理功能还可以包括对接口调用日志的访问权限验证功能、整合调用日志信息的功能,以及输出调用日志信息生成相应日志文件的功能等。Specifically, the interface routing service in the called platform has an interface call log information management function. The interface invokes the log information management function, which may include a record function for calling the log of the interface. In one embodiment, the interface call log information management function may further include an access authority verification function for the interface call log, a function of integrating the call log information, and a function of outputting the call log information to generate a corresponding log file.
由于对被调用平台中的任意接口的调用,都是通过接口路由服务来统一确定与目标接口编码具有映射关系的接口地址,则对被调用平台中的任意接口的调用处理都会统一的经过接口路由服务。因此,接口路由服务可以统一记录接口调用日志信息。接口调用日志信息,是与接口调用相关的日志信息。根据接口路由服务记录的接口调用日志信息,包括对被调用平台中的任意接口的调用日志信息。Because the call to any interface in the called platform is to determine the interface address that has a mapping relationship with the target interface code through the interface routing service, the call processing of any interface in the called platform will be uniformly routed through the interface. service. Therefore, the interface routing service can uniformly record the interface call log information. The interface calls log information, which is the log information related to the interface call. The log information is called according to the interface recorded by the interface routing service, including the call log information of any interface in the called platform.
上述实施例中,由接口路由服务统一对接口调用日志进行统一记录,实现了对接口调用日志信息的统一管理,避免了各个接口所对应的程序独立的进行自我日志信息的管理,造成的接口调用日志信息与其他海量的日志信息混合而不利用对接口调用日志信息的查询的问题。此外,也避免了各个接口所对应的程序独立进行接口调用日志信息的管理,造成的接口调用日志信息过于分散,不利于对接口调用的分析的问题。由接口路由服务统一对接口调用日志进行统一记录,实现了对接口调用日志信息的集中管理,提高了查询日志信息和接口调用问题分析的效率。In the foregoing embodiment, the interface routing service uniformly records the interface call logs uniformly, and implements unified management of the call log information of the interface, thereby avoiding the independent management of the self-log information of the programs corresponding to the interfaces, and the interface call is caused. The log information is mixed with other massive log information without using the query of the log information for the interface. In addition, the program corresponding to each interface is also prevented from independently managing the interface call log information, and the interface call log information is too scattered, which is not conducive to the analysis of the interface call. The interface routing service uniformly records the interface call logs uniformly, which implements centralized management of the interface call log information, and improves the efficiency of query log information and interface call problem analysis.
如图5所示,在其中一个实施例中,该方法还包括日志文件生成步骤,具体包括以下步骤:As shown in FIG. 5, in one embodiment, the method further includes a log file generating step, which specifically includes the following steps:
S502,获取接口调用日志文件生成请求。S502. Acquire an interface call log file generation request.
接口调用日志文件生成请求,用于请求生成接口调用相关的日志文件。The interface invokes a log file generation request for requesting the generation of an interface to call the relevant log file.
具体地,用户(比如技术人员)可以在终端上进行接口调用日志文件生成操作,终端响应于该操作生成并发送相应的接口调用日志文件生成请求至被调用平台。在其中一个实施例中,接口调用日志文件生成请求中包括用户标识,该用户标识用于唯一标识进行接口调用日志文件生成操作的用户。Specifically, the user (such as a technician) can perform an interface call log file generating operation on the terminal, and the terminal generates and sends a corresponding interface call log file generating request to the called platform in response to the operation. In one of the embodiments, the interface call log file generation request includes a user identifier, and the user identifier is used to uniquely identify a user who performs an interface call log file generation operation.
S504,获取与接口调用日志文件生成请求中的用户标识对应的权限配置文件。S504. Acquire a rights configuration file corresponding to the user identifier in the interface call log file generation request.
在其中一个实施例中,被调用平台中预先设置了用户标识和权限配置文件之间的对应关系。权限配置文件,是指描述了相应用户的操作权限信息的文件。In one of the embodiments, the correspondence between the user identifier and the rights profile is preset in the called platform. A rights profile is a file that describes the operation rights information of the corresponding user.
被调用平台中根据用户标识和权限配置文件之间的对应关系,获取与接口调用日志文件生成请求中的用户标识对应的权限配置文件。The called platform obtains a rights configuration file corresponding to the user identifier in the interface call log file generation request according to the correspondence between the user identifier and the rights configuration file.
S506,解析权限配置文件,得到相应的权限信息。S506, parsing the rights configuration file, and obtaining corresponding authority information.
被调用平台解析权限配置文件所得到的权限信息,可以包括对接口调用日志信息访问的权限信息,还可以包括用户的其它操作权限信息。对接口调用日志信息访问的权限信息,可以包括对接口调用日志信息查询、筛选或输出等操作权限信息。The permission information obtained by the called platform to resolve the permission configuration file may include permission information for accessing the log information of the interface, and may also include other operation authority information of the user. The permission information for accessing the log information of the interface may include operation permission information such as querying, filtering, or outputting the log information of the interface.
S508,当根据权限信息判断满足接口调用日志文件生成权限时,则从接口路由服务中获取与接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件。S508. When it is determined that the interface call log file generation permission is satisfied according to the permission information, the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output, and the corresponding log file is generated.
接口调用日志文件生成权限,是指将相应的日志信息输出,生成日志文件的权限。The interface calls the log file generation permission, which refers to the corresponding log information output and the permission to generate the log file.
具体地,被调用平台可以根据权限信息判断是否满足接口调用日志文件生成权限,若是,则从接口路由服务中记录的接口调用日志信息中获取与接 口调用日志文件生成权限对应的日志信息并输出,以生成相应的日志文件,若否,则可以返回接口调用日志文件生成请求失败的提示信息或不作处理。Specifically, the called platform may determine, according to the permission information, whether the interface call log file generation authority is satisfied, and if yes, obtain log information corresponding to the interface call log file generation permission from the interface call log information recorded in the interface routing service, and output the log information. To generate the corresponding log file, if not, you can return the prompt message that the interface call log file generation request failed or not process.
被调用平台根据权限信息判断是否满足接口调用日志文件生成权限,可以是判断权限信息中是否包括接口调用日志文件生成权限。与接口调用日志文件生成权限对应的日志信息,是能够被查询和输出以生成日志文件的接口调用日志信息。可以理解,接口调用日志文件生成权限,可以是对接口调用服务中所记录的全部接口调用日志信息的日志文件生成权限,也可以是接口调用服务中所记录的部分接口调用日志信息的日志文件生成权限。The called platform determines whether the interface call log file generation permission is satisfied according to the permission information, and may determine whether the interface permission log file generation permission is included in the permission information. The log information corresponding to the interface call log file generation permission is an interface call log information that can be queried and outputted to generate a log file. It can be understood that the interface invokes the log file generation permission, which may be a log file generation permission for calling the log information of all the interfaces recorded in the interface call service, or may be a log file generation of the interface call log information recorded in the interface call service. Permissions.
上述实施例中,通过设置权限信息,来把控日志文件生成权限,当满足接口调用日志文件生成权限时,则从接口路由服务中获取与接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件。大大提高了安全性。In the above embodiment, by setting the permission information, the log file generation authority is generated, and when the interface call log file generation permission is satisfied, the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output. Generate the appropriate log file. Greatly improved security.
如图6所示,在其中一个实施例中,步骤S508具体包括以下步骤:As shown in FIG. 6, in one embodiment, step S508 specifically includes the following steps:
S602,根据权限信息获取与用户标识对应的用户角色。S602. Acquire a user role corresponding to the user identifier according to the authority information.
权限信息为多层级的权限信息,权限信息可以包括角色层级权限、功能层级权限、数据层级权限和操作层级权限。The permission information is multi-level permission information, and the permission information may include role level rights, function level rights, data level rights, and operation level rights.
角色,是指用户在组织或任务中的工作或位置。不同的角色所对应的权限可以不同。比如,人力资源部小组主管和人力资源部总经理就属于不同的角色。功能层级权限,是指对用户对一些功能的使用权限,比如,访问接口调用日志就属于一种功能权限。数据层级权限,是指可以访问的数据内容的权限。比如,可以访问所有接口调用日志信息,就属于数据层级权限。操作层级权限,是指对可访问的数据的操作权限,比如输出、添加和删除等操作权限。A role is the work or location of a user in an organization or task. The permissions for different roles can be different. For example, the head of the human resources department and the general manager of the human resources department are in different roles. Function level permission refers to the user's permission to use some functions. For example, the access interface call log belongs to a function permission. Data level permissions refer to the permissions of the data content that can be accessed. For example, you can access all interface call log information, which belongs to data level permissions. Operation level permissions refer to the operation rights to accessible data, such as output permissions, such as output, add, and delete.
具体地,权限信息中是按照以下层级关系进行权限管控的:角色层级权限—>功能层级权限—>数据层级权限—>操作层级权限。即角色层级权限为最上层的权限管控层级,操作层级权限为最下层的权限管控层级。被调用平台在根据权限信息获取数据和/或权限判断时,可以按照角色层级权限—>功能层级权限—>数据层级权限—>操作层级权限的层级顺序依次进行。Specifically, the authority information is controlled according to the following hierarchical relationship: role level level authority -> function level level authority -> data level level authority -> operation level level authority. That is, the role level authority is the top level authority management level, and the operation level authority is the lowest level authority management level. When the called platform obtains data and/or permission judgment according to the authority information, it may sequentially perform the hierarchical order of the role level authority->function level level authority->data level level authority->operation level level authority.
S604,当用户角色具有访问接口调用日志的功能权限时,获取与用户角色对应的对接口调用日志的内容访问权限信息。S604. When the user role has the function permission to access the interface call log, obtain the content access permission information of the interface call log corresponding to the user role.
访问接口调用日志的功能权限,是指具有对接口调用日志的访问功能。The function permission of the access interface call log refers to the access function of the call log to the interface.
具体地,被调用平台根据权限信息判断所获取的用户角色所对应的功能层级权限中是否包括访问接口调用日志的功能权限,若是,则说明该用户角色具有访问接口调用日志的功能权限。Specifically, the called platform determines, according to the permission information, whether the function level permission corresponding to the acquired user role includes the function permission of the access interface call log, and if yes, the user role has the function permission to access the interface call log.
当用户角色具有访问接口调用日志的功能权限时,被调用平台则根据权 限信息,进一步获取与用户角色对应的对接口调用日志的内容访问权限信息。对接口调用日志的内容访问权限信息,是指对接口调用日志的内容的访问权限(相当于数据层级权限),用于表征可访问的接口调用日志信息。When the user role has the function permission to access the interface call log, the called platform further obtains the content access authority information of the interface call log corresponding to the user role according to the permission information. The content access permission information of the interface call log refers to the access right (equivalent to the data level level authority) of the content of the interface call log, which is used to represent the accessible interface call log information.
S606,当用户角色对内容访问权限信息所表征的可访问的接口调用日志信息,具有日志文件生成权限时,则获取内容访问权限信息所表征的、且与日志文件生成权限对应的接口调用日志信息。S606. When the user role invokes log information on the accessible interface represented by the content access permission information, and has the log file generation permission, obtains an interface call log information that is represented by the content access permission information and corresponds to the log file generation authority. .
被调用平台会根据权限信息,判断用户角色对内容访问权限信息所表征的可访问的接口调用日志信息是否具有日志文件生成权限。日志文件生成权限,是指对接口调用日志信息输出以生成日志文件的权限(相当于操作层级权限)。当用户角色对内容访问权限信息所表征的可访问的接口调用日志信息,具有日志文件生成权限时,被调用平台则获取内容访问权限信息所表征的、且与日志文件生成权限对应的接口调用日志信息,即获取能够访问并输出的接口调用日志信息。The called platform determines whether the user role has the log file generation permission for the accessible interface call log information represented by the content access authority information according to the permission information. Log file generation permission refers to the permission to output log information to the interface to generate log files (equivalent to operation level permissions). When the user role invokes the log information on the accessible interface represented by the content access permission information, and has the log file generation permission, the called platform acquires the interface call log represented by the content access permission information and corresponding to the log file generation authority. Information, that is, get the interface call log information that can be accessed and output.
可以理解,所获取的内容访问权限信息所表征的、且与日志文件生成权限对应的接口调用日志信息,可以是被调用平台中一个或多个接口所对应的接口调用日志信息。It can be understood that the interface call log information that is represented by the obtained content access right information and corresponds to the log file generation authority may be the interface call log information corresponding to one or more interfaces in the called platform.
S608,根据获取的接口调用日志信息生成相应的日志文件。S608. Generate a corresponding log file according to the obtained interface call log information.
具体地,被调用平台可以直接将获取的接口调用日志信息按照日志文件生成格式进行输出,以生成相应的日志文件。在其中一个实施例中,被调用平台可以将获取的接口调用日志信息以接口维度或以接口调用日志信息的发生时序,进行排序输出,以生成相应的日志文件。Specifically, the invoked platform may directly output the obtained interface call log information according to a log file generation format to generate a corresponding log file. In one embodiment, the invoked platform may sort the output of the acquired interface call log information by an interface dimension or by an occurrence timing of the interface call log information to generate a corresponding log file.
被调用平台也可以根据预设规则或接口调用日志文件生成请求中的其他要求从获取的接口调用日志信息选取相应的接口调用日志信息进行输出,以生成相应的日志文件。The called platform may also select the corresponding interface call log information to output the corresponding interface call log information according to the preset rule or other requirements in the interface call log generation request to generate a corresponding log file.
上述实施例中,通过角色层级权限—>功能层级权限—>数据层级权限—>操作层级权限这一多层级的权限信息,细化了对日志文件的生成的权限管控粒度,使得权限管控更加的有效、进而提高了安全性。In the above embodiment, the multi-level authority information of the role level permission->function level authority->data level level authority->operation level level authority is refined, and the granularity of the authority control of the generation of the log file is refined, so that the authority management is more controlled. Effective, and thus improved security.
在其中一个实施例中,接口调用日志文件生成请求中还包括日志信息查询条件。步骤S608,包括:按照日志信息查询条件,从获取的接口调用日志信息中查询对应的日志信息;将查询到的接口调用日志信息输出,生成接口调用日志文件。In one of the embodiments, the interface call log file generation request further includes a log information query condition. Step S608, comprising: querying corresponding log information from the acquired interface call log information according to the log information query condition; outputting the invoked interface call log information to generate an interface call log file.
日志信息查询条件,指对接口调用日志信息的筛选条件。具体地,用户在进行接口调用日志文件生成操作时,可以在终端界面中输入日志信息查询条件,以获取满足需要的接口调用日志信息。用户在终端界面中可以通过选择的方式输入日志信息查询条件或手动输入自定义的日志信息查询条件。The log information query condition refers to the filter condition for invoking log information on the interface. Specifically, when the user invokes the log file generation operation, the user can input the log information query condition in the terminal interface to obtain the interface call log information that meets the requirements. In the terminal interface, the user can input the log information query condition or manually input the customized log information query condition by selecting the method.
上述实施例中,通过日志信息查询条件,进一步的细化了对日志信息查询,提高了日志信息查询的有效性和灵活性,同时避免了所查询到的日志信息不符合用户需求所造成的资源浪费。In the foregoing embodiment, the log information query condition further refines the query of the log information, improves the validity and flexibility of the log information query, and avoids the resources caused by the queried log information not meeting the user requirements. waste.
应该理解的是,上述流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that the various steps in the above-described flowcharts are sequentially displayed in accordance with the indication of the arrows, but these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in the above flow chart may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, and these sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
如图7所示,提供了一种接口调用数据处理装置700,该装置包括:获取模块702、格式转换模块704、接口地址映射模块706以及调用处理模块708,其中:As shown in FIG. 7, an interface call data processing apparatus 700 is provided. The apparatus includes an acquisition module 702, a format conversion module 704, an interface address mapping module 706, and a call processing module 708, where:
获取模块702,用于接收接口调用请求,获取接口调用请求中的目标接口编码;以及获取与目标接口编码对应的目标数据格式;The obtaining module 702 is configured to receive an interface call request, obtain a target interface code in the interface call request, and obtain a target data format corresponding to the target interface code.
格式转换模块704,用于按照获取的目标数据格式,将接口调用请求中的调用参数进行相应的格式转换;The format conversion module 704 is configured to perform corresponding format conversion on the calling parameter in the interface call request according to the acquired target data format;
接口地址映射模块706,用于根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与目标接口编码对应的接口地址;The interface address mapping module 706 is configured to obtain an interface address corresponding to the target interface code according to the mapping relationship between the interface code and the interface address set in the interface routing service.
调用处理模块708,用于根据接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。The calling processing module 708 is configured to allocate the formatted call parameters to the corresponding target interface according to the interface address for calling processing.
在其中一个实施例中,获取模块702还用于获取接口调用请求中的调用参数的初始数据格式;In one embodiment, the obtaining module 702 is further configured to obtain an initial data format of the calling parameter in the interface call request.
格式转换模块704还用于基于初始数据格式对调用处理后得到的数据进行格式转换;返回格式转换后得到的数据。The format conversion module 704 is further configured to perform format conversion on the data obtained after the call processing based on the initial data format; and return the data obtained after the format conversion.
如图8所示,在其中一个实施例中,该装置700还包括:As shown in FIG. 8, in one embodiment, the apparatus 700 further includes:
日志信息记录模块710,用于根据接口路由服务记录接口调用日志信息;记录的接口调用日志信息包括对被调用平台中的任意接口的调用日志信息。The log information recording module 710 is configured to invoke log information according to the interface routing service record interface; the recorded interface call log information includes call log information of any interface in the called platform.
如图9所示,在其中一个实施例中,获取模块702还用于获取接口调用日志文件生成请求;获取与接口调用日志文件生成请求中的用户标识对应的权限配置文件。As shown in FIG. 9, in one embodiment, the obtaining module 702 is further configured to obtain an interface call log file generation request, and obtain a rights configuration file corresponding to the user identifier in the interface call log file generation request.
本实施例中,该装置700还包括:In this embodiment, the apparatus 700 further includes:
权限信息解析模块712,用于解析权限配置文件,得到相应的权限信息。The permission information parsing module 712 is configured to parse the rights configuration file to obtain corresponding authority information.
日志文件生成模块714,用于当根据权限信息判断满足接口调用日志文 件生成权限时,则从接口路由服务中获取与接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件。The log file generating module 714 is configured to: when it is determined that the interface call log file generation permission is satisfied according to the permission information, obtain log information corresponding to the interface call log file generation authority information from the interface routing service, and output the corresponding log file.
在其中一个实施例中,日志文件生成模块714还用于根据权限信息获取与用户标识对应的用户角色;当用户角色具有访问接口调用日志的功能权限时,获取与用户角色对应的对接口调用日志的内容访问权限信息;当用户角色对内容访问权限信息所表征的可访问的接口调用日志信息,具有日志文件生成权限时,则获取内容访问权限信息所表征的、且与日志文件生成权限对应的接口调用日志信息;根据获取的接口调用日志信息生成相应的日志文件。In one embodiment, the log file generating module 714 is further configured to acquire a user role corresponding to the user identifier according to the rights information; and when the user role has the function permission of the access interface to invoke the log, obtain the interface call log corresponding to the user role. The content access permission information; when the user role invokes the log information on the accessible interface represented by the content access permission information, and has the log file generation permission, the content access permission information is represented, and the log file generation authority is corresponding. The interface invokes log information; the corresponding log file is generated according to the obtained interface call log information.
在其中一个实施例中,接口调用日志文件生成请求中还包括日志信息查询条件。日志文件生成模块714还用于按照日志信息查询条件,从获取的接口调用日志信息中查询对应的日志信息;将查询到的接口调用日志信息输出,生成接口调用日志文件。In one of the embodiments, the interface call log file generation request further includes a log information query condition. The log file generating module 714 is further configured to: according to the log information query condition, query the corresponding log information from the acquired interface call log information; output the query interface call log information, and generate an interface call log file.
关于接口调用数据处理装置的具体限定可以参见上文中对于接口调用数据处理方法的限定,在此不再赘述。上述接口调用数据处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For specific definitions of the interface call data processing apparatus, reference may be made to the definition of the interface call data processing method in the above, and details are not described herein again. Each of the modules in the above-described interface call data processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
在其中一个实施例中,提供了一种计算机设备,包括存储器和一个或多个处理器,存储器中存储有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器执行以下步骤:接收接口调用请求,获取接口调用请求中的目标接口编码;获取与目标接口编码对应的目标数据格式;按照获取的目标数据格式,将接口调用请求中的调用参数进行相应的格式转换;根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与目标接口编码对应的接口地址;根据接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。In one embodiment, a computer apparatus is provided comprising a memory and one or more processors having stored therein computer readable instructions that, when executed by the processor, cause one or more processors The following steps are performed: receiving an interface call request, obtaining a target interface code in the interface call request, acquiring a target data format corresponding to the target interface code, and performing a format conversion on the call parameter in the interface call request according to the acquired target data format. According to the mapping relationship between the interface code and the interface address set in the interface routing service, the interface address corresponding to the target interface code is obtained; according to the interface address, the formatted call parameter is allocated to the corresponding target interface for calling processing.
在其中一个实施例中,该计算机可读指令还使得处理器执行以下步骤:获取接口调用请求中的调用参数的初始数据格式;基于初始数据格式对调用处理后得到的数据进行格式转换;返回格式转换后得到的数据。In one embodiment, the computer readable instructions further cause the processor to: obtain an initial data format of the call parameters in the interface call request; format convert the data obtained after the call processing based on the initial data format; return format The data obtained after conversion.
在其中一个实施例中,该计算机可读指令还使得处理器执行以下步骤:根据接口路由服务记录接口调用日志信息;记录的接口调用日志信息包括对被调用平台中的任意接口的调用日志信息。In one of the embodiments, the computer readable instructions further cause the processor to perform the step of: invoking log information in accordance with an interface routing service record interface; the recorded interface call log information includes call log information for any of the interfaces in the invoked platform.
在其中一个实施例中,该计算机可读指令还使得处理器执行以下步骤:获取接口调用日志文件生成请求;获取与接口调用日志文件生成请求中的用户标识对应的权限配置文件;解析权限配置文件,得到相应的权限信息;当根据权限信息判断满足接口调用日志文件生成权限时,则从接口路由服务中 获取与接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件。In one embodiment, the computer readable instructions further cause the processor to: obtain an interface call log file generation request; obtain a rights configuration file corresponding to the user identifier in the interface call log file generation request; and resolve the rights configuration file The corresponding permission information is obtained. When the permission to generate the interface call log file is determined according to the permission information, the log information corresponding to the interface call log generation authority information is obtained from the interface routing service and output, and the corresponding log file is generated.
在其中一个实施例中,处理器所执行的当根据权限信息判断满足接口调用日志文件生成权限时,则从接口路由服务中获取与接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件,包括:根据权限信息获取与用户标识对应的用户角色;当用户角色具有访问接口调用日志的功能权限时,获取与用户角色对应的对接口调用日志的内容访问权限信息;当用户角色对内容访问权限信息所表征的可访问的接口调用日志信息,具有日志文件生成权限时,则获取内容访问权限信息所表征的、且与日志文件生成权限对应的接口调用日志信息;根据获取的接口调用日志信息生成相应的日志文件。In one embodiment, when the processor determines that the interface call log file generation permission is satisfied according to the authority information, the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output, and the corresponding information is generated. The log file includes: obtaining a user role corresponding to the user identifier according to the permission information; and obtaining the content access permission information of the interface call log corresponding to the user role when the user role has the function permission of the access interface to invoke the log; Invoking log information to the accessible interface represented by the content access permission information, and having the log file generation permission, acquiring the interface calling log information represented by the content access permission information and corresponding to the log file generating permission; Call the log information to generate the corresponding log file.
在其中一个实施例中,接口调用日志文件生成请求中还包括日志信息查询条件;处理器所执行的根据获取的接口调用日志信息生成相应的日志文件,包括:按照日志信息查询条件,从获取的接口调用日志信息中查询对应的日志信息;将查询到的接口调用日志信息输出,生成接口调用日志文件。In one embodiment, the interface call log file generation request further includes a log information query condition; the processor performs a log file according to the acquired interface call log information, and includes: obtaining the corresponding log file according to the log information query condition. The interface calls the log information to query the corresponding log information; the queried interface calls the log information output, and generates an interface call log file.
在其中一个实施例中,提供了一种存储有计算机可读指令的存储介质,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:接收接口调用请求,获取接口调用请求中的目标接口编码;获取与目标接口编码对应的目标数据格式;按照获取的目标数据格式,将接口调用请求中的调用参数进行相应的格式转换;根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与目标接口编码对应的接口地址;根据接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。In one of the embodiments, a storage medium storing computer readable instructions, when executed by one or more processors, causes one or more processors to perform the steps of: receiving an interface call Requesting, obtaining the target interface code in the interface call request; obtaining the target data format corresponding to the target interface code; performing the format conversion on the call parameter in the interface call request according to the acquired target data format; setting according to the interface routing service The mapping relationship between the interface code and the interface address obtains the interface address corresponding to the target interface code; according to the interface address, the format converted call parameter is allocated to the corresponding target interface for calling processing.
在其中一个实施例中,该计算机可读指令还使得处理器执行以下步骤:获取接口调用请求中的调用参数的初始数据格式;基于初始数据格式对调用处理后得到的数据进行格式转换;返回格式转换后得到的数据。In one embodiment, the computer readable instructions further cause the processor to: obtain an initial data format of the call parameters in the interface call request; format convert the data obtained after the call processing based on the initial data format; return format The data obtained after conversion.
在其中一个实施例中,该计算机可读指令还使得处理器执行以下步骤:根据接口路由服务记录接口调用日志信息;记录的接口调用日志信息包括对被调用平台中的任意接口的调用日志信息。In one of the embodiments, the computer readable instructions further cause the processor to perform the step of: invoking log information in accordance with an interface routing service record interface; the recorded interface call log information includes call log information for any of the interfaces in the invoked platform.
在其中一个实施例中,该计算机可读指令还使得处理器执行以下步骤:获取接口调用日志文件生成请求;获取与接口调用日志文件生成请求中的用户标识对应的权限配置文件;解析权限配置文件,得到相应的权限信息;当根据权限信息判断满足接口调用日志文件生成权限时,则从接口路由服务中获取与接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件。In one embodiment, the computer readable instructions further cause the processor to: obtain an interface call log file generation request; obtain a rights configuration file corresponding to the user identifier in the interface call log file generation request; and resolve the rights configuration file The corresponding permission information is obtained. When the permission to generate the interface call log file is determined according to the permission information, the log information corresponding to the interface call log generation authority information is obtained from the interface routing service and output, and the corresponding log file is generated.
在其中一个实施例中,处理器所执行的当根据权限信息判断满足接口调 用日志文件生成权限时,则从接口路由服务中获取与接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件,包括:根据权限信息获取与用户标识对应的用户角色;当用户角色具有访问接口调用日志的功能权限时,获取与用户角色对应的对接口调用日志的内容访问权限信息;当用户角色对内容访问权限信息所表征的可访问的接口调用日志信息,具有日志文件生成权限时,则获取内容访问权限信息所表征的、且与日志文件生成权限对应的接口调用日志信息;根据获取的接口调用日志信息生成相应的日志文件。In one embodiment, when the processor determines that the interface call log file generation permission is satisfied according to the authority information, the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output, and the corresponding information is generated. The log file includes: obtaining a user role corresponding to the user identifier according to the permission information; and obtaining the content access permission information of the interface call log corresponding to the user role when the user role has the function permission of the access interface to invoke the log; Invoking log information to the accessible interface represented by the content access permission information, and having the log file generation permission, acquiring the interface calling log information represented by the content access permission information and corresponding to the log file generating permission; Call the log information to generate the corresponding log file.
在其中一个实施例中,接口调用日志文件生成请求中还包括日志信息查询条件;处理器所执行的根据获取的接口调用日志信息生成相应的日志文件,包括:按照日志信息查询条件,从获取的接口调用日志信息中查询对应的日志信息;将查询到的接口调用日志信息输出,生成接口调用日志文件。In one embodiment, the interface call log file generation request further includes a log information query condition; the processor performs a log file according to the acquired interface call log information, and includes: obtaining the corresponding log file according to the log information query condition. The interface calls the log information to query the corresponding log information; the queried interface calls the log information output, and generates an interface call log file.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer readable instructions, which can be stored in a non-volatile computer. The readable storage medium, which when executed, may include the flow of an embodiment of the methods as described above. Any reference to a memory, storage, database or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, It is considered to be the range described in this specification.
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (20)

  1. 一种接口调用数据处理方法,包括:An interface call data processing method, including:
    接收接口调用请求,获取所述接口调用请求中的目标接口编码;Receiving an interface call request, and acquiring a target interface code in the interface call request;
    获取与目标接口编码对应的目标数据格式;Obtaining a target data format corresponding to the target interface encoding;
    按照获取的所述目标数据格式,将所述接口调用请求中的调用参数进行相应的格式转换;And correspondingly converting the calling parameter in the interface call request according to the obtained target data format;
    根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与所述目标接口编码对应的接口地址;及Obtaining an interface address corresponding to the target interface code according to a mapping relationship between the interface code and the interface address set in the interface routing service; and
    根据所述接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。According to the interface address, the formatted call parameters are allocated to the corresponding target interface for calling processing.
  2. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    获取所述接口调用请求中的调用参数的初始数据格式;Obtaining an initial data format of the calling parameter in the interface call request;
    基于所述初始数据格式对调用处理后得到的数据进行格式转换;及Performing format conversion on the data obtained after the call processing based on the initial data format; and
    返回格式转换后得到的所述数据。Returns the data obtained after the format conversion.
  3. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    根据所述接口路由服务记录接口调用日志信息;记录的所述接口调用日志信息包括对被调用平台中的任意接口的调用日志信息。The log information is invoked according to the interface routing service record interface; the recorded call log information of the interface includes call log information of any interface in the called platform.
  4. 根据权利要求3所述的方法,其特征在于,还包括:The method of claim 3, further comprising:
    获取接口调用日志文件生成请求;Obtain an interface call log file generation request;
    获取与接口调用日志文件生成请求中的用户标识对应的权限配置文件;Obtaining a rights configuration file corresponding to the user identifier in the interface call log file generation request;
    解析所述权限配置文件,得到相应的权限信息;及Parsing the rights configuration file to obtain corresponding permission information; and
    当根据所述权限信息判断满足接口调用日志文件生成权限时,则从所述接口路由服务中获取与所述接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件。When it is determined that the interface call log file generation authority is satisfied according to the permission information, the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output, and a corresponding log file is generated.
  5. 根据权利要求4所述的方法,其特征在于,所述当根据所述权限信息判断满足接口调用日志文件生成权限时,则从所述接口路由服务中获取与所述接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件包括:The method according to claim 4, wherein, when it is determined that the interface call log file generation authority is satisfied according to the authority information, obtaining the permission information for generating the log file from the interface by the interface routing service Corresponding log information is output and generated, and corresponding log files are generated including:
    根据所述权限信息获取与所述用户标识对应的用户角色;Obtaining a user role corresponding to the user identifier according to the rights information;
    当所述用户角色具有访问接口调用日志的功能权限时,获取与所述用户角色对应的对接口调用日志的内容访问权限信息;When the user role has the function permission for accessing the interface call log, obtaining content access permission information of the interface call log corresponding to the user role;
    当所述用户角色对所述内容访问权限信息所表征的可访问的接口调用日志信息,具有日志文件生成权限时,则When the user role invokes log information on an accessible interface represented by the content access right information, and has log file generation permission,
    获取所述内容访问权限信息所表征的、且与所述日志文件生成权限对应的接口调用日志信息;及Obtaining an interface call log information that is represented by the content access authority information and that corresponds to the log file generation authority; and
    根据获取的所述接口调用日志信息生成相应的日志文件。Generating a corresponding log file according to the acquired interface call log information.
  6. 根据权利要求5所述的方法,其特征在于,所述接口调用日志文件生成请求中还包括日志信息查询条件;The method according to claim 5, wherein the interface call log file generation request further includes a log information query condition;
    所述根据获取的所述接口调用日志信息生成相应的日志文件包括:The generating the corresponding log file according to the acquired interface call log information includes:
    按照所述日志信息查询条件,从获取的所述接口调用日志信息中查询对应的日志信息;及Querying corresponding log information from the obtained log information of the interface according to the query condition of the log information; and
    将查询到的接口调用日志信息输出,生成接口调用日志文件。The queried interface calls log information output, and generates an interface call log file.
  7. 一种接口调用数据处理装置,包括:An interface calls a data processing device, including:
    获取模块,用于接收接口调用请求,获取所述接口调用请求中的目标接口编码;以及获取与目标接口编码对应的目标数据格式;An acquiring module, configured to receive an interface call request, obtain a target interface code in the interface call request, and obtain a target data format corresponding to the target interface code;
    格式转换模块,用于按照获取的所述目标数据格式,将所述接口调用请求中的调用参数进行相应的格式转换;a format conversion module, configured to perform a corresponding format conversion on the calling parameter in the interface call request according to the obtained target data format;
    接口地址映射模块,用于根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与所述目标接口编码对应的接口地址;及An interface address mapping module, configured to obtain an interface address corresponding to the target interface code according to a mapping relationship between an interface code and an interface address set in the interface routing service; and
    调用处理模块,用于根据所述接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。The processing module is configured to allocate the formatted call parameters to the corresponding target interface according to the interface address for calling processing.
  8. 根据权利要求7所述的装置,其特征在于,所述获取模块还用于获取所述接口调用请求中的调用参数的初始数据格式;所述格式转换模块还用于基于所述初始数据格式对调用处理后得到的数据进行格式转换;返回格式转换后得到的所述数据。The apparatus according to claim 7, wherein the obtaining module is further configured to acquire an initial data format of a calling parameter in the interface call request; the format converting module is further configured to use the initial data format pair The data obtained after the processing is called for format conversion; the data obtained after the format conversion is returned.
  9. 根据权利要求7所述的装置,其特征在于,还包括:The device according to claim 7, further comprising:
    日志信息记录模块,用于根据所述接口路由服务记录接口调用日志信息;记录的所述接口调用日志信息包括对被调用平台中的任意接口的调用日志信息。The log information recording module is configured to invoke log information according to the interface routing service record interface; the recorded interface call log information includes call log information of any interface in the called platform.
  10. 根据权利要求9所述的装置,其特征在于,所述获取模块还用于获取接口调用日志文件生成请求;获取与接口调用日志文件生成请求中的用户标识对应的权限配置文件;The device according to claim 9, wherein the obtaining module is further configured to: acquire an interface call log file generation request; and acquire a rights configuration file corresponding to the user identifier in the interface call log file generation request;
    所述装置还包括:The device also includes:
    权限信息解析模块,用于解析所述权限配置文件,得到相应的权限信息;及a permission information parsing module, configured to parse the rights configuration file to obtain corresponding authority information; and
    日志文件生成模块,用于当根据所述权限信息判断满足接口调用日志文件生成权限时,则从所述接口路由服务中获取与所述接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件。a log file generating module, configured to: when determining, according to the permission information, that the interface call log file generation permission is satisfied, obtaining log information corresponding to the interface call log file generation authority information from the interface routing service, and outputting, generating The corresponding log file.
  11. 根据权利要求10所述的装置,其特征在于,所述日志文件生成模块还用于根据所述权限信息获取与所述用户标识对应的用户角色;当所述用户 角色具有访问接口调用日志的功能权限时,获取与所述用户角色对应的对接口调用日志的内容访问权限信息;当所述用户角色对所述内容访问权限信息所表征的可访问的接口调用日志信息,具有日志文件生成权限时,则获取所述内容访问权限信息所表征的、且与所述日志文件生成权限对应的接口调用日志信息;根据获取的所述接口调用日志信息生成相应的日志文件。The device according to claim 10, wherein the log file generating module is further configured to acquire a user role corresponding to the user identifier according to the rights information; and when the user role has a function of accessing an interface call log And obtaining the content access permission information of the interface call log corresponding to the user role; and when the user role invokes the log information on the accessible interface represented by the content access authority information, and has the log file generation permission And acquiring the interface call log information that is represented by the content access right information and corresponding to the log file generation authority; and generating a corresponding log file according to the acquired interface call log information.
  12. 根据权利要求11所述的装置,其特征在于,所述接口调用日志文件生成请求中还包括日志信息查询条件;所述日志文件生成模块还用于按照所述日志信息查询条件,从获取的所述接口调用日志信息中查询对应的日志信息;将查询到的接口调用日志信息输出,生成接口调用日志文件。The apparatus according to claim 11, wherein the interface call log file generation request further includes a log information query condition; the log file generation module is further configured to: according to the log information query condition, obtain the location The interface call log information is queried for the corresponding log information; the queried interface calls the log information output, and the interface calls the log file.
  13. 一种计算机设备,包括存储器和一个或多个处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行下步骤:A computer device comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to execute Next steps:
    接收接口调用请求,获取所述接口调用请求中的目标接口编码;Receiving an interface call request, and acquiring a target interface code in the interface call request;
    获取与目标接口编码对应的目标数据格式;Obtaining a target data format corresponding to the target interface encoding;
    按照获取的所述目标数据格式,将所述接口调用请求中的调用参数进行相应的格式转换;And correspondingly converting the calling parameter in the interface call request according to the obtained target data format;
    根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与所述目标接口编码对应的接口地址;及Obtaining an interface address corresponding to the target interface code according to a mapping relationship between the interface code and the interface address set in the interface routing service; and
    根据所述接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。According to the interface address, the formatted call parameters are allocated to the corresponding target interface for calling processing.
  14. 根据权利要求13所述的计算机设备,其特征在于,所述计算机可读指令被所述一个或多个处理器执行时还执行以下步骤:The computer apparatus according to claim 13 wherein said computer readable instructions are further executed by said one or more processors to perform the following steps:
    获取所述接口调用请求中的调用参数的初始数据格式;Obtaining an initial data format of the calling parameter in the interface call request;
    基于所述初始数据格式对调用处理后得到的数据进行格式转换;及Performing format conversion on the data obtained after the call processing based on the initial data format; and
    返回格式转换后得到的所述数据。Returns the data obtained after the format conversion.
  15. 根据权利要求13所述的计算机设备,其特征在于,所述计算机可读指令被所述一个或多个处理器执行时还执行以下步骤:The computer apparatus according to claim 13 wherein said computer readable instructions are further executed by said one or more processors to perform the following steps:
    根据所述接口路由服务记录接口调用日志信息;记录的所述接口调用日志信息包括对被调用平台中的任意接口的调用日志信息。The log information is invoked according to the interface routing service record interface; the recorded call log information of the interface includes call log information of any interface in the called platform.
  16. 根据权利要求15所述的计算机设备,其特征在于,所述计算机可读指令被所述一个或多个处理器执行时还执行以下步骤:The computer apparatus according to claim 15, wherein said computer readable instructions are further executed by said one or more processors to perform the following steps:
    获取接口调用日志文件生成请求;Obtain an interface call log file generation request;
    获取与接口调用日志文件生成请求中的用户标识对应的权限配置文件;Obtaining a rights configuration file corresponding to the user identifier in the interface call log file generation request;
    解析所述权限配置文件,得到相应的权限信息;及Parsing the rights configuration file to obtain corresponding permission information; and
    当根据所述权限信息判断满足接口调用日志文件生成权限时,则从所述 接口路由服务中获取与所述接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件。When it is determined that the interface call log file generation authority is satisfied according to the permission information, the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output, and a corresponding log file is generated.
  17. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
    接收接口调用请求,获取所述接口调用请求中的目标接口编码;Receiving an interface call request, and acquiring a target interface code in the interface call request;
    获取与目标接口编码对应的目标数据格式;Obtaining a target data format corresponding to the target interface encoding;
    按照获取的所述目标数据格式,将所述接口调用请求中的调用参数进行相应的格式转换;And correspondingly converting the calling parameter in the interface call request according to the obtained target data format;
    根据接口路由服务中设置的接口编码与接口地址之间的映射关系,获取与所述目标接口编码对应的接口地址;及Obtaining an interface address corresponding to the target interface code according to a mapping relationship between the interface code and the interface address set in the interface routing service; and
    根据所述接口地址,将格式转换后的调用参数分配至相应的目标接口进行调用处理。According to the interface address, the formatted call parameters are allocated to the corresponding target interface for calling processing.
  18. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述一个或多个处理器执行时还执行以下步骤:The storage medium of claim 17, wherein the computer readable instructions are further executed by the one or more processors to perform the following steps:
    获取所述接口调用请求中的调用参数的初始数据格式;Obtaining an initial data format of the calling parameter in the interface call request;
    基于所述初始数据格式对调用处理后得到的数据进行格式转换;及Performing format conversion on the data obtained after the call processing based on the initial data format; and
    返回格式转换后得到的所述数据。Returns the data obtained after the format conversion.
  19. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述一个或多个处理器执行时还执行以下步骤:The storage medium of claim 17, wherein the computer readable instructions are further executed by the one or more processors to perform the following steps:
    根据所述接口路由服务记录接口调用日志信息;记录的所述接口调用日志信息包括对被调用平台中的任意接口的调用日志信息。The log information is invoked according to the interface routing service record interface; the recorded call log information of the interface includes call log information of any interface in the called platform.
  20. 根据权利要求19所述的存储介质,其特征在于,所述计算机可读指令被所述一个或多个处理器执行时还执行以下步骤:The storage medium of claim 19, wherein the computer readable instructions, when executed by the one or more processors, further perform the following steps:
    获取接口调用日志文件生成请求;Obtain an interface call log file generation request;
    获取与接口调用日志文件生成请求中的用户标识对应的权限配置文件;Obtaining a rights configuration file corresponding to the user identifier in the interface call log file generation request;
    解析所述权限配置文件,得到相应的权限信息;及Parsing the rights configuration file to obtain corresponding permission information; and
    当根据所述权限信息判断满足接口调用日志文件生成权限时,则从所述接口路由服务中获取与所述接口调用日志文件生成权限信息对应的日志信息并输出,生成相应的日志文件。When it is determined that the interface call log file generation authority is satisfied according to the permission information, the log information corresponding to the interface call log file generation authority information is obtained from the interface routing service and output, and a corresponding log file is generated.
PCT/CN2018/084762 2017-05-04 2018-04-27 Interface call data processing method, apparatus, computer device and storage medium WO2018201978A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710309458.9 2017-05-04
CN201710309458.9A CN108255905B (en) 2017-05-04 2017-05-04 Interface calls data processing method, device and computer equipment

Publications (1)

Publication Number Publication Date
WO2018201978A1 true WO2018201978A1 (en) 2018-11-08

Family

ID=62721793

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/084762 WO2018201978A1 (en) 2017-05-04 2018-04-27 Interface call data processing method, apparatus, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN108255905B (en)
WO (1) WO2018201978A1 (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710571A (en) * 2018-12-27 2019-05-03 腾讯音乐娱乐科技(深圳)有限公司 A kind of document analysis method, equipment and storage medium
CN110162560A (en) * 2019-04-16 2019-08-23 深圳壹账通智能科技有限公司 Finance data interface butt joint method, device, computer equipment and storage medium
CN110333984A (en) * 2019-06-05 2019-10-15 阿里巴巴集团控股有限公司 Interface method for detecting abnormality, device, server and system
CN110825465A (en) * 2019-11-06 2020-02-21 北京达佳互联信息技术有限公司 Log data processing method and device, electronic equipment and storage medium
CN111078447A (en) * 2019-11-24 2020-04-28 杭州安恒信息技术股份有限公司 Method, device, equipment and medium for positioning abnormity in micro-service architecture
CN111190750A (en) * 2019-12-25 2020-05-22 天津幸福生命科技有限公司 Data processing method and system
CN111339380A (en) * 2020-03-04 2020-06-26 北京新氧科技有限公司 Interface time-consuming data processing method and related device
CN111339466A (en) * 2020-02-25 2020-06-26 天津满运软件科技有限公司 Interface management method and device, electronic equipment and readable storage medium
CN111341445A (en) * 2020-02-05 2020-06-26 网宿科技股份有限公司 Health detection method and health detection system of micro-service call chain
CN111984713A (en) * 2020-06-29 2020-11-24 五八到家有限公司 Data processing method, device, equipment and storage medium
CN112052227A (en) * 2020-09-25 2020-12-08 郑州阿帕斯数云信息科技有限公司 Data change log processing method and device and electronic equipment
CN112187728A (en) * 2020-09-08 2021-01-05 灵犀科技有限公司 Gateway proxy management method and device based on unified user permission
CN112217823A (en) * 2020-10-13 2021-01-12 中国银行股份有限公司 Interface authority control method and device based on dubbo frame
CN112307374A (en) * 2020-10-30 2021-02-02 康键信息技术(深圳)有限公司 Jumping method, device and equipment based on backlog and storage medium
CN112579428A (en) * 2019-09-29 2021-03-30 北京沃东天骏信息技术有限公司 Interface testing method and device, electronic equipment and storage medium
CN111413918B (en) * 2020-03-05 2021-05-28 明珞汽车装备(上海)有限公司 Method, system and storage medium for processing creation data of OPC communication label
CN112948474A (en) * 2019-12-11 2021-06-11 深圳云天励飞技术有限公司 Data export method, device, equipment and computer readable storage medium
CN113542369A (en) * 2021-06-28 2021-10-22 深圳海付移通科技有限公司 Interface data processing method and device, computer equipment and storage medium
CN113742300A (en) * 2020-08-11 2021-12-03 北京沃东天骏信息技术有限公司 Log management method, device, server and system
CN114598750A (en) * 2022-01-14 2022-06-07 浙江吉利控股集团有限公司 Data request processing method and device and storage medium
CN114780267A (en) * 2022-06-21 2022-07-22 苏州万店掌网络科技有限公司 Interface calling method, device, equipment and storage medium
CN114826865A (en) * 2022-05-11 2022-07-29 北京鼎泰智源科技有限公司 Tax-related data application interface docking method and device
CN115185717A (en) * 2022-09-14 2022-10-14 北京达佳互联信息技术有限公司 Interface calling method and device, electronic equipment and storage medium
CN115396492A (en) * 2022-08-03 2022-11-25 深圳前海环融联易信息科技服务有限公司 Service request method, service request device, computer equipment and program product
CN116069840A (en) * 2022-11-30 2023-05-05 湖南长银五八消费金融股份有限公司 Interface replay method, device and computer equipment in service reconfiguration migration
CN116627486A (en) * 2023-07-25 2023-08-22 中博信息技术研究院有限公司 Compact configuration type rest interface management and message conversion method and device

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165486B (en) * 2018-08-27 2021-06-22 四川长虹电器股份有限公司 Configurable interface access authority control method
CN109408337B (en) 2018-10-31 2021-12-28 京东方科技集团股份有限公司 Interface operation and maintenance method and device
CN109684103A (en) * 2018-12-17 2019-04-26 上海曼恒数字技术股份有限公司 A kind of interface call method, device, server and storage medium
CN109614338B (en) * 2018-12-25 2022-03-18 成都四方伟业软件股份有限公司 External interface adaptation method and device and external interface adapter
CN109683878A (en) * 2018-12-26 2019-04-26 苏州浪潮智能软件有限公司 A kind of implementation method for Web system exploitation adapter assembly
CN110083582A (en) * 2019-03-22 2019-08-02 平安普惠企业管理有限公司 Method, apparatus, computer equipment and the storage medium of output journal
CN110109656A (en) * 2019-03-25 2019-08-09 平安科技(深圳)有限公司 Interface analogy method, device, computer equipment and storage medium
CN110413423A (en) * 2019-07-23 2019-11-05 腾讯科技(深圳)有限公司 Data processing method, relevant apparatus, equipment and storage medium
CN110427416A (en) * 2019-08-12 2019-11-08 东莞市大易产业链服务有限公司 Bank interface information processing method, device, computer equipment and storage medium
CN111026563B (en) * 2019-11-18 2024-03-15 北京飞赛克科技有限公司 Interface calling method and device, storage medium and electronic equipment
CN111158661A (en) * 2019-12-11 2020-05-15 中国平安财产保险股份有限公司 System interface docking method, device, medium and electronic equipment
CN111400072B (en) * 2020-04-22 2023-10-17 Oppo广东移动通信有限公司 Interface calling method, storage medium and related equipment
CN111708684B (en) * 2020-05-06 2022-11-15 苏宁云计算有限公司 Recording method and device for page access and computer system
CN111597242A (en) * 2020-05-13 2020-08-28 上海电机系统节能工程技术研究中心有限公司 Supply chain data docking method and device, electronic equipment and storage medium
CN111767261A (en) * 2020-05-29 2020-10-13 广州视源电子科技股份有限公司 Debugging log output method and device, storage medium and electronic equipment
CN111722947A (en) * 2020-06-28 2020-09-29 深圳壹账通智能科技有限公司 Service calling method and system
CN112181535A (en) * 2020-09-21 2021-01-05 中国建设银行股份有限公司 Interface calling method, device, server and storage medium
CN112860463A (en) * 2021-03-22 2021-05-28 平安商业保理有限公司 Service request forwarding method and device, computer equipment and readable storage medium
CN113312242A (en) * 2021-06-29 2021-08-27 中国农业银行股份有限公司 Interface information management method, device, equipment and storage medium
CN114265824B (en) * 2021-12-27 2022-07-01 众和空间(北京)科技有限责任公司 Internet of things equipment integration method based on mapping file
CN115941607A (en) * 2022-12-01 2023-04-07 大箴(杭州)科技有限公司 Information input method and device, storage medium and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193829A (en) * 2011-05-20 2011-09-21 深圳市江波龙电子有限公司 Method and device for calling local interface of virtual machine
CN102255961A (en) * 2011-06-30 2011-11-23 重庆新媒农信科技有限公司 Java 2 micro edition (J2ME)-based Web Service interface calling method
CN105808365A (en) * 2016-03-22 2016-07-27 深圳市宁远科技股份有限公司 HIS (Hospital Information System) interface calling method and HIS interface configuration method
CN106528400A (en) * 2016-09-22 2017-03-22 深圳峰创智诚科技有限公司 MOCK testing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193829A (en) * 2011-05-20 2011-09-21 深圳市江波龙电子有限公司 Method and device for calling local interface of virtual machine
CN102255961A (en) * 2011-06-30 2011-11-23 重庆新媒农信科技有限公司 Java 2 micro edition (J2ME)-based Web Service interface calling method
CN105808365A (en) * 2016-03-22 2016-07-27 深圳市宁远科技股份有限公司 HIS (Hospital Information System) interface calling method and HIS interface configuration method
CN106528400A (en) * 2016-09-22 2017-03-22 深圳峰创智诚科技有限公司 MOCK testing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YANG, CHENG ET AL.: "A kind of oracle database call interface based on OCI9", MICROCOMPUTER APPLICATIONS, vol. 30, no. 4, 30 April 2009 (2009-04-30), pages 35 - 39 *

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710571B (en) * 2018-12-27 2023-06-23 腾讯音乐娱乐科技(深圳)有限公司 File analysis method, device and storage medium
CN109710571A (en) * 2018-12-27 2019-05-03 腾讯音乐娱乐科技(深圳)有限公司 A kind of document analysis method, equipment and storage medium
CN110162560A (en) * 2019-04-16 2019-08-23 深圳壹账通智能科技有限公司 Finance data interface butt joint method, device, computer equipment and storage medium
CN110333984A (en) * 2019-06-05 2019-10-15 阿里巴巴集团控股有限公司 Interface method for detecting abnormality, device, server and system
CN112579428A (en) * 2019-09-29 2021-03-30 北京沃东天骏信息技术有限公司 Interface testing method and device, electronic equipment and storage medium
CN110825465A (en) * 2019-11-06 2020-02-21 北京达佳互联信息技术有限公司 Log data processing method and device, electronic equipment and storage medium
CN111078447A (en) * 2019-11-24 2020-04-28 杭州安恒信息技术股份有限公司 Method, device, equipment and medium for positioning abnormity in micro-service architecture
CN111078447B (en) * 2019-11-24 2023-09-19 杭州安恒信息技术股份有限公司 Abnormality positioning method, device, equipment and medium in micro-service architecture
CN112948474B (en) * 2019-12-11 2024-01-05 深圳云天励飞技术有限公司 Data export method, device, equipment and computer readable storage medium
CN112948474A (en) * 2019-12-11 2021-06-11 深圳云天励飞技术有限公司 Data export method, device, equipment and computer readable storage medium
CN111190750B (en) * 2019-12-25 2024-04-16 北京懿医云科技有限公司 Data processing method and system
CN111190750A (en) * 2019-12-25 2020-05-22 天津幸福生命科技有限公司 Data processing method and system
CN111341445B (en) * 2020-02-05 2024-04-16 网宿科技股份有限公司 Health detection method and health detection system for micro-service call chain
CN111341445A (en) * 2020-02-05 2020-06-26 网宿科技股份有限公司 Health detection method and health detection system of micro-service call chain
CN111339466A (en) * 2020-02-25 2020-06-26 天津满运软件科技有限公司 Interface management method and device, electronic equipment and readable storage medium
CN111339380B (en) * 2020-03-04 2023-12-22 北京新氧科技有限公司 Interface time-consuming data processing method and related device
CN111339380A (en) * 2020-03-04 2020-06-26 北京新氧科技有限公司 Interface time-consuming data processing method and related device
CN111413918B (en) * 2020-03-05 2021-05-28 明珞汽车装备(上海)有限公司 Method, system and storage medium for processing creation data of OPC communication label
CN111984713A (en) * 2020-06-29 2020-11-24 五八到家有限公司 Data processing method, device, equipment and storage medium
CN113742300A (en) * 2020-08-11 2021-12-03 北京沃东天骏信息技术有限公司 Log management method, device, server and system
CN112187728A (en) * 2020-09-08 2021-01-05 灵犀科技有限公司 Gateway proxy management method and device based on unified user permission
CN112052227A (en) * 2020-09-25 2020-12-08 郑州阿帕斯数云信息科技有限公司 Data change log processing method and device and electronic equipment
CN112217823A (en) * 2020-10-13 2021-01-12 中国银行股份有限公司 Interface authority control method and device based on dubbo frame
CN112307374B (en) * 2020-10-30 2023-10-20 康键信息技术(深圳)有限公司 To-do-based jump method, device, equipment and storage medium
CN112307374A (en) * 2020-10-30 2021-02-02 康键信息技术(深圳)有限公司 Jumping method, device and equipment based on backlog and storage medium
CN113542369A (en) * 2021-06-28 2021-10-22 深圳海付移通科技有限公司 Interface data processing method and device, computer equipment and storage medium
CN114598750A (en) * 2022-01-14 2022-06-07 浙江吉利控股集团有限公司 Data request processing method and device and storage medium
CN114598750B (en) * 2022-01-14 2024-01-30 浙江吉利控股集团有限公司 Data request processing method, device and storage medium
CN114826865A (en) * 2022-05-11 2022-07-29 北京鼎泰智源科技有限公司 Tax-related data application interface docking method and device
CN114780267A (en) * 2022-06-21 2022-07-22 苏州万店掌网络科技有限公司 Interface calling method, device, equipment and storage medium
CN115396492B (en) * 2022-08-03 2023-11-17 深圳前海环融联易信息科技服务有限公司 Service request method, device, computer equipment and program product
CN115396492A (en) * 2022-08-03 2022-11-25 深圳前海环融联易信息科技服务有限公司 Service request method, service request device, computer equipment and program product
CN115185717B (en) * 2022-09-14 2023-01-20 北京达佳互联信息技术有限公司 Interface calling method and device, electronic equipment and storage medium
CN115185717A (en) * 2022-09-14 2022-10-14 北京达佳互联信息技术有限公司 Interface calling method and device, electronic equipment and storage medium
CN116069840A (en) * 2022-11-30 2023-05-05 湖南长银五八消费金融股份有限公司 Interface replay method, device and computer equipment in service reconfiguration migration
CN116627486A (en) * 2023-07-25 2023-08-22 中博信息技术研究院有限公司 Compact configuration type rest interface management and message conversion method and device
CN116627486B (en) * 2023-07-25 2023-10-20 中博信息技术研究院有限公司 Compact configuration type rest interface management and message conversion method and device

Also Published As

Publication number Publication date
CN108255905A (en) 2018-07-06
CN108255905B (en) 2019-10-01

Similar Documents

Publication Publication Date Title
WO2018201978A1 (en) Interface call data processing method, apparatus, computer device and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN109325729B (en) Method and server for generating electronic contract
WO2020232884A1 (en) Data table migration method, apparatus, computer device and storage medium
CN109784922B (en) Electronic contract signing method, electronic contract signing device, computer equipment and storage medium
CN108491367B (en) Report document generation method and device, computer equipment and storage medium
CN110162524B (en) Configuration data management method, device, computer equipment and storage medium
WO2020168692A1 (en) Mass data sharing method, open sharing platform and electronic device
CN112860778B (en) Database management method, device, equipment and medium for desktop application program
CN110765484A (en) Credit investigation data processing method and electronic equipment
CN113037831A (en) Service gateway message processing method and device
CN112511591A (en) Method, device, equipment and medium for realizing hospital interface data interaction
CN111818175A (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
CN108255967B (en) Method and device for calling storage process, storage medium and terminal
US20200366660A1 (en) System and methods for securely storing data for efficient access by cloud-based computing instances
CN111782652A (en) Data calling method and device, computer equipment and storage medium
CN113722114A (en) Data service processing method and device, computing equipment and storage medium
CN114285852A (en) Service calling method and device based on multi-stage service platform
CN105760532B (en) Resource sharing system and method based on Web Service
WO2020253044A1 (en) Service configuration method and apparatus, and computer device and storage medium
CN111327680A (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN111324906A (en) Automatic access method and device based on data interface and electronic equipment
CN112583890B (en) Message pushing method and device based on enterprise office system and computer equipment
US20170364293A1 (en) Method and apparatus for data processing
CN110958278A (en) API gateway-based data processing method and system and API gateway

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18794936

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18794936

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.03.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18794936

Country of ref document: EP

Kind code of ref document: A1