Data reading method, device, equipment, computer program product and readable storage medium

By obtaining user needs and determining the corresponding relationship between the type of data type and data source in the data reading method, the conditional logic duplication of the conditional judgment logic in different scenarios is solved, the automatic selection scenario and the calculation status results are realized, the development efficiency is improved, and the development efficiency is improved and the development efficiency is improved and the development efficiency is improved and the development efficiency is improved and the development efficiency is improved and the development efficiency is improved and the development efficiency is improved. Realize software decoupling.

CN118861105BActive Publication Date: 2025-01-28INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411356433.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-28
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

When conducting system queries in different business scenarios, the existing technology needs to repeatedly implement the conditional judgment logic, which increases the workload and does not realize decoupling in software design.

Method used

By obtaining user needs, determine the data type and data source, set the corresponding relationship, obtain the user input and compare the effectiveness of its effectiveness, determine the output domain and data source, establish a domain index, and obtain data from the data source as the output content.

Benefits of technology

The result of automatic selection of the scene and calculating the status results to be obtained at any time, saving the process of manually implementing judgment logic, improving development efficiency, and achieving software decoupling between different modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118861105B_ABST
    Figure CN118861105B_ABST
Patent Text Reader

Abstract

The present application discloses a data reading method, device, equipment, computer program product and readable storage medium, and relates to the field of data query technology. The method includes: obtaining user needs, determining the data type of at least one user to read data as the output domain according to the user needs; determining the data source that provides data for the data type in the output domain according to the output domain; setting the corresponding relationship between the data type and the data source; obtaining user input, comparing the user input in the input linked list to see if it is a valid input; in response to the user input being a valid input, determining the output domain and data source corresponding to the user input; determining the domain index according to the output domain; obtaining the corresponding data from the data source as the output content according to the domain index. This allows it to automatically select a scene at any time and calculate the state result to be obtained, and obtain the desired data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data query technology, and in particular to a data reading method, device, equipment, computer program product and readable storage medium. Background Art

[0002] With the development of computer technology, the scale of system-level processes is often very large. The scenarios involved in system-level processes are often very complex, and the scenario states faced at different times are also different. Taking user query as an example, when a user wants to query a system status, the system status is calculated in different scenarios (for example: version upgrade scenario and flying version upgrade scenario) in completely different ways. Therefore, before querying the system status, it is necessary to judge the scenario first, and then use the calculation method under the corresponding scenario for calculation. For this query method, every time the developer faces such a complex process, he needs to re-implement the conditional judgment logic under different scenario states, which increases the workload. For the process of querying the status, the specific calculation method of each different scenario is exposed, and the decoupling in software design is not achieved. Summary of the invention

[0003] In order to avoid repeated conditional judgment logic when querying the system in different business scenarios, this application provides the following technical solutions:

[0004] In a first aspect, a data reading method is provided, comprising:

[0005] Obtain user requirements, and determine at least one data type of data to be read by the user as an output domain according to the user requirements;

[0006] According to the output domain, determine the data source that provides data for the data type in the output domain;

[0007] Set the correspondence between data types and data sources;

[0008] Obtain user input, and compare the user input in an input linked list to see whether it is a valid input, wherein the input linked list stores at least one preset input, and according to any preset input of the at least one preset input, output content corresponding to the preset input can be obtained;

[0009] In response to the user input being a valid input, determining an output domain corresponding to the user input and a data source;

[0010] According to the output domain, determine the domain index;

[0011] According to the domain index, the corresponding data is obtained from the data source as output content.

[0012] Furthermore, obtaining user input and comparing the user input in the input linked list to see whether it is valid input includes:

[0013] Traverse at least one preset input in the input linked list and match it with the user input;

[0014] In response to the presence of a preset input matching the user input in the input chain list, the corresponding preset input is identified as a valid input.

[0015] Further, in response to the user input being a valid input, determining an output domain corresponding to the user input and a data source includes:

[0016] According to the user input, determining the application instance corresponding to the user input through the first pointer, wherein the first pointer is used to address the corresponding application instance according to the user input and obtain the application instance;

[0017] According to the application example, the output field corresponding to the user input is determined.

[0018] Further, according to the output domain, a domain index is determined, including:

[0019] Get the business requirements corresponding to the output domain;

[0020] According to business requirements, an association is established from the output domain to the data collection module corresponding to the business requirements as a domain index.

[0021] Furthermore, according to the domain index, corresponding data is obtained from the data source as output content, including:

[0022] Extract the corresponding data in the data source pointed to by the domain index;

[0023] Fill the corresponding data in the data source pointed to by the domain index into the output domain;

[0024] The output domain filled with data is used as the output content.

[0025] Furthermore, before obtaining user input, it also includes:

[0026] determining the number of domains corresponding to the preset input;

[0027] Set an empty linked list as the initial state of the input linked list;

[0028] Sets an output fields array of length number of fields as output fields.

[0029] Furthermore, the value of the number of domains is a constant.

[0030] Further, the data source includes a target data object;

[0031] After setting the output domain array with a length equal to the number of domains as the output domains, it also includes:

[0032] Create a corresponding target data object for the output domain and set a unique domain index for the target data object;

[0033] Add the target data object to the output domain array, making sure that the number of output domains is the same as the number of domains.

[0034] Furthermore, after adding the target data object to the output domain array, the method further includes:

[0035] Set a preset input corresponding to the output content, and set a corresponding valid flag for the preset input, wherein the valid flag identifies the user input as valid when the preset input matches the user input;

[0036] Get the data source array corresponding to the preset input, where the number of data source arrays is the same as the number of domains;

[0037] Adds a preset input to the input chain.

[0038] Furthermore, the preset input is added to the input linked list, including:

[0039] Add the preset input from the end of the input linked list to the input linked list.

