CN115795187A - Resource access method, device and equipment - Google Patents
Resource access method, device and equipment Download PDFInfo
- Publication number
- CN115795187A CN115795187A CN202210749425.7A CN202210749425A CN115795187A CN 115795187 A CN115795187 A CN 115795187A CN 202210749425 A CN202210749425 A CN 202210749425A CN 115795187 A CN115795187 A CN 115795187A
- Authority
- CN
- China
- Prior art keywords
- resource
- target
- information
- access
- target resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application discloses a resource access method, a resource access device and resource access equipment, which are used for solving the problem that the response speed of the existing equipment to an access request is low. The method comprises the following steps: receiving an access request aiming at a first target resource sent by a second device; if at least one character node of the first access address in the access request comprises a first appointed class node, replacing the first appointed class node with a preset character to obtain a second access address which does not comprise the first appointed class node; determining first target index information corresponding to the second access address; determining a first target resource and first target resource information corresponding to the first target index information according to the first target index information and the mapping relation among the index information, the resource information and the resource; and executing the operation corresponding to the target operation type in the access request on the first target resource according to the first target resource information, and sending an execution result to the second equipment. The technical scheme improves the response speed of the equipment to the access request.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for accessing a resource.
Background
With the development degree of the device becoming higher and higher, according to a specific application scenario, a large amount of resources can be stored in the device, for example, in the case that the device is an all-in-one gate inhibition machine, a large amount of biological features can be stored in the device, so that biological identification is performed according to the received biological information such as fingerprint information and face information, and the entrance and exit of people can be controlled. For another example, attendance information of people who come in and go out can be recorded and stored in the device, and resources in the device are displayed to the outside in the form of access addresses. In a related scenario, such as a scenario of correcting attendance information, a biometric feature of a newly added person, and the like, an external visitor can view a specific resource inside the device by accessing a certain access address.
In the prior art, a large number of resources inside the device need to be exposed to the outside, and access addresses corresponding to each resource are different, so that the device needs to store a large number of access addresses and information such as corresponding processing functions, the storage pressure of the device is increased, and the retrieval efficiency for retrieving the access addresses accessed by external visitors from the large number of access addresses is low, so that the response speed of the device to the access is low.
Disclosure of Invention
The embodiment of the application aims to provide a resource access method, a resource access device and resource access equipment, which are used for solving the problem that the response speed of the existing equipment to an access request is low.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in one aspect, an embodiment of the present application provides a resource access method, which is applied to a first device, and includes:
receiving an access request aiming at a first target resource sent by a second device; the access request comprises a first access address corresponding to the first target resource and operation information on the first target resource, the first access address comprises at least one character node, and the operation information comprises a target operation type;
if the at least one character node comprises a first appointed class node, replacing the first appointed class node with a preset character to obtain a second access address; the first specified class node is not included in the second access address;
determining first target index information corresponding to the second access address;
determining the first target resource and first target resource information corresponding to the first target index information according to the first target index information and the mapping relation among the index information, the resource information and the resource;
and executing the operation corresponding to the target operation type on the first target resource according to the first target resource information, and sending an execution result to the second equipment.
On the other hand, an embodiment of the present application provides a resource access method, which is applied to an access control device, and includes:
receiving a resource acquisition link sent by a cloud server; the resource acquisition link comprises resource identification information of a second target resource to be acquired;
determining a resource storage address corresponding to the second target resource according to the resource acquisition link;
acquiring the second target resource corresponding to the resource identification information from the cloud server according to the resource storage address;
determining second target resource information and second target index information corresponding to the second target resource;
and storing the mapping relation among the second target resource information, the second target index information and the second target resource.
In another aspect, an embodiment of the present application provides a resource access apparatus, which is applied to a first device, and includes:
the first receiving module is used for receiving an access request aiming at a first target resource sent by second equipment; the access request comprises a first access address corresponding to the first target resource and operation information on the first target resource, the first access address comprises at least one character node, and the operation information comprises a target operation type;
the replacing module is used for replacing the first appointed class node with a preset character to obtain a second access address if the at least one character node comprises the first appointed class node; the first specified class node is not included in the second access address;
the first determining module is used for determining first target index information corresponding to the second access address;
a second determining module, configured to determine, according to the first target index information and a mapping relationship between each index information, resource information, and resource, the first target resource and first target resource information corresponding to the first target index information;
and the execution module is used for executing the operation corresponding to the target operation type on the first target resource according to the first target resource information and sending an execution result to the second equipment.
In another aspect, an embodiment of the present application provides a resource access device, which is applied to an access control device, and includes:
the second receiving module is used for receiving the resource acquisition link sent by the cloud server; the resource acquisition link comprises resource identification information of a second target resource to be acquired;
a third determining module, configured to determine, according to the resource acquisition link, a resource storage address corresponding to the second target resource;
the second obtaining module is used for obtaining the second target resource corresponding to the resource identification information from the cloud server according to the resource storage address;
a fourth determining module, configured to determine second target resource information and second target index information corresponding to the second target resource;
and the third storage module is used for storing the mapping relation among the second target resource information, the second target index information and the second target resource.
In another aspect, an embodiment of the present application provides a resource access device, including a processor; and a memory arranged to store computer executable instructions configured for execution by the processor, the executable instructions being executable by the processor to implement the above-described resource access method applied to the first device, or to implement the above-described resource access method applied to the access control device.
In another aspect, an embodiment of the present application provides a storage medium for storing computer-executable instructions, where the computer-executable instructions are executed by a processor to implement the above resource access method applied to the first device, or to implement the above resource access method applied to the access control device.
By adopting the technical scheme of the embodiment of the application, the access request aiming at the first target resource and sent by the second equipment is received, the access request comprises a first access address corresponding to the first target resource and operation information of the first target resource, the first access address comprises at least one character node, the operation information comprises a target operation type, if the at least one character node comprises a first appointed class node, the first appointed class node is replaced by a preset character, a second access address not comprising the first appointed class node is obtained, first target index information corresponding to the second access address is determined, further a first target resource and first target resource information corresponding to the first target index information are determined according to the first target index information and the mapping relation among the index information, the resource information and the resources, operation corresponding to the target operation type is executed on the first target resource according to the first target resource information, and an execution result is sent to the second equipment. Obviously, in the technical scheme, the first device replaces the first specified type node in the received first access address with the preset character, so that the effect of shielding the first specified type node in the first access address is achieved, for example, for a plurality of first access addresses only with different first specified type nodes, after replacing the first specified type node with the preset character, the same second access address is obtained, and therefore only the index information corresponding to the second access address and the mapping relation need to be stored in the first device. Compared with the existing scheme, the number of the information (such as the access address) stored in the first device is greatly reduced, the first device is prevented from exposing excessive access addresses to the outside, the storage resources of the first device are saved, the storage pressure of the first device is reduced, the retrieval efficiency of the first device on the access addresses is favorably improved, and the response speed of the first device on the access request is improved. And after the resource information corresponding to the second access address is indexed, the operation corresponding to the target operation type in the access request can be executed on the resource according to the resource information, so that the execution result is sent to the second equipment, and the accurate response of the first equipment to the access request is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic flow chart diagram of a resource access method according to an embodiment of the present application;
FIG. 2 is a swim lane diagram of a method of resource access according to an embodiment of the present application;
FIG. 3 is a swim lane diagram of a method of resource access according to another embodiment of the present application;
FIG. 4 is a schematic flow chart diagram of a resource access method according to another embodiment of the present application;
fig. 5 is a lane diagram of a resource access method in an access control scenario according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a resource access device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a resource access device according to another embodiment of the present application;
fig. 8 is a schematic diagram of a hardware structure of a resource access device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a resource access method, a resource access device and resource access equipment, which are used for solving the problem that the response speed of the existing equipment to an access request is low.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The resource access method provided by the embodiment of the application is suitable for various scenes, such as a scene of accessing network resources through a Personal Computer (PC), a scene of accessing resources inside a Computer device through a server corresponding to the Computer device, and the like. Optionally, the computer device is an embedded device.
With the development degree of computer devices becoming higher and higher, more and more resources inside the computer devices are available, and in order to accurately display the resources inside the computer devices to the outside, an ordered and extensible manner is required to be used for display, and a Uniform Resource Locator (URL) used in the internet is a good choice. The URL is a representation method for specifying the location of information on a web service on the internet, and provides an abstract identification method for the location of a resource, and by this method, the resource can be located, and various operations such as access, update, replacement, search for its attributes, and the like can be performed on the resource as long as the resource can be located. In the embodiment of the application, the computer equipment can display the resources in the computer equipment to the outside in a URL mode, and provides a resource access method based on the URL to the outside, so that an external visitor can accurately access the resources in the computer equipment.
Fig. 1 is a schematic flowchart of a resource access method according to an embodiment of the present application, in which the resource access method is applied to a first device. Optionally, the first device is a computer device, and the second device is a server corresponding to the computer device. As shown in fig. 1, the method includes:
s102, receiving an access request aiming at the first target resource sent by the second equipment.
The access request comprises a first access address corresponding to the first target resource and operation information of the first target resource, the first access address comprises at least one character node, and the operation information comprises a target operation type. Alternatively, the access request may be a HTTP (hypertext Transfer Protocol) request in a RESTFUL style, where RESTFUL is a design style and development manner of a web application, and may be defined using an XML (Extensible Markup Language) format or a JSON (JavaScript Object Notation) format based on HTTP. HTTP is a simple request-response Protocol that typically runs on top of TCP (Transmission Control Protocol), specifying what messages a client may send to a server and what responses it gets.
Optionally, the first access address is characterized by a URL, and the general format of the URL is: < access method of URL >/< host > < port >/< path >. In the following embodiments, unless otherwise specified, the URL refers to the content pointed to by the < path >, and other contents (such as < access method of URL >, < host >, < port >) are not described in detail in the embodiments of the present application. Resource nodes divided by several slashes "/" are usually included in < path >, and a single resource node may be a pure number node including only numbers, a pure letter node including only letters, or a mixed class node including numbers and letters. For example, < Path > is: the method comprises the steps of/lamps/23/34/temp 1/123, wherein the lamps are pure letter nodes, the temp1 is a mixed node, and the 23, 34 and 123 are pure number nodes.
Where a pure number of bytes point in < path > typically represents some fixed page or resource file. If different resources exist on one page, only the contents of the pure digital nodes in the < path > can be replaced on the premise that the URL format is not changed, so that different resources can be accessed. Assuming that the content pointed by "/lamps/temp 1/… …" is an attendance table, "… …" is a pure digital node, and different numbers represent attendance tables of different dates, for example, "401" represents an attendance table of 4 months and 1 days, and "402" represents an attendance table of 4 months and 2 days, then by replacing the content of the pure digital node in < path >, access to the attendance tables of different dates can be realized. Assuming that the content pointed by "/lamps/temp 2/… …" is the basic information of people, "… …" is a pure digital node, and different numbers represent the basic information of people of different people, for example, "01" represents the basic information of people of Zhang III, and "02" represents the basic information of people of Li IV, then the basic information of people of different people can be accessed by replacing the contents of the pure digital node in < path >.
Optionally, in the case that the representation form of the first access address is a URL, the character node is the resource node described above. Optionally, in a case where the access request is a restul-style HTTP request, the first device may strip the first access address from the HTTP request sent by the second device. Illustratively, if the HTTP request sent by the second device is "HTTPs: // www.xxx.cn/laws/458526aspx = xxx ", then the first device may strip the first access address"/laws/458526 "therefrom; if the HTTP request sent by the second device is "HTTPs: //192.168.0.1:80/laws/tmp2/123? for mat = json ", then the first device may strip the first access address"/laws/tmp 2/123 "therefrom.
Alternatively, in the case that the access request is a restul style HTTP request, the operation information for the first target resource may be carried in the request message, and the target operation type may be GET, POST, PUT, or DELETE, where GET is used to obtain the resource, POST is used to create the resource (or update the resource), PUT is used to update the resource, and DELETE is used to DELETE the resource.
Optionally, the operation information may include a target operation type and target resource content. The target resource content may be any one or more items of content comprised by the target resource. For example, the target resource is basic information of Zhao people, and the target resource content may be one or more of age information, position information, fingerprint information and face information in the target resource.
Optionally, in the case that the operation information only includes the target operation type, the purpose of the resource access of this time is to execute an operation corresponding to the target operation type on all resource contents in the target resource. For example, if the operation information only includes the target operation type GET, the purpose of the resource access of this time is to acquire all resource contents in the target resource. And under the condition that the operation information comprises the target operation type and the target resource content, the purpose of the resource access is to execute the operation corresponding to the target operation type on the target resource content in the target resource. For example, the target resource is basic information of a person on Zhang III, the target resource content is fingerprint information, and the target operation type is GET, POST, PUT or DELETE, then the purpose of the resource access at this time is to acquire, create, update or DELETE the fingerprint information in the basic information of the person on Zhang III. It should be noted that, when the target operation type is POST or PUT, the target resource content needs to include newly created or updated resource content in addition to any one or more items of content included in the target resource. For example, the target operation type is POST or PUT, the target resource content includes fingerprint information, and then the target resource content further includes newly created fingerprint information or updated fingerprint information.
S104, if at least one character node comprises a first appointed class node, replacing the first appointed class node with a preset character to obtain a second access address.
Wherein the first specified class node is not included in the second access address. The preset characters are preset characters used for replacing the first appointed type nodes. Optionally, the representation form of the preset character used to replace the pure numeric node is < preset character >. For example, the preset character is < ID >; for another example, the default character is <46265>; for another example, the default character is < exc >; and so on.
In one embodiment, the first designated class nodes comprise pure numeric nodes, and the plurality of first designated class nodes correspond to unique preset characters. Illustratively, if the preset character is < ID >, when the first access address includes the first specified class node, the first specified class node is replaced with the < ID >, so as to obtain the second access address. In one embodiment, there is only one preset character, and a plurality of first specified type nodes with different node contents are replaced by the same preset character.
S106, determining first target index information corresponding to the second access address.
S108, determining a first target resource and first target resource information corresponding to the first target index information according to the first target index information and the mapping relation among the index information, the resource information and the resource.
Optionally, the first target resource is a resource that the second device requests to access. The first target resource information comprises a second access address, an operation type allowed to be executed on the first target resource and an execution function corresponding to the operation type. Optionally, the first target resource information may further include a format supporting the resource content carried by the access request, for example, XML, JSON, raw, and the like. Optionally, the first target resource information may include an execution function pointer, where the execution function pointer points to an execution function corresponding to the operation type.
And S110, executing the operation corresponding to the target operation type on the first target resource according to the first target resource information, and sending an execution result to the second equipment.
Following the example of "/lamps/23/34/temp 1/123", this URL has 3 pure digital nodes in total, and assuming that each pure digital node has N (N is an integer greater than or equal to 1) values, the first device needs to store N ^3 URLs, which greatly increases the storage pressure of the first device. And because computer equipment such as embedded equipment compares with PC or network server, the inside storage resource of equipment is relatively less, therefore in order to reduce the storage pressure of equipment, in this application embodiment strives to summarize N ^3 URL into one to reduce the occupation to the inside storage resource of equipment, and promote the retrieval efficiency of equipment to the URL. It should be understood that two different URLs exist for only a pure digital byte point, and different resources on the same page or different resources in the same resource file may be accessed through the two URLs, and thus, even though the pure digital nodes in the two URLs are shielded, the same page or the same resource file may be accessed through the two URLs, so that, in the embodiment of the present application, by summarizing N ^3 URLs into one, the device retrieves the corresponding summarized URL after receiving an access request, thereby improving the retrieval efficiency of the device for the URL, and further retrieving the resource information corresponding to the summarized URL, it can be ensured that the retrieved resource information is the resource information for processing the same page or the same resource file, and in the process of processing the resource, the resource content is searched according to the URL before being replaced, thereby ensuring the accurate response of the device to the access request, and in conclusion, the accuracy of the finally obtained execution result is not affected by the resource access method in the embodiment of the present application.
By adopting the technical scheme of the embodiment of the application, the access request aiming at the first target resource and sent by the second equipment is received, the access request comprises a first access address corresponding to the first target resource and operation information of the first target resource, the first access address comprises at least one character node, the operation information comprises a target operation type, if the at least one character node comprises a first appointed class node, the first appointed class node is replaced by a preset character, a second access address not comprising the first appointed class node is obtained, first target index information corresponding to the second access address is determined, further a first target resource and first target resource information corresponding to the first target index information are determined according to the first target index information and the mapping relation among the index information, the resource information and the resources, operation corresponding to the target operation type is executed on the first target resource according to the first target resource information, and an execution result is sent to the second equipment. Obviously, in the technical scheme, the first device replaces the first specified type node in the received first access address with the preset character, so that the effect of shielding the first specified type node in the first access address is achieved, for example, for a plurality of first access addresses only with different first specified type nodes, after replacing the first specified type node with the preset character, the same second access address is obtained, and therefore only the index information corresponding to the second access address and the mapping relation need to be stored in the first device. Compared with the existing scheme, the number of the information (such as the access address) stored in the first device is greatly reduced, the first device is prevented from exposing excessive access addresses to the outside, the storage resources of the first device are saved, the storage pressure of the first device is reduced, the retrieval efficiency of the first device on the access addresses is favorably improved, and the response speed of the first device on the access request is improved. And after the resource information corresponding to the second access address is indexed, the operation corresponding to the target operation type in the access request can be executed on the resource according to the resource information, so that the execution result is sent to the second equipment, and the accurate response of the first equipment to the access request is ensured.
In one embodiment, before the first device provides the resource access method based on the URL to the outside, data (including the URL corresponding to each resource, resource information of each resource, and the like) needs to be stored in the first device. During the data storage process, a URL (i.e. an access address exposed to the outside by the first device) resource list supported by the first device can be written in the first device program in advance, the URL resource list is stored in an array form, and the data structure of a single array member in the array is as follows:
v. data Structure storing static URL +
typedef struct{
String url in std; content pointed to by/< path >, style: /laws/458526 +
int method; /. The operation type of the resource corresponding to the URL, for example, the method may include at least one of GET, PUT, POST, DELETE
int format; the format of the resource content carried by the access request, e.g., the format can include at least one of XML, JSON, raw (referring to any format, e.g., plain text format, binary format, etc.). Referring to FIGS
UP _ INT pFanHandle; v, storing the execution function pointer corresponding to the URL in integer mode, and storing the execution function which processes the resource corresponding to the URL in the memory address pointed by the execution function pointer
}URL_STORE_CPP_ST。
In one embodiment, determining the first target index information corresponding to the second access address (i.e., S106) may be performed as the following step A1 or step A2:
and A1, performing index calculation on the second access address according to an index algorithm in a pre-created association container to obtain first target index information corresponding to the second access address.
Alternatively, the pre-created association container may be a MAP table, the MAP is one of the association containers, each element of the MAP table is divided into two parts, namely a key and a value, the elements in the container are ordered by the key, and the keys of a plurality of elements are not allowed to be the same. Compared with the traditional database storage mode, the MAP table has the capability of fast indexing, can fast position the resource address and is suitable for super-large-scale retrieval.
Alternatively, the indexing Algorithm may be MD5 (Message-Digest Algorithm, fifth generation Message Digest Algorithm 5). The main feature of the MD5 algorithm is that no key is required for the encryption process and the encrypted data cannot be decrypted. And under the condition that the index algorithm is the MD5 algorithm, calculating the second access address, namely calculating an MD5 value corresponding to the second access address, and obtaining an MD5 character string of which the first target index information corresponding to the second access address can be 32 bits.
And step A2, determining the second access address as the first target index information.
In view of the difference of the index information determination manners, the processing performed on the data stored in the first device in the early stage and the manners of determining the corresponding target resource and target resource information according to the index information may also be different, and in the following embodiment, the following description will be made in detail with respect to the two index information determination manners respectively corresponding to the early-stage data processing manner and the manners of determining the target resource and target resource information. For convenience of description, in the following embodiments, the following description will be given of a previous data processing method corresponding to each index information determination method, taking an example in which a URL resource list supported by the first device is stored in advance in the first device program, and the URL resource list is stored in an array format. It should be understood that, in the first device, the data may also be stored in other forms, which is not limited by the embodiment of the present application. The data structure for a single array member within an array is as follows:
v. data Structure storing static URL &
typedef struct{
String url in std; content pointed to by/< path >, style: /laws/458526-
int method; /. The operation type of the resource corresponding to the URL, for example, the method may include at least one of GET, PUT, POST, DELETE
int format; the format of the resource content carried by the access request, e.g., format can include at least one of XML, JSON, raw (referring to any format, e.g., plain text format, binary format, etc.)/h @
UP _ INT pFanHandle; v, storing the execution function pointer corresponding to the URL in integer mode, and storing the execution function which processes the resource corresponding to the URL in the memory address pointed by the execution function pointer
}URL_STORE_CPP_ST。
In an embodiment, the index information is determined by performing index calculation on the second access address according to an index algorithm in a pre-created association container to obtain first target index information corresponding to the second access address (i.e. step A1), and the following steps B11 to B14 may be performed on data (e.g. each array member in an array) stored in the first device:
and step B11, acquiring a plurality of resources stored in the first device and first storage addresses corresponding to the resources respectively.
Wherein the first storage address is the same as the first access address for the same resource. For example, in a case where the first device program stores in advance a URL resource list supported by the first device, step B11 may be performed as: the data structures of the array members in the array are obtained separately, and the content pointed to by the < path > is obtained from the data structures separately. Illustratively, the array includes a plurality of group members, the data structures of 4 of the group members are obtained, and the < path > points obtained from each data structure are "/laws/tmp1/45", "/laws/tmp1/3536", "/laws/tmp2/123", and "/laws/tmpN/23".
And step B12, aiming at each resource, converting the first appointed class node in the first storage address to obtain a second storage address, and calculating the second storage address according to a preset index algorithm to obtain index information corresponding to the second storage address.
The second storage address does not include the first specified class node, and the second storage address and the second access address are the same for the same resource. Alternatively, the converting operation on the first specified class node in the first storage address may be to replace the first specified class node in the first storage address with a preset character, and the preset indexing algorithm may be an MD5 algorithm. It should be understood that the preset characters in this embodiment are the same as the preset characters in S104, and the preset indexing algorithm in this embodiment is the same as the indexing algorithm for performing the index calculation on the second access address.
Optionally, when the first specified class node is a pure digital node, and the conversion operation is performed on the first specified class node to replace the first specified class node with a preset character, after the content pointed by the < path > is acquired from the data structure of each array member, the pure digital node therein may be replaced with the preset character, and the changed URL is stored in the data structure to cover the content pointed by the original < path >.
Optionally, in step B11, the data structures of the respective array members in the array are respectively obtained, and the content pointed by the < path > is respectively obtained from the data structures, and in the case that the conversion operation is performed on the first specified class node to replace the first specified class node with the preset character, assuming that the preset character is < ID >, following the example in step B11, the conversion operation is performed on the first specified class node in the first storage address for each resource to obtain the second storage addresses of "/laws/tmp1/< ID >", "/laws/tmp2/< ID >" and "/laws/tmpN/< ID >". Assuming that the preset indexing algorithm is an MD5 algorithm, calculating the second storage address, that is, calculating an MD5 value corresponding to the second storage address to obtain an MD5 string having index information corresponding to the second storage address of 32 bits, and following the above example, calculating MD5 values corresponding to "/laws/tmp1/< ID >", "/laws/tmp2/< ID >" and "/laws/tmpN/< ID >", wherein "/law/tmp 1/< ID >" and "/law/tmp 1/< ID >" correspond to the same MD5 string "B594670F13CC50FD7F8CA81928FF907A", "/law/tmp 2/< ID >" correspond to MD5 string "2B4C746E9946FAF05FA4DD89081472CA" ","/law/tmpN/< ID > "correspond to MD5 string" B594670F13 × N "," "and" "N × 8FF a", and the specific contents thereof are different from each other.
Step B13, establishing a first mapping relation between each index information and the corresponding index pointer, establishing a pointer direction relation between each index pointer and the resource information corresponding to each resource, and establishing a second mapping relation between each resource information and the corresponding resource.
The resource information comprises a second storage address, an operation type allowed to be executed on the resource and an execution function corresponding to the operation type. Optionally, the resource information may further include a format supporting the resource content carried by the access request, for example, XML, JSON, raw, and the like. Optionally, the resource information may include an execution function pointer, where the execution function pointer points to an execution function corresponding to the operation type.
Assuming that the execution function pointer corresponding to the second storage address "/laws/tmp2/< ID >" is "pFunHandle _2", the execution function pointer corresponding to the second storage address "/laws/tmp1/< ID >" is "pFunHandle _1", and the execution function pointer corresponding to the second storage address "/laws/tmpN/< ID >" is "pFunHandle _ n", for example, in the case that the types of operations allowed to be executed on the resource are GET, PUT, POST and DELETE, and the format of the resource content carried by the access request is XML, JSON and raw, establishing the first mapping relationship between each index information and the corresponding index pointer may include: the mapping relationship between index information "B594670F13CC50FD7F8CA81928FF907A" and index pointer "1" is established, the mapping relationship between index information "2B4C746E9946FAF05FA4DD89081472CA" and index pointer "2" is established, and the mapping relationship between index information "B594670F13 x 8FF907A" and index pointer "N" is established. Establishing the pointer pointing relationship between each index pointer and the resource information corresponding to each resource may include: establishing a pointer pointing relationship between an index pointer '1' and resource information 1, wherein the resource information 1 comprises a second memory address '/laws/tmp 1/< ID >', operation types 'GET, PUT, POST and DELETE' allowed to be executed on resources, a format 'XML, JSON and raw' supporting resource contents carried by access requests and an execution function pointer 'pFanHandle _ 1'; establishing a pointer pointing relationship between an index pointer '2' and resource information 2, wherein the resource information 2 comprises a second memory address '/laws/tmp 2/< ID >', operation types 'GET, PUT, POST and DELETE' allowed to be executed on the resource, a format 'XML, JSON and raw' supporting resource content carried by the access request, and an execution function pointer 'pFanHandle _ 2'; and establishing a pointer pointing relationship between an index pointer 'N' and resource information N, wherein the resource information N comprises a second memory address '/laws/tmpN/< ID >', operation types 'GET, PUT, POST and DELETE' allowed to be executed on the resource, a format 'XML, JSON and raw' supporting resource content carried by the access request, and an execution function pointer 'pFanHandle _ N'. Establishing the second mapping relationship between each resource information and the corresponding resource may include: establishing a second mapping relation between the resource information '1' and the resource 'personnel basic information', establishing a second mapping relation between the resource information '2' and the resource 'attendance table', and establishing a second mapping relation between the resource information 'N' and the resource 'equipment working time'.
And step B14, storing the first mapping relation, the second mapping relation and the pointer pointing relation in the first device.
In this embodiment, a second storage address is obtained by performing a conversion operation on a first specified type node in a first storage address corresponding to each resource of a first device, an effect of shielding a difference of the first specified type node in the first storage address is achieved, and integration of the first storage address can be achieved, so that the storage address (i.e., the second storage address) obtained after integration is calculated according to a preset index algorithm, index information corresponding to the second storage address is obtained, a first mapping relationship between each index information and a corresponding index pointer is established, a pointer direction relationship between each index pointer and resource information corresponding to each resource is established, and a second mapping relationship between each resource information and a corresponding resource is established, so that the first mapping relationship, the second mapping relationship, and the pointer direction relationship are stored in the first device.
In one embodiment, a first mapping relationship between each index information and the corresponding index pointer may be stored in a pre-created association container, and a second mapping relationship between each resource information and the corresponding resource, and a pointer-pointing relationship between each index pointer and the resource information corresponding to each resource may be stored in a memory of the first device.
Alternatively, the pre-created association container may be a MAP table, the MAP is one of the association containers, each element of the MAP table is divided into two parts, namely a key and a value, the elements in the container are ordered by the key, and the keys of a plurality of elements are not allowed to be the same. Compared with the traditional database storage mode, the MAP table has the capability of fast indexing, can fast position the resource address and is suitable for super-large-scale retrieval. When the pre-created association container is a MAP table, a key (key) in the table is index information, and a value (value) in the table is an index pointer.
In this embodiment, determining a first target resource and first target resource information corresponding to first target index information according to the first target index information and mapping relationships among index information, resource information, and resources (i.e., S108) may be performed as: acquiring a first mapping relation from the association container so as to match the first target index information with the first mapping relation; acquiring a pointer pointing relationship from a memory of the first device to match a target index pointer with the pointer pointing relationship; and acquiring the second mapping relation from the memory of the first device so as to match the first target resource information with the second mapping relation.
In this embodiment, by storing the first mapping relationship between each piece of index information and the corresponding index pointer in the pre-created association container, for example, in the pre-created MAP table, since the MAP table has the capability of fast indexing, the access request initiated by the second device can be quickly responded to, and the index pointer corresponding to the index information is retrieved, so that the corresponding resource information is retrieved according to the index pointer.
After the data storage of the first device is completed, the first device may perform, according to the received access request for the first target resource sent by the second device, a corresponding resource access operation on the first target resource (including performing, on the first target resource, an operation corresponding to the target operation type carried in the access request), and send an execution result to the second device. The details will be described below.
In one embodiment, the index information determination manner is to perform index calculation on the second access address according to an index algorithm in a pre-created association container to obtain first target index information corresponding to the second access address (i.e., step A1), where a mapping relationship among each index information, resource information, and resource includes: a first mapping relationship between each index information and index pointer, a pointer-pointing relationship between index pointer and resource information, and a second mapping relationship between resource information and resource.
In this embodiment, determining a first target resource and first target resource information corresponding to the first target index information according to the first target index information and the mapping relationship among the index information, the resource information and the resource (i.e., S108) may be performed as the following steps C11 to C13:
and step C11, matching the first target index information with the first mapping relation to obtain a target index pointer corresponding to the first target index information.
And step C12, matching the target index pointer and the pointer pointing relation to obtain first target resource information corresponding to the target index pointer.
The first target resource information comprises a second access address, an operation type allowed to be executed on the first target resource and an execution function corresponding to the operation type. Optionally, the first target resource information may further include a format supporting the resource content carried by the access request, for example, XML, JSON, raw, and the like. Optionally, the first target resource information may include an execution function pointer, where the execution function pointer points to an execution function corresponding to the operation type.
And step C13, matching the first target resource information with the second mapping relation to obtain a first target resource corresponding to the first target resource information.
In this embodiment, the first target resource and the first target resource information corresponding to the first target index information are determined in a step-by-step matching manner, so that matching speed and matching accuracy can be ensured, and response speed and response accuracy to the access request are ensured.
In one embodiment, matching the first target index information with the first mapping relation (i.e. step C11) may be performed as: and acquiring a pre-created association container, wherein the association container is used for storing the first mapping relation and acquiring the first mapping relation from the association container, so that the first target index information is matched with the first mapping relation in the association container.
Alternatively, the association container may be a MAP table. Illustratively, when the pre-created association container is a MAP table, the key (key) in the table is index information, and the value (value) in the table is an index pointer, matching the first target index information with the first mapping relationship in the association container means matching the first target index information with each key in the association container. If the key word identical to the first target index information exists in the associated container, it can be determined that the first target index information matches the associated container, and the value corresponding to the key word identical to the first target index information is the target index pointer corresponding to the first target index information. If the key word identical to the first target index information does not exist in the associated container, it may be determined that the first target index information does not match the associated container, and at this time, an error message may be sent to the second device to prompt that the resource requested to be accessed by the current access request of the second device is not in the first device.
In this embodiment, by acquiring the pre-created association container, since the MAP table has the capability of fast indexing, the access request initiated by the second device can be responded quickly, and the first target index information is matched with the first mapping relationship in the association container, so that the index pointer corresponding to the index information can be retrieved quickly.
In one embodiment, the index information is determined by determining the second access address as the first target index information (i.e., step A2), and the data stored by the first device (e.g., the array members in the array) may be processed as follows in steps B21-B24:
step B21, obtaining a plurality of resources stored in the first device, and first storage addresses corresponding to the resources, respectively.
Wherein, aiming at the same resource, the first storage address is the same as the first access address. For example, in a case where the first device program stores in advance a URL resource list supported by the first device, step B21 may be performed as: the data structures of the array members in the array are obtained separately, and the content pointed to by the < path > is obtained from the data structures separately. Illustratively, the array includes a plurality of group members, the data structures of 4 of the group members are obtained, and the < path > points obtained from each data structure are "/laws/tmp1/45", "/laws/tmp1/3536", "/laws/tmp2/123", and "/laws/tmpN/23".
And step B22, aiming at each resource, converting the first appointed class node in the first storage address to obtain a second storage address. The second storage address is determined as the index information.
The second storage address does not comprise the first specified class node, and the second storage address and the second access address are the same for the same resource. Alternatively, the converting operation on the first specified class node in the first storage address may be to replace the first specified class node in the first storage address with a preset character. It should be understood that the preset characters in the present embodiment are the same as those in S104.
Optionally, when the first specified type node is a pure digital node, and a conversion operation is performed on the first specified type node to replace the first specified type node with a preset character, after the content pointed by the < path > is obtained from the data structure of each array member, the pure digital node therein may be replaced with the preset character, and the changed URL is stored in the data structure to cover the content pointed by the original < path >.
Optionally, in step B21, a data structure of each array member in the array is obtained, and the content pointed by the < path > is obtained from each data structure, and if the first specified class node is converted to replace the first specified class node with a preset character, assuming that the preset character is < ID >, following the example in step B21, the first specified class node in the first storage address is converted to obtain the second storage addresses of "/laws/tmp1/< ID >", "/laws/tmp2/< ID >" and "/laws/tmpN >", respectively, for each resource.
Step B23, a third mapping relationship between each index information and the resource information corresponding to each resource is established, and a fourth mapping relationship between each resource information and the corresponding resource is established.
Optionally, the resource information includes a second storage address, an operation type allowed to be executed on the resource, and an execution function corresponding to the operation type. Optionally, the resource information may further include a format supporting the resource content carried by the access request, for example, XML, JSON, raw, and the like. Optionally, the resource information may include an execution function pointer, where the execution function pointer points to an execution function corresponding to the operation type.
Assuming that the execution function pointer corresponding to the second storage address "/laws/tmp2/< ID >" is "pFunHandle _2", the execution function pointer corresponding to the second storage address "/laws/tmp1/< ID >" is "pFunHandle _1", and the execution function pointer corresponding to the second storage address "/laws/tmpN/< ID >" is "pFunHandle _ n", for example, in the case that the types of operations allowed to be executed on the resource are GET, PUT, POST and DELETE, and the format of the resource content carried by the access request is XML, JSON and raw, establishing a third mapping relationship between each index information and the resource information corresponding to each resource may include: establishing a third mapping relation between a second memory address "/laws/tmp2/< ID >" and resource information 1, wherein the resource information 1 comprises the second memory address "/laws/tmp2/< ID >", operation types "GET, PUT, POST and DELETE" allowed to be executed on the resource, formats "XML, JSON and raw" supporting resource content carried by the access request and an execution function pointer "pFanHandle _2"; establishing a third mapping relation between a second memory address "/laws/tmp1/< ID >" and resource information 2, wherein the resource information 2 comprises the second memory address "/laws/tmp1/< ID >", operation types "GET, PUT, POST and DELETE" allowed to be executed on the resource, formats "XML, JSON and raw" supporting resource content carried by the access request and an execution function pointer "pFanHandle _1"; establishing a third mapping relation between a second memory address "/laws/tmpN/< ID >" and resource information N, wherein the resource information N comprises the second memory address "/laws/tmpN/< ID >", operation types "GET, PUT, POST and DELETE" allowed to be executed on the resource, formats "XML, JSON and raw" supporting resource contents carried by the access request, and an execution function pointer "pfundo _ N". Establishing the fourth mapping relationship between each resource information and the corresponding resource may include: establishing a fourth mapping relation between the resource information '1' and the resource 'personnel basic information', establishing a fourth mapping relation between the resource information '2' and the resource 'attendance table', and establishing a fourth mapping relation between the resource information 'N' and the resource 'equipment working time'.
And step B24, storing the third mapping relation and the fourth mapping relation in the first equipment.
In this embodiment, a second storage address is obtained by performing a conversion operation on a first specified class node in a first storage address corresponding to each resource of a first device, an effect of shielding a difference of the first specified class node in the first storage address is achieved, and integration of the first storage address can be achieved, so that a third mapping relationship between each index information and resource information corresponding to each resource is established, and a fourth mapping relationship between each resource information and a corresponding resource is established, so that the third mapping relationship and the fourth mapping relationship are stored in the first device.
After the data storage of the first device is completed, the first device may perform, according to the received access request for the first target resource sent by the second device, a corresponding resource access operation on the first target resource (including performing, on the first target resource, an operation corresponding to a target operation type carried in the access request), and send an execution result to the second device. The details will be described below.
In one embodiment, the index information is determined by determining the second access address as the first target index information (i.e., step A2), and the mapping relationship among the index information, the resource information, and the resource includes: a third mapping relationship between each index information and resource information, and a fourth mapping relationship between resource information and resources.
In this embodiment, determining a first target resource and first target resource information corresponding to the first target index information according to the first target index information and the mapping relationship among the index information, the resource information and the resource (i.e., S108) may be performed as the following steps C21 to C22:
and step C21, matching the first target index information with the third mapping relation to obtain first target resource information corresponding to the first target index information.
The first target resource information comprises a second access address, an operation type allowed to be executed on the target resource and an execution function corresponding to the operation type. Optionally, the first target resource information may further include a format supporting the resource content carried by the access request, for example, XML, JSON, raw, and the like. Optionally, the first target resource information may include an execution function pointer, where the execution function pointer points to an execution function corresponding to the operation type.
And step C22, matching the first target resource information with the fourth mapping relation to obtain a first target resource corresponding to the first target resource information.
In this embodiment, the first target resource and the first target resource information corresponding to the first target index information are determined in a step-by-step matching manner, and the matching speed and the matching accuracy can be ensured, so that the response speed and the response accuracy to the access request are ensured.
In one embodiment, according to the first target resource information, performing an operation corresponding to the target operation type on the first target resource, and sending the execution result to the second device (i.e., S110), may be performed as the following steps D1-D3:
step D1, judging whether the operation type included in the first target resource information includes a target operation type according to the first mapping relation in the association container and the pointer direction relation in the memory of the first device; if the operation type included in the first target resource information includes the target operation type, executing step D2; and D3, if the operation types included in the first target resource information do not include the target operation type, performing step D3.
Alternatively, step D1 may be performed as: firstly, acquiring a first mapping relation between each index information and a corresponding index pointer from an associated container, and matching first target index information corresponding to the determined second access address with the first mapping relation to obtain a target index pointer corresponding to the first target index information; secondly, acquiring a pointer pointing relationship between the index pointer and the resource information from a memory of the first device, and matching the target index pointer and the pointer pointing relationship to obtain first target resource information corresponding to the target index pointer; and finally, judging whether the operation types included in the obtained first target resource information include the target operation types or not.
And D2, executing the operation corresponding to the target operation type on the first target resource, and sending an execution result to the second equipment.
And D3, sending error information to the second equipment.
Exemplarily, in a case that the operation type included in the first target resource information is at least one of GET, PUT, and POST, if the target operation type is GET, it may be determined that the target operation type is included in the operation types included in the first target resource information; if the target operation type is DELETE, it may be determined that the target operation type is not included in the operation types included in the first target resource information.
Optionally, if the target operation type is GET, executing an operation corresponding to the target operation type on the first target resource, that is, acquiring the first target resource, and sending an execution result to the second device as the first target resource; if the target operation type is PUT, POST or DELETE, the operation corresponding to the target operation type is executed on the first target resource, that is, the first target resource is updated, newly created or deleted, and the execution result sent to the second device is that the update, new creation or deletion is successful, or the execution result sent to the second device is that the update, new creation or deletion is failed.
In this embodiment, before performing an operation corresponding to the target operation type on the first target resource, it is first determined whether the operation type included in the first target resource information includes the target operation type, so that it is possible to avoid processing an access request of the operation type that is not included in the first target resource information, and it is possible to ensure that the second device knows the abnormal condition in time.
In one embodiment, the operation information for the first target resource includes a target operation type and target resource content. Executing the operation corresponding to the target operation type on the first target resource, and executing the following steps: and searching the target resource content in the first target resource according to the first access address, and executing the operation corresponding to the target operation type on the target resource content.
Optionally, the first access address is cached by the first device after receiving an access request for the first target resource sent by the second device. Optionally, an execution function corresponding to the target operation type may be utilized to execute an operation corresponding to the target operation type on the target resource content.
Optionally, the target resource content is the entire content in the first target resource. For example, the first target resource is basic information of a person, and then, the target resource content may be all the content in the basic information of the person, such as age information, position information, fingerprint information, face information, and the like. For another example, the first target resource is an attendance table, and then the target resource content may be all contents in the attendance table, such as the working time, the total days, and the like.
Optionally, the target resource content is a part of the content in the first target resource. For example, the first target resource is the basic information of people, and the target resource content is fingerprint information, then the target resource content may be fingerprint information in the basic information of people. For another example, the first target resource is an attendance table, and the target resource content is the number of days of the whole attendance, then the target resource content may be the number of days of the whole attendance in the attendance table.
Illustratively, when the first target resource is basic information of third-generation personnel, the basic information of the personnel includes age information, position information, fingerprint information and face information, the target operation type is DELETE, and the target resource content includes the fingerprint information, the basic information of the third-generation personnel can be found according to the first access address, the target resource content is the fingerprint information of third-generation personnel, and the target resource content is operated according to the target operation type, namely the fingerprint information of third-generation personnel is deleted.
In this embodiment, the target resource content in the first target resource can be accurately located through the first access address (i.e., the address before being replaced), so that the accurate operation on the first target resource can be realized.
In one embodiment, the access request further includes a second specified class node, and the second specified class node includes operation identification information of the access operation.
Optionally, the second designated class node is a pure letter node or a mixed class node. The second designated class node is randomly generated by the second device.
In this embodiment, after the execution result is sent to the second device (i.e., S110), feedback information may be sent to the second device, where the feedback information is used to identify that the first device has successfully processed the access request. Wherein the feedback information includes operation identification information. The first device sends the feedback information containing the operation identification information to the second device, so that the second device can accurately correspond the feedback information with the access request sent previously, and the resource access condition can be accurately recorded.
In order to facilitate understanding of the resource access method provided by the embodiment of the present application, the resource access method provided by the embodiment of the present application is described below in a manner that a second device interacts with a first device, where in this embodiment, an access request may be an HTTP request in a RESTFUL style, the first device may strip a first access address from the HTTP request sent by the second device, and when a first specified class node is a pure number node and the first access address includes the first specified class node, a preset character may be used to replace the first specified class node to obtain a second access address, and an index calculation is performed on the second access address to obtain corresponding index information, so as to perform gradual matching based on the index information, determine a corresponding first target resource, and further return a processing result of the first target resource to the second device, which may be referred to fig. 2 specifically.
FIG. 2 is a swim lane diagram of a resource access method according to an embodiment of the present application, and as shown in FIG. 2, the resource access method may include:
s2.1, the second device sends an access request aiming at the first target resource to the first device, wherein the access request comprises a first access address corresponding to the first target resource and operation information of the first target resource.
The first access address comprises at least one character node, and the operation information comprises a target operation type and target resource content. The target operation type and the target resource content have been described in detail in the above embodiments, and are not described herein again.
Alternatively, in the case where the access request is a restul-style HTTP request, the operation information may be carried in a request message, and the first device may strip the first access address from the HTTP request sent by the second device.
S2.2, the first equipment receives the access request and strips out the first access address.
Illustratively, if the HTTP request sent by the second device is "HTTPs: //192.168.0.1:80/laws/tmp2/123format = json ", and the operation information carried in the request message includes GET, then the first device may strip the first access address"/laws/tmp 2/123 "therefrom, and determine that the target operation type is GET. In the case that the request message only carries the GET, but does not carry the target resource content, the access request may be considered to be for acquiring all resource contents in the first target resource.
S2.3, under the condition that at least one character node in the first access address comprises a first appointed class node, the first equipment replaces the first appointed class node with a preset character to obtain a second access address.
Wherein the first specified class node is not included in the second access address. Optionally, the first specified class of nodes are purely digital nodes. The preset characters are preset characters used for replacing the first appointed type nodes. Optionally, the representation form of the preset character used to replace the pure numeric node is < preset character >.
Following the example in S2.2, if the first specified class node is a pure number node and the preset character is < ID >, replacing the first specified class node in the first access address with the preset character, and obtaining a second access address of "/laws/tmp2/< ID >.
And S2.4, the first equipment performs index calculation on the second access address according to a preset index algorithm to obtain first target index information corresponding to the second access address.
Optionally, the preset index algorithm may be an MD5 algorithm, so as to calculate an MD5 value corresponding to the second access address, and obtain an MD5 string in which the first target index information corresponding to the second access address may be 32 bits.
Following the example in S2.2-S2.3, if the preset indexing algorithm is the MD5 algorithm, index calculation is performed on the second access address "/laws/tmp2/< ID >" and the obtained first target index information corresponding to the second access address is "2B4C746E9946FAF05FA4DD89081472CA".
And S2.5, the first equipment matches the first target index information with a first mapping relation which is established in advance to obtain a target index pointer corresponding to the first target index information.
Alternatively, the first mapping relationship between each index information and the index pointer may be established in advance. The first mapping relationship may be stored in a pre-created association container. Optionally, matching the first target index information with a first mapping relationship established in advance may be performed as: and acquiring a pre-created association container, wherein the association container is used for storing the first mapping relation, acquiring the first mapping relation from the association container, and matching the first target index information with the first mapping relation in the association container.
Alternatively, the pre-created association container may be a MAP table. When the pre-created association container is a MAP table, a key (key) in the table is index information, and a value (value) in the table is an index pointer. Illustratively, the MAP table created in advance stores a mapping relationship between index information "B594670F13CC50FD7F8CA81928FF907A" and index pointer "1", a mapping relationship between index information "2B4C746E9946FAF05FA4DD89081472CA" and index pointer "2", a mapping relationship between index information "B594670F13 x 8 x FF907A" and index pointer "N", and the like. Following the example in S2.2-S2.4, matching the first target index information "2B4C746E9946FAF05FA4DD89081472CA" with the MAP table may obtain a target index pointer "2" corresponding to the first target index information.
S2.6, the first equipment matches the target index pointer with the pointer pointing relation established in advance to obtain first target resource information corresponding to the target index pointer.
The first target resource information comprises a second access address, an operation type allowed to be executed on the first target resource and an execution function corresponding to the operation type. Optionally, the first target resource information may further include a format supporting the resource content carried by the access request, for example, XML, JSON, raw, and the like. Optionally, the first target resource information may include an execution function pointer, where the execution function pointer points to an execution function corresponding to the operation type. Alternatively, a pointer-pointing relationship between the index pointer and the resource information may be established in advance. The pointer pointing relationship may be stored in a memory of the first device.
Illustratively, a pointer pointing relationship between an index pointer "1" and resource information 1 may be established in advance, where the resource information 1 includes a second access address "/law/tmp 1/< ID >", operation types "GET, PUT, POST, and DELETE" allowed to be executed on a first target resource, formats "XML, JSON, and raw" supporting resource contents carried by an access request, and an execution function pointer "pFunHandle _1"; a pointer pointing relationship between the index pointer "2" and the resource information 2 may be pre-established, where the resource information 2 includes a second access address "/law/tmp 2/< ID >", operation types "GET, PUT, POST, and DELETE" allowed to be executed on the first target resource, formats "XML, JSON, and raw" supporting resource contents carried by the access request, and an execution function pointer "pfunondle _2"; a pointer pointing relationship between an index pointer "N" and resource information N may be pre-established, where the resource information N includes a second access address "/laws/tmpN/< ID >", operation types "GET, PUT, POST, and DELETE" allowed to be performed on the first target resource, formats "XML, JSON, and raw" supporting resource contents carried by the access request, and an execution function pointer "pFunHandle _ N"; and so on.
Following the example in S2.2-S2.5, the target index pointer "2" is matched with the pointer direction relationship established in advance, and the first target resource information "resource information 2" corresponding to the target index pointer "2" is obtained.
And S2.7, the first equipment matches the first target resource information with a second mapping relation which is established in advance to obtain a first target resource corresponding to the first target resource information.
Alternatively, the second mapping relationship between the resource information and the resource may be established in advance. For example, a second mapping relationship between the resource information "1" and the resource "attendance table" may be established in advance, a second mapping relationship between the resource information "2" and the resource "person basic information" may be established in advance, and so on.
Following the example in S2.2-S2.6, the first target resource information "resource information 2" is matched with the second mapping relationship established in advance, and the first target resource "basic information of people" corresponding to the first target resource information is obtained.
And S2.8, the first equipment executes the operation corresponding to the target operation type carried by the access request on the first target resource under the condition that the operation type included in the first target resource information is determined to include the target operation type.
Optionally, performing an operation corresponding to the target operation type on the first target resource may be performed as: and searching the target resource content in the first target resource according to the first access address, and executing the operation corresponding to the target operation type on the target resource content.
Optionally, the first device sends error information to the second device when determining that the operation type included in the first target resource information does not include the target operation type. In this embodiment, by sending the error report information to the second device, the second device can timely know that the current access request cannot be processed by the first device, and thus, the second device is prevented from waiting for a long time after sending the access request.
Following the examples in S2.2-S2.7, assuming that the content pointed by the first access address "/laws/tmp2/123" is the basic information on the third person, the target resource content in the first target resource found according to the first access address is the basic information on the third person, the first target resource is executed with an operation corresponding to the target operation type, that is, all resource contents in the basic information on the third person are acquired, and the execution result is sent to the second device, that is, all resource contents in the basic information on the third person are sent to the second device.
And S2.9, the first equipment sends the execution result to the second equipment.
Optionally, the access request further includes a second specified class node, where the second specified class node includes operation identification information of the current access operation. After the first device sends the execution result to the second device, the first device may send feedback information to the second device, where the feedback information is used to identify that the first device has successfully processed the access request. The feedback information includes operation identification information.
The specific processes of S2.1-S2.9 are described in detail in the above embodiments, and are not described herein again.
According to the technical scheme, the access request aiming at the first target resource and sent by the second equipment is received, the access request comprises a first access address corresponding to the first target resource and operation information of the first target resource, the first access address comprises at least one character node, the operation information comprises a target operation type, if the at least one character node comprises a first appointed class node, the first appointed class node is replaced by a preset character, a second access address not comprising the first appointed class node is obtained, index calculation is conducted on the second access address according to a preset index algorithm, first target index information corresponding to the second access address is obtained, then according to the first target index information and mapping relations among index information, resource information and resources, a first target resource and first target resource information corresponding to the first target index information are determined, according to the first target resource information, operation corresponding to the target operation type is executed on the first target resource, and an execution result is sent to the second equipment. Obviously, in the technical scheme, the first device replaces the first specified type node in the received first access address with the preset character, so that the effect of shielding the first specified type node in the first access address is achieved, for example, for a plurality of first access addresses only with different first specified type nodes, after replacing the first specified type node with the preset character, the same second access address is obtained, and therefore only the index information corresponding to the second access address and the mapping relation need to be stored in the first device. Compared with the existing scheme, the number of the information (such as the access address) stored in the first device is greatly reduced, the first device is prevented from exposing excessive access addresses to the outside, the storage resources of the first device are saved, the storage pressure of the first device is reduced, the retrieval efficiency of the first device on the access addresses is favorably improved, and the response speed of the first device on the access request is improved. And after the resource information corresponding to the second access address is indexed, the operation corresponding to the target operation type in the access request can be executed on the resource according to the resource information, so that the execution result is sent to the second equipment, and the accurate response of the first equipment to the access request is ensured.
FIG. 3 is a swim lane diagram of a method of resource access according to another embodiment of the present application. In this embodiment, the access request may be an HTTP request in a RESTFUL style, the first device may strip a first access address from the HTTP request sent by the second device, and when the first specified type node is a pure number node and the first access address includes the first specified type node, the first specified type node may be replaced with a preset character to obtain a second access address, and the second access address is determined as the first target index information, so as to match a corresponding first target resource based on the first target index information, and then return a processing result of the first target resource to the second device. As shown in fig. 3, the resource access method may include:
s3.1, the second equipment sends an access request aiming at the first target resource to the first equipment, wherein the access request comprises a first access address corresponding to the first target resource and operation information of the first target resource.
S3.2, the first equipment receives the access request and strips out the first access address.
Following the example in S2.2, the stripped first access address is "/rows/tmp 2/123".
And S3.3, replacing the first appointed class node with a preset character by the first equipment under the condition that at least one character node in the first access address comprises the first appointed class node, and obtaining a second access address.
Following the example in S2.3, the resulting second access address is "/laws/tmp2/< ID >".
And S3.4, the first equipment determines the second access address as the first target index information.
Following the example in S3.3, the resulting first target index information is "/rows/tmp 2/< ID >".
And S3.5, the first equipment matches the first target index information with a pre-established third mapping relation to obtain first target resource information corresponding to the first target index information.
Optionally, a third mapping relationship between each index information and the resource information corresponding to each resource may be established in advance. The first target resource information comprises a second access address, an operation type allowed to be executed on the first target resource and an execution function corresponding to the operation type. Optionally, the first target resource information may further include a format supporting the resource content carried by the access request, for example, XML, JSON, raw, and the like. Optionally, the first target resource information may include an execution function pointer, where the execution function pointer points to an execution function corresponding to the operation type.
Illustratively, a third mapping relationship between the second access address "/laws/tmp1/< ID >" and the resource information 1 may be established in advance, where the resource information 1 includes the second access address "/laws/tmp1/< ID >", operation types "GET, PUT, POST, and DELETE" allowed to be executed on the first target resource, formats "XML, JSON, and raw" supporting resource contents carried by the access request, and an execution function pointer "pFunHandle _1"; a third mapping relationship between the second access address "/laws/tmp2/< ID >" and the resource information 2 may be established in advance, where the resource information 2 includes the second access address "/laws/tmp2/< ID >", operation types "GET, PUT, POST, and DELETE" allowed to be executed on the first target resource, formats "XML, JSON, and raw" supporting the resource content carried by the access request, and an execution function pointer "pFunHandle _2"; a third mapping relationship between the second access address "/laws/tmpN/< ID >" and the resource information N may be established in advance, where the resource information N includes the second access address "/laws/tmpN/< ID >", operation types "GET, PUT, POST, and DELETE" allowed to be executed on the first target resource, formats "XML, JSON, and raw" supporting the resource content carried by the access request, and an execution function pointer "pFunHandle _ N"; and so on.
Following the example in S3.4, the second access address "/laws/tmp2/< ID >" is matched with the pre-established third mapping relationship, so as to obtain the first target resource information "resource information 2" corresponding to the second access address "/laws/tmp2/< ID >".
And S3.6, the first equipment matches the first target resource information with a pre-established fourth mapping relation to obtain a first target resource corresponding to the first target resource information.
Alternatively, a fourth mapping relationship between the resource information and the resource may be established in advance. For example, a fourth mapping relationship between the resource information "1" and the resource "basic information for personnel" may be established in advance, a fourth mapping relationship between the resource information "2" and the resource "attendance table" may be established in advance, and so on.
Following the example in S3.5, the first target resource information "resource information 2" is matched with the fourth mapping relationship that is established in advance, and the first target resource "attendance table" corresponding to the first target resource information is obtained.
And S3.7, the first equipment executes the operation corresponding to the target operation type carried by the access request on the first target resource under the condition that the operation type included in the first target resource information is determined to include the target operation type.
Optionally, executing an operation corresponding to the target operation type on the first target resource may be executed as: and searching the target resource content in the first target resource according to the first access address, and executing operation corresponding to the target operation type on the target resource content.
Optionally, the first device sends error information to the second device when determining that the operation type included in the first target resource information does not include the target operation type. In this embodiment, by sending the error notification information to the second device, the second device can timely know that the current access request cannot be processed by the first device, and thus, the second device is prevented from waiting for a long time after sending the access request.
And S3.8, the first equipment sends the execution result to the second equipment.
Optionally, the access request further includes a second specified class node, where the second specified class node includes operation identification information of the current access operation. After the first device sends the execution result to the second device, the first device may send feedback information to the second device, where the feedback information is used to identify that the first device has successfully processed the access request. The feedback information includes operation identification information.
The specific processes of S3.1 to S3.8 are described in detail in the above embodiments, and are not described herein again.
By adopting the technical scheme of the embodiment of the application, the access request aiming at the first target resource and sent by the second equipment is received, the access request comprises a first access address corresponding to the first target resource and operation information of the first target resource, the first access address comprises at least one character node, the operation information comprises a target operation type, if the at least one character node comprises a first appointed class node, the first appointed class node is replaced by a preset character, a second access address not comprising the first appointed class node is obtained, first target index information corresponding to the second access address is determined, further a first target resource and first target resource information corresponding to the first target index information are determined according to the first target index information and the mapping relation among the index information, the resource information and the resources, operation corresponding to the target operation type is executed on the first target resource according to the first target resource information, and an execution result is sent to the second equipment. Obviously, in the technical scheme, the first device replaces the first specified type node in the received first access address with the preset character, so that the effect of shielding the first specified type node in the first access address is achieved, for example, for a plurality of first access addresses only with different first specified type nodes, after replacing the first specified type node with the preset character, the same second access address is obtained, and therefore only the index information corresponding to the second access address and the mapping relation need to be stored in the first device. Compared with the existing scheme, the number of the information (such as the access address) stored in the first device is greatly reduced, the first device is prevented from exposing excessive access addresses to the outside, the storage resources of the first device are saved, the storage pressure of the first device is reduced, the retrieval efficiency of the first device on the access addresses is favorably improved, and the response speed of the first device on the access request is improved. And after the resource information corresponding to the second access address is indexed, the operation corresponding to the target operation type in the access request can be executed on the resource according to the resource information, so that the execution result is sent to the second equipment, and the accurate response of the first equipment to the access request is ensured.
Fig. 4 is a schematic flowchart of a resource access method according to another embodiment of the present application, where in this embodiment, the resource access method is applied to an access control device. As shown in fig. 4, the method includes:
s402, receiving the resource acquisition link sent by the cloud server. The resource acquisition link includes resource identification information of a second target resource to be acquired.
Optionally, the cloud server may send the resource acquisition link to the access control device periodically or through manual triggering, and the representation form of the resource acquisition link may be a URL, for example, the resource acquisition link is "/ISAPI/access control/UserInfo/async inportdatastasks/d 62f36e1103414/detai lStatus".
Illustratively, the second target resource is a total attendance table stored by the cloud server, total personnel information stored by the cloud server, and the like. Optionally, the resource identification information is information capable of identifying a resource to be acquired. For example, in the case that the second target resource is the total attendance table, the resource identification information may be information such as attendance dates and staff numbers in the total attendance table, and the corresponding resource to be acquired is a resource on a certain attendance date(s) or a resource on a certain staff number(s); when the second target resource is the total staff information, the resource identification information may be the staff number in the total staff information, and the resource to be acquired is the resource under a certain staff number(s). Optionally, the second target resource is the same resource as the first target resource.
S404, according to the resource obtaining link, determining a resource storage address corresponding to the second target resource.
Optionally, a fifth mapping relationship between each resource acquisition link and the resource storage address corresponding to the resource may be pre-established in the access control device. S404 may be performed as: and matching the resource acquisition link with a pre-established fifth mapping relation to obtain a resource storage address corresponding to the second target resource.
Optionally, the resource obtaining link further includes a second specified node besides the resource identification information, and the second specified node includes the operation identification information of the obtaining operation this time. The second designated class nodes may be pure letter nodes or mixed class nodes. For example, if the second specified class node is a mixed class node and the resource acquisition link is "/ISAPI/access control/UserInfo/asyncinportdatastasks/d 62f36e1103414/detailStatus", the second specified class node in the resource acquisition link is "d62f36e1103414".
Under the resource issuing scene, the cloud server can issue resource acquisition links to the same access control equipment for a plurality of times, and under the scene of issuing in batches, the cloud server can issue resource acquisition links to a plurality of access control equipment that have established network connection with this cloud server, for making the accurate acquisition operation of each time of taking notes of each access control equipment of cloud server, the operation identification information of the operation of acquireing each time should the diverse, promptly the node content of the second specified type node should the diverse. Optionally, the node content of the second specified class node is a random character string, that is, the operation identification information is a random character string. If the current acquisition operation and the next acquisition operation are both used for acquiring the total attendance list, the contents of the random character strings are different for the two acquisition operations of the same total attendance list. However, in the resource acquisition link for multiple acquisition operations of the same resource, contents of other character nodes are completely consistent, and based on this, the second specified class node in the resource acquisition link in the prestored fifth mapping relationship may be replaced by a preset character, so as to avoid storing excessive resource acquisition links in the access control device and the fifth mapping relationship between the resource acquisition link and the resource storage address corresponding to the resource, save storage resources of the access control device, reduce storage pressure of the access control device, and facilitate improvement of retrieval efficiency of the access control device on the resource acquisition link, thereby improving response speed of the access control device on the resource acquisition link.
Optionally, the representation form of the preset character for replacing the pure alphabet node or the mixed class node is [ preset character ]. For example, the default character is [ ID ]; as another example, the default character is [2666]; for another example, the default character is [ dag ]; and so on. Illustratively, in the case that the preset character IS [ ID ], for the resource acquisition link "/ISAPI/access control/UserInfo/asyncinportdatastasks/d 62f36e1103414/detailStatus", the resource acquisition link "/IS API/access control/UserInfo/asyncinportdatastasks/[ ID ]/detailStatus" IS stored in the fifth mapping relationship matched with the resource acquisition link "/IS API/access control/UserInfo/asyncinportdatastasks/[ ID ]/detailStatus" and the resource storage address corresponding to the second target resource.
S406, according to the resource storage address, a second target resource corresponding to the resource identification information is obtained from the cloud server.
S408, second target resource information and second target index information corresponding to the second target resource are determined.
Optionally, the second target resource information includes a second access address, an operation type allowed to be executed on the second target resource, and an execution function corresponding to the operation type. Optionally, the second target resource information may further include a format supporting the resource content carried by the access request, for example, XML, JSON, raw, and the like. Optionally, the second target resource information may include an execution function pointer, where the execution function pointer points to an execution function corresponding to the operation type.
Optionally, determining second target index information corresponding to the second target resource may be performed as: performing index calculation on the second access address according to a preset index algorithm to obtain second target index information corresponding to the second access address; or, the second access address is determined as the second target index information.
In this embodiment, the specific content of the second target resource information may refer to the description related to the first target resource information, and the manner of determining the second target index information may refer to the manner of determining the first target index information, which is not described herein again.
S410, storing the mapping relation among the second target resource information, the second target index information and the second target resource.
Optionally, the index information determination manner is to perform index calculation on the second access address according to an index algorithm in a pre-created association container to obtain first target index information corresponding to the second access address (i.e., step A1), and a specific implementation manner of S410 may refer to steps B11-B14; the index information determining manner is to determine the second access address as the first target index information (i.e., step A2), and specific implementation manners of S410 may refer to steps B21-B24, which are not described herein again.
It should be noted that, before receiving the access request (i.e., S102) sent by the second device for the first target resource, it is a feasible implementation to execute S402-S410, in which case, the second target resource is the same resource as the first target resource. If the second target resource is different from the first target resource, it is required to ensure that the first target resource is stored in the access control device. In practical applications, if the second target resource is different from the first target resource, or the first target resource has been stored in the access control device, the execution timing of S402-S410 may be after the operation corresponding to the target operation type is executed on the first target resource according to the first target resource information, and the execution result is sent to the second device (i.e., S110), or during the process of executing S102-S110.
In this embodiment, the high in the clouds server acquires the link through sending the resource to entrance guard's equipment to trigger entrance guard's equipment and acquire the resource from the high in the clouds server, because entrance guard's equipment acquires the response speed diverse of linking to the resource, consequently can ensure under the scene of issuing in batches, reduces the resource of high in the clouds server and issues the task concurrency volume, thereby improves and issues the efficiency of entrance guard's equipment with the resource simultaneously.
In one embodiment, the resource obtaining link further includes a second specified class node in addition to the resource identification information, and the second specified class node includes operation identification information of the obtaining operation.
In this embodiment, after the mapping relationship among the second target resource information, the second target index information, and the second target resource is stored (i.e., S410), feedback information may be sent to the cloud server, where the feedback information is used to identify that the access control device has successfully stored the second target resource. Wherein the feedback information includes operation identification information. The access control equipment can enable the cloud server to accurately correspond the feedback information and the previously sent resource acquisition link by sending the feedback information containing the operation identification information to the cloud server so as to accurately record the resource issuing condition.
Optionally, the feedback information may be used to identify that the access control device failed to store the second target resource.
In one embodiment, the mapping relationship between the second target resource information, the second target index information, and the second target resource includes: a first mapping relation between the second target index information and the index pointer; a pointer pointing relationship between the index pointer and the second target resource information; and a second mapping relationship between the second target resource information and the second target resource.
In this embodiment, storing the mapping relationship between the second target resource information, the second target index information, and the second target resource (i.e. S410) may be performed as: the first mapping relation is stored in a pre-created association container, and the second mapping relation and the pointer pointing relation are stored in a memory of the first device.
Alternatively, the pre-created association container may be a MAP table, the key (key) in the table is index information, and the value (value) in the table is an index pointer.
In this embodiment, by storing the first mapping relationship between each index information and the corresponding index pointer in the pre-created association container, for example, in the pre-created MAP table, since the MAP table has the capability of fast indexing, it can be ensured that the access control device quickly responds to the access request initiated by the cloud server in the resource access process, and retrieves the index pointer corresponding to the index information, so as to retrieve the corresponding resource information according to the index pointer.
The resource access method provided by the present application is described below by a specific service scenario. The resource access method can be applied to a scene that the cloud server issues the resources to the access control equipment. In this embodiment, the access control device acquires the resource in response to the resource acquisition link sent by the cloud server, and stores the acquired resource, the resource information and the index information corresponding to the resource, and the mapping relationship between the resource, the resource information, and the index information. The embodiment shown in fig. 5 is illustrated by taking this scenario as an example.
S5.1, the cloud server sends a resource acquisition link aiming at the second target resource to the access control equipment, the resource acquisition link comprises resource identification information of the second target resource to be acquired and a second specified node, and the second specified node comprises operation identification information of the current acquisition operation.
Illustratively, the second target resource is a total attendance table stored by the cloud server, total personnel information stored by the cloud server, and the like. Alternatively, the resource acquisition link may be characterized as a URL. The resource identification information is information capable of identifying a resource to be acquired. For example, in the case that the second target resource is the total attendance table, the resource identification information may be information such as attendance dates and staff numbers in the total attendance table, and the corresponding resource to be acquired is a resource on a certain attendance date(s) or a resource on a certain staff number(s).
And S5.2, the access control equipment matches the resource acquisition link with a fifth mapping relation which is established in advance to obtain a resource storage address corresponding to the second target resource.
Optionally, a fifth mapping relationship between each resource acquisition link and the resource storage address corresponding to the resource may be established in advance.
And S5.3, the access control equipment acquires a second target resource corresponding to the resource identification information from the cloud server according to the resource storage address.
And S5.4, the entrance guard equipment determines second target resource information and second target index information corresponding to the second target resource.
Optionally, the specific content of the second target resource information may refer to the related description of the first target resource information, and the manner of determining the second target index information may refer to the manner of determining the first target index information, which is not described herein again.
And S5.5, the access control equipment stores the mapping relation among the second target resource information, the second target index information and the second target resource.
Optionally, the index information determination manner is to perform index calculation on the second access address according to an index algorithm in a pre-created association container to obtain first target index information corresponding to the second access address (i.e., step A1), and a specific implementation manner of S5.5 may refer to steps B11-B14; the index information determination manner is to determine the second access address as the first target index information (i.e., step A2), and specific implementation manners of S5.5 may refer to steps B21-B24, which is not described herein again.
And S5.6, the access control equipment sends feedback information to the cloud server, and the feedback information is used for identifying that the access control equipment successfully stores the second target resource. Wherein the feedback information includes operation identification information.
The specific processes of S5.1-S5.6 are described in detail in the above embodiments, and are not described herein again.
By adopting the technical scheme, the cloud server acquires the link by sending the resource to the access control equipment to trigger the access control equipment to acquire the resource from the cloud server, and because the access control equipment acquires the link response speed different from the resource, the resource issuing task concurrency of the cloud server can be reduced under the large-batch issuing scene, so that the efficiency of simultaneously issuing the resource to the access control equipment is improved. And the access control equipment can send the feedback information containing the operation identification information to the cloud server, so that the cloud server can accurately correspond the feedback information to the previously sent resource acquisition link, and the resource issuing condition can be accurately recorded.
In summary, specific embodiments of the present application have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
Based on the same idea, the resource access method provided by the embodiment of the present application further provides a resource access device.
Fig. 6 is a schematic structural diagram of a resource access apparatus according to an embodiment of the present application, where the resource access apparatus is applied to a first device in this embodiment. As shown in fig. 6, the resource access device may include:
a first receiving module 610, configured to receive an access request for a first target resource sent by a second device; the access request comprises a first access address corresponding to the first target resource and operation information on the first target resource, the first access address comprises at least one character node, and the operation information comprises a target operation type;
a replacing module 620, configured to replace the first specified class node with a preset character to obtain a second access address if the at least one character node includes the first specified class node; the second access address does not comprise the first specified class node;
a first determining module 630, configured to determine first target index information corresponding to the second access address;
a second determining module 640, configured to determine, according to the first target index information and the mapping relationship between each index information, resource information, and resource, a first target resource and first target resource information corresponding to the first target index information;
the executing module 650 is configured to execute, according to the first target resource information, an operation corresponding to the target operation type on the first target resource, and send an execution result to the second device.
In one embodiment, the mapping relationship between each index information, resource information and resource includes: a first mapping relation between each index information and the index pointer; a pointer pointing relationship between the index pointer and the resource information; and, a second mapping relationship between the resource information and the resource;
the second determining module 640 includes:
the first matching unit is used for matching the first target index information with the first mapping relation to obtain a target index pointer corresponding to the first target index information;
the second matching unit is used for matching the target index pointer and the pointer pointing relation to obtain first target resource information corresponding to the target index pointer; the first target resource information comprises a second access address, an operation type allowed to be executed on the first target resource and an execution function corresponding to the operation type;
and the third matching unit is used for matching the first target resource information with the second mapping relation to obtain the first target resource corresponding to the first target resource information.
In one embodiment, the first matching unit is specifically configured to:
acquiring a pre-created association container, wherein the association container is used for storing a first mapping relation;
acquiring a first mapping relation from the association container;
and matching the first target index information with the first mapping relation in the associated container.
In one embodiment, the resource access device further comprises:
the first acquisition module is used for acquiring a plurality of resources stored in the first equipment and first storage addresses corresponding to the resources respectively;
the conversion and calculation module is used for carrying out conversion operation on the first appointed class node in the first storage address aiming at each resource to obtain a second storage address; the second storage address does not comprise the first specified class node; calculating the second storage address according to a preset index algorithm to obtain index information corresponding to the second storage address;
the establishing module is used for establishing a first mapping relation between each index information and the corresponding index pointer, establishing a pointer pointing relation between each index pointer and the resource information corresponding to each resource, and establishing a second mapping relation between each resource information and the corresponding resource; the resource information comprises a second storage address, an operation type allowed to be executed on the resource and an execution function corresponding to the operation type;
and the first storage module is used for storing the first mapping relation, the second mapping relation and the pointer pointing relation in the first equipment.
In one embodiment, the resource access device further comprises:
the second storage module is used for storing the first mapping relation in a pre-established association container and storing the second mapping relation and the pointer orientation relation in a memory of the first device;
the second determining module 640 includes:
the first obtaining and matching unit is used for obtaining a first mapping relation from the associated container so as to match the first target index information with the first mapping relation;
the second obtaining and matching unit is used for obtaining the pointer directing relation from the memory of the first equipment so as to match the target index pointer with the pointer directing relation; and acquiring the second mapping relation from the memory of the first device so as to match the first target resource information with the second mapping relation.
In one embodiment, the execution module 650 includes:
a determining unit, configured to determine whether a target operation type is included in operation types included in the first target resource information according to a first mapping relationship in the association container and a pointer pointing relationship in a memory of the first device;
the execution unit is used for executing the operation corresponding to the target operation type on the first target resource and sending the execution result to the second equipment if the first target resource is the target resource;
and the sending unit is used for sending error reporting information to the second equipment if the second equipment does not receive the error reporting information.
In one embodiment, the first determination module 630 includes:
the processing unit is used for carrying out index calculation on the second access address according to an index algorithm in a pre-established association container to obtain first target index information corresponding to the second access address; or, the second access address is determined as the first target index information.
In one embodiment, the first specified class of nodes comprises pure numeric nodes; the plurality of first appointed class nodes correspond to unique preset characters.
In one embodiment, the access request further includes a second specified class node, where the second specified class node includes operation identification information of the current access operation;
the resource access device further includes:
the sending module is used for sending feedback information to the second equipment after sending the execution result to the second equipment; the feedback information includes operation identification information for identifying that the first device has successfully processed the access request.
By adopting the device in the embodiment of the application, an access request aiming at a first target resource and sent by a second device is received, the access request comprises a first access address corresponding to the first target resource and operation information of the first target resource, the first access address comprises at least one character node, the operation information comprises a target operation type, if the at least one character node comprises a first appointed node, the first appointed node is replaced by a preset character to obtain a second access address not comprising the first appointed node, so that first target index information corresponding to a second access address is determined, further a first target resource and first target resource information corresponding to the first target index information are determined according to the first target index information and mapping relations among the index information, the resource information and the resources, an operation corresponding to the target operation type is executed on the first target resource according to the first target resource information, and an execution result is sent to the second device. Obviously, in the device, the first device replaces the first specified type node in the received first access address with the preset character, so that the effect of shielding the first specified type node in the first access address is achieved, for example, for a plurality of first access addresses only with different first specified type nodes, after replacing the first specified type node with the preset character, the same second access address is obtained, and therefore only the index information corresponding to the second access address and the mapping relation need to be stored in the first device. Compared with the existing scheme, the number of the information (such as the access address) stored in the first device is greatly reduced, the first device is prevented from exposing excessive access addresses to the outside, the storage resources of the first device are saved, the storage pressure of the first device is reduced, the retrieval efficiency of the first device on the access addresses is favorably improved, and the response speed of the first device on the access request is improved. And after the resource information corresponding to the second access address is indexed, the operation corresponding to the target operation type in the access request can be executed on the resource according to the resource information, so that the execution result is sent to the second equipment, and the accurate response of the first equipment to the access request is ensured.
Fig. 7 is a schematic structural diagram of a resource access device according to another embodiment of the present application, where in this embodiment, the resource access device is applied to an access control device. As shown in fig. 7, the resource access device may include:
a second receiving module 710, configured to receive a resource acquisition link sent by a cloud server; the resource acquisition link comprises resource identification information of a second target resource to be acquired;
a third determining module 720, configured to determine, according to the resource obtaining link, a resource storage address corresponding to the second target resource;
the second obtaining module 730 is configured to obtain, according to the resource storage address, a second target resource corresponding to the resource identification information from the cloud server;
a fourth determining module 740, configured to determine second target resource information and second target index information corresponding to a second target resource;
and a third storage module 750, configured to store a mapping relationship between the second target resource information, the second target index information, and the second target resource.
In one embodiment, the mapping relationship between the second target resource information, the second target index information, and the second target resource includes: a first mapping relationship between the second target index information and the index pointer; a pointer pointing relationship between the index pointer and the second target resource information; and a second mapping relationship between the second target resource information and the second target resource;
the third storage module 750 includes:
and the storage unit is used for storing the first mapping relation in a pre-created association container and storing the second mapping relation and the pointer pointing relation in a memory of the first device.
By adopting the device provided by the embodiment of the application, the cloud server sends the resource acquisition link to the access control equipment to trigger the access control equipment to acquire resources from the cloud server, and the access control equipment acquires the link from the resources at different response speeds, so that the task concurrency amount issued by the resources of the cloud server can be reduced under the scene issued in batches, and the efficiency of simultaneously issuing the resources to the access control equipment is improved.
It should be understood by those skilled in the art that the resource access apparatus in fig. 6 and fig. 7 can be used to implement the resource access method described above, and the detailed description thereof should be similar to the description of the method section above, and in order to avoid complexity, the detailed description thereof is omitted here.
Based on the same idea, an embodiment of the present application further provides a resource access device, as shown in fig. 8. Resource access devices may vary widely in configuration or performance and may include one or more processors 801 and memory 802, where the memory 802 may have one or more stored applications or data stored therein. Wherein the memory 802 may be a transient storage or a persistent storage. The application program stored in memory 802 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for a resource access device. Still further, the processor 801 may be configured to communicate with the memory 802 to execute a series of computer-executable instructions in the memory 802 on the resource access device. The resource access apparatus may also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input-output interfaces 805, one or more keyboards 806.
In one embodiment, the resource access device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the resource access device, and the one or more programs configured to be executed by the one or more processors include computer-executable instructions for:
receiving an access request aiming at a first target resource sent by a second device; the access request comprises a first access address corresponding to the first target resource and operation information on the first target resource, the first access address comprises at least one character node, and the operation information comprises a target operation type;
if at least one character node comprises a first appointed class node, replacing the first appointed class node with a preset character to obtain a second access address; the second access address does not comprise the first specified class node;
determining first target index information corresponding to the second access address;
determining a first target resource and first target resource information corresponding to the first target index information according to the first target index information and the mapping relation among the index information, the resource information and the resource;
and executing the operation corresponding to the target operation type on the first target resource according to the first target resource information, and sending an execution result to the second equipment.
By adopting the device of the embodiment of the application, an access request aiming at a first target resource and sent by a second device is received, the access request comprises a first access address corresponding to the first target resource and operation information of the first target resource, the first access address comprises at least one character node, the operation information comprises a target operation type, if the at least one character node comprises a first appointed node, the first appointed node is replaced by a preset character to obtain a second access address not comprising the first appointed node, so that first target index information corresponding to a second access address is determined, further a first target resource and first target resource information corresponding to the first target index information are determined according to the first target index information and mapping relations among the index information, the resource information and the resources, an operation corresponding to the target operation type is executed on the first target resource according to the first target resource information, and an execution result is sent to the second device. Obviously, in the device, the first device replaces the first specified type node in the received first access address with the preset character, so that the effect of shielding the first specified type node in the first access address is achieved, for example, for a plurality of first access addresses only with different first specified type nodes, after replacing the first specified type node with the preset character, the same second access address is obtained, and therefore only the index information corresponding to the second access address and the mapping relation need to be stored in the first device. Compared with the existing scheme, the number of the information (such as the access address) stored in the first device is greatly reduced, the first device is prevented from exposing excessive access addresses to the outside, the storage resources of the first device are saved, the storage pressure of the first device is reduced, the retrieval efficiency of the first device on the access addresses is favorably improved, and the response speed of the first device on the access request is improved. And after the resource information corresponding to the second access address is indexed, the operation corresponding to the target operation type in the access request can be executed on the resource according to the resource information, so that the execution result is sent to the second equipment, and the accurate response of the first equipment to the access request is ensured.
In one embodiment, a resource access device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the resource access device, and execution of the one or more programs by one or more processors includes computer-executable instructions for:
receiving a resource acquisition link sent by a cloud server; the resource acquisition link comprises resource identification information of a second target resource to be acquired;
determining a resource storage address corresponding to the second target resource according to the resource acquisition link;
acquiring a second target resource corresponding to the resource identification information from the cloud server according to the resource storage address;
determining second target resource information and second target index information corresponding to the second target resource;
and storing the mapping relation among the second target resource information, the second target index information and the second target resource.
By adopting the equipment provided by the embodiment of the application, the cloud server sends the resource acquisition link to the access control equipment to trigger the access control equipment to acquire resources from the cloud server, and the access control equipment acquires the link from the resources at different response speeds, so that the task concurrency amount issued by the resources of the cloud server can be reduced under the scene issued in batches, and the efficiency of simultaneously issuing the resources to the access control equipment is improved.
An embodiment of the present application further provides a storage medium storing one or more computer programs, where the one or more computer programs include instructions, which, when executed by an electronic device including a plurality of application programs, enable the electronic device to perform the above-mentioned resource access method, and are specifically configured to perform:
receiving an access request aiming at a first target resource sent by a second device; the access request comprises a first access address corresponding to the first target resource and operation information on the first target resource, the first access address comprises at least one character node, and the operation information comprises a target operation type;
if at least one character node comprises a first appointed class node, replacing the first appointed class node with a preset character to obtain a second access address; the second access address does not comprise the first specified class node;
determining first target index information corresponding to the second access address;
determining a first target resource and first target resource information corresponding to the first target index information according to the first target index information and the mapping relation among the index information, the resource information and the resource;
and executing the operation corresponding to the target operation type on the first target resource according to the first target resource information, and sending an execution result to the second equipment.
By adopting the storage medium of the embodiment of the application, an access request aiming at a first target resource and sent by a second device is received, the access request comprises a first access address corresponding to the first target resource and operation information of the first target resource, the first access address comprises at least one character node, the operation information comprises a target operation type, if the at least one character node comprises a first appointed class node, the first appointed class node is replaced by a preset character, a second access address not comprising the first appointed class node is obtained, first target index information corresponding to the second access address is determined, a first target resource and first target resource information corresponding to the first target index information are determined according to the first target index information and mapping relations among the index information, the resource information and the resources, an operation corresponding to the target operation type is executed on the first target resource according to the first target resource information, and an execution result is sent to the second device. Therefore, in the storage medium, the first device replaces the first specified type node in the received first access address with the preset character, so that the effect of shielding the first specified type node in the first access address is achieved, for example, for a plurality of first access addresses only with different first specified type nodes, after replacing the first specified type node with the preset character, the same second access address is obtained, and thus only the index information corresponding to the second access address and the mapping relationship need to be stored in the first device. Compared with the existing scheme, the number of the information (such as the access address) stored in the first device is greatly reduced, the first device is prevented from exposing excessive access addresses to the outside, the storage resources of the first device are saved, the storage pressure of the first device is reduced, the retrieval efficiency of the first device on the access addresses is favorably improved, and the response speed of the first device on the access request is improved. And after the resource information corresponding to the second access address is indexed, the operation corresponding to the target operation type in the access request can be executed on the resource according to the resource information, so that the execution result is sent to the second equipment, and the accurate response of the first equipment to the access request is ensured.
An embodiment of the present application further provides a storage medium storing one or more computer programs, where the one or more computer programs include instructions, which, when executed by an electronic device including a plurality of application programs, enable the electronic device to perform the above-mentioned resource access method, and are specifically configured to perform:
receiving a resource acquisition link sent by a cloud server; the resource acquisition link comprises resource identification information of a second target resource to be acquired;
determining a resource storage address corresponding to the second target resource according to the resource acquisition link;
according to the resource storage address, acquiring a second target resource corresponding to the resource identification information from the cloud server;
determining second target resource information and second target index information corresponding to the second target resource;
and storing the mapping relation among the second target resource information, the second target index information and the second target resource.
By adopting the storage medium, the cloud server sends the resource acquisition link to the access control equipment to trigger the access control equipment to acquire resources from the cloud server, and the access control equipment acquires the link from the resources at different response speeds, so that the concurrency of tasks issued by the resources of the cloud server can be reduced under a large-batch issuing scene, and the efficiency of simultaneously issuing the resources to the access control equipment is improved.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.
Claims (14)
1. A method for accessing a resource, applied to a first device, the method comprising:
receiving an access request aiming at a first target resource sent by a second device; the access request comprises a first access address corresponding to the first target resource and operation information on the first target resource, the first access address comprises at least one character node, and the operation information comprises a target operation type;
if the at least one character node comprises a first appointed type node, replacing the first appointed type node with a preset character to obtain a second access address; the first specified class node is not included in the second access address;
determining first target index information corresponding to the second access address;
determining the first target resource and first target resource information corresponding to the first target index information according to the first target index information and the mapping relation among the index information, the resource information and the resource;
and executing the operation corresponding to the target operation type on the first target resource according to the first target resource information, and sending an execution result to the second equipment.
2. The method according to claim 1, wherein the mapping relationship between the index information, the resource information and the resource comprises: a first mapping relation between each index information and the index pointer; a pointer-pointing relationship between the index pointer and the resource information; and, a second mapping relationship between the resource information and the resource;
determining the first target resource and the first target resource information corresponding to the first target index information according to the first target index information and the mapping relationship among the index information, the resource information and the resource, including:
matching the first target index information with the first mapping relation to obtain a target index pointer corresponding to the first target index information;
matching the target index pointer with the pointer pointing relationship to obtain first target resource information corresponding to the target index pointer; the first target resource information comprises the second access address, an operation type allowed to be executed on the first target resource and an execution function corresponding to the operation type;
and matching the first target resource information with the second mapping relation to obtain the first target resource corresponding to the first target resource information.
3. The method of claim 2, wherein matching the first target index information with the first mapping relationship comprises:
acquiring a pre-created association container, wherein the association container is used for storing the first mapping relation;
acquiring the first mapping relation from the association container;
and matching the first target index information with the first mapping relation in the associated container.
4. The method of claim 2, further comprising:
acquiring a plurality of resources stored in the first equipment and first storage addresses corresponding to the resources respectively;
for each resource, performing conversion operation on the first appointed class node in the first storage address to obtain a second storage address; the first specified class node is not included in the second storage address; calculating the second storage address according to the preset index algorithm to obtain index information corresponding to the second storage address;
establishing the first mapping relation between each index information and the corresponding index pointer, establishing the pointer direction relation between each index pointer and the resource information corresponding to each resource, and establishing the second mapping relation between each resource information and the corresponding resource; the resource information comprises the second storage address, an operation type allowed to be executed on the resource and an execution function corresponding to the operation type;
storing the first mapping relationship, the second mapping relationship, and the pointer-pointing relationship in the first device.
5. The method of claim 4, further comprising:
storing the first mapping relation in a pre-established association container, and storing the second mapping relation and the pointer pointing relation in a memory of the first device;
determining the first target resource and the first target resource information corresponding to the first target index information according to the first target index information and the mapping relationship among the index information, the resource information and the resource, including:
acquiring the first mapping relation from the association container so as to match the first target index information with the first mapping relation;
acquiring the pointer pointing relationship from the memory of the first device to match the target index pointer with the pointer pointing relationship; and acquiring the second mapping relation from the memory of the first device to match the first target resource information with the second mapping relation.
6. The method according to claim 5, wherein the performing, according to the first target resource information, an operation corresponding to the target operation type on the first target resource and sending an execution result to the second device includes:
judging whether the operation type included in the first target resource information includes the target operation type according to the first mapping relation in the association container and the pointer direction relation in the memory of the first device;
if so, executing the operation corresponding to the target operation type on the first target resource, and sending the execution result to the second equipment;
and if not, sending error reporting information to the second equipment.
7. The method of claim 1, wherein the determining the first target index information corresponding to the second access address comprises:
performing index calculation on the second access address according to an index algorithm in a pre-created association container to obtain the first target index information corresponding to the second access address; or, the second access address is determined as the first target index information.
8. The method of claim 1, wherein the first specified class of nodes comprises pure numeric nodes; and a plurality of the first appointed class nodes correspond to the unique preset characters.
9. The method according to claim 1, wherein the access request further includes a second specified class node, and the second specified class node includes operation identification information of the current access operation;
after the sending the execution result to the second device, the method further includes:
sending feedback information to the second device; the feedback information includes the operation identification information, and the feedback information is used for identifying that the first device has successfully processed the access request.
10. A resource access method is applied to access control equipment, and the method comprises the following steps:
receiving a resource acquisition link sent by a cloud server; the resource acquisition link comprises resource identification information of a second target resource to be acquired;
determining a resource storage address corresponding to the second target resource according to the resource acquisition link;
acquiring the second target resource corresponding to the resource identification information from the cloud server according to the resource storage address;
determining second target resource information and second target index information corresponding to the second target resource;
and storing the mapping relation among the second target resource information, the second target index information and the second target resource.
11. The method of claim 10, wherein the mapping relationship between the second target resource information, the second target index information, and the second target resource comprises: a first mapping relationship between the second target index information and an index pointer; a pointer-pointing relationship between the index pointer and the second target resource information; and a second mapping relationship between the second target resource information and the second target resource;
the storing of the mapping relationship among the second target resource information, the second target index information, and the second target resource includes:
and storing the first mapping relation in a pre-created association container, and storing the second mapping relation and the pointer pointing relation in a memory of the first device.
12. A resource access apparatus, applied to a first device, the apparatus comprising:
the first receiving module is used for receiving an access request aiming at a first target resource sent by second equipment; the access request comprises a first access address corresponding to the first target resource and operation information on the first target resource, the first access address comprises at least one character node, and the operation information comprises a target operation type;
the replacing module is used for replacing the first appointed class node with a preset character to obtain a second access address if the at least one character node comprises the first appointed class node; the first specified class node is not included in the second access address;
the first determining module is used for determining first target index information corresponding to the second access address;
a second determining module, configured to determine, according to the first target index information and a mapping relationship between each index information, resource information, and resource, the first target resource and first target resource information corresponding to the first target index information;
and the execution module is used for executing the operation corresponding to the target operation type on the first target resource according to the first target resource information and sending an execution result to the second equipment.
13. A resource access device, characterized in that, be applied to entrance guard's equipment, the device includes:
the second receiving module is used for receiving the resource acquisition link sent by the cloud server; the resource acquisition link comprises resource identification information of a second target resource to be acquired;
a third determining module, configured to determine, according to the resource acquisition link, a resource storage address corresponding to the second target resource;
the second obtaining module is used for obtaining the second target resource corresponding to the resource identification information from the cloud server according to the resource storage address;
a fourth determining module, configured to determine second target resource information and second target index information corresponding to the second target resource;
and the third storage module is used for storing the mapping relation among the second target resource information, the second target index information and the second target resource.
14. A resource access device, the device comprising:
a processor; and
a memory arranged to store computer executable instructions configured for execution by the processor, the executable instructions being executable by the processor to implement the resource access method of any of claims 1-9 or to implement the resource access method of any of claims 10-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210749425.7A CN115795187A (en) | 2022-06-29 | 2022-06-29 | Resource access method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210749425.7A CN115795187A (en) | 2022-06-29 | 2022-06-29 | Resource access method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115795187A true CN115795187A (en) | 2023-03-14 |
Family
ID=85431234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210749425.7A Pending CN115795187A (en) | 2022-06-29 | 2022-06-29 | Resource access method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115795187A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117194439A (en) * | 2023-11-07 | 2023-12-08 | 杭州优云科技有限公司 | Method for creating resource storage system, electronic equipment and storage medium |
-
2022
- 2022-06-29 CN CN202210749425.7A patent/CN115795187A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117194439A (en) * | 2023-11-07 | 2023-12-08 | 杭州优云科技有限公司 | Method for creating resource storage system, electronic equipment and storage medium |
CN117194439B (en) * | 2023-11-07 | 2024-03-22 | 杭州优云科技有限公司 | Method for creating resource storage system, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9742721B2 (en) | Method, system, server and client device for message synchronizing | |
US11064053B2 (en) | Method, apparatus and system for processing data | |
CN111291103B (en) | Interface data analysis method and device, electronic equipment and storage medium | |
CN110019080B (en) | Data access method and device | |
US20150205847A1 (en) | Database generation from a spreadsheet | |
CN112883125A (en) | Entity data processing method, device, equipment and storage medium | |
CN107423037B (en) | Application program interface positioning method and device | |
CN111950857A (en) | Index system management method and device based on service indexes and electronic equipment | |
CN113190517B (en) | Data integration method and device, electronic equipment and computer readable medium | |
CN110362630B (en) | Data management method, device, equipment and computer readable storage medium | |
JP2021068448A (en) | Method, apparatus, and system for data mapping | |
CN115795187A (en) | Resource access method, device and equipment | |
CN111178025A (en) | Editing method and device of nuclear power plant operation guide rules, computer equipment and storage medium | |
CN111488386B (en) | Data query method and device | |
CN112579673A (en) | Multi-source data processing method and device | |
CN111078773A (en) | Data processing method and device | |
CN113590985B (en) | Page jump configuration method and device, electronic equipment and computer readable medium | |
CN115295166A (en) | Index data processing method and device | |
CN115034175A (en) | Table data processing method, device, terminal and storage medium | |
CN117009430A (en) | Data management method, device, storage medium and electronic equipment | |
CN113393288A (en) | Order processing information generation method, device, equipment and computer readable medium | |
CN111353279A (en) | Character code conversion method, device and computer storage medium | |
CN113282624B (en) | Rule matching method, device, electronic equipment and storage medium | |
CN111680112B (en) | Data analysis method and device | |
CN111177588B (en) | Interest point retrieval 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 |