A cascade information echo method and device

By receiving the echo request of cascading information, calling the information query interface to obtain and assemble hierarchical information, and injecting it into the cascading component, the problem of cascading information echoes in the prior art is solved, and dynamic echo and integrity of the information is realized.

CN113779081BActive Publication Date: 2025-03-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110004496.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-04
Publication Date
2025-03-18
Estimated Expiration
2041-01-04

AI Technical Summary

Technical Problem

The existing Cascader cascade selection components echo the cascade information, which cannot achieve dynamic echo of the information, especially after any level of information is modified or edited, the echo is incomplete.

Method used

By receiving the echo request of the cascading information, the preset information query interface is called, and the information at each level before the level to be echoed and the information at the level to be echoed is obtained and assembled according to the feature identification of the cascading information, and the information at the level to be echoed is currently injected into the cascading component to achieve dynamic echo.

Benefits of technology

Even if information at any level is modified or edited, the updated information is obtained through the feature identification of the cascading information, and echoing it through the cascading component, the dynamic echo and integrity of the cascading information are achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113779081B_ABST
    Figure CN113779081B_ABST
Patent Text Reader

Abstract

The present invention discloses a cascade information echo method and device, and relates to the field of computer technology. A specific implementation of the method includes: receiving an echo request for cascade information, wherein the echo request includes: a characteristic identifier of the cascade information and a current level to be echoed in the cascade information; according to the characteristic identifier of the cascade information, calling a preset information query interface, obtaining and assembling information of each level before the current level to be echoed and the current level to be echoed from the stored information; injecting information of each level before the current level to be echoed and the current level to be echoed into a pre-selected cascade component; and echoing information of each level before the current level to be echoed and the current level to be echoed through the cascade component. This implementation implements the dynamic echo of cascade information by the Cascader cascade selection component.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a cascade information echo method and device. Background Art

[0002] At present, the use of electronic management information inevitably requires the use of cascading to echo information with cascading relationships. For example, province → city → tourist attractions is information with a cascading relationship. In the electronic management process, the province → city → tourist attractions cascading information can be echoed through the cascading selection component. For example, the cascading information can be encapsulated into the Cascader cascading selection component in the Ant Design component library to echo static cascading information. The existing method of echoing cascading information through the Cascader cascading selection component will result in incomplete cascading information echo once the cascading information is edited and filled back.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] The existing method of echoing cascade information through the Cascader cascade selection component cannot realize dynamic information echoing. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a cascade information echoing method and device, which can realize the dynamic echoing of cascade information by the Cascader cascade selection component.