[0040] Furthermore, after adding the preset input to the input linked list, it also includes:

[0041] Specify the data source and domain index corresponding to the data source array;

[0042] Monitor data changes in the data source so that when the data in the data source changes, update the data in the output content that corresponds to the changed data.

[0043] Furthermore, data changes in the data source are monitored, including:

[0044] In response to any data change in the data source, a data update notification is triggered;

[0045] According to the data update notification, read the latest data and replace the corresponding data in the output domain as the updated output content.

[0046] Furthermore, in response to any data change in the data source, a data update notification is triggered, including:

[0047] Perform numerical monitoring of data in the data source through the data interface;

[0048] In response to the value change of the data in the data source, a data update notification is sent to the output domain;

[0049] Get updated data through domain index;

[0050] And replace the corresponding pre-update data with the updated data in the output domain.

[0051] Furthermore, the user input also includes an authentication request;

[0052] Before determining the output domain corresponding to the user input and the data source, it also includes:

[0053] Obtaining an authentication request from a user input, wherein the authentication request includes at least a user name and a password;

[0054] Determine the user level corresponding to the user based on the user name and password;

[0055] Determine whether the access level of the output domain corresponding to the user input corresponds to the user level;

[0056] In response to the access level of the output domain corresponding to the user level, the output content is fed back to the user.

[0057] Further, in response to the access level of the output domain not corresponding to the user level, the response to the current user input is terminated and an error prompt message is returned.

[0058] Furthermore, obtaining corresponding data from the data source as output content also includes:

[0059] Establishing a TLS handshake with the client that provides user input, determining the encryption method and key used for transmitting data, where the key includes a public key for encryption and a private key for decryption by the corresponding client;

[0060] The data in the data source is encrypted using a public key to obtain an encrypted output;

[0061] The encrypted output is transmitted to the user's client, so that the client can use the private key to decrypt the encrypted output and obtain the corresponding output content.

[0062] Further, a TLS handshake is established with the client providing the user input, including:

[0063] Receive a handshake request from the client, where the handshake request includes the TLS version, encryption algorithm list, and compression algorithm supported by the client;

[0064] In response to the handshake request, a handshake message is sent to the client, wherein the handshake message includes a TLS version determined according to the TLS version supported by the client and an encryption algorithm determined according to the encryption algorithm list;

[0065] Send a certificate message to the client for the client to verify the certificate;

[0066] In response to the client verifying the certificate, a key is generated for encrypting and decrypting the output content.

[0067] In a second aspect, a data reading device is provided, comprising:

[0068] An input acquisition module, used to acquire user input and compare the user input in an input linked list to see whether it is a valid input, wherein the input linked list stores at least one preset input, and according to any preset input of the at least one preset input, output content corresponding to the preset input can be acquired;

[0069] An input corresponding module, for determining an output domain and a data source corresponding to the user input in response to the user input being a valid input;

[0070] An index determination module, used for determining a domain index according to an output domain;

[0071] The output generation module is used to obtain corresponding data from the data source as output content according to the domain index.

[0072] In a third aspect, a computer device is provided, comprising a memory, a processor, and a data reading program stored in the memory and executable on the processor, wherein when the processor executes the data reading program, the data reading method described in the first aspect is implemented.

[0073] According to a fourth aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the data reading method described in the first aspect.

[0074] In a fifth aspect, a computer-readable storage medium is provided, on which a data reading program is stored. When the data reading program is executed by a processor, the data reading method recorded in the first aspect is implemented.

[0075] The beneficial effect brought about by the technical solution provided by the embodiments of the present application is: by implementing the data reading method, device, equipment, computer program product and readable storage medium disclosed in the embodiments of the present application, it is possible to automatically select the scene and calculate the state result to be obtained at any time, and the desired data can be obtained by using it correctly. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0077] Figure 1 is a schematic diagram of a data reading method provided in an embodiment of the present application;

[0078] Figure 2 It is a schematic diagram of the effect of implementing the data reading method provided in the embodiment of the present application;

[0079] Figure 3 is a schematic diagram of a data reading device provided in an embodiment of the present application;

[0080] Figure 4 It is a schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0081] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in the implementation mode of this application will be clearly and completely described below in conjunction with the drawings in the implementation mode of this application. Obviously, the described implementation mode is only a part of the embodiments of this application, not all embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0082] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure shall have the usual meanings understood by persons with ordinary skills in the field to which the present disclosure belongs. The words "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one", "one" or "the" do not indicate a quantity limitation, but indicate that there is at least one. The numbers in the drawings of the specification only indicate the distinction between various functional components or modules, and do not indicate the logical relationship between components or modules. Words such as "include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0083] Hereinafter, various embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. It should be noted that in the accompanying drawings, the same reference numerals are given to components having substantially the same or similar structures and functions, and repeated descriptions thereof will be omitted.

[0084] For system queries in different business scenarios, there are repeated condition judgment logic and software is not decoupled, which leads to increased query workload. This application provides the following technical solutions.

[0085] In some embodiments, Figure 1 As shown, the data reading method includes:

[0086] S100: Obtaining user requirements, and determining at least one data type of data to be read by the user as an output field according to the user requirements;

[0087] S200: Determine, according to the output domain, a data source that provides data for the data type in the output domain;

[0088] S300: Setting the correspondence between data types and data sources;

[0089] S400: obtaining user input, and comparing the user input in an input linked list to determine whether it is a valid input, wherein the input linked list stores at least one preset input, and according to any preset input of the at least one preset input, output content corresponding to the preset input can be obtained;

[0090] S500: In response to the user input being a valid input, determining an output domain and a data source corresponding to the user input;

[0091] S600: Determine a domain index according to the output domain;

[0092] S700: According to the domain index, corresponding data is obtained from the data source as output content.

