CN109639629B - Data access processing method and device, computer equipment and storage medium - Google Patents

Data access processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109639629B
CN109639629B CN201811279140.1A CN201811279140A CN109639629B CN 109639629 B CN109639629 B CN 109639629B CN 201811279140 A CN201811279140 A CN 201811279140A CN 109639629 B CN109639629 B CN 109639629B
Authority
CN
China
Prior art keywords
data access
interface
type
client
access request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811279140.1A
Other languages
Chinese (zh)
Other versions
CN109639629A (en
Inventor
龚志玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811279140.1A priority Critical patent/CN109639629B/en
Publication of CN109639629A publication Critical patent/CN109639629A/en
Application granted granted Critical
Publication of CN109639629B publication Critical patent/CN109639629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Abstract

The invention relates to a data access processing method, a data access processing device, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a data access request which is sent by a client and carries a client type and a data access type; performing authentication processing on the data access request based on a preset authentication configuration file, the client type and the data access type; if the authentication is passed, acquiring interface information of the data access request of the data access type, which is sent by the client of the processing client type; and acquiring data corresponding to the data access request according to the interface information. The method can reduce the cost of data access requests of different types of clients.

Description

Data access processing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer applications, and in particular, to a data access processing method, apparatus, computer device, and storage medium.
Background
With the diversification and development of intelligent terminals and various applications, different users may use various different types of clients to access the same application, and thus, a server requiring the same application can process requests of different types of clients.
In order to ensure normal data access of each type of client, the server side needs to develop a corresponding version interface for each type of client to process data access requests of the type of client. This results in that each type of client needs to independently develop a version of the interface to be responsible for data access of the type of client. If a server of an application has multiple types of clients correspondingly, and the server processes data access requests of the clients of different types, multiple sets of version interfaces need to be developed to support the data access requests of the clients of multiple types respectively, so that when the same server processes the data access requests of the clients of different types, multiple sets of independent version interfaces need to be developed, and the cost for processing the data access requests of the clients of different types is high.
Disclosure of Invention
Based on this, it is necessary to provide a data access processing method, apparatus, computer device, and storage medium for solving the problem of high cost of processing data access requests of different types of clients.
A data access processing method, the method comprising:
receiving a data access request which is sent by a client and carries a client type and a data access type;
performing authentication processing on the data access request based on a preset authentication configuration file, the client type and the data access type;
if the authentication is passed, acquiring interface information of the data access request of the data access type, which is sent by the client of the client type and is processed;
and acquiring data corresponding to the data access request according to the interface information.
In one embodiment, the interface information includes an interface identifier and an interface type corresponding to the interface identifier, and the interface type is a public interface or a private interface.
In one embodiment, acquiring data corresponding to the data access request according to the interface information includes:
and searching a corresponding interface according to the interface type and the interface identifier, calling the corresponding interface, and calling data required for processing the data access request from a cache or a database.
In one embodiment, the authenticating the data access request based on a preset authentication configuration file, the client type, and the data access type includes:
and adopting an authentication interface to authenticate the data access request based on the authentication configuration file, the client type and the data access type, wherein the authentication interface is the public interface.
In one embodiment, acquiring interface information for processing the data access request of the data access type sent by the client of the client type includes:
and acquiring the interface information for processing the data access request from a configuration file according to the client type and the data access type.
In one embodiment, before performing authentication processing on the data access request based on a preset authentication configuration file, the client type, and the data access type, the method further includes:
when data access requests of various types of clients are configured and processed, a common interface can be shared;
configuring and processing a private interface corresponding to each type of client, wherein the private interface is only an interface which can be called by the corresponding type of client in an access server;
configuring the configuration file comprising the corresponding relation among the client type, the data access type and the interface information.
In one embodiment, after acquiring the data corresponding to the data access request according to the interface information, the method further includes:
and returning the data corresponding to the data access request to the client.
A data access processing apparatus, the apparatus comprising:
the receiving unit is used for receiving a data access request which is sent by a client and carries a client type and a data access type;
the authentication unit is used for authenticating the data access request based on a preset authentication configuration file, the client type and the data access type;
the interface acquisition unit is used for acquiring interface information of the data access request of the data access type, which is sent by the client of the client type and is processed if the authentication is passed;
and the data acquisition unit is used for acquiring the data corresponding to the data access request according to the interface information.
A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the data access processing method described above.
A storage medium having computer-readable instructions stored thereon which, when executed by one or more processors, cause the one or more processors to perform the steps of the data access processing method described above.
According to the data access processing method, the data access processing device, the computer equipment and the storage medium, a data access request which is sent by a client and carries a client type and a data access type is received; performing authentication processing on the data access request based on a preset authentication configuration file, a client type and a data access type; if the authentication is passed, acquiring interface information of a data access request of a data access type, which is sent by a client of the processing client type; and acquiring data corresponding to the data access request according to the interface information. The method can reduce the cost of data access requests of different types of clients. By adopting the technical scheme, the data access of any type of client can be processed without independently setting a corresponding version interface for each type of client, so that the data access processing method disclosed by the invention avoids the version interface corresponding to each type of client equipment when the data access is processed, the cost of the data access processing can be saved, meanwhile, the data access processing of different types of clients does not need to switch the corresponding version interfaces, and the efficiency of the data access processing can be effectively improved. .
Drawings
FIG. 1 is a diagram of an implementation environment for a data access processing method provided in one embodiment;
FIG. 2 is a schematic diagram showing an internal configuration of a computer device in one embodiment;
FIG. 3 is a flow diagram of a data access processing method in one embodiment;
FIG. 4 is a flowchart of a data access processing method in another embodiment;
FIG. 5 is a schematic illustration of an interface management system configured in accordance with an embodiment of the present invention;
FIG. 6 is a flowchart of a data access processing method in still another embodiment;
FIG. 7 is an architecture diagram of the data access processing method shown in FIG. 6;
FIG. 8 is a flowchart of a data access processing method in yet another embodiment;
FIG. 9 is an architecture diagram of the data access processing method shown in FIG. 8;
FIG. 10 is a flowchart of a data access processing method in yet another embodiment;
FIG. 11 is an architecture diagram of the data access processing method shown in FIG. 10;
FIG. 12 is a block diagram showing the structure of a data access processing device according to an embodiment;
fig. 13 is a block diagram showing a configuration of a data access processing device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a diagram of an implementation environment of a data access processing method provided in an embodiment, as shown in fig. 1, in the implementation environment, a plurality of clients 100 and a server 110 are included, where each of the plurality of clients 100 may be of a different type.
The server 110 in the present embodiment has a function of a data processing apparatus that processes a data access processing method. For example, if a certain client 100 sends a data access request carrying the client type and the data access request to the server 110, the server 110 performs authentication processing on the data access request based on the authentication configuration file, the client type, and the data access type; if the authentication is passed, acquiring interface information of a data access request of a data access type, which is sent by a client of a processing client type; and finally, acquiring data corresponding to the data access request according to the interface information.
It should be noted that the plurality of clients 100 in this embodiment may include clients installed in ios, android, or PC, and may also include clients logged in through m-site, weChat, or applet, but is not limited thereto. The clients 100 and the server 110 may be connected through various wireless communication methods, and the invention is not limited herein.
FIG. 2 is a diagram showing an internal configuration of a computer device according to an embodiment. As shown in fig. 2, the computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected through a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable the processor to realize a data access processing method when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, cause the processor to perform a data access processing method. The network interface of the computer device is used for connecting and communicating with the terminal. It will be appreciated by those skilled in the art that the configuration shown in fig. 2 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components. The computer device of this embodiment may be used as the server 110 in the embodiment shown in fig. 1, and is used to process data access requests of different types of clients.
As shown in fig. 3, in an embodiment, a data access processing method is provided, which may be applied to the server 110, and specifically includes the following steps:
s300, receiving a data access request which is sent by a client and carries a client type and a data access type;
the execution subject of the data access processing method of the present embodiment may be a data access processing apparatus, which may be disposed in the server 110 and may process data access requests of various types of clients.
The data access processing method of this embodiment requires that the data access request sent by the client needs to carry the client type and the data access type. The corresponding client type can be ios, android, PC, m station, weChat or applet and the like. The data access type may include an access request of user information, a picture upload request, a picture download request, a message access request, or a proprietary access request of each type of client, and the like. For each access type, a corresponding interface may be provided. For example, a user system interface may be configured to process an access request of user information, and a picture uploading interface may be configured to process a picture uploading request. For the picture downloading request, a picture downloading interface can be set for processing, and for the message access request, a message pushing interface can be set for processing. And similarly, private interfaces corresponding to the private requests of other types of clients.
S301, performing authentication processing on the data access request based on the authentication configuration file, the client type and the data access type; if the authentication is passed, execute step S302; otherwise, if the authentication fails, go to step S305;
in the data access processing device, the data access request of each data access type of each client type may be authenticated to determine whether the client type has a right to initiate the data access request of the data access type. For example, an authentication configuration file may be preset, and each data access type that each client type allows to access is recorded in the authentication configuration file. Therefore, after receiving a data access request of a certain data access type sent by a certain client type, the data access processing device can judge whether the client type has the authority to initiate the data access type according to the authentication configuration file, and if the client type has the authority, the data access processing device passes the authentication. Otherwise, if the authority is not available, the authentication is not passed.
S302, acquiring interface information of a data access request of the data access type, which is sent by a client of the client type; executing step S303;
in this embodiment, the same data access processing apparatus may process data access requests of various types of clients, and although a set of version interfaces corresponding to each type of client is not required, interface information for processing the data access request corresponding to the data access type of the client type also needs to be acquired for each data access type of each client type.
It should be noted that, one interface may be used for processing the data access request corresponding to the data access type of the client type, or a plurality of interfaces may also be used in a sequential relationship. If the number of the interfaces is multiple, the interface information of each interface needs to be acquired according to the precedence relationship.
For example, the interface information of this embodiment may include an interface identifier and an interface type corresponding to the interface identifier, where the interface type is a public interface or a private interface. The interface identifier may identify whether the interface is a picture uploading interface, a picture downloading interface, or a private interface of which client, or other interfaces. In the data access processing device, the public interface refers to an interface that can be shared by all types of clients, and the private interface refers to an interface that is exclusive to a certain type of client. In order to facilitate management of all interfaces, in an interface management system of a data processing device, public interfaces of all interfaces can be arranged together, private interfaces of each type of client are arranged together, and the interfaces are arranged in a subarea manner, so that the interfaces can be conveniently called according to the interface types and conclusion identifications.
S303, acquiring data corresponding to the data access request according to the interface information; executing the step S304;
for example, the corresponding interface may be obtained specifically according to the interface type and the interface identifier. For example, if the public interface and the private interface are set in different areas, the interface may be searched from the corresponding area according to the type of the interface, and the corresponding interface may be called, and the data required for processing the data access request may be called from the cache, so as to shorten the data acquisition delay and improve the data acquisition efficiency. If the cache does not have the data corresponding to the data access request, the data required for processing the data access request needs to be called from the database.
And S304, returning the data corresponding to the data access request to the client, and ending.
And S305, returning a response message without access right to the client, and ending.
By adopting the above technical solution, the data access processing method of this embodiment can implement processing of data access of any type of client without separately setting a corresponding version interface for each type of client, and therefore, the data access processing method of this embodiment avoids a version interface corresponding to each type of client device when performing data access processing, and can save the cost of data access processing.
Fig. 4 shows that in an embodiment, a data access processing method is proposed, which may be executed before the step 300, and a user configures an interface in a data processing apparatus on a server side, which may specifically include the following steps:
s400, configuring a common interface which can be shared when data access requests of various types of clients are processed;
for example, the public interface of the present embodiment may include an authentication interface, a picture uploading interface, a picture downloading interface, a user system interface, a message pushing interface, and the like. The common feature of all public interfaces is that all types of client data access requests can be handled. For example, step 301 of the embodiment shown in fig. 3 may specifically be implemented by the authentication interface performing authentication processing on the data access request according to the client type and the data access type. In this embodiment, the data processing apparatus receives the data access request from any type of client, and the authentication processing must be performed uniformly by the authentication interface serving as the public interface.
S401, configuring and processing a private interface corresponding to each type of client, wherein the private interface is only an interface which can be called when the corresponding type of client accesses a server;
in practical application, the ios-type client can correspond to the ios system information, and the Android-type client has the Android system information, and similarly, each type of client such as an m-station client, a WeChat client or an applet has uniqueness in the system corresponding to the client type, so that a corresponding private interface needs to be set for each system. That is, the private interface is only used to process data access processing of the corresponding client type, and does not process data access processing of other types of clients. Thus, each type of client may be provided with at least one private interface.
The public interface obtained in step 400 and each private interface obtained in step 401 are arranged together to form the interface management system of the present embodiment shown in fig. 5. As shown in fig. 5, taking an example that the public interface includes an authentication interface, a picture uploading interface, a picture downloading interface, a user system interface, and a message pushing interface, and taking an example that each type of client includes a private interface, in practical applications, each type of client may also be provided with two or more private interfaces. The interface management system shown in fig. 5 can provide an interface required for a data access request of each type of client. And part of the public interfaces and part of the private interfaces shown in fig. 5 can be spliced into an interface management system of one type of client. Therefore, the interface management system shown in fig. 5 can be friendly, integrated and managed uniformly, and can also be flexibly split into complete small interface systems without mutual influence.
S402, configuring a configuration file comprising the corresponding relation among the client type, the data access type and the interface information.
In this embodiment, in order to facilitate searching for corresponding interface information according to the client type and the data access type, in this embodiment, a corresponding relationship between the client type, the data access type, and the interface information may be configured in advance, and the corresponding relationship is stored in a configuration file. In this way, in step S302 in the embodiment shown in fig. 3, interface information for processing a data access request corresponding to the data access type of the client type may be specifically obtained from the configuration file according to the client type and the data access type.
By adopting the technical scheme, the data access processing method of the embodiment can configure the public interface capable of processing data access requests of various types of clients, and process the private interface of each type of client and the configuration file required by interface call, so that data access processing of any type of client can be completed according to the configured public interface, private interface and configuration file, and the compatibility is very strong.
Fig. 6 and 7 show that in one embodiment, a data access processing method is proposed. In this embodiment, a server is taken as an example of processing a picture download request of an ios client, and the server is taken as an example of invoking two public interfaces, namely an authentication interface and a picture download interface, in an interface management system shown in fig. 5, so as to describe a data access process. In fig. 6, the method may specifically include the following steps:
s600, the ios client sends a picture downloading request to the server; the picture identifier which requests downloading is carried in the picture identifier;
s601, after receiving a picture downloading request sent by the ios client, the server verifies whether the ios type client has the authority to initiate the picture downloading request or not through the authentication interface, and if the ios type client has the authority, the server acquires an identifier of the picture downloading interface and the type of the corresponding picture downloading interface from the configuration file;
s602, the server searches the picture downloading interface from the interface management system according to the identifier of the picture downloading interface and the type of the picture downloading interface, calls the picture downloading interface to obtain the picture corresponding to the identifier of the picture requested to be downloaded from the cache, and obtains the picture corresponding to the identifier of the picture requested to be downloaded from the database if the picture does not exist in the cache;
the picture downloading interface of the present embodiment is a public interface.
And S603, the server returns the acquired picture to the ios client.
The process that the server returns the acquired pictures to the ios client is opposite to the access process, after the corresponding pictures are acquired from the cache or the database, the pictures are returned to the ios client through the picture downloading interface, and the picture downloading processing is completed.
The data access processing method of the embodiment calls two public interfaces, namely the authentication interface and the picture downloading interface, in the interface management system to realize the picture downloading processing.
Fig. 8 and 9 illustrate that in one embodiment, a data access processing method is proposed. In this embodiment, a data access process is described by taking an example in which a server processes a user information query request of a PC client, and taking an example in which two public interfaces, namely an authentication interface and a user system interface in an interface management system shown in fig. 5, are invoked in the server. In fig. 8, the method may specifically include the following steps:
s800, the PC client sends a user information query request to the server; the user identification which requests for inquiry is carried in the user identification;
s801, after receiving a user information query request sent by a PC client, a server verifies whether the PC type client has the authority to initiate the user information query request or not through an authentication interface, and if so, acquires an identifier of a user system interface and the type of the corresponding user system interface from a configuration file;
s802, the PC client searches a user system interface from the interface management system according to the received identification of the user system interface and the type of the user system interface, calls the user system interface, acquires user information requested to be inquired from a cache, and acquires the user information requested to be inquired from a database if the cache does not contain the user information;
the type of the user system interface of the embodiment is a public interface.
And S803, the server returns the acquired user information to the PC client.
Similarly, the process of returning the acquired user information to the PC client by the server is opposite to the access process, and after the corresponding user information is acquired from the cache or the database, the user information is returned to the PC client by the user system interface, thereby completing the user information query processing.
The data access processing method of the embodiment calls two public interfaces, namely an authentication interface and a user system interface in an interface management system, and realizes the downloading processing of the picture.
Fig. 10 and 11 show that in one embodiment, a data access processing method is proposed. In this embodiment, a server is taken as an example to process an intra-station information acquisition request of an m-station client, and an authentication interface in an interface management system and an m-station information acquisition interface shown in fig. 5 are taken as examples in the server to describe a data access process. In fig. 10, the method may specifically include the following steps:
s1000, a client of the m station sends an information acquisition request to a server sending station; the identification of the request target information is carried in the request target information;
s1001, after a server receives an in-station information acquisition request sent by a client of the m station, an authentication interface verifies whether the client of the m station type has the authority to initiate the in-station information acquisition request, and if so, the identifier of the information acquisition interface of the m station and the type of the information acquisition interface of the m station are acquired from a configuration file;
s1002, searching the information acquisition interface of the m station from an interface management system by the client of the m station according to the received identifier of the information acquisition interface of the m station and the type of the information acquisition interface of the m station, calling the information acquisition interface of the m station to acquire target information corresponding to the target information identifier in the m station from a cache, and acquiring the target information from a database if the cache does not contain the target information in the m station;
and S1003, the server returns the acquired target information to the m-station client.
Similarly, the process of returning the acquired target information to the m-station client by the server is opposite to the access process, and after the corresponding target information is acquired from the cache or the database, the target information is returned to the m-station client by the information acquisition interface of the m-station, so that the user information query processing is completed.
In the data access processing method of this embodiment, the accessed authentication interface is a public interface, and the information acquisition interface of the m-station is a private interface.
As shown in fig. 12, in an embodiment, a data access processing device is provided, which may be integrated in the server 110 described above, and specifically may include a receiving unit 10, an authentication unit 11, an interface obtaining unit 12, and a data obtaining unit 13.
The receiving unit 10 is configured to receive a data access request carrying a client type and a data access type sent by a client;
the authentication unit 11 is configured to authenticate the data access request based on a preset authentication configuration file, a client type and a data access type in the data access request received by the receiving unit 10;
the interface obtaining unit 12 is configured to obtain, if the authentication by the authentication unit 11 passes, interface information of a data access request of a data access type, which is sent by a client of a processing client type;
the data obtaining unit 13 is configured to obtain data corresponding to the data access request according to the interface information obtained by the interface obtaining unit 12.
Further optionally, in an embodiment, the interface information includes an interface identifier and an interface type corresponding to the interface identifier, where the interface type is a public interface or a private interface.
Further optionally, in an embodiment, the data obtaining unit 13 is specifically configured to search for a corresponding interface according to the interface type and the interface identifier, call the corresponding interface, and call data required for processing the data access request from a cache or a database.
Further optionally, in an embodiment, the authentication unit 11 is specifically configured to use an authentication interface, and perform authentication processing on the data access request based on the authentication configuration file, the client type, and the data access type, where the authentication interface is a public interface.
Further optionally, in an embodiment, the interface obtaining unit 12 is specifically configured to obtain, from the configuration file, interface information for processing the data access request according to the client type and the data access type.
As shown in fig. 13, in one embodiment, there is provided a data access processing apparatus, in which a configuration unit 14 is further included.
The configuration unit 14 is configured to:
when data access requests of various types of clients are configured and processed, a common interface can be shared;
configuring and processing a private interface corresponding to each type of client, wherein the private interface is only an interface which can be called by the corresponding type of client in an access server;
and configuring a configuration file comprising the corresponding relation among the client type, the data access type and the interface information.
Correspondingly, the interface obtaining unit 12 is specifically configured to obtain, according to the client type and the data access type, interface information for processing the data access request from the configuration file configured by the configuration unit 14.
The data obtaining unit 13 is specifically configured to search for a corresponding interface according to the interface type and the interface identifier configured by the configuration unit 14, and call the corresponding interface, and call data required for processing the data access request from the cache or the database.
Further optionally, in the embodiment shown in fig. 13, the data processing apparatus further includes a sending unit 15, configured to return, to the client, data corresponding to the data access request acquired by the data acquiring unit 13.
In one embodiment, a computer device is proposed, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving a data access request which is sent by a client and carries a client type and a data access type;
according to the client type and the data access type, performing authentication processing on the data access request;
if the authentication is passed, acquiring interface information of the data access request corresponding to the data access type of the client for processing the client type;
and acquiring data corresponding to the data access request according to the interface information.
In one embodiment, the interface information includes an interface identifier and an interface type corresponding to the interface identifier, where the interface type is a public interface or a private interface.
In one embodiment, the processor when executing the computer readable instructions further performs the steps of: and searching a corresponding interface according to the interface type and the interface identifier, calling the corresponding interface, and calling data required for processing the data access request from a cache or a database. In one embodiment, the processor when executing the computer readable instructions further performs the steps of: and searching a corresponding interface according to the interface type and the interface identifier, calling the corresponding interface, and calling data required for processing the data access request from a cache or a database.
In one embodiment, the processor when executing the computer readable instructions further performs the steps of: and adopting an authentication interface to authenticate the data access request according to the client type and the data access type, wherein the authentication interface is the public interface.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: and acquiring the interface information for processing the data access request from a configuration file according to the client type and the data access type.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: when data access requests of various types of clients are configured and processed, a common interface can be shared;
configuring and processing a private interface corresponding to each type of client, wherein the private interface is only an interface which can be called by the corresponding type of client in an access server;
and configuring the configuration file comprising the corresponding relation among the client type, the data access type and the interface information.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: and returning the data corresponding to the data access request to the client.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-only Memory (ROM), or a Random Access Memory (RAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A data access processing method, the method comprising:
receiving a data access request which is sent by a client and carries a client type and a data access type;
based on a preset authentication configuration file, the client type and the data access type, performing authentication processing on the data access request;
if the authentication is passed, acquiring interface information of the data access request of the data access type, which is sent by the client of the client type and is processed;
acquiring data corresponding to the data access request according to the interface information;
the method comprises the steps that an authentication configuration file is preset, and each data access type allowed to be accessed by each client type is recorded in the authentication configuration file;
the interface information comprises an interface identifier and an interface type corresponding to the interface identifier, and the interface type is a public interface or a private interface;
before performing authentication processing on the data access request based on a preset authentication configuration file, the client type and the data access type, the method further includes:
when data access requests of various types of clients are configured and processed, a common interface can be shared;
configuring and processing a private interface corresponding to each type of client, wherein the private interface is only an interface which can be called by the corresponding type of client in an access server;
and configuring a configuration file comprising the corresponding relation among the client type, the data access type and the interface information.
2. The method according to claim 1, wherein obtaining data corresponding to the data access request according to the interface information comprises:
and searching a corresponding interface according to the interface type and the interface identifier, calling the corresponding interface, and calling data required for processing the data access request from a cache or a database.
3. The method of claim 1, wherein authenticating the data access request based on a preset authentication configuration file, the client type, and the data access type comprises:
and adopting an authentication interface to authenticate the data access request based on the authentication configuration file, the client type and the data access type, wherein the authentication interface is the public interface.
4. The method of claim 1, wherein obtaining interface information for processing the data access request of the data access type sent by the client of the client type comprises:
and acquiring the interface information for processing the data access request from a configuration file according to the client type and the data access type.
5. The method of claim 1, wherein after obtaining the data corresponding to the data access request according to the interface information, the method further comprises:
and returning the data corresponding to the data access request to the client.
6. A data access processing apparatus, characterized in that the apparatus comprises:
the receiving unit is used for receiving a data access request which is sent by a client and carries a client type and a data access type;
the authentication unit is used for authenticating the data access request based on a preset authentication configuration file, the client type and the data access type;
the interface acquisition unit is used for acquiring interface information of the data access request of the data access type, which is sent by the client of the client type and is processed if the authentication is passed;
the data acquisition unit is used for acquiring data corresponding to the data access request according to the interface information;
the method comprises the steps that an authentication configuration file is preset, and each data access type allowed to be accessed by each client type is recorded in the authentication configuration file;
the interface information comprises an interface identifier and an interface type corresponding to the interface identifier, and the interface type is a public interface or a private interface;
a configuration unit for:
when data access requests of various types of clients are configured and processed, a common interface can be shared;
configuring and processing a private interface corresponding to each type of client, wherein the private interface is only an interface which can be called by the corresponding type of client in an access server;
and configuring a configuration file comprising the corresponding relation among the client type, the data access type and the interface information.
7. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to carry out the steps of the data access processing method of any one of claims 1 to 5.
8. A storage medium having computer-readable instructions stored thereon which, when executed by one or more processors, cause the one or more processors to perform the steps of the data access processing method of any one of claims 1 to 5.
CN201811279140.1A 2018-10-30 2018-10-30 Data access processing method and device, computer equipment and storage medium Active CN109639629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811279140.1A CN109639629B (en) 2018-10-30 2018-10-30 Data access processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811279140.1A CN109639629B (en) 2018-10-30 2018-10-30 Data access processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109639629A CN109639629A (en) 2019-04-16
CN109639629B true CN109639629B (en) 2023-04-18

Family

ID=66066870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811279140.1A Active CN109639629B (en) 2018-10-30 2018-10-30 Data access processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109639629B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414190B (en) * 2020-03-27 2023-05-16 北京字节跳动网络技术有限公司 Request processing method and device
CN112597229B (en) * 2020-12-25 2023-04-07 沧州华润热电有限公司 Equipment data access method, device and system and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516741A (en) * 2012-06-25 2014-01-15 中兴通讯股份有限公司 Service request processing method and device
CN106412034A (en) * 2016-09-14 2017-02-15 北京百度网讯科技有限公司 Business processing method and apparatus
CN107864217A (en) * 2017-11-21 2018-03-30 南京斯坦德云科技股份有限公司 Cloud desktop intelligently pushing system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445694A (en) * 2015-08-12 2017-02-22 优信互联(北京)信息技术有限公司 Application access method, device and system
CN106101258B (en) * 2016-07-08 2021-05-25 腾讯科技(深圳)有限公司 Interface calling method, device and system of hybrid cloud
CN108259432A (en) * 2016-12-29 2018-07-06 亿阳安全技术有限公司 A kind of management method of API Calls, equipment and system
CN108259502B (en) * 2018-01-29 2020-12-04 平安普惠企业管理有限公司 Authentication method for obtaining interface access authority, server and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516741A (en) * 2012-06-25 2014-01-15 中兴通讯股份有限公司 Service request processing method and device
CN106412034A (en) * 2016-09-14 2017-02-15 北京百度网讯科技有限公司 Business processing method and apparatus
CN107864217A (en) * 2017-11-21 2018-03-30 南京斯坦德云科技股份有限公司 Cloud desktop intelligently pushing system

Also Published As

Publication number Publication date
CN109639629A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
US20210112402A1 (en) Method enabling migration of a subscription
CN109547570B (en) Service registration method, device, registration center management equipment and storage medium
CN109462601B (en) Multi-platform access method and device based on eSIM
CN110837424A (en) Service instance determining method and device, storage medium and electronic equipment
CN110968331B (en) Method and device for running application program
WO2017166791A1 (en) Application backup method and apparatus
CN110069919B (en) Information acquisition method and device
CN110708694A (en) Method, system, storage medium and electronic device for realizing simultaneous online public and private networks
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
CN109639629B (en) Data access processing method and device, computer equipment and storage medium
KR102045662B1 (en) System and method for managing logical channels for accessing several virtual profiles within a secure element
WO2017197757A1 (en) Method and device for apn assignment, and terminal
CN114245366A (en) Unified cloud card issuing method, hybrid cloud card service system and system equipment
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
EP1637003B1 (en) Databases synchronization
CN108647139B (en) System test method, device, storage medium and electronic device
CN111966530A (en) Disaster recovery switching method and device for application system, computer equipment and storage medium
KR101447504B1 (en) User terminal and data sharing method between applications thereof
CN114356456A (en) Service processing method, device, storage medium and electronic equipment
CN115150457A (en) Micro-service management method, vehicle-mounted system and vehicle-mounted equipment
CN114585055A (en) Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal
CN110858201B (en) Data processing method and system, processor and storage medium
CN113886217A (en) Gray level verification method, device and system for cloud database service and storage medium
CN112732775A (en) Method and device for processing block node data, computer equipment and storage medium
CN111427603A (en) Application program upgrading method and device

Legal Events

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