[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a cascade information echo method is provided, comprising:

[0007] receiving an echo request for cascade information, wherein the echo request includes: a characteristic identifier of the cascade information and a current level to be echoed in the cascade information;

[0008] According to the characteristic identifier of the cascade information, a preset information query interface is called to obtain and assemble the information of each level before the current level to be echoed and the information of the current level to be echoed;

[0009] Injecting information of each level before the current level to be echoed and information of the current level to be echoed into a pre-selected cascade component;

[0010] The information of each level before the level to be echoed and the information of the level to be echoed are echoed through the cascade component.

[0011] Preferably, acquiring and assembling information of each level before the current level to be echoed and information of the current level to be echoed includes:

[0012] From the first level of the cascade information to the current level to be echoed, the information of each level is acquired and assembled in a recursive manner.

[0013] Preferably, a recursive method is used to obtain and assemble information at each level, including:

[0014] In the case where the current level to be echoed is not less than two levels,

[0015] According to the feature identifier of the cascade information, obtain the information of the first level and the feature identifier of the first level, and assemble the information of the first level;

[0016] Based on the feature identifier of the first level, information of each level from the second level to the current level to be echoed is sequentially acquired and assembled.

[0017] Preferably, sequentially acquiring and assembling information of each level from the second level to the current level to be echoed includes:

[0018] When each level from the second level to the current level to be echoed in the cascade information is used as the current level, execute:

[0019] According to the feature identifier of the previous level of the current level, the information of the current level is obtained, and the information of the current level is assembled;

[0020] Determine whether the current level is the last level, if yes, end the current process; otherwise, obtain the feature identifier of the current level.

[0021] Preferably, assemble the information of each level, including:

[0022] According to the hierarchical relationship between the first level to the current level to be echoed in the cascade information, the information of each level is filled into the preset tree structure option.

[0023] Preferably, injecting information of each level before the current level to be echoed and information of the current level to be echoed into a pre-selected cascade component includes:

[0024] The information filled in the tree structure options is injected into the pre-selected cascade component.

[0025] Preferably,

[0026] The feature identifier of the cascade information includes: the feature identifier of the first level in the cascade information.

[0027] Preferably, after receiving the echo request of the cascade information, the method further comprises:

[0028] Determine whether the current level to be echoed is the first level,

[0029] If yes, calling the information query interface, acquiring the information of the first level according to the feature identifier of the first level, injecting the information of the first level into the pre-selected cascade component, and echoing the information of the first level through the cascade component;

[0030] Otherwise, the step of acquiring and assembling information of each level before the current level to be echoed and information of the current level to be echoed is performed.

[0031] In a second aspect, an embodiment of the present invention provides a cascade information echo device, including: an information processing component, an information query interface, an injection component and a cascade component, wherein:

[0032] The information processing component is used to receive an echo request for cascade information, wherein the echo request includes: a characteristic identifier of the cascade information and a current level to be echoed in the cascade information; according to the characteristic identifier of the cascade information, calling a preset information query interface to obtain and assemble information of each level before the current level to be echoed and information of the current level to be echoed;

[0033] The injection component is used to inject information of each level before the current level to be echoed and information of the current level to be echoed into the cascade component;

[0034] The cascade component is used to echo the information of each level before the current level to be echoed and the information of the current level to be echoed.

[0035] Preferably, the information processing component comprises: a recursive search module, wherein:

[0036] The recursive search module is used to recursively obtain and assemble information of each level from the first level of the cascade information to the current level to be echoed.

[0037] One embodiment of the above invention has the following advantages or beneficial effects: because in the process of cascading information echoing, the information query interface can be called, and the information of each level before the current level to be echoed and the information of the current level to be echoed included in the echo request can be obtained and assembled according to the characteristic identifier of the cascading information included in the echo request. Therefore, even if the information of any level is modified or edited, the information of each level before the current level to be echoed and the information of the current level to be echoed can be obtained according to the characteristic identifier of the cascading information included in the echo request, and the modified or edited information can be obtained. Then, by injecting this information into the cascading component and echoing this information through the cascading component, dynamic echo of cascading information is realized.

[0038] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0040] Figure 1 is a schematic diagram of the main process of the cascade information echoing method according to an embodiment of the present invention;

[0041] Figure 2 is a schematic diagram of a partial running program of a recursive search module according to an embodiment of the present invention;

[0042] Figure 3 is a schematic diagram of the main process of obtaining and assembling information of each level according to an embodiment of the present invention;

[0043] Figure 4 is a schematic diagram of a main process of sequentially acquiring and assembling information of each level from the second level to the current level to be echoed according to an embodiment of the present invention;

[0044] Figure 5 is a schematic diagram of a tree structure option according to an embodiment of the present invention;

[0045] Figure 6 is a schematic diagram of another tree structure option according to an embodiment of the present invention;

[0046] Figure 7 is a schematic diagram of the main process of the cascade information echoing method according to an embodiment of the present invention;

[0047] Figure 8 is a schematic diagram of the main process of a cascade information echoing method according to another embodiment of the present invention;

[0048] Fig. 9 is a schematic diagram of main components of a cascade information echo display device according to an embodiment of the present invention;

[0049] Fig.10 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0050] Fig.11 It is a schematic diagram of the structure of a computer system of a terminal device suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0052] Figure 1 is a cascade information echo method according to an embodiment of the present invention, such as Figure 1 As shown, the cascade information echoing method may include the following steps:

