A self-defined list screening method, device and equipment and readable storage medium

By implementing a custom list filtering method, utilizing annotation content and AOP interception technology, we can achieve custom list filtering, solving the problem that existing technologies cannot meet the needs of all users, and improving user experience and efficiency.

CN116070026BActive Publication Date: 2026-03-31PONY TORCH (YUXI) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing technologies cannot flexibly meet the list data item needs of all users, resulting in poor user experience and inefficiency.

Method used

By using a custom list filtering method, target list items are filtered using annotation content. When the obtained instruction is the first instruction, the default configuration list items are returned. When the obtained instruction is the second instruction, the target list items are filtered according to the user identification information. The instructions are intercepted through AOP to achieve dynamic function changes.

Benefits of technology

Implement custom list filtering without changing the business logic, reducing maintenance costs and intrusion risks, and improving user experience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116070026B_ABST
    Figure CN116070026B_ABST
Patent Text Reader

Abstract

The application discloses a self-defined list screening method and device, equipment and readable storage medium, and is applied to the field of data screening, the method comprises the following steps: obtaining the instruction of returning content; if the instruction is the first instruction, the default configuration list item and the corresponding content of the default configuration list item are returned; if the instruction is the second instruction, the target list item and the corresponding content of the target list item are screened according to the annotation content, and the target list item and the corresponding content of the target list item are returned; the annotation content is the supplementary information of marking the return object attribute in the source code; the second instruction is the instruction determined through user identification information, and each user identification information corresponds to at least one annotation content. The application can realize the self-defined list screening method without changing the business code by annotating the bottom layer logic with the annotation content, and can reduce the maintenance cost and the invasion risk of the business.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data filtering, and in particular to a method, apparatus, device, and readable storage medium for filtering custom lists. Background Technology

[0002] In practical Java Web systems (the sum of technologies using Java to solve related web and internet problems), the data list items displayed on the front-end page have a significant impact on the user experience. For example, if there are too few data items in the list, it may not meet the needs of some users, while if there are too many or redundant data items, some users may not be able to find the information they are interested in quickly, making it impossible for existing technologies to flexibly meet the needs of all users. Therefore, how to solve the problem of existing technologies not being able to flexibly meet the needs of all users, and how to improve the user experience and user efficiency, are technical problems that urgently need to be solved by those skilled in the art. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide a custom list filtering method, apparatus, device and readable storage medium, which solves the problem that the list data items in the prior art cannot flexibly meet the needs of all users.

[0004] To address the aforementioned technical problems, this invention provides a custom list filtering method, comprising:

[0005] Instructions to retrieve the returned content;

[0006] If the instruction is the first instruction, then the default configuration list item and the corresponding content of the default configuration list item are returned;

[0007] If the instruction is the second instruction, then the target list item and the corresponding content of the target list item are filtered out according to the annotation content, and the target list item and the corresponding content of the target list item are returned; the annotation content is supplementary information that marks the returned object attributes in the source code;

[0008] The second instruction is an instruction determined by user identification information, and each user identification information corresponds to at least one annotation content.

[0009] Optionally, the step of filtering the target list items and their corresponding content based on the annotation content includes:

[0010] Based on the conversion type identifier in the annotation content, the target list item and the corresponding content of the target list item are filtered out.

[0011] Optionally, if the instruction is a second instruction, then filtering out the target list item and its corresponding content based on the annotation content, and returning the target list item and its corresponding content, includes:

[0012] When the instruction is determined to be a second instruction based on the user credentials, the target list item and its corresponding content are obtained using the user credentials and the fully qualified class name information, and the target list item and its corresponding content are returned.

[0013] Optionally, before the instruction to retrieve the returned content, the following may be included:

[0014] The instruction is intercepted via AOP and used as the instruction in the retrieved return content.

[0015] Optional, also includes:

[0016] The custom list filtering command is intercepted through AOP, and the custom annotation content is received.

[0017] Store the custom annotation content;

[0018] The custom annotation content is displayed.

[0019] Optionally, the step of echoing the custom annotation content includes:

[0020] The echo is performed according to the priority order of the custom annotation content.

[0021] Optionally, if the instruction is a second instruction, then filtering out the target list item and its corresponding content based on the annotation content, and returning the target list item and its corresponding content, includes:

[0022] If the custom annotation content is not stored, then stop executing the step of filtering the target list item and the corresponding content of the target list item based on the annotation content, and use the default configuration list item and the corresponding content of the default configuration list item as the target list item and the corresponding content of the target list item.

[0023] Return the target list item and its corresponding content.

[0024] The present invention also provides a custom list filtering device, comprising:

[0025] The retrieval module contains instructions for obtaining the returned content.

[0026] The first execution module is used to return the default configuration list item and the corresponding content of the default configuration list item if the instruction is the first instruction;

[0027] The second execution module is used to, if the instruction is a second instruction, filter out the target list item and the corresponding content of the target list item according to the annotation content, and return the target list item and the corresponding content of the target list item; the annotation content is supplementary information that marks the returned object attributes in the source code;

[0028] The second instruction is an instruction determined by user identification information, and each user identification information corresponds to at least one annotation content.

[0029] The present invention also provides a custom list filtering device, comprising:

[0030] Memory, used to store computer programs;

[0031] A processor for executing the computer program to implement the steps of the custom list filtering method described above.

[0032] The present invention also provides a readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the custom list filtering method described above.

[0033] As can be seen, the custom list filtering method provided by this invention includes an instruction to obtain the returned content. If the instruction is a first instruction, it returns the default configuration list item and its corresponding content. If the instruction is a second instruction, it filters the target list item and its corresponding content based on the annotation content and returns the target list item and its corresponding content. The annotation content is supplementary information annotating the attributes of the returned object in the source code. The second instruction is an instruction determined by user identification information, with each user identification information corresponding to at least one annotation. This invention, by using annotation content to annotate the underlying logic, can implement a custom list filtering method without changing the business code, while reducing the maintenance cost and the risk of business intrusion.

[0034] In addition, the present invention also provides a custom list filtering device, apparatus and readable storage medium, which also have the above-mentioned beneficial effects. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0036] Figure 1A flowchart illustrating a custom list filtering method provided in an embodiment of the present invention;

[0037] Figure 2 A flowchart illustrating another custom list filtering method provided in an embodiment of the present invention;

[0038] Figure 3 This is a schematic diagram of the structure of a custom list filtering device provided in an embodiment of the present invention;

[0039] Figure 4 This is a schematic diagram of a custom list filtering device provided in an embodiment of the present invention. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0041] Example 1:

[0042] Please refer to Figure 1 , Figure 1 A flowchart illustrating a custom list filtering method provided in an embodiment of the present invention. The method may include:

[0043] S101: Instruction to retrieve the returned content.

[0044] The execution entity in this embodiment is a server. The instruction to retrieve the returned content can be a command issued by a person through an input port or a command triggered by an application. This embodiment does not limit the startup time of the program that retrieves the returned content instruction, as long as it can execute the corresponding operation in a timely manner. For example, the program that retrieves the returned content instruction can start when the processor starts, or it can start when it receives the instruction to retrieve the returned content. This embodiment does not limit the frequency of retrieving the returned content instruction, as long as the instruction to retrieve the returned content can be retrieved in a timely manner. For example, this embodiment can execute the operation of retrieving the returned content instruction, or it can execute the operation of retrieving the returned content instruction once every preset retrieval time period. This embodiment does not limit the setting value of the preset retrieval time period. For example, the preset retrieval time period setting value in this embodiment can be 5 seconds, or it can be 10 seconds, or it can be 30 seconds. This embodiment does not limit the basis for setting the preset retrieval time period. For example, this embodiment can be customized by the operator, or it can be set according to the priority level of the processor. The higher the priority level of the processor, the smaller the preset acquisition time period setting value.

[0045] Furthermore, to ensure that changes to program functionality can be dynamically implemented during business operations, the instruction to retrieve the returned content may also include:

[0046] The instructions are intercepted using AOP (Aspect-Oriented Programming) and used as instructions for obtaining the returned content.

[0047] It should be noted that in this embodiment, AOP (Aspect-Oriented Programming) can dynamically and uniformly add specific logical functions to the program without modifying the source code through pre-compilation and runtime dynamic proxies.

[0048] S102: If the instruction is the first instruction, then return the default configuration list item and the corresponding content of the default configuration list item.