[0093] Accordingly, as a virtual device that is a carrier of data reading methods, hereinafter referred to as a "multiplexer", it has three main elements, such as Figure 2 As shown. It includes: the number of domains, the output domain array and the input linked list. Among them, the number of domains, the number of domains determines how many types of data to output, and all multiplexer inputs must meet the number of domains requirements; the output domain array, the output domain array contains multiple output domains, each output domain contains the specific domain data that the multiplexer wants to obtain; the input linked list is used to save the multiplexer input. The core of the multiplexer is to achieve the effect of multiplexing through multiple inputs. Only one input is valid at the same time. The input linked list is also used to mount the linked list node of the multiplexer input.

[0094] Accordingly, the multiplexer input includes: the first pointer, the linked list node, the activation flag, and the data source array:

[0095] The first pointer is used to address the multiplexer in reverse order.

[0096] Linked list node, used to mount the multiplexer input into the input linked list of the multiplexer.

[0097] Activation flag. Since only one input of the multiplexer is valid at the same time, the validity of the multiplexer input must be controlled by the activation flag.

[0098] Data source array: The core of the multiplexer input is to provide the data source. The length of the data source array is the same as the number of domains of the multiplexer. Each element is a data source used to provide data for each corresponding output domain.

[0099] Accordingly, the multiplexer output includes: a second pointer and a domain index.

[0100] Second pointer: used to reverse address the multiplexer.

[0101] Domain index: The multiplexer contains multiple domains, and the domain index is used to specify which domain's data is to be obtained.

[0102] Specifically, S100: obtaining user input, and comparing the user input in the input linked list to see whether it is valid input, includes:

[0103] S110: traverse at least one preset input in the input linked list and match it with the user input;

[0104] S120: In response to the presence of a preset input matching the user input in the input chain list, the corresponding preset input is identified as a valid input.

[0105] Specifically, S200: in response to the user input being a valid input, determining an output domain corresponding to the user input and a data source, including:

[0106] According to the user input, determining the application instance corresponding to the user input through the first pointer, wherein the first pointer is used to address the corresponding application instance according to the user input and obtain the application instance;

[0107] According to the application example, the output field corresponding to the user input is determined.

[0108] Based on the output domain, determine the domain index, including:

[0109] Get the business requirements corresponding to the output domain;

[0110] According to business requirements, an association is established from the output domain to the data collection module corresponding to the business requirements as a domain index.

[0111] According to the domain index, the corresponding data is obtained from the data source as output content, including:

[0112] Extract the corresponding data in the data source pointed to by the domain index;

[0113] Fill the corresponding data in the data source pointed to by the domain index into the output domain;

[0114] The output domain filled with data is used as the output content.

[0115] Typically, the linked list nodes corresponding to the user input are converted into multiplexer inputs by traversing the multiplexer input linked list, and the valid identifiers of the corresponding multiplexer inputs are activated.

[0116] During the traversal process, if the multiplexer input is valid, the multiplexer input is obtained, otherwise, the next multiplexer input domain is compared with the user input until the multiplexer input corresponding to the user input is obtained; or when no valid multiplexer input is obtained after traversing the multiplexer input linked list, information about the acquisition failure is fed back.

[0117] Whether the multiplexer output is valid depends on whether the multiplexer input is valid. The criteria are:

[0118] If the multiplexer input acquisition fails, the multiplexer output is invalid; otherwise, it is valid.

[0119] Before getting user input, also include:

[0120] determining the number of domains corresponding to the preset input;

[0121] Set an empty linked list as the initial state of the input linked list;

[0122] Sets an output fields array of length number of fields as output fields.

[0123] The value of the number of fields is a constant.

[0124] There are two stages to creating a "multiplexer" as described above. The first stage is to initialize the multiplexer: you need to specify the number of domains of the multiplexer; create an empty linked list as the input list of the multiplexer; and create an array with a length equal to the number of domains as the output domain of the multiplexer.

[0125] The second stage is to determine whether the data element is legal: by traversing the multiplexer input linked list, each multiplexer input is obtained; in the data source array of the face-changing multiplexer input, it is determined whether each data source has been set. Only when each data source has been set, the multiplexer is created and reaches a usable state.

[0126] The data source includes the target data object;

[0127] After setting the output domain array with a length equal to the number of domains as the output domains, it also includes:

[0128] Create a corresponding target data object for the output domain and set a unique domain index for the target data object;

[0129] Add the target data object to the output domain array, making sure that the number of output domains is the same as the number of domains.

[0130] Specifically, after adding the target data object to the output domain array, it also includes:

[0131] Set a preset input corresponding to the output content, and set a corresponding valid flag for the preset input, wherein the valid flag identifies the user input as valid when the preset input matches the user input;

[0132] Get the data source array corresponding to the preset input, where the number of data source arrays is the same as the number of domains;

[0133] Adds a preset input to the input chain.

[0134] Specifically, add the preset input to the input linked list, including:

[0135] Add the preset input from the end of the input linked list to the input linked list.

[0136] Specifically, after adding the preset input to the input linked list, it also includes:

[0137] Specify the data source and domain index corresponding to the data source array;

[0138] Monitor data changes in the data source so that when the data in the data source changes, update the data in the output content that corresponds to the changed data.

[0139] Specifically, monitor data changes in data sources, including:

[0140] In response to any data change in the data source, a data update notification is triggered;

[0141] According to the data update notification, read the latest data and replace the corresponding data in the output domain as the updated output content.

[0142] Specifically, in response to any data change in the data source, a data update notification is triggered, including:

[0143] Perform numerical monitoring of data in the data source through the data interface;

[0144] In response to the value change of the data in the data source, a data update notification is sent to the output domain;

[0145] Get updated data through domain index;

[0146] And replace the corresponding pre-update data with the updated data in the output domain.