[0053] Step S101: receiving a request for echoing cascade information, wherein the request for echoing includes: a characteristic identifier of the cascade information and a current level to be echoed in the cascade information;

[0054] Step S102: according to the characteristic identifier of the cascade information, calling the preset information query interface, obtaining and assembling the information of each level before the current level to be echoed and the information of the current level to be echoed;

[0055] Step S103: injecting information of each level before the current level to be echoed and information of the current level to be echoed into a pre-selected cascade component;

[0056] Step S104: echoing the information of each level before the current level to be echoed and the information of the current level to be echoed through the cascade component.

[0057] The characteristic identifier of the cascade information may be characteristic information of a data table storing the cascade information, such as the name of the data table, characteristic code, etc. The characteristic identifier of the cascade information may also be characteristic identifier of a data block, such as a data block number, a data block name, etc.

[0058] In addition, the feature identifier of the cascade information may also be the feature identifier of the first level in the cascade information.

[0059] The cascade information may be stored in a server or a terminal. Accordingly, step S102 calls a preset information query interface to obtain information of each level before the current level to be echoed in the cascade information and information of the current level to be echoed from the server or the terminal.

[0060] The current level to be echoed refers to the level to which the information to be echoed belongs. For example, a cascaded information is: Province A (first level) → City B (second level) → District C (third level). If the information to be echoed is District C, the current level to be echoed is the third level.

[0061] The selected cascade component may be any existing cascade component, for example, the Cascader cascade selection component in the Ant Design component library.

[0062] exist Figure 1 In the illustrated embodiment, during the cascade information echoing process, the information query interface can be called to obtain and assemble the information of each level before the current level to be echoed and the information of the current level to be echoed included in the echo request according to the characteristic identifier of the cascade information included in the echo request. Therefore, even if the information of any level is modified or edited, the information of each level before the current level to be echoed and the information of the current level to be echoed can be obtained according to the characteristic identifier of the cascade information included in the echo request, and the modified or edited information can be obtained. Then, by injecting this information into the cascade component and echoing this information through the cascade component, the dynamic echoing of the cascade information is realized.

[0063] In an embodiment of the present invention, a specific implementation method of obtaining and assembling information of each level before the current level to be echoed and information of the current level to be echoed may include: obtaining and assembling information of each level from the first level of cascade information to the current level to be echoed in a recursive manner.

[0064] Among them, the recursive method is adopted to obtain and assemble the information of each level through the recursive search module. The part of the running program of the recursive search module can be as follows: Figure 2 shown.

[0065] from Figure 2 As can be seen in the figure, by calling the information query interface, the recursive search module obtains the information of the current level based on: the parent level ID corresponding to the current level (the parent level ID is the ID of the level above the current level), and the relevant index and data under the index can be obtained according to the parent level ID; by traversing the loop, the data of the corresponding level is found and assembled into children. After reaching the last level, the loop stops querying.

[0066] That is, if the current level to be echoed is not less than two levels, such as Figure 3 As shown, obtaining and assembling information at each level in a recursive manner may include the following steps:

[0067] Step S301: acquiring the information of the first level and the feature identifier of the first level according to the feature identifier of the cascade information, and assembling the information of the first level;

[0068] Step S302: Based on the feature identifier of the first level, sequentially obtain and assemble information of each level from the second level to the current level to be echoed.

[0069] Among them, the Figure 3 The steps shown can be Figure 2 The recursive search module implementation shown.

[0070] That is, the above recursive method is to obtain and assemble information from the first level to the subsequent levels in a progressive manner. For example, for the cascade information A Province (first level) → B City (second level) → C District (third level) → D Tourist Attractions (fourth level), the current level to be echoed is the fourth level, then first obtain the first-level information "A Province", and assemble the "A Province", for example, the "A Province" can be assembled into the recursive search module, and then based on the first-level feature identifier, sequentially obtain the second-level information "B City", the third-level information "C District" and the fourth-level information "D Tourist Attractions", and assemble "B City", "C District" and "D Tourist Attractions", for example, assemble "B City", "C District" and "D Tourist Attractions" into the recursive search module.