[0049] In this embodiment, the first instruction corresponds to an instruction that cannot return a custom list filter. This embodiment does not limit the criteria for determining whether an instruction is the first instruction, as long as it can be determined whether the instruction satisfies the permission to return a custom list filter. For example, this embodiment can use the existence of user identification information as the basis for determining whether an instruction is the first instruction, or it can use the content of the user identification information as the basis for determining whether an instruction is the first instruction.

[0050] It should be noted that in this embodiment, when the instruction is the first instruction, the default configuration list item and its corresponding content are returned. The specific way to return the default configuration list item and its corresponding content can be by intercepting the returned content through AOP and selecting the default configuration list item and its corresponding content as the final returned content; or in this embodiment, the default configuration list item and its corresponding content can be returned directly.

[0051] S103: If the instruction is the second instruction, then filter out the target list items and their corresponding contents based on the annotation content, and return the target list items and their corresponding contents.

[0052] It should be noted that in this embodiment, the annotation content is supplementary information indicating the attributes of the returned object in the source code. The second instruction is an instruction determined by user identification information, and each user identification information corresponds to at least one annotation content.

[0053] Accordingly, this embodiment does not limit the basis for determining an instruction as a second instruction based on user identification information. For example, the existence of user identification information can be used as the basis for determining an instruction as a second instruction, or the content of the user identification information can be used as the basis for determining an instruction as a second instruction.

[0054] Furthermore, to ensure that target list items and their corresponding content can be accurately filtered based on annotation content, the above-mentioned filtering of target list items and their corresponding content based on annotation content may include:

[0055] Based on the conversion type identifier in the annotation content, filter out the target list items and their corresponding content.

[0056] It should be noted that the annotation content in this embodiment includes a conversion type identifier. Based on the set conversion type identifier, corresponding operations can be performed. When the conversion type identifier in the annotation is a specific value, the information of the custom conversion rule of the target list item and the corresponding content of the target list item can be obtained through the identifier information. The information of the custom conversion rule is stored in the dictionary table service.

[0057] In this embodiment, the conversion type identifier may also include Chinese alias information, information indicating whether the returned content is a default attribute, information indicating whether the return value is locked, and information indicating whether a slot is used. The service will perform different operations based on whether a slot is used.

[0058] Furthermore, to improve the efficiency of retrieving target list items and their corresponding content when the instruction is the second instruction, if the instruction is the second instruction, then filtering out the target list items and their corresponding content based on the annotation content and returning the target list items and their corresponding content may include:

[0059] When the instruction is determined to be the second instruction based on the user credentials, the target list item and its corresponding content are obtained using the user credentials and the fully qualified class name information, and the target list item and its corresponding content are returned.

[0060] It should be noted that in this embodiment, the user credential is information that identifies the user's permissions, and the fully qualified class name information is the fully qualified class name marked by the annotation content, which is the unique identifier of the class.

[0061] The custom list filtering method provided in this invention includes an instruction to obtain returned content. If the instruction is a first instruction, it returns the default configuration list item and its corresponding content. If the instruction is a second instruction, it filters the target list item and its corresponding content based on annotation content and returns the target list item and its corresponding content. The annotation content consists of supplementary information annotating the attributes of the returned object in the source code. The second instruction is an instruction determined by user identification information, with each user identification information corresponding to at least one annotation. This invention, by using annotation content to annotate the underlying logic, enables a custom list filtering method without changing the business code, while reducing business maintenance costs and the risk of business intrusion. Furthermore, this invention filters target list items and their corresponding content based on the conversion type identifier in the annotation content, ensuring accurate filtering of target list items and their corresponding content. It also improves the efficiency of obtaining target list items and their corresponding content when the instruction is the second instruction by confirming the instruction as the second instruction using user credentials. By using instructions intercepted by AOP as the instructions for obtaining the returned content, it ensures dynamic changes to program functionality during business operation.

[0062] Example 2:

[0063] Please refer to Figure 2 , Figure 2 A flowchart illustrating another custom list filtering method provided in an embodiment of the present invention. The method may include:

[0064] S201: Instruction to retrieve the returned content.

[0065] S202: If the instruction is the first instruction, then return the default configuration list item and the corresponding content of the default configuration list item.

[0066] S203: If the instruction is the second instruction, then filter out the target list items and their corresponding contents based on the annotation content, and return the target list items and their corresponding contents.

[0067] S204: Intercept custom list filtering instructions via AOP and receive custom annotation content.