[0147] The data source can be in the form of an application programming interface, a database connection, or any other service that can provide data. When the data in the data source changes, a mechanism for triggering events is set up, for example: when the data update is obtained, a notification is sent to the multiplexer. The multiplexer can subscribe to the change events of the above data source through listeners, callback functions, etc. When the data in the data source is updated, the listening event is triggered. When the multiplexer listens to the event, it reads the latest data and updates the data in the output field of the multiplexer.

[0148] Preferably, the user input also includes an authentication request;

[0149] Before determining the output domain corresponding to the user input and the data source, it also includes:

[0150] Obtaining an authentication request from a user input, wherein the authentication request includes at least a user name and a password;

[0151] Determine the user level corresponding to the user based on the user name and password;

[0152] Determine whether the access level of the output domain corresponding to the user input corresponds to the user level;

[0153] In response to the access level of the output domain corresponding to the user level, the output content is fed back to the user.

[0154] Optionally, in response to the access level of the output domain not corresponding to the user level, the response to the current user input is terminated and an error prompt message is returned.

[0155] Preferably, obtaining corresponding data from a data source as output content also includes:

[0156] Establishing a TLS handshake with the client that provides user input, determining the encryption method and key used for transmitting data, where the key includes a public key for encryption and a private key for decryption by the corresponding client;

[0157] The data in the data source is encrypted using a public key to obtain an encrypted output;

[0158] The encrypted output is transmitted to the user's client, so that the client can use the private key to decrypt the encrypted output and obtain the corresponding output content.

[0159] Specifically, a TLS handshake is established with the client providing user input, including:

[0160] Receive a handshake request from the client, where the handshake request includes the TLS version, encryption algorithm list, and compression algorithm supported by the client;

[0161] In response to the handshake request, a handshake message is sent to the client, wherein the handshake message includes a TLS version determined according to the TLS version supported by the client and an encryption algorithm determined according to the encryption algorithm list;

[0162] Send a certificate message to the client for the client to verify the certificate;

[0163] In response to the client verifying the certificate, a key is generated for encrypting and decrypting the output content.

[0164] The encrypted multiplexer output is transmitted to the client where the user is located, so that the client can use the private key to decrypt the encrypted multiplexer output and obtain the corresponding multiplexer output. Data security is guaranteed by means of encrypted data transmission.

[0165] The final effect achieved by the multiplexer is as follows: Figure 2 shown.

[0166] For multiplexer inputs, any multiplexer input provides a set of data sources, and the number of multiplexer inputs is unlimited. Figure 2 The case with 4 multiplexer inputs is shown in .

[0167] The type of data source corresponds to the number of output fields, such as Figure 2 As shown, there are 5 output domains in total, so each multiplexer input also has 5 fixed data sources.

[0168] Only one input is effective at the same time. For example, when multiplexer input 1 is effective, output domains 1 to 5 correspond to data sources 1 to 5 of the input of multiplexer 1 respectively.

[0169] It should be noted that when using the multiplexer, the following contents must be strictly followed:

[0170] 1. Create a multiplexer. Note that you must specify the number of domains of the multiplexer when creating it. Once the number of domains is specified, it cannot be changed.

[0171] 2. Add output to the multiplexer:

[0172] (1) Only one multiplexer output can be added at a time, and a domain index value must be specified when adding an output, indicating which output domain this output corresponds to.

[0173] (2) The total number of added multiplexer outputs must be exactly the same as the number of domains when the multiplexer was created. If it is greater than the number of multiplexer domains, the action of adding outputs will fail; if it is less than the number of multiplexer domains, the next step cannot be performed.

[0174] (3) Add input to the multiplexer. Note:

[0175] i. A multiplexer can create multiple multiplexer inputs, which need to be created in sequence.

[0176] ii. For each input to be created, an activation flag must be specified, which is used to determine whether the input is valid.

[0177] iii. After creating the input, you need to supplement the data source for the multiplexer input.

[0178] (4) The second stage of executing the multiplexer creation is to determine whether the data source is legal. If the result is legal, the multiplexer can be used normally.

[0179] After completing the above steps, the output data of the multiplexer can be read normally.

[0180] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0181] In other embodiments, Figure 3 As shown, the data reading device comprises:

[0182] An input acquisition module, used to acquire user input and compare the user input in an input linked list to see whether it is a valid input, wherein the input linked list stores at least one preset input, and according to any preset input of the at least one preset input, output content corresponding to the preset input can be acquired;

[0183] An input corresponding module, for determining an output domain and a data source corresponding to the user input in response to the user input being a valid input;

[0184] An index determination module, used for determining a domain index according to an output domain;

[0185] The output generation module is used to obtain corresponding data from the data source as output content according to the domain index.

[0186] The specific definition of the data reading device described above can be found in the definition of the data reading method described above, which will not be repeated here. Each module in the above data reading device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0187] In other embodiments, Figure 4 As shown, a computer device includes a memory, a processor, and a data reading program stored in the memory and executable on the processor. When the processor executes the data reading program, the data reading method described above is implemented. Specifically, it includes:

[0188] Obtain user requirements, and determine at least one data type of data to be read by the user as an output domain according to the user requirements;

[0189] According to the output domain, determine the data source that provides data for the data type in the output domain;

[0190] Set the correspondence between data types and data sources;

[0191] Obtain user input, and compare the user input in an input linked list to see whether it is a valid input, wherein the input linked list stores at least one preset input, and according to any preset input of the at least one preset input, output content corresponding to the preset input can be obtained;

[0192] In response to the user input being a valid input, determining an output domain corresponding to the user input and a data source;

[0193] According to the output domain, determine the domain index;

[0194] According to the domain index, the corresponding data is obtained from the data source as output content.