[0071] Among them, Figure 4 As shown, sequentially acquiring and assembling information of each level from the second level to the current level to be echoed may include the following steps:

[0072] Step S401: when each level from the second level to the current level to be echoed in the cascade information is taken as the current level, the following steps are performed: obtaining information of the current level according to the feature identifier of the previous level of the current level, and assembling the information of the current level;

[0073] Step S402: determine whether the current level is the last level, if yes, end the current process; otherwise, execute step S403;

[0074] Step S403: Obtain the feature identifier of the current level.

[0075] For example, for the cascade information A Province (first level) → B City (second level) → C District (third level) → D Tourist Attraction (fourth level), the current level to be echoed is the fourth level. After obtaining the information "A Province" of the first level and assembling the "A Province", for example, "A Province" can be assembled into the recursive search module, and then based on the feature identifier of the first level, the information "B City" of the second level is obtained, and "B City" is assembled, for example, "B City" is assembled into the recursive search module; since the second level is not the last level, obtaining the second level The feature identifier of the second level is used to obtain the information "Area C" of the third level, and assemble "Area C", such as assembling "Area C" into a recursive search module; since the third level is not the last level, the feature identifier of the third level is obtained, and based on the feature identifier of the third level, the information "D Tourist Attractions" of the fourth level is obtained, and assemble "D Tourist Attractions", such as assembling "D Tourist Attractions" into a recursive search module; since the fourth level is already the last level, there is no need to obtain the feature identifier of the fourth level.

[0076] Generally speaking, when cascading information is stored, it is usually stored in an associated manner. For example, the information storage of each level is stored based on the feature identifier of the previous level. Therefore, the current level can be found through the feature identifier of the previous level. By searching and obtaining the next level through the previous level, the information of the next level can be accurately found. Even if the information of the next level is changed, the updated information can be obtained in time, thereby ensuring the accuracy of the information obtained, so that the information can be displayed completely and accurately.

[0077] In the embodiment of the present invention, the specific implementation of assembling the information of each level may include: filling the information of each level into a preset tree structure option according to the hierarchical relationship between the first level to the current level to be echoed in the cascade information.

[0078] The tree structure options can be Figure 5 as well as Figure 6 For example, for cascade information: A1 province (first level) → B1 city (second level) → C1 district (third level) and A2 province (first level) → B2 city (second level) → C2 district (third level) are filled in respectively. Figure 5 as well as Figure 6 In the tree structure options shown.

[0079] In the embodiment of the present invention, a specific implementation of injecting information of each level before the current level to be echoed and information of the current level to be echoed into a pre-selected cascade component may include: injecting information filled in the tree structure options into the pre-selected cascade component.

[0080] In the embodiment of the present invention, Figure 7As shown, after receiving the echo request for cascade information, the following steps may be further included:

[0081] Step S701: Determine whether the current level to be echoed is the first level. If yes, execute step S702; otherwise, execute step S703;

[0082] Step S702: calling the information query interface, obtaining the information of the first level according to the feature identifier of the first level, injecting the information of the first level into the pre-selected cascade component, echoing the information of the first level through the cascade component, and ending the current process;

[0083] Step S703: Execute the step of acquiring and assembling the information of each level before the current level to be echoed and the information of the current level to be echoed.

[0084] The following takes the cascade information (Province A (first level) → City B (second level) → District C (third level) → Tourist Attraction D (fourth level)) as an example to explain the cascade information echo process in detail. Figure 8 As shown, the cascade information echoing method may include the following steps:

[0085] Step S801: receiving an echo request of cascade information, wherein the echo request includes: a feature identifier of the first level and a current level to be echoed in the cascade information;

[0086] For example, for cascade information (Province A (first level) → City B (second level) → District C (third level) → Tourist Attraction D (fourth level)), the echo request includes: the feature identifier of the first level and the current level to be echoed: the fourth level.

