Interface routing forwarding method and system, computer equipment and readable storage medium

A forwarding method and interface technology, applied in the computer field, can solve the problems of high development cost, code redundancy, and low system security.

Pending Publication Date: 2020-10-27
CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiment of the present invention is to provide an interface routing and forwarding method, system, computer equipment and computer-readable storage medium, which are used to solve abnormal code structure confusion, code redundancy, low system security, high development cost, and low fault tolerance rate and background management difficulties

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface routing forwarding method and system, computer equipment and readable storage medium
  • Interface routing forwarding method and system, computer equipment and readable storage medium
  • Interface routing forwarding method and system, computer equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] figure 2 A flow chart of an interface routing and forwarding method according to Embodiment 1 of the present invention is schematically shown. It can be understood that the flowchart in this method embodiment is not used to limit the sequence of execution steps. An exemplary description is given below taking the computer device 2 as the execution subject.

[0032] like figure 2 As shown, the interface routing and forwarding method may include steps S200-S210, wherein:

[0033] Step S200, receiving the request sent by the front end through the unified interface path layer.

[0034] After the unified interface path layer receives the request sent by the front end, it can perform one or more of the following operations on the request: parameter verification, converting objects, assembling returned objects, and exception handling. Take parameter verification as an example:

[0035] (1) parsing the request to obtain multiple service parameters;

[0036] (2) Check wheth...

Embodiment 3

[0058] Figure 4 Schematically shows a block diagram of an interface routing and forwarding system according to Embodiment 3 of the present invention, the interface routing and forwarding system can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are composed of Executed by one or more processors to implement the embodiments of the present invention. The program modules referred to in the embodiments of the present invention refer to a series of computer program instruction segments capable of accomplishing specific functions. The following description will specifically introduce the functions of each program module in this embodiment.

[0059] like Figure 4 As shown, the interface routing and forwarding system 400 may include a first receiving module 410, a sending module 420, a generating module 430, a second receiving module 440 and a calling module 450, wherein:

[0060] The first receiving module 410 is confi...

Embodiment 4

[0079] The present invention also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by the processor in the following steps: receiving the request sent by the front end through the unified interface path layer; The layer sends the first preset business parameter in the request to the factory class; the factory class generates a business realization class object based on the first preset business parameter and returns the business realization class object; through the The unified interface path layer receives the service implementation class object returned by the factory class; and calls the unified interface layer through the unified interface path layer, so as to call the service method of the service implementation class object through the unified interface layer.

[0080] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for exam...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides an interface routing forwarding method. The method comprises the following steps: receiving a request sent by a front end through a unified interface path layer; sending a first preset service parameter in the request to a factory class through the unified interface path layer; generating a service implementation class object based on the first preset service parameter through the factory class, and returning the service implementation class object; receiving a service implementation class object returned by the factory class through the unified interface path layer; and calling a unified interface layer through the unified interface path layer so as to call the business method of the business implementation class object through the unified interface layer. The embodiment of the invention has the advantages of clear code architecture, few redundant codes, high system safety, low development cost, high error-tolerant rate and easiness in background management.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular to an interface routing and forwarding method, system, device, and computer-readable storage medium. Background technique [0002] In order to improve user experience, developers often need to provide a large number of customized services. Taking the financial industry as an example, a large amount of business logic needs to be developed to meet the needs of different customers. However, a large number of business logics developed are easy to be used by criminals for fraudulent activities and the like. Therefore, in the process of business logic development, in order to ensure that the content in the process of interacting with users conforms to the Internet development norms, it is often necessary to have corresponding content review and operation functions in the background to ensure the accuracy and timeliness of the content. [0003] When receiv...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/448G06F16/25H04L12/721
CPCG06F9/4482G06F16/252H04L45/14
Inventor 陈纯雁
Owner CHINA PING AN PROPERTY INSURANCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products