[0195] Specifically, obtaining user input and comparing the user input in the input linked list to see whether it is valid input includes:

[0196] Traverse at least one preset input in the input linked list and match it with the user input;

[0197] In response to the presence of a preset input matching the user input in the input chain list, the corresponding preset input is identified as a valid input.

[0198] Specifically, in response to the user input being a valid input, determining an output domain corresponding to the user input and a data source includes:

[0199] According to the user input, determining the application instance corresponding to the user input through the first pointer, wherein the first pointer is used to address the corresponding application instance according to the user input and obtain the application instance;

[0200] According to the application example, the output field corresponding to the user input is determined.

[0201] Based on the output domain, determine the domain index, including:

[0202] Get the business requirements corresponding to the output domain;

[0203] According to business requirements, an association is established from the output domain to the data collection module corresponding to the business requirements as a domain index.

[0204] According to the domain index, the corresponding data is obtained from the data source as output content, including:

[0205] Extract the corresponding data in the data source pointed to by the domain index;

[0206] Fill the corresponding data in the data source pointed to by the domain index into the output domain;

[0207] The output domain filled with data is used as the output content.

[0208] Before getting user input, also include:

[0209] determining the number of domains corresponding to the preset input;

[0210] Set an empty linked list as the initial state of the input linked list;

[0211] Sets an output fields array of length number of fields as output fields.

[0212] The value of the number of fields is a constant.

[0213] The data source includes the target data object;

[0214] After setting the output domain array with a length equal to the number of domains as the output domains, it also includes:

[0215] Create a corresponding target data object for the output domain and set a unique domain index for the target data object;

[0216] Add the target data object to the output domain array, making sure that the number of output domains is the same as the number of domains.

[0217] Specifically, after adding the target data object to the output domain array, it also includes:

[0218] Set a preset input corresponding to the output content, and set a corresponding valid flag for the preset input, wherein the valid flag identifies the user input as valid when the preset input matches the user input;

[0219] Get the data source array corresponding to the preset input, where the number of data source arrays is the same as the number of domains;

[0220] Adds a preset input to the input chain.

[0221] Specifically, add the preset input to the input linked list, including:

[0222] Add the preset input from the end of the input linked list to the input linked list.

[0223] Specifically, after adding the preset input to the input linked list, it also includes:

[0224] Specify the data source and domain index corresponding to the data source array;

[0225] Monitor data changes in the data source so that when the data in the data source changes, update the data in the output content that corresponds to the changed data.

[0226] Specifically, monitor data changes in data sources, including:

[0227] In response to any data change in the data source, a data update notification is triggered;

[0228] According to the data update notification, read the latest data and replace the corresponding data in the output domain as the updated output content.

[0229] Specifically, in response to any data change in the data source, a data update notification is triggered, including:

[0230] Perform numerical monitoring of data in the data source through the data interface;

[0231] In response to the value change of the data in the data source, a data update notification is sent to the output domain;

[0232] Get updated data through domain index;

[0233] And replace the corresponding pre-update data with the updated data in the output domain.

[0234] Preferably, the user input also includes an authentication request;

[0235] Before determining the output domain corresponding to the user input and the data source, it also includes:

[0236] Obtaining an authentication request from a user input, wherein the authentication request includes at least a user name and a password;

[0237] Determine the user level corresponding to the user based on the user name and password;

[0238] Determine whether the access level of the output domain corresponding to the user input corresponds to the user level;

[0239] In response to the access level of the output domain corresponding to the user level, the output content is fed back to the user.

[0240] Optionally, in response to the access level of the output domain not corresponding to the user level, the response to the current user input is terminated and an error prompt message is returned.

[0241] Preferably, obtaining corresponding data from a data source as output content also includes:

[0242] Establishing a TLS handshake with the client that provides user input, determining the encryption method and key used for transmitting data, where the key includes a public key for encryption and a private key for decryption by the corresponding client;

[0243] The data in the data source is encrypted using a public key to obtain an encrypted output;

[0244] The encrypted output is transmitted to the user's client, so that the client can use the private key to decrypt the encrypted output and obtain the corresponding output content.

[0245] Specifically, a TLS handshake is established with the client providing user input, including:

[0246] Receive a handshake request from the client, where the handshake request includes the TLS version, encryption algorithm list, and compression algorithm supported by the client;

[0247] In response to the handshake request, a handshake message is sent to the client, wherein the handshake message includes a TLS version determined according to the TLS version supported by the client and an encryption algorithm determined according to the encryption algorithm list;

[0248] Send a certificate message to the client for the client to verify the certificate;

[0249] In response to the client verifying the certificate, a key is generated for encrypting and decrypting the output content.

[0250] In some other embodiments, a computer program product includes a computer program, and when the computer program is executed by a processor, the data reading method described above is implemented. Specifically, it includes:

[0251] Obtain user requirements, and determine at least one data type of data to be read by the user as an output domain according to the user requirements;

[0252] According to the output domain, determine the data source that provides data for the data type in the output domain;

[0253] Set the correspondence between data types and data sources;

[0254] Obtain user input, and compare the user input in an input linked list to see whether it is a valid input, wherein the input linked list stores at least one preset input, and according to any preset input of the at least one preset input, output content corresponding to the preset input can be obtained;

[0255] In response to the user input being a valid input, determining an output domain corresponding to the user input and a data source;

[0256] According to the output domain, determine the domain index;

[0257] According to the domain index, the corresponding data is obtained from the data source as output content.

[0258] Specifically, obtaining user input and comparing the user input in the input linked list to see whether it is valid input includes:

[0259] Traverse at least one preset input in the input linked list and match it with the user input;

[0260] In response to the presence of a preset input matching the user input in the input chain list, the corresponding preset input is identified as a valid input.

[0261] Specifically, in response to the user input being a valid input, determining an output domain corresponding to the user input and a data source includes:

[0262] According to the user input, determining the application instance corresponding to the user input through the first pointer, wherein the first pointer is used to address the corresponding application instance according to the user input and obtain the application instance;

[0263] According to the application example, the output field corresponding to the user input is determined.

[0264] Based on the output domain, determine the domain index, including:

[0265] Get the business requirements corresponding to the output domain;

[0266] According to business requirements, an association is established from the output domain to the data collection module corresponding to the business requirements as a domain index.

[0267] According to the domain index, the corresponding data is obtained from the data source as output content, including:

[0268] Extract the corresponding data in the data source pointed to by the domain index;

[0269] Fill the corresponding data in the data source pointed to by the domain index into the output domain;

[0270] The output domain filled with data is used as the output content.

[0271] Before getting user input, also include:

[0272] determining the number of domains corresponding to the preset input;

[0273] Set an empty linked list as the initial state of the input linked list;

[0274] Sets an output fields array of length number of fields as output fields.

[0275] The value of the number of fields is a constant.

[0276] The data source includes the target data object;

[0277] After setting the output domain array with a length equal to the number of domains as the output domains, it also includes:

[0278] Create a corresponding target data object for the output domain and set a unique domain index for the target data object;

[0279] Add the target data object to the output domain array, making sure that the number of output domains is the same as the number of domains.

[0280] Specifically, after adding the target data object to the output domain array, it also includes:

[0281] Set a preset input corresponding to the output content, and set a corresponding valid flag for the preset input, wherein the valid flag identifies the user input as valid when the preset input matches the user input;

[0282] Get the data source array corresponding to the preset input, where the number of data source arrays is the same as the number of domains;

[0283] Adds a preset input to the input chain.

[0284] Specifically, add the preset input to the input linked list, including:

[0285] Add the preset input from the end of the input linked list to the input linked list.

[0286] Specifically, after adding the preset input to the input linked list, it also includes:

[0287] Specify the data source and domain index corresponding to the data source array;

[0288] Monitor data changes in the data source so that when the data in the data source changes, update the data in the output content that corresponds to the changed data.

[0289] Specifically, monitor data changes in data sources, including:

[0290] In response to any data change in the data source, a data update notification is triggered;

[0291] According to the data update notification, read the latest data and replace the corresponding data in the output domain as the updated output content.

[0292] Specifically, in response to any data change in the data source, a data update notification is triggered, including:

[0293] Perform numerical monitoring of data in the data source through the data interface;

[0294] In response to the value change of the data in the data source, a data update notification is sent to the output domain;

[0295] Get updated data through domain index;

[0296] And replace the corresponding pre-update data with the updated data in the output domain.

[0297] Preferably, the user input also includes an authentication request;

[0298] Before determining the output domain corresponding to the user input and the data source, it also includes:

[0299] Obtaining an authentication request from a user input, wherein the authentication request includes at least a user name and a password;

[0300] Determine the user level corresponding to the user based on the user name and password;

[0301] Determine whether the access level of the output domain corresponding to the user input corresponds to the user level;

[0302] In response to the access level of the output domain corresponding to the user level, the output content is fed back to the user.

[0303] Optionally, in response to the access level of the output domain not corresponding to the user level, the response to the current user input is terminated and an error prompt message is returned.

[0304] Preferably, obtaining corresponding data from a data source as output content also includes:

[0305] Establishing a TLS handshake with the client that provides user input, determining the encryption method and key used for transmitting data, where the key includes a public key for encryption and a private key for decryption by the corresponding client;

[0306] The data in the data source is encrypted using a public key to obtain an encrypted output;

[0307] The encrypted output is transmitted to the user's client, so that the client can use the private key to decrypt the encrypted output and obtain the corresponding output content.

[0308] Specifically, a TLS handshake is established with the client providing user input, including:

[0309] Receive a handshake request from the client, where the handshake request includes the TLS version, encryption algorithm list, and compression algorithm supported by the client;

[0310] In response to the handshake request, a handshake message is sent to the client, wherein the handshake message includes a TLS version determined according to the TLS version supported by the client and an encryption algorithm determined according to the encryption algorithm list;

[0311] Send a certificate message to the client for the client to verify the certificate;

[0312] In response to the client verifying the certificate, a key is generated for encrypting and decrypting the output content.

[0313] In some other embodiments, a computer-readable storage medium stores a data reading program, and when the data reading program is executed by a processor, the data reading method described above is implemented. Specifically, it includes:

[0314] Obtain user requirements, and determine at least one data type of data to be read by the user as an output domain according to the user requirements;

[0315] According to the output domain, determine the data source that provides data for the data type in the output domain;

[0316] Set the correspondence between data types and data sources;

[0317] Obtain user input, and compare the user input in an input linked list to see whether it is a valid input, wherein the input linked list stores at least one preset input, and according to any preset input of the at least one preset input, output content corresponding to the preset input can be obtained;

[0318] In response to the user input being a valid input, determining an output domain corresponding to the user input and a data source;

[0319] According to the output domain, determine the domain index;

[0320] According to the domain index, the corresponding data is obtained from the data source as output content.

[0321] Specifically, obtaining user input and comparing the user input in the input linked list to see whether it is valid input includes:

[0322] Traverse at least one preset input in the input linked list and match it with the user input;

[0323] In response to the presence of a preset input matching the user input in the input chain list, the corresponding preset input is identified as a valid input.

[0324] Specifically, in response to the user input being a valid input, determining an output domain corresponding to the user input and a data source includes:

[0325] According to the user input, determining the application instance corresponding to the user input through the first pointer, wherein the first pointer is used to address the corresponding application instance according to the user input and obtain the application instance;

[0326] According to the application example, the output field corresponding to the user input is determined.