[0087] Step S802: Determine whether the current level to be echoed is the first level. If yes, execute step S803; otherwise, execute step S805;

[0088] For example, if the current level to be echoed is the fourth level, not the first level, then step S805 is executed.

[0089] Step S803: directly calling the information query interface to obtain the first-level information according to the first-level feature identifier;

[0090] Step S804: injecting the information of the first level into the pre-selected cascade component, echoing the information of the first level through the cascade component, and ending the current process;

[0091] The above steps S803 and S804 are mainly for information that does not have a hierarchical relationship. After the information is directly obtained, it is injected into the cascade component to realize the echo.

[0092] For each level from the second level to the current level to be echoed in the cascade information as the current level, execute:

[0093] Step S805: acquiring information of the current level according to the feature identifier of the level above the current level, and assembling the information of the current level;

[0094] For cascading information (Province A (first level) → City B (second level) → District C (third level) → Tourist Attraction D (fourth level)), for example, if the current level is the second level, then according to the feature identifier of the first level, the preset information query interface is called to obtain City B from the stored information; for another example, if the current level is the third level, then according to the feature identifier of the second level, the preset information query interface is called to obtain District C from the stored information, and so on.

[0095] Among them, assembling the information of the current level can assemble the information of the current level into Figure 5 or Figure 6 In the structure shown.

[0096] Step S806: Determine whether the current level is the last level, if yes, execute step S808; otherwise, execute step S807;

[0097] Step S807: Obtain the feature identifier of the current level, and take the current level as the previous level, and execute step S805;

[0098] Step S808: injecting information of each level before the current level to be echoed and information of the current level to be echoed into the pre-selected cascade component;

[0099] Step S809: echoing the information of each level before the current level to be echoed and the information of the current level to be echoed through the cascade component.

[0100] like Fig. 9 As shown, an embodiment of the present invention provides a cascade information echoing device 900, which may include: an information processing component 901, an information query interface 902, an injection component 903 and a cascade component 904, wherein:

[0101] The information processing component 901 is used to receive a request for echoing cascade information, wherein the echo request includes: a characteristic identifier of the cascade information and a current level to be echoed in the cascade information; according to the characteristic identifier of the cascade information, a preset information query interface is called to obtain and assemble information of each level before the current level to be echoed and information of the current level to be echoed;

[0102] The injection component 903 is used to inject the information of each level before the current level to be echoed and the information of the current level to be echoed into the cascade component 904;

[0103] The cascade component 904 is used to echo the information of each level before the current level to be echoed and the information of the current level to be echoed.

[0104] In the embodiment of the present invention, the information processing component 901 includes: a recursive search module 9011, wherein:

[0105] The recursive search module 9011 is used to obtain and assemble the information of each level from the first level of the cascade information to the current level to be echoed in a recursive manner.

[0106] In an embodiment of the present invention, the recursive search module 9011 is used to obtain the information of the first level and the feature identifier of the first level according to the feature identifier of the cascade information, and assemble the information of the first level when the current level to be echoed is not less than two levels; based on the feature identifier of the first level, sequentially obtain and assemble the information of each level from the second level to the current level to be echoed.

[0107] In an embodiment of the present invention, the recursive search module 9011 is used to execute, when each level from the second level to the current level to be echoed in the cascade information is used as the current level: obtaining the information of the current level according to the feature identifier of the previous level of the current level, and assembling the information of the current level; determining whether the current level is the last level, and if so, terminating the current process; otherwise, obtaining the feature identifier of the current level.

[0108] In the embodiment of the present invention, the information processing component 901 is used to fill the information of each level into the preset tree structure option according to the hierarchical relationship between the first level to the current level to be echoed in the cascade information.

[0109] In the embodiment of the present invention, the injection component 903 is used to inject the information filled in the tree structure options into the pre-selected cascade component.