[0068] It should be noted that in this embodiment, AOP intercepts the custom list filtering command and receives the custom annotation content. The corresponding function is implemented through the parameter values ​​in the annotation content.

[0069] S205: Store custom annotation content.

[0070] It should be noted that this embodiment does not limit the specific method of storing the custom annotation content. For example, this embodiment can store the custom annotation content in Redis (a single-threaded NoSQL database), or it can store the custom annotation content in other types of data storage repositories.

[0071] S206: Display custom annotation content.

[0072] This embodiment stores the custom annotation content and displays it. This embodiment does not limit the specific method of displaying the custom annotation content. For example, this embodiment can use screen display or voice display for display.

[0073] Furthermore, to ensure that the custom annotation content is displayed in an orderly manner, the above-mentioned display of custom annotation content can include:

[0074] Displayed according to the priority order of custom annotation content.

[0075] Furthermore, to reduce resource consumption during program execution, if the above instruction is the second instruction, then filtering out the target list items and their corresponding content based on the annotation content, and returning the target list items and their corresponding content, may include the following steps:

[0076] If no custom annotation content is stored, the step of filtering out the target list item and its corresponding content based on the annotation content will be stopped, and the default configuration list item and its corresponding content will be used as the target list item and its corresponding content.

[0077] Returns the target list item and its corresponding content.

[0078] It should be noted that if the custom annotation content does not exist in the data repository storing the custom annotation content in this embodiment, then there is no need to perform the step of filtering out the target list item and the corresponding content based on the annotation content. Instead, the default configuration list item can be directly used as the target list item, and the default configuration list item can be used as the corresponding content of the target list item. The target list item and the corresponding content of the target list item can then be returned.

[0079] The custom list filtering method provided in this invention includes an instruction to obtain returned content. If the instruction is a first instruction, it returns a default configuration list item and its corresponding content. If the instruction is a second instruction, it filters out target list items and their corresponding content based on annotation content and returns the target list items and their corresponding content. The annotation content consists of supplementary information annotating the attributes of the returned object in the source code. The second instruction is an instruction determined by user identification information, with each user identification information corresponding to at least one annotation. This invention, by annotating the underlying logic with annotation content, enables a custom list filtering method without changing the business code. It also reduces business maintenance costs and the risk of business intrusion. By using AOP to intercept custom list filtering instructions and receive custom annotation content, it ensures real-time configuration of list items with annotation content, thus realizing the custom list filtering function. Furthermore, by displaying custom annotations according to their priority order, this invention enables the orderly display of custom annotation content. It also reduces resource consumption during program execution by stopping the process of filtering target list items and their corresponding content based on annotation content when no custom annotation content is stored, and by using default configuration list items and their corresponding content as the target list items and their corresponding content.

[0080] To make the present invention easier to understand, the present invention may specifically include the following steps:

[0081] Step S1: When a user clicks the page for the first time, the server uses AOP to intercept the returned content and returns the default configuration list items and their corresponding content to the front end.

[0082] Step S2: When the user clicks the page again, the server receives the request for no filtered items, obtains the user's credentials and fully qualified class name, queries the data repository storing custom annotation content, filters out the target list items and their corresponding content based on the annotation content, and returns the target list items and their corresponding content.

[0083] Step S3: The server intercepts the custom list filtering command through AOP, receives the custom annotation content, stores the custom annotation content, and echoes the custom annotation content.

[0084] The following describes the custom list filtering device provided in the embodiments of the present invention. The custom list filtering device described below can be referred to in correspondence with the custom list filtering method described above.

[0085] Please refer to the details. Figure 3 , Figure 3 A schematic diagram of a custom list filtering device provided in an embodiment of the present invention may include:

[0086] Module 100 is used to obtain instructions for the returned content;

[0087] The first execution module 200 is used to return the default configuration list item and the corresponding content of the default configuration list item if the instruction is the first instruction;

[0088] The second execution module 300 is configured to, if the instruction is a second instruction, filter out the target list item and the corresponding content of the target list item according to the annotation content, and return the target list item and the corresponding content of the target list item; the annotation content is supplementary information marked in the source code to indicate the attributes of the returned object;

[0089] The second instruction is an instruction determined by user identification information, and each user identification information corresponds to at least one annotation content.

[0090] Furthermore, based on the above embodiments, the second execution module 300 may include:

[0091] The first execution unit is used to filter out target list items and their corresponding contents based on the conversion type identifier in the annotation content.

[0092] Furthermore, based on the above embodiments, the second execution module 300 may include:

[0093] The second execution unit is configured to, when the instruction is determined to be a second instruction based on the user credentials, use the user credentials and the fully qualified class name information to obtain the target list item and the corresponding content of the target list item, and return the target list item and the corresponding content.

[0094] Furthermore, based on the above embodiments, the custom list filtering device may further include:

[0095] The first interception module is used to intercept the instruction via AOP as the instruction for the retrieved return content.

[0096] Furthermore, based on any of the above embodiments, the custom list filtering device may further include:

[0097] The second interception module is used to intercept the custom list filtering instruction through the AOP and receive the custom annotation content;

[0098] A storage module is used to store the custom annotation content;

[0099] The echo module is used to echo the custom annotation content.

[0100] Furthermore, based on the above embodiments, the echo module may include:

[0101] The echo unit is used to echo the custom annotation content according to its priority order.

[0102] Furthermore, based on the above embodiments, the second execution module 300 may include:

[0103] The third execution unit is used to stop executing the step of filtering the target list item and the corresponding content of the target list item according to the annotation content if the custom annotation content is not stored, and to use the default configuration list item and the corresponding content of the default configuration list item as the target list item and the corresponding content of the target list item.

[0104] The fourth execution unit is used to return the target list item and the corresponding content of the target list item.

[0105] It should be noted that the order of the modules and units in the above-mentioned custom list filtering device can be changed without affecting the logic.

[0106] The custom list filtering device provided in this embodiment of the invention uses an acquisition module 100 to acquire instructions for returning content. A first execution module 200, if the instruction is a first instruction, returns the default configuration list item and its corresponding content. A second execution module 300, if the instruction is a second instruction, filters out the target list item and its corresponding content based on annotation content and returns the target list item and its corresponding content. The annotation content is supplementary information annotating the attributes of the returned object in the source code. The second instruction is an instruction determined by user identification information, with each user identification information corresponding to at least one annotation. This invention, by using annotation content to annotate the underlying logic, enables a custom list filtering method without changing the business code, while reducing business maintenance costs and the risk of business intrusion. Furthermore, this invention ensures accurate filtering of target list items and their corresponding content based on the conversion type identifier in the annotation content. By using user credentials to confirm the instruction as a second instruction and returning the target list item and its corresponding content, the efficiency of obtaining the target list item and its corresponding content when the instruction is the second instruction is improved. By using AOP-intercepted instructions as the instructions for obtaining the returned content, dynamic changes to program functionality are ensured during business operation. By utilizing AOP to intercept custom list filtering instructions and receiving custom annotation content, real-time configuration of list item annotations is guaranteed, enabling custom list filtering. Displaying custom annotation content according to its priority order ensures orderly display. By stopping the step of filtering target list items and their corresponding content based on annotation content when no custom annotation content is stored, and using default configuration list items and their corresponding content as the target list items and their corresponding content, resource consumption during program execution is reduced.

[0107] The following describes the custom list filtering device provided in the embodiments of the present invention. The custom list filtering device described below and the custom list filtering method described above can be referred to in correspondence.

[0108] Please refer to Figure 4 , Figure 4 A schematic diagram of a custom list filtering device provided in an embodiment of the present invention may include:

[0109] Memory 10 is used to store computer programs;

[0110] Processor 20 is used to execute computer programs to implement the custom list filtering method described above.

[0111] The memory 10, processor 20, and communication interface 31 all communicate with each other through the communication bus 32.

[0112] In this embodiment of the invention, the memory 10 is used to store one or more programs. The programs may include program code, which includes computer operation instructions. In this embodiment, the memory 10 may store programs for implementing the following functions:

[0113] Instructions to retrieve the returned content;

[0114] If the instruction is the first instruction, then the default configuration list item and its corresponding content will be returned.

[0115] If the instruction is the second instruction, then the target list items and their corresponding contents are filtered according to the annotation content, and the target list items and their corresponding contents are returned; the annotation content is supplementary information in the source code that marks the attributes of the returned object.

[0116] The second instruction is determined by user identification information, and each user identification information corresponds to at least one annotation.

[0117] In one possible implementation, the memory 10 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; and the data storage area may store data created during use.