[0327] Based on the output domain, determine the domain index, including:

[0328] Get the business requirements corresponding to the output domain;

[0329] According to business requirements, an association is established from the output domain to the data collection module corresponding to the business requirements as a domain index.

[0330] According to the domain index, the corresponding data is obtained from the data source as output content, including:

[0331] Extract the corresponding data in the data source pointed to by the domain index;

[0332] Fill the corresponding data in the data source pointed to by the domain index into the output domain;

[0333] The output domain filled with data is used as the output content.

[0334] Before getting user input, also include:

[0335] determining the number of domains corresponding to the preset input;

[0336] Set an empty linked list as the initial state of the input linked list;

[0337] Sets an output fields array of length number of fields as output fields.

[0338] The value of the number of fields is a constant.

[0339] The data source includes the target data object;

[0340] After setting the output domain array with a length equal to the number of domains as the output domains, it also includes:

[0341] Create a corresponding target data object for the output domain and set a unique domain index for the target data object;

[0342] Add the target data object to the output domain array, making sure that the number of output domains is the same as the number of domains.

[0343] Specifically, after adding the target data object to the output domain array, it also includes:

[0344] Set a preset input corresponding to the output content, and set a corresponding valid flag for the preset input, wherein the valid flag identifies the user input as valid when the preset input matches the user input;

[0345] Get the data source array corresponding to the preset input, where the number of data source arrays is the same as the number of domains;

[0346] Adds a preset input to the input chain.

[0347] Specifically, add the preset input to the input linked list, including:

[0348] Add the preset input from the end of the input linked list to the input linked list.

[0349] Specifically, after adding the preset input to the input linked list, it also includes:

[0350] Specify the data source and domain index corresponding to the data source array;

[0351] Monitor data changes in the data source so that when the data in the data source changes, update the data in the output content that corresponds to the changed data.

[0352] Specifically, monitor data changes in data sources, including:

[0353] In response to any data change in the data source, a data update notification is triggered;

[0354] According to the data update notification, read the latest data and replace the corresponding data in the output domain as the updated output content.

[0355] Specifically, in response to any data change in the data source, a data update notification is triggered, including:

[0356] Perform numerical monitoring of data in the data source through the data interface;

[0357] In response to the value change of the data in the data source, a data update notification is sent to the output domain;

[0358] Get updated data through domain index;

[0359] And replace the corresponding pre-update data with the updated data in the output domain.

[0360] Preferably, the user input also includes an authentication request;

[0361] Before determining the output domain corresponding to the user input and the data source, it also includes:

[0362] Obtaining an authentication request from a user input, wherein the authentication request includes at least a user name and a password;

[0363] Determine the user level corresponding to the user based on the user name and password;

[0364] Determine whether the access level of the output domain corresponding to the user input corresponds to the user level;

[0365] In response to the access level of the output domain corresponding to the user level, the output content is fed back to the user.

[0366] Optionally, in response to the access level of the output domain not corresponding to the user level, the response to the current user input is terminated and an error prompt message is returned.

[0367] Preferably, obtaining corresponding data from a data source as output content also includes:

[0368] Establishing a TLS handshake with the client that provides user input, determining the encryption method and key used for transmitting data, where the key includes a public key for encryption and a private key for decryption by the corresponding client;

[0369] The data in the data source is encrypted using a public key to obtain an encrypted output;

[0370] The encrypted output is transmitted to the user's client, so that the client can use the private key to decrypt the encrypted output and obtain the corresponding output content.

[0371] Specifically, a TLS handshake is established with the client providing user input, including:

[0372] Receive a handshake request from the client, where the handshake request includes the TLS version, encryption algorithm list, and compression algorithm supported by the client;

[0373] In response to the handshake request, a handshake message is sent to the client, wherein the handshake message includes a TLS version determined according to the TLS version supported by the client and an encryption algorithm determined according to the encryption algorithm list;

[0374] Send a certificate message to the client for the client to verify the certificate;

[0375] In response to the client verifying the certificate, a key is generated for encrypting and decrypting the output content.

[0376] The beneficial effects of the technical solution provided by the embodiment of the present application are: by implementing the data reading method, device, equipment, computer program product and readable storage medium disclosed in the embodiment of the present application, it is possible to automatically select the scene and calculate the state result to be obtained at any time, and the desired data can be obtained by using the multiplexer correctly. It saves the process of manually implementing the judgment logic and saves development time; as an independent module, the multiplexer implements the encapsulation of the data source judgment logic, and the caller does not need to understand the specific business logic, but only needs to read the output of the multiplexer to complete the state data acquisition, realizing the software decoupling between different modules, which is more conducive to the development and maintenance of software.

[0377] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0378] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program loaded on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a memory, or installed from a ROM. When the computer program is executed by an external processor, the above-mentioned functions defined in the method of the embodiment of the present application are executed.

[0379] It should be noted that the computer-readable medium of the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In an embodiment of the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0380] The computer-readable medium may be included in the server; or it may exist independently without being installed in the server. The computer-readable medium carries one or more programs. When the one or more programs are executed by the server, the server: in response to detecting that the peripheral mode of the terminal is not activated, obtains the frame rate of the application on the terminal; when the frame rate meets the screen-off condition, determines whether the user is obtaining the screen information of the terminal; in response to the judgment result that the user is not obtaining the screen information of the terminal, controls the screen to enter the immediate dimming mode.

[0381] Computer program code for performing the operation of the embodiments of the present application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).

[0382] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0383] The technical solution provided by the present application is described in detail above. The principle and implementation method of the present application are described in detail using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application.