[0110] In an embodiment of the present invention, the information processing component 901 is used to determine whether the current level to be echoed is the first level. If so, the information query interface is called to obtain the information of the first level according to the feature identifier of the first level, and the information of the first level is injected into a pre-selected cascade component, and the information of the first level is echoed through the cascade component; otherwise, the steps of obtaining and assembling the information of each level before the current level to be echoed and the information of the current level to be echoed are executed.

[0111] It is worth noting that the above-mentioned cascade information echoing device can be installed in the client in the form of a plug-in, and can also be directly installed in the terminal. It can be used to echo the cascade information stored in the terminal, and can also be used to echo the limit information obtained from the server.

[0112] Fig.10 An exemplary system architecture 1000 is shown to which the cascade information echo method or cascade information echo device according to the embodiment of the present invention can be applied.

[0113] like Fig.10 As shown, the system architecture 1000 may include terminal devices 1001, 1002, 1003, a network 1004, and a server 1005. The network 1004 is used to provide a medium for communication links between the terminal devices 1001, 1002, 1003 and the server 1005. The network 1004 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0114] The user can use the terminal devices 1001, 1002, 1003 to interact with the server 1005 through the network 1004 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 1001, 1002, 1003, and accordingly, the cascade information echo device can be installed as a plug-in in various communication client applications to enable the communication client applications to realize cascade information echo. Various communication client applications can be shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0115] The terminal devices 1001 , 1002 , and 1003 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0116] The server 1005 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 1001, 1002, and 1003. The backend management server may analyze and process the received information query request and other data, and feed back the processing results (such as the information of each level queried - only an example) to the terminal device, and the terminal device assembles and displays the information of each level.

[0117] It should be noted that the cascade information echo method provided in the embodiment of the present invention is generally executed by the terminal devices 1001 , 1002 , and 1003 . Accordingly, the cascade information echo apparatus is generally arranged in the terminal devices 1001 , 1002 , and 1003 .

[0118] It should be understood that Fig.10 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0119] Reference below Fig.11, which shows a schematic diagram of the structure of a computer system 1100 of a terminal device suitable for implementing an embodiment of the present invention. Fig.11 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0120] like Fig.11 As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the system 1100 are also stored. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0121] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed, so that a computer program read therefrom is installed into the storage section 1108 as needed.

[0122] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1109, and / or installed from the removable medium 1111. When the computer program is executed by the central processing unit (CPU) 1101, the above-mentioned functions defined in the system of the present invention are executed.

[0123] It should be noted that the computer-readable medium shown in the present invention 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 the present invention, 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 the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. 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. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, 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 appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0124] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0125] The components involved in the embodiments of the present invention may be implemented in software or hardware. The components described may also be provided in a processor. For example, they may be described as follows: a processor includes an information processing component, an information query interface, an injection component, and a cascade component. The names of these components do not, in some cases, constitute limitations on the components themselves. For example, the injection component may also be described as a "component that injects information of each level before the current level to be echoed and information of the current level to be echoed into the cascade component."

[0126] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: receiving an echo request for cascade information, wherein the echo request includes: a characteristic identifier of the cascade information and the current level to be echoed in the cascade information; according to the characteristic identifier of the cascade information, calling a preset information query interface, obtaining and assembling the information of each level before the current level to be echoed and the information of the current level to be echoed; injecting the information of each level before the current level to be echoed and the information of the current level to be echoed into a pre-selected cascade component; and echoing the information of each level before the current level to be echoed and the information of the current level to be echoed through the cascade component.

[0127] The computer-readable medium carries one or more programs. When the one or more programs are executed by a device, the device includes: recursively acquiring and assembling information of each level from the first level of cascade information to the current level to be echoed.

[0128] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by a device, the device includes: for the case where the current level to be echoed is not less than two levels, according to the feature identifier of the cascade information, obtaining the information of the first level and the feature identifier of the first level, and assembling the information of the first level; based on the feature identifier of the first level, sequentially obtaining and assembling the information of each level from the second level to the current level to be echoed.