[0118] Furthermore, memory 10 may include read-only memory and random access memory, providing instructions and data to the processor. A portion of the memory may also include NVRAM. The memory stores operating systems and operating instructions, executable modules, or data structures, or subsets thereof, or extended sets thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and handling hardware-based tasks.

[0119] Processor 20 can be a central processing unit (CPU), an application-specific integrated circuit, a digital signal processor, a field-programmable gate array, or other programmable logic device. Processor 20 can be a microprocessor or any conventional processor. Processor 20 can call programs stored in memory 10.

[0120] Communication interface 31 can be an interface for the communication module, used to connect with other devices or systems.

[0121] Of course, it should be noted that, Figure 4The structure shown does not constitute a limitation on the custom list filtering device in the embodiments of this application. In practical applications, the custom list filtering device may include more than Figure 4 More or fewer components as shown, or combinations of certain components.

[0122] The readable storage medium provided in the embodiments of the present invention is described below. The readable storage medium described below can be referred to in correspondence with the custom list filtering method described above.

[0123] The present invention also provides a readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the custom list filtering method described above.

[0124] The readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0125] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0126] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0127] Finally, it should be noted that in this document, relationships such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.

[0128] The above provides a detailed description of a custom list filtering method, apparatus, device, and readable storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method of custom list filtering, the method comprising: The method comprises the following steps: obtaining the instruction for returning content through AOP interception; if the instruction is a first instruction, returning a default configuration list item and content corresponding to the default configuration list item; if the instruction is a second instruction, filtering a target list item and content corresponding to the target list item according to annotation content, and returning the target list item and the content corresponding to the target list item; the annotation content is supplementary information for marking a return object attribute in source code; the second instruction is determined through user identification information, and each user identification information corresponds to at least one annotation content.

2. The custom list filtering method of claim 1, wherein, The filtering of the target list item and the content corresponding to the target list item according to the annotation content comprises the following steps: filtering the target list item and the content corresponding to the target list item according to a conversion type identifier in the annotation content.

3. The custom list filtering method of claim 1, wherein, If the instruction is a second instruction, filtering a target list item and content corresponding to the target list item according to annotation content, and returning the target list item and the content corresponding to the target list item, comprising: when it is determined according to the user credential that the instruction is a second instruction, obtaining the target list item and the content corresponding to the target list item by using the user credential and class full name information, and returning the target list item and the content corresponding to the target list item.

4. The custom list filtering method of claim 1, wherein, The method further comprises the following steps: intercepting a custom list filtering instruction through the AOP, and receiving a custom annotation content; storing the custom annotation content; echoing the custom annotation content.

5. The custom list filtering method of claim 4, wherein, The echoing of the custom annotation content comprises the following steps: echoing according to a priority order of the custom annotation content.

6. The custom list filtering method of claim 1, wherein, If the instruction is a second instruction, filtering a target list item and content corresponding to the target list item according to annotation content, and returning the target list item and the content corresponding to the target list item, comprising: if the custom annotation content is not stored, stopping the step of filtering a target list item and content corresponding to the target list item according to annotation content, and taking the default configuration list item and the content corresponding to the default configuration list item as the target list item and the content corresponding to the target list item; returning the target list item and the content corresponding to the target list item.

7. A custom list filtering apparatus, characterized by, The method comprises the following steps: obtaining the instruction for returning content through AOP interception by a obtaining module; if the instruction is a first instruction, returning a default configuration list item and content corresponding to the default configuration list item by a first executing module; if the instruction is a second instruction, filtering a target list item and content corresponding to the target list item according to annotation content, and returning the target list item and the content corresponding to the target list item by a second executing module; the annotation content is supplementary information for marking a return object attribute in source code; the second instruction is determined through user identification information, and each user identification information corresponds to at least one annotation content.

8. A custom list filtering device, characterized by, The method comprises the following steps: storing a computer program in a storage; when the computer program is executed, a processor is used to implement the steps of the custom list filtering method according to any one of claims 1 to 6.

9. A readable storage medium, characterized by, The readable storage medium has stored thereon a computer program, and the computer program, when executed by a processor, implements the steps of the self-defined list screening method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Interface data filtering method and device, computer equipment and readable storage medium

    CN115270196A

  • Interface file parsing method and apparatus

    WO2018033063A1