[0384] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A data reading method, characterized in that: include: Obtaining user requirements, and determining, according to the user requirements, a data type of data to be read by at least one user as an output field; According to the output domain, determining a data source that provides data for the data type in the output domain; Setting the correspondence between the data type and the data source; Obtaining user input, and comparing the user input in an input linked list to determine whether it is a valid input, wherein the input linked list stores at least one preset input, and according to any one of the at least one preset input, output content corresponding to the preset input can be obtained; In response to the user input being a valid input, determining an output domain and a data source corresponding to the user input; Determining a domain index according to the output domain; According to the domain index, corresponding data is obtained from the data source as output content; Before obtaining the user input, the method further includes: determining the number of domains corresponding to the preset input; Setting an empty linked list as the initial state of the input linked list; Set an output domain array with a length equal to the number of domains as the output domain; Wherein, the data source includes a target data object; After the output domain array having a length equal to the number of domains is set as the output domain, the method further includes: Creating a corresponding target data object for the output domain, and setting a unique domain index for the target data object; Add the target data object to the output domain array, and ensure that the number of the output domains is the same as the number of domains; Wherein, after adding the target data object to the output domain array, the method further includes: Setting a preset input corresponding to the output content, and setting a corresponding valid flag for the preset input, wherein the valid flag marks the user input as valid when the preset input matches the user input; Obtaining a data source array corresponding to the preset input, wherein the number of the data source arrays is the same as the number of the domains; Add the preset input to the input linked list.

2. The data reading method according to claim 1, characterized in that: The obtaining of user input and comparing the user input in the input linked list to see whether it is a valid input includes: Traversing at least one preset input in the input linked list to match it with the user input; In response to the presence of a preset input matching the user input in the input linked list, the corresponding preset input is identified as a valid input.

3. The data reading method according to claim 1, characterized in that: In response to the user input being a valid input, determining an output domain and a data source corresponding to the user input, comprising: According to the user input, determining an application instance corresponding to the user input through a first pointer, wherein the first pointer is used to address the corresponding application instance according to the user input and obtain the application instance; According to the application example, an output domain corresponding to the user input is determined.

4. The data reading method according to claim 1, characterized in that: The step of determining a domain index according to the output domain comprises: Obtaining the business requirements corresponding to the output domain; According to the business requirement, an association is established from the output domain to a data collection module corresponding to the business requirement as the domain index.

5. The data reading method according to claim 1, characterized in that: The acquiring corresponding data from the data source as output content according to the domain index includes: Extracting corresponding data from the data source pointed to by the domain index; Fill the output domain with corresponding data in the data source pointed to by the domain index; The output domain filled with data is used as the output content.

6. The data reading method according to claim 1, characterized in that: The value of the number of domains is a constant.

7. The data reading method according to claim 1, characterized in that: The step of adding the preset input to the input linked list comprises: The preset input is added to the input linked list from the tail of the input linked list.

8. The data reading method according to claim 1, characterized in that: After adding the preset input to the input linked list, the method further includes: Specify the data source and domain index corresponding to the data source array; Monitor the data changes in the data source so that when the data in the data source changes, update the data in the output content corresponding to the changed data.

9. The data reading method according to claim 8, characterized in that: The monitoring of data changes in the data source includes: In response to any data in the data source being changed, a data update notification is triggered; According to the data update notification, the latest data is read and the corresponding data in the output domain is replaced as the updated output content.

10. The data reading method according to claim 9, characterized in that: The triggering of a data update notification in response to a change in any data in the data source includes: Performing numerical monitoring on the data in the data source through a data interface; In response to a change in the value of the data in the data source, a data update notification is sent to the output domain; Acquire updated data through the domain index; And the updated data replaces the corresponding pre-update data in the output domain.

11. The data reading method according to claim 1, characterized in that: The user input also includes an authentication request; Before determining the output domain and the data source corresponding to the user input, the method further includes: Obtaining an authentication request in the user input, wherein the authentication request includes at least a user name and a password; Determining the user level corresponding to the user according to the user name and the password; Determining whether the access level of the output domain corresponding to the user input corresponds to the user level; In response to the access level of the output domain corresponding to the user level, output content is fed back to the user.

12. The data reading method according to claim 1, characterized in that: In response to the access level of the output domain not corresponding to the user level, the response to the current user input is terminated and an error prompt message is returned.

13. The data reading method according to claim 1, characterized in that: The step of obtaining corresponding data from the data source as output content further includes: Establishing a TLS handshake with the client that provides the user input, determining an encryption method and a key used for transmitting data, wherein the key includes a public key for encryption and a private key for decryption by the corresponding client; Encrypting the data in the data source using the public key to obtain an encrypted output; The encrypted output is transmitted to the client where the user is located, so that the client uses the private key to decrypt the encrypted output to obtain corresponding output content.

14. The data reading method according to claim 13, characterized in that: The establishing of a TLS handshake with a client providing the user input comprises: Receiving a handshake request sent by the client, wherein the handshake request includes a TLS version, an encryption algorithm list, and a compression algorithm supported by the client; In response to the handshake request, sending a handshake message to the client, wherein the handshake message includes a TLS version determined according to the TLS version supported by the client and an encryption algorithm determined according to the encryption algorithm list; Sending a certificate message to the client for the client to perform certificate verification; In response to the client passing the verification of the certificate, a key is generated for encrypting and decrypting the output content.

15. A computer device, characterized in that: The invention comprises a memory, a processor and a data reading program stored in the memory and executable on the processor. When the processor executes the data reading program, the data reading method according to any one of claims 1 to 14 is implemented.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the data reading method described in any one of claims 1 to 14 is implemented.

17. A computer-readable storage medium, characterized in that: A data reading program is stored thereon, and when the data reading program is executed by a processor, the data reading method described in any one of claims 1-14 is implemented.

Citation Information

Patent Citations

  • Data transmission method, related device, equipment and storage medium

    CN115150091A

  • Data query method and device, computer equipment and computer readable storage medium

    CN115237935A