[0129] According to the technical solution of the embodiment of the present invention, during the cascade information echo process, the information query interface can be called to obtain and assemble the information of each level before the current level to be echoed and the information of the current level to be echoed included in the echo request according to the characteristic identifier of the cascade information included in the echo request. Therefore, even if the information of any level is modified or edited, the information of each level before the current level to be echoed and the information of the current level to be echoed can be obtained according to the characteristic identifier of the cascade information included in the echo request, and the modified or edited information can be obtained. Then, by injecting this information into the cascade component and echoing this information through the cascade component, the dynamic echo of the cascade information is realized.

[0130] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A cascade information echo method, characterized in that: include: receiving an echo request for cascade information, wherein the echo request includes: a characteristic identifier of the cascade information and a current level to be echoed in the cascade information; According to the characteristic identifier of the cascade information, a preset information query interface is called to obtain and assemble the information of each level before the current level to be echoed and the information of the current level to be echoed, including: from the first level of the cascade information to the current level to be echoed, in a recursive manner, determining in turn whether each level is the last level, and obtaining and assembling the information of each level; Injecting information of each level before the current level to be echoed and information of the current level to be echoed into a pre-selected cascade component; The information of each level before the level to be echoed and the information of the level to be echoed are echoed through the cascade component.

2. The cascade information echo method according to claim 1, characterized in that: The recursive method is used to determine whether each level is the last level in turn, and obtain and assemble the information of each level, including: In the case where the current level to be echoed is not less than two levels, According to the feature identifier of the cascade information, obtain the information of the first level and the feature identifier of the first level, and assemble the information of the first level; Based on the feature identifier of the first level, it is determined in turn whether each level is the last level, and information of each level from the second level to the current level to be echoed is sequentially acquired and assembled.

3. The cascade information echo method according to claim 2, characterized in that: The step of sequentially determining whether each level is the last level, and sequentially acquiring and assembling information of each level from the second level to the current level to be echoed includes: When each level from the second level to the current level to be echoed in the cascade information is used as the current level, execute: According to the feature identifier of the previous level of the current level, the information of the current level is obtained, and the information of the current level is assembled; Determine whether the current level is the last level, if yes, end the current process; otherwise, obtain the feature identifier of the current level.

4. The cascade information echoing method according to any one of claims 2 to 3, characterized in that: Assemble information at each level, including: According to the hierarchical relationship between the first level to the current level to be echoed in the cascade information, the information of each level is filled into the preset tree structure option.

5. The cascade information echo method according to claim 4, characterized in that: Injecting information of each level before the current level to be echoed and information of the current level to be echoed into a pre-selected cascade component, including: The information filled in the tree structure options is injected into the pre-selected cascade component.

6. The cascade information echoing method according to any one of claims 1 to 3, characterized in that: The feature identifier of the cascade information includes: the feature identifier of the first level in the cascade information.

7. The cascade information echoing method according to claim 6, characterized in that: After receiving the echo request for the cascade information, the method further includes: Determine whether the current level to be echoed is the first level, If yes, calling the information query interface, acquiring the information of the first level according to the feature identifier of the first level, injecting the information of the first level into the pre-selected cascade component, and echoing the information of the first level through the cascade component; Otherwise, the step of acquiring and assembling information of each level before the current level to be echoed and information of the current level to be echoed is performed.

8. A cascade information echoing device, characterized in that: include: Information processing component, information query interface, injection component, cascade component and recursive search module, among which, The information processing component is used to receive an echo request for cascade information, wherein the echo request includes: a characteristic identifier of the cascade information and a current level to be echoed in the cascade information; according to the characteristic identifier of the cascade information, calling a preset information query interface to obtain and assemble information of each level before the current level to be echoed and information of the current level to be echoed; The recursive search module is used to recursively determine whether each level is the last level from the first level of the cascade information to the current level to be echoed, and obtain and assemble information of each level; The injection component is used to inject information of each level before the current level to be echoed and information of the current level to be echoed into the cascade component; The cascade component is used to echo the information of each level before the current level to be echoed and the information of the current level to be echoed.

9. A cascade information echo electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for data query

    CN108733668A