CN114675970A - Information determination method, device, equipment, storage medium and computer program product - Google Patents

Information determination method, device, equipment, storage medium and computer program product Download PDF

Info

Publication number
CN114675970A
CN114675970A CN202210320656.6A CN202210320656A CN114675970A CN 114675970 A CN114675970 A CN 114675970A CN 202210320656 A CN202210320656 A CN 202210320656A CN 114675970 A CN114675970 A CN 114675970A
Authority
CN
China
Prior art keywords
resource
resources
request
target
parameter
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
Application number
CN202210320656.6A
Other languages
Chinese (zh)
Inventor
张建业
李小辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202210320656.6A priority Critical patent/CN114675970A/en
Publication of CN114675970A publication Critical patent/CN114675970A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses an information determination method, an information determination device, an information determination equipment, a storage medium and a computer program product, wherein the method comprises the following steps: receiving a request instruction of a user for target information; determining the resource list corresponding to the request instruction according to the request instruction and the corresponding relation between the request instruction and the resource list; according to the resource addresses of a plurality of resources corresponding to the resource list, the request parameters of each resource in the plurality of resources and the return parameters of each resource, obtaining the resource addresses of the plurality of resources; for each target resource in the plurality of resources, acquiring a target resource corresponding to a return parameter of the target resource from a resource address of the target resource according to a request parameter of the target resource; and determining the target information according to the target resource. According to the method provided by the embodiment of the application, credible joint query across departments and regions can be realized, and the information determining efficiency is improved.

Description

Information determination method, device, equipment, storage medium and computer program product
Technical Field
The present application belongs to the field of big data, and in particular, relates to an information determination method, apparatus, device, storage medium, and computer program product.
Background
With the advent of the big data age, data of government departments, enterprises and individuals are accumulated in large quantities, and in order to integrate and obtain some information by using the data, the requirement of exchanging and sharing the data is more and more.
In the prior art, resource data to be shared and exchanged are usually cataloged, and a resource data catalog is used to index and obtain corresponding resource data, such as files and structured data, so that a large data center can be established, the resource data to be exchanged are collected, and after cataloging, the resource data are provided for a demand side.
However, according to the existing resource data sharing and exchanging manner, only one kind of data can be acquired at one time, and for data requirements of various manners, the data needs to be acquired from different resource data providers for multiple times, so that the resource data acquisition period is long, and the credible joint query across departments and regions cannot be realized, so that for information obtained by resource integration across departments and regions, the information can be determined after resources need to be acquired for multiple times, and the process is complicated.
Disclosure of Invention
Embodiments of the present application provide an information determining method, apparatus, device, storage medium, and computer program product, which can implement joint query across departments and regions, and quickly obtain resources that need to be performed across departments and regions, thereby improving the efficiency of determining information determined by resources across departments and regions.
In a first aspect, an embodiment of the present application provides an information determining method, where the information determining method includes:
receiving a request instruction of a user for target information;
determining a resource list corresponding to the request instruction according to the request instruction and the corresponding relation between the request instruction and the resource list;
according to the resource addresses of a plurality of resources corresponding to the resource list, the request parameters of each resource in the plurality of resources and the return parameters of each resource, obtaining the resource addresses of the plurality of resources;
for each target resource in the plurality of resources, acquiring a target resource corresponding to a return parameter of the target resource from a resource address of the target resource according to a request parameter of the target resource;
and determining target information according to the target resource.
In some possible embodiments, obtaining resource addresses of a plurality of resources corresponding to the resource inventory, and a request parameter and a return parameter of each resource in the plurality of resources includes:
acquiring authorization information of the resource list according to the resource list;
and under the condition that the authorization information is the information that the resource list passes authorization, acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource.
In some possible embodiments, before obtaining the resource addresses of the plurality of resources corresponding to the resource inventory, and the request parameter and the return parameter of each resource in the plurality of resources, the method further includes:
and configuring the corresponding relation between the resource list and the resource addresses of the plurality of resources, and the request parameter and the return parameter of each resource in the plurality of resources.
In some possible embodiments, the resource types of the plurality of resources include at least one of a database table, a file, and an interface.
In some possible embodiments, in the case that the resource type of the resource is a database table, the request parameter includes a name of the database table, and the return parameter includes data of the database table.
In some possible embodiments, in the case that the resource type of the resource is a file, the request parameter includes a file address and the return parameter includes file data.
In some possible embodiments, in the case that the resource type of the resource is an interface, the request parameter includes a request parameter of the interface, and the return parameter includes a return parameter of the interface.
In some possible embodiments, the method further comprises:
and generating a record for acquiring the target resource, and storing the record to the block chain.
In some possible implementations, multiple resources are stored in a blockchain.
In some possible embodiments, before determining the resource list corresponding to the request instruction according to the request instruction and the corresponding relationship between the request instruction and the resource list, the method further includes: and generating a resource list according to the plurality of resources, and storing the corresponding relation between the request command and the resource list in the block chain.
In a second aspect, an embodiment of the present application provides an information determining apparatus, including:
the receiving module is used for receiving a request instruction of a user for target information;
the determining module is used for determining the resource list corresponding to the request instruction according to the request instruction and the corresponding relation between the request instruction and the resource list;
the acquisition module is used for acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource; the resource management module is also used for acquiring a target resource corresponding to a return parameter of the target resource from a resource address of the target resource according to the request parameter of the target resource for each target resource in the plurality of resources;
and the determining module is also used for determining target information according to the target resource.
In some possible embodiments, obtaining resource addresses of a plurality of resources corresponding to the resource inventory, and a request parameter and a return parameter of each resource in the plurality of resources includes:
acquiring authorization information of the resource list according to the resource list;
and under the condition that the authorization information is the information that the resource list passes authorization, acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource.
In some possible embodiments, before obtaining the resource addresses of the plurality of resources corresponding to the resource inventory, and the request parameter and the return parameter of each resource in the plurality of resources, the method further includes:
and configuring the corresponding relation between the resource list and the resource addresses of the plurality of resources, and the request parameter and the return parameter of each resource in the plurality of resources.
In some possible embodiments, the resource types of the plurality of resources include at least one of a database table, a file, and an interface.
In some possible embodiments, in the case that the resource type of the resource is a database table, the request parameter includes a name of the database table, and the return parameter includes data of the database table.
In some possible embodiments, in the case that the resource type of the resource is a file, the request parameter includes a file address and the return parameter includes file data.
In some possible embodiments, in the case that the resource type of the resource is an interface, the request parameter includes a request parameter of the interface, and the return parameter includes a return parameter of the interface.
In some possible embodiments, a record of the acquisition of the target resource is generated and stored to the blockchain.
In some possible embodiments, before determining the resource list corresponding to the request instruction according to the request instruction and the corresponding relationship between the request instruction and the resource list, the method further includes:
and generating a resource list according to the plurality of resources, and storing the corresponding relation between the request command and the resource list in the block chain.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the information determination method as provided in any of the embodiments of the present application above.
In a fourth aspect, the present application provides a computer storage medium having computer program instructions stored thereon, where the computer program instructions, when executed by a processor, implement the information determination method as provided in any one of the above embodiments of the present application.
In a fifth aspect, the present application provides a computer program product, and instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to execute the information determination method provided in any one of the above embodiments of the present application.
According to the information determining method, the information determining device, the information determining equipment, the information determining storage medium and the computer program product, when information required by a user is obtained only by integrating multiple resources across departments and regions, a request instruction of the user for a target resource can be received; determining a resource list corresponding to the request instruction according to the request instruction and the corresponding relation between the request instruction and the resource list; acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource; for each target resource in the plurality of resources, the target resource corresponding to the return parameter of the target resource is obtained from the resource address of the target resource according to the request parameter of the target resource, the target information is determined according to the target resource, the credible joint query of cross-department and cross-region is realized, the resources needing to be subjected to cross-department and cross-region are quickly obtained, and therefore the efficiency of determining the information determined by the cross-department and cross-region resources is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an information determination method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an information determination apparatus according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to still another embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are intended to be illustrative only and are not intended to be limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
As described in the background section, with the advent of the big data age, there is an increasing demand for resource data exchange sharing. However, in the prior art, data to be shared and exchanged are usually cataloged, and the corresponding data is obtained by indexing in the form of a data directory. Therefore, data can be obtained only once, and for data requirements of various modes, data needs to be obtained from different data providers for multiple times, so that the data obtaining period is long, and reliable joint query across departments and regions cannot be realized, so that information which can be obtained by resource integration across departments and regions can be determined after resources are obtained for multiple times, and the process is complex.
The inventor finds that under the background that a resource demand party always demands resource data provided by a plurality of resource providers, the resource data can be summarized, and a reasonable and effective combined query means is set, so that an efficient and credible information determination method is provided for resource demand users, and the problems that in the prior art, the resource data acquisition period is long, and the cross-department and cross-region credible combined query cannot be realized are solved.
In order to solve the problems in the prior art, embodiments of the present application provide an information determination method, apparatus, device, storage medium, and computer program product. It should be noted that the examples provided herein are not intended to limit the scope of the present disclosure.
First, a method for determining information provided in the embodiment of the present application is described below.
Fig. 1 shows a flowchart of an information determination method according to an embodiment of the present application. As shown in fig. 1, the information determination method includes the steps of:
s110, receiving a request instruction of a user for the target information.
When a user needs target information, a request instruction for the target information is input to the terminal, and the terminal receives the request instruction corresponding to the target information from the user.
In one example, if the user needs to determine whether a qualifies for house purchase, the request instruction is an instruction to query whether a qualifies for house purchase, and whether the qualifies for house purchase is determined by the household data and the social security data of a, and the household data and the social security data of a are stored in different resource addresses.
And S120, determining the resource list corresponding to the request instruction according to the request instruction and the corresponding relation between the request instruction and the resource list.
And the terminal determines the resource list corresponding to the request instruction according to the request instruction and the corresponding relation between the request instruction and the resource list.
In one example, the request instruction is an instruction for inquiring whether A is eligible for house purchase, and the resource list corresponding to the request instruction is a list of the household data and social security data of A.
S130, acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource.
The terminal acquires resource addresses of a plurality of resources corresponding to the resource list, and request parameters and return parameters of each resource in the plurality of resources.
In one example, the plurality of resources include account data and social security data of a, where the account data and the social security data of a are respectively one target resource, a resource list of the plurality of resources corresponds to a resource address of the account data of a and a resource address of the social security data of a, and the resource list is configured with a request parameter and a return parameter of the account data of a, a request parameter and a return parameter of the social security data of a, and the terminal acquires the resource address of the account data of a and the resource address of the social security data of a, and acquires the request parameter and the return parameter of the account data of a, and the request parameter and the return parameter of the social security data of a.
S140, for each target resource in the plurality of resources, the target resource corresponding to the return parameter of the target resource is obtained from the resource address of the target resource according to the request parameter of the target resource.
The terminal responds to the request instruction of the resource list, the resource list is configured with the request parameter and the return parameter of the target resource, and for each target resource in the plurality of resources, the terminal obtains the target resource corresponding to the return parameter of the target resource from the resource address of the target resource according to the request parameter of the target resource.
In one example, the plurality of resources includes domicile data of a and social security data of a, wherein each of the domicile data of a and the social security data of a is a target resource. The terminal acquires the household registration data of the A corresponding to the return parameter of the household registration data of the A from the resource address of the household registration data of the A according to the request parameter of the household registration data of the A; and obtaining the social security data of A corresponding to the return parameter of the social security data of A from the resource address of the social security data of A according to the request parameter of the social security data of A.
S150, determining target information according to the target resource.
And the terminal determines target information according to each target.
In some embodiments, the terminal calculates the target resource corresponding to the returned parameter to obtain target information, generates message data according to the target information, returns the message data to the user,
in one example, the target resource is household data of A and social security data of A, the target information is whether A has a house purchasing qualification, if the household address in the household data of A is a preset household address and the social security payment duration in the social security data of A reaches a preset duration, it is determined that A has a house purchasing qualification; and if the household registration address in the household registration data of the A is different from the preset household registration address, or the social security payment time length in the social security data of the A does not reach the preset time length, determining that the A does not have the house purchasing qualification.
According to the method provided by the embodiment of the application, when the information required by the user is obtained by integrating a plurality of resources stored in different resource addresses across departments and regions, a request instruction of the user for the target resource can be received; determining a resource list corresponding to the request instruction according to the request instruction and the corresponding relation between the request instruction and the resource list; acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource; for each target resource in the plurality of resources, the target resource corresponding to the return parameter of the target resource is obtained from the resource address of the target resource according to the request parameter of the target resource, the target information is determined according to the target resource, the credible joint query of cross-department and cross-region is realized, the resources needing to be subjected to cross-department and cross-region are quickly obtained, and therefore the efficiency of determining the information determined by the cross-department and cross-region resources is improved. Meanwhile, the target resources are isolated from the user, sensitive target resources are protected, and the requirements of the user on the information determined by the resources can be met.
In some embodiments, the method may further comprise:
firstly, receiving request information of a user for a resource list;
when a user needs resources, the names of a plurality of resource lists and the description information of the resource lists displayed on an interface of a terminal are inquired, the user inputs the request information of the resource lists corresponding to the needed resources to the terminal according to the names of the resource lists and the description information of the resource lists, and the terminal receives the request information of the user for the resource lists.
The description information of the resource manifest may include information describing a plurality of resources.
In some embodiments, the resources required by the user include a plurality of resources stored in different resource addresses, a plurality of resource lists and description information of the resource lists displayed on an interface of the terminal are queried, the resource lists of the plurality of resources required by the user are determined according to the names and the description information of the resource lists, and the terminal receives request information of the user for the resource lists.
In one example, the resources required by the user are age data, academic data and working age data of a, the age data, the academic data and the working age data of a are stored in different resource addresses, the user inquires a resource list through a terminal, the name of the resource list is 'a's working resume ', the description information of the resource list is' a's age, academic and working age', the user determines that the required resources correspond to the resource list according to the name and the description information of the resource list, the request information of the resource list is input to the terminal, and the terminal receives the request information of the user for the resource list.
And then, acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource according to the request information.
The terminal acquires resource addresses of a plurality of resources corresponding to the resource list according to the request information of the resource list, the plurality of resources corresponding to the resource list are a plurality of resources described by the description information of the resource list, and the request parameter and the return parameter of each resource in the plurality of resources are acquired.
In one example, the plurality of resources include age data of a, academic data of a, and working age data of a, wherein the age data of a, the academic data of a, and the working age data of a are respectively one target resource, the resource list of the plurality of resources corresponds to the resource address of the age data of a, the resource address of the academic data of a, and the resource address of the working age data of a, and the resource list is configured with the request parameter and the return parameter of the age data of a, the request parameter and the return parameter of the academic data of a, and the request parameter and the return parameter of the working age data of a, and the terminal acquires the resource address of the age data of a, the resource address of the academic data of a, and the resource address of the working age data of a, and acquires the request parameter and the return parameter of the age data of a, according to the request information of the resource list of the plurality of resources, Request parameters and return parameters of the academic data of A, and request parameters and return parameters of the working age data of A.
And finally, for each target resource in the plurality of resources, acquiring the target resource corresponding to the return parameter of the target resource from the resource address of the target resource according to the request parameter of the target resource.
The terminal responds to the request instruction of the resource list, the resource list is configured with the request parameter and the return parameter of the target resource, and for each target resource in the multiple resources, the terminal obtains the target resource corresponding to the return parameter of the target resource from the resource address of the target resource according to the request parameter of the target resource.
In some embodiments, if the target resource corresponding to the return parameter is a resource required by the user, the target resources corresponding to the return parameters of the obtained target resources are directly spliced into message data, and the message data is returned to the user.
In one example, the plurality of resources include age data of a, academic data of a, and working age data of a, wherein the age data of a, the academic data of a, and the working age data of a are respectively one target resource, the terminal acquires the age data of a corresponding to the return parameter of the age data of a from the resource address of the age data of a according to the request parameter of the age data of a, the terminal acquires the academic data of a corresponding to the return parameter of the academic data of a from the resource address of the academic data of a according to the request parameter of the academic data of a, the terminal acquires the working age data of a corresponding to the return parameter of the working age data of a from the resource address of the working age data of a according to the request parameter of the working age data of a, the terminal splices the age data of a, the academic data of a, and the working age data of a into message data, and returning the message data to the user.
According to the information determining method provided by the embodiment of the application, when a user needs to store a plurality of resources of different resource addresses across departments and regions, a request instruction of the user for a resource list can be received; acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource according to the request instruction; for each target resource in the multiple resources, the target resource corresponding to the return parameter of the target resource is obtained from the resource address of the target resource according to the request parameter of the target resource, so that cross-department and cross-region credible joint query is realized, the resource sharing exchange efficiency is further improved, and the user satisfaction is improved.
In some embodiments, before obtaining the resource addresses of the plurality of resources corresponding to the resource inventory, and the request parameter and the return parameter of each resource in the plurality of resources, that is, before S130, the method may further include:
acquiring an identifier of a user; at least one resource inventory authorized for use by the user is determined based on the user identification.
When a user needs to acquire resources, the terminal acquires the identifier of the user first and determines at least one resource list used by an authorized user according to the identifier of the user so as to be used by the user.
The method provided by the embodiment of the application sets the authority of the user, and the user can only call the authorized resource list to protect the privacy of the resource.
In some embodiments, obtaining the resource addresses of the plurality of resources corresponding to the resource inventory, and the request parameter and the return parameter of each resource of the plurality of resources, i.e., S130, may include:
firstly, the authorization information of the resource list is obtained according to the resource list.
The terminal determines which authorized users' authorization information is needed by calling the resource list according to the resource list corresponding to the request instruction of the target information needed by the user, requests authorization from the authorized users, and the authorized users generate the authorization information through the terminal.
And then, under the condition that the authorization information is the information that the resource list passes authorization, acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource according to the request instruction.
And the terminal identifies the authorization information, and acquires resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource when the authorization information is information that the resource list passes authorization.
In some embodiments, a resource list needs multiple authorization information of authorized users who provide resources and/or manage resources, and when the authorization information of each authorized user is information that the resource list passes authorization, resource addresses of multiple resources corresponding to the resource list, request parameters of each resource in the multiple resources, and return parameters of each resource are obtained.
According to the method provided by the embodiment of the application, before the resource list is called, authorization information of an authorized user providing the resource and/or managing the resource needs to be obtained, and the resource list can be called only under the condition that the authorization information is information passed by the authorization of the resource list, so that the safety of the resource is protected.
In some embodiments, before obtaining the resource addresses of the plurality of resources corresponding to the resource inventory, and the request parameter and the return parameter of each resource in the plurality of resources, i.e., before S130, the method may further include:
and configuring the corresponding relation between the resource list and the resource addresses of the plurality of resources, and the request parameter and the return parameter of each resource in the plurality of resources.
The resource management user can use the terminal to configure the corresponding relation between the resource list and the resource addresses of the plurality of resources, and configure the request parameter and the return parameter of each resource in the plurality of resources.
In some embodiments, if the resource address of each of the plurality of resources is different, a corresponding relationship between the resource list of the plurality of resources and the resource address of each of the plurality of resources is configured.
The method provided by the embodiment of the application configures the corresponding relation between the resource list and the resource addresses of the plurality of resources, and the request parameter and the return parameter of each resource in the plurality of resources, and provides a basis for acquiring the resources from the resource addresses of the plurality of resources.
In some embodiments, the resource types of the plurality of resources include at least one of a database table, a file, and an interface.
The resource management user can integrate the resources of at least one resource type in the database table, the file and the interface into a resource list by using the terminal.
According to the method provided by the embodiment of the application, when the resource types of the multiple resources are different, the multiple resources can be obtained quickly, and the efficiency of determining the information determined by the multiple resources is improved.
In some embodiments, where the resource type of the resource is a database table, the request parameter comprises a name of the database table and the return parameter comprises data of the database table.
The resource management user can use the terminal to configure the request parameters and the return parameters of the database table.
The method provided by the embodiment of the application configures the request parameter and the return parameter under the condition that the resource type of the resource is the database table, and is convenient for acquiring the data of the database table.
In some embodiments, where the resource type of the resource is a file, the request parameter comprises a file address and the return parameter comprises file data.
The resource management user can use the request parameters and the return parameters of the terminal profile.
The method provided by the embodiment of the application configures the request parameter and the return parameter under the condition that the resource type of the resource is the file, and is convenient for acquiring file data.
In some embodiments, where the resource type of the resource is an interface, the request parameter comprises a request parameter of the interface and the return parameter comprises a return parameter of the interface.
The method provided by the embodiment of the application configures the request parameter and the return parameter under the condition that the resource type of the resource is the interface, and is convenient for calling the interface.
In some embodiments, the method may further comprise:
and generating a record for acquiring the target resource, and storing the record to the block chain.
And the terminal generates a record for the user to acquire the target resource and stores the record to the block chain.
The method provided by the embodiment of the application generates the record for acquiring the target resource, can clarify the user of the resource and store the record to the block chain under the condition that the user has a doubtful question about the calling authority of the resource list, and ensures the safety and the accuracy of the record.
In some embodiments, multiple resources are stored in a blockchain.
The terminal receives a plurality of resources of a plurality of departments and/or a plurality of areas, catalogs the plurality of resources, generates a data directory of the plurality of resources, records attribute information of the plurality of resources in the directory, stores the data directory to the block chain, and calls a data uplink interface according to the data directory to store the plurality of resources recorded in the data directory in the block chain.
In some embodiments, the attribute information may include information such as a resource format, a resource description, a usage condition, and when the resource type of the resource is a database table, the attribute information may include information such as a database address, an account number, a password, a database type, and a port number. When the resource type of the resource is an interface, the attribute information may include information such as a request parameter, a return parameter, a request header, a request address, and a parameter type. When the resource type of the resource is a file, the attribute information may include information such as an access address, an account number, and a password.
According to the method provided by the embodiment of the application, multiple resources of multiple departments and/or multiple departments are stored in the block chain, so that the safety and the accuracy of the resources are improved, and the resources can be conveniently shared among different departments and different areas.
In some embodiments, before determining the resource list corresponding to the request instruction according to the request instruction and the corresponding relationship between the request instruction and the resource list, that is, before S120, the method may further include:
and generating a resource list according to the plurality of resources, and storing the corresponding relation between the request command and the resource list in the block chain.
And the terminal generates a resource list of a plurality of resources according to the plurality of resources and the corresponding relation between the request instruction and the resource list, and stores the resource list in the block chain.
In some embodiments, the resource management user may create a resource list using the terminal, set names and description information of the resource list, then generate a correspondence between the resource list and resource addresses of a plurality of resources, and a correspondence between the request instruction and the resource list, and store the resource list and the correspondence between the request instruction and the resource list in the block chain.
According to the method provided by the embodiment of the application, the resource list is generated and stored in the block chain, so that a user can conveniently obtain a plurality of resources by calling one resource list.
Based on the information determination method provided in the foregoing embodiment, the present application further provides an information determination apparatus corresponding to the information determination method, and the information determination apparatus is described in detail below with reference to fig. 2.
Fig. 2 shows a schematic structural diagram of an information determination apparatus according to another embodiment of the present application. The information determination apparatus 200 shown in fig. 2 includes a receiving module 210, a determining module 220, and an obtaining module 230.
The receiving module 210 is configured to receive a request instruction of a user for target information.
A determining module 220, configured to determine, according to the request instruction and the corresponding relationship between the request instruction and the resource list, the resource list corresponding to the request instruction;
an obtaining module 230, configured to obtain resource addresses of multiple resources corresponding to the resource list, a request parameter of each resource in the multiple resources, and a return parameter of each resource; and for each target resource in the multiple resources, obtaining the target resource corresponding to the return parameter of the target resource from the resource address of the target resource according to the request parameter of the target resource.
The determining module 220 is further configured to determine target information according to the target resource.
The information determining device of the embodiment of the application can receive a request instruction of a user for a target resource when the information required by the user is obtained by integrating multiple resources across departments and regions; determining a resource list corresponding to the request instruction according to the request instruction and the corresponding relation between the request instruction and the resource list; acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource; for each target resource in the plurality of resources, the target resource corresponding to the return parameter of the target resource is obtained from the resource address of the target resource according to the request parameter of the target resource, the target information is determined according to the target resource, the credible joint query of cross-department and cross-region is realized, the resources needing to be subjected to cross-department and cross-region are quickly obtained, and therefore the efficiency of obtaining the information obtained by the resources of cross-department and cross-region is improved.
In some embodiments, the obtaining module 220 may be specifically configured to:
acquiring authorization information of the resource list according to the resource list; and under the condition that the authorization information is the information that the resource list passes authorization, acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource according to the request instruction.
The information determining apparatus provided in the embodiment of the application needs to acquire authorization information of an authorized user providing resources and/or managing resources before the resource list is called, and can call the resource list only when the authorization information is information authorized by the resource list, so as to protect the security of the resources.
In some embodiments, the information determining apparatus 200 may further include a configuration module 240.
The configuration module 240 is configured to configure a corresponding relationship between the resource manifest and resource addresses of the plurality of resources, and a request parameter and a return parameter of each resource in the plurality of resources.
The device provided by the embodiment of the application configures the corresponding relation between the resource list and the resource addresses of the plurality of resources, and the request parameter and the return parameter of each resource in the plurality of resources, and provides a basis for acquiring the resources from the resource addresses of the plurality of resources.
In some embodiments, the resource types of the plurality of resources include at least one of a database table, a file, and an interface.
The device provided by the embodiment of the application can acquire a plurality of resources at one time when the resource types of the resources are different, so that the efficiency of resource sharing and exchanging is improved.
In some embodiments, where the resource type of the resource is a database table, the request parameter comprises a name of the database table and the return parameter comprises data of the database table.
The device provided by the embodiment of the application configures the request parameter and the return parameter under the condition that the resource type of the resource is the database table, so that the data of the database table can be conveniently acquired.
In some embodiments, where the resource type of the resource is a file, the request parameter comprises a file address and the return parameter comprises file data.
The device provided by the embodiment of the application configures the request parameter and the return parameter under the condition that the resource type of the resource is the file, so that the file data can be conveniently obtained.
In some embodiments, where the resource type of the resource is an interface, the request parameter comprises a request parameter of the interface and the return parameter comprises a return parameter of the interface.
The device provided by the embodiment of the application configures the request parameter and the return parameter under the condition that the resource type of the resource is the interface, and is convenient for calling the interface.
In some embodiments, the information determining apparatus 200 may further include a generating and storing module 250.
And a generating and storing module 250, configured to generate a record of acquiring the target resource, and store the record to the blockchain.
The device provided by the embodiment of the application generates the record for acquiring the target resource, can clearly determine the user of the resource when tracing the service condition of the resource, and stores the record to the block chain, thereby ensuring the safety and accuracy of the record.
In some embodiments, the information determining apparatus 200 may further include a generating and storing module 250.
And a generating and storing module 250, configured to generate a resource list according to the multiple resources, and store the corresponding relationship between the request instruction and the resource list in the block chain.
The device provided by the embodiment of the application generates the resource list and the corresponding relation between the request instruction and the resource list, and stores the resource list and the corresponding relation between the request instruction and the resource list in the block chain, so that a user can conveniently obtain a plurality of resources by calling one resource list.
In some embodiments, multiple resources are stored in a blockchain.
The device provided by the embodiment of the application stores a plurality of resources of a plurality of departments and/or a plurality of departments in the block chain, improves the safety and the accuracy of the resources, and is convenient for resource sharing among different departments and different areas. The information determining apparatus provided in the embodiment of the present application executes each step in the method shown in fig. 1, and can implement joint query across departments and regions, and quickly obtain resources that need to be performed across departments and regions, thereby improving the efficiency of determining information determined by resources across departments and regions, which is not described in detail herein for brevity.
Fig. 3 is a schematic structural diagram of an electronic device according to still another embodiment of the present application.
The electronic device may comprise a processor 301 and a memory 302 in which computer program instructions are stored.
In particular, the processor 301 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 302 may include mass storage for data or instructions. By way of example, and not limitation, memory 302 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 302 may include removable or non-removable (or fixed) media, where appropriate. The memory 302 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 302 is non-volatile solid-state memory.
The memory may include Read Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors), it is operable to perform operations described with reference to the methods according to an aspect of the present disclosure.
The processor 301 realizes any one of the information determination methods in the above embodiments by reading and executing computer program instructions stored in the memory 302.
In one example, the electronic device may also include a communication interface 303 and a bus 310. As shown in fig. 3, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 to complete communication therebetween.
The communication interface 303 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiment of the present application.
Bus 310 includes hardware, software, or both to couple the components of the online data traffic billing device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 310 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The electronic device may execute the information determination method in the embodiment of the present application based on a user request resource request instruction, so as to implement the information determination method described in fig. 1.
In addition, in combination with the information determination method in the foregoing embodiments, the embodiments of the present application may be implemented by providing a computer storage medium. The computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement any of the information determination methods in the above embodiments.
In combination with the information determination method in the foregoing embodiments, the embodiments of the present application may be implemented by providing a computer program product. The instructions in the computer program product, when executed by a processor of an electronic device, implement any of the information determination methods in the above embodiments.
It is to be understood that the present application is not limited to the particular arrangements and instrumentality described above and shown in the attached drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions or change the order between the steps after comprehending the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations 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, or other programmable information determining apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable information determining apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware for performing the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As described above, only the specific embodiments of the present application are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered within the scope of the present application.

Claims (14)

1. An information determination method, comprising:
receiving a request instruction of a user for target information;
determining the resource list corresponding to the request instruction according to the request instruction and the corresponding relation between the request instruction and the resource list;
acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource;
for each target resource in the plurality of resources, acquiring a target resource corresponding to a return parameter of the target resource from a resource address of the target resource according to a request parameter of the target resource;
and determining the target information according to the target resource.
2. The method of claim 1, wherein the obtaining resource addresses of a plurality of resources corresponding to the resource inventory, and a request parameter and a return parameter of each resource in the plurality of resources comprises:
acquiring authorization information of the resource list according to the resource list;
and under the condition that the authorization information is the information that the resource list passes authorization, acquiring resource addresses of a plurality of resources corresponding to the resource list, request parameters of each resource in the plurality of resources and return parameters of each resource.
3. The method of claim 1, wherein prior to obtaining resource addresses of a plurality of resources corresponding to the resource inventory, and request parameters and return parameters for each of the plurality of resources, the method further comprises:
and configuring the corresponding relation between the resource list and the resource addresses of the plurality of resources, and the request parameter and the return parameter of each resource in the plurality of resources.
4. The method of any one of claims 1 to 3, wherein the resource types of the plurality of resources comprise at least one of a database table, a file, and an interface.
5. The method of claim 4, wherein in the case that the resource type of the resource is a database table, the request parameter comprises a name of the database table, and the return parameter comprises data of the database table.
6. The method according to claim 4, wherein in the case that the resource type of the resource is a file, the request parameter comprises a file address, and the return parameter comprises file data.
7. The method according to claim 4, wherein in the case that the resource type of the resource is an interface, the request parameter comprises a request parameter of the interface, and the return parameter comprises a return parameter of the interface.
8. The method of claim 1, further comprising:
and generating a record for acquiring the target resource, and storing the record to a block chain.
9. The method of claim 1, wherein the plurality of resources are stored in a blockchain.
10. The method according to claim 1, wherein before the determining the resource list corresponding to the request instruction according to the request instruction and the corresponding relationship between the request instruction and the resource list, the method further comprises:
and generating the resource list according to the plurality of resources, and storing the corresponding relation between the request instruction and the resource list in a block chain.
11. An information determination apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving a request instruction of a user for target information;
the determining module is used for determining the resource list corresponding to the request instruction according to the request instruction and the corresponding relation between the request instruction and the resource list;
an obtaining module, configured to obtain resource addresses of multiple resources corresponding to the resource list, and a request parameter and a return parameter of each resource in the multiple resources; the resource management module is also used for acquiring a target resource corresponding to a return parameter of the target resource from a resource address of the target resource according to the request parameter of the target resource for each target resource in the plurality of resources;
the determining module is further configured to determine the target information according to the target resource.
12. An electronic device, characterized in that the device comprises: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the information determination method of any of claims 1-10.
13. A computer-readable storage medium, having computer program instructions stored thereon, which, when executed by a processor, implement the information determination method of any one of claims 1-10.
14. A computer program product, wherein instructions in the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the information determination method of any one of claims 1-10.
CN202210320656.6A 2022-03-29 2022-03-29 Information determination method, device, equipment, storage medium and computer program product Pending CN114675970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210320656.6A CN114675970A (en) 2022-03-29 2022-03-29 Information determination method, device, equipment, storage medium and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210320656.6A CN114675970A (en) 2022-03-29 2022-03-29 Information determination method, device, equipment, storage medium and computer program product

Publications (1)

Publication Number Publication Date
CN114675970A true CN114675970A (en) 2022-06-28

Family

ID=82076855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210320656.6A Pending CN114675970A (en) 2022-03-29 2022-03-29 Information determination method, device, equipment, storage medium and computer program product

Country Status (1)

Country Link
CN (1) CN114675970A (en)

Similar Documents

Publication Publication Date Title
CN107808345B (en) Information processing method and device, terminal and server
CN109314703B (en) Method for managing the status of a connected device
CN110856126B (en) Information reporting and receiving method, terminal equipment and storage medium
CN105227786A (en) A kind of means of communication based on virtual-number and device
CN106600275B (en) Risk identification method and device
CN112671870B (en) Data processing method and device, electronic equipment and storage medium
CN111918243A (en) Digital vehicle key management method and device, vehicle and storage medium
CN111339151B (en) Online examination method, device, equipment and computer storage medium
CN111461763A (en) Resource allocation method and device
CN111353176A (en) Method and system for inquiring block chain data
CN111914279B (en) Efficient and accurate privacy intersection system, method and device
CN112669043A (en) Card binding method, terminal device, authentication server and storage medium
CN113852639B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN109829696B (en) Block chain-based electronic license management method, device, equipment and medium
CN113795008B (en) V2X signature verification method and device, electronic equipment and readable storage medium
CN114675970A (en) Information determination method, device, equipment, storage medium and computer program product
CN109034759B (en) Data transfer method and related equipment
CN115913625A (en) Information processing method, device, equipment, medium and product
CN112437427B (en) Card writing method, device, equipment and computer readable storage medium
CN114553586A (en) Data acquisition method, apparatus, device, medium, and program product
CN114372072A (en) Data storage method, device, equipment, computer storage medium and program product
CN110417851B (en) Data matching method, hosting platform, storage medium and computer equipment
CN114663089A (en) Data processing method and device, electronic equipment and storage medium
CN114385695A (en) Information query method, device, equipment and computer readable storage medium
CN110544104A (en) Account determining method and device, storage medium and electronic 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