Catalog updating method, apparatus and device
Patent Information
- Application Number
- CN202311118499.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-08-31
AI Technical Summary
[0004]本申请实施例提供一种目录更新方法、装置及设备,用以解决目录更新的可靠性较低的问题
[0086]本申请实施例提供的目录更新方法、装置及设备,根据多个产品信息和/或业务数据,确定初始目录列表,初始目录列表包括至少一个父目录标识、每个父目录标识对应的至少一级子目录、以及每个最低级子目录对应的至少一个资料文件。获取目录更新请求,目录更新请求包括用户标识、待更新的至少一个第一目录以及更新类型。在初始目录列表中确定用户标识对应的待选目录列表,待选目录列表中包括至少一个第一目录的目录标识。根据至少一个第一目录和更新类型,对待选目录列表进行更新处理,得到更新后的目标目录列表。在上述过程中,初始目录列表包括多级目录,多级目录用于指示产品或者业务对应的资料文件所属的类型以及结构信息,多级目录也可以指示多个产品或者业务之间的关联关系。在更新目录时,可以确定对应的父目录和子目录,并对对应的父目录和子目录进行更新,而不是遍历目录列表中所有目录确定待更新的目录。且可以根据用户标识确定可以用户可以进行更新的目录列表,避免每个用户都可以查看所有目录列表从而使得信息泄露,提高了目录更新的可靠性。
Smart Images

Figure CN117149788B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of big data technology, and in particular to a directory update method, apparatus, and device. Background Technology
[0002] Businesses can provide query services to users, enabling them to query information needed for multiple business operations or business transactions, thereby promoting the business of the enterprise.
[0003] To ensure users can access more comprehensive data, data management is necessary. One approach is to manage query data as follows: multiple products or services are indexed by a master directory, generating a directory list. Each directory in the list is associated with corresponding business or product data. When updating a product or service, the master directory is used to determine the relevant business or product data to be updated, and the directory list is updated accordingly. However, this process suffers from several drawbacks. Since multiple products or services are associated with only one directory list, updating the directory requires traversing all directories in the list to identify the ones to be updated. Furthermore, since every user can view the directory list, there is a potential for information leakage, leading to lower reliability in directory updates. Summary of the Invention
[0004] This application provides a directory update method, apparatus, and device to address the problem of low reliability in directory updates.
[0005] In a first aspect, embodiments of this application provide a catalog updating method, including:
[0006] Obtain an initial directory list, which includes at least one parent directory identifier, at least one level subdirectory corresponding to each parent directory identifier, and at least one data file corresponding to each lowest level subdirectory;
[0007] Obtain a directory update request, wherein the directory update request includes a user identifier, at least one first directory to be updated, and an update type;
[0008] In the initial directory list, a list of candidate directories corresponding to the user identifier is determined, wherein the list of candidate directories includes the directory identifiers of the at least one first directory;
[0009] The candidate directory list is updated according to the at least one first directory and the update type to obtain the updated target directory list, and the updated target directory list is sent to a preset device.
[0010] In one possible implementation, the update type includes directory type, data type, and status type; for any first directory; based on the first directory, the candidate directory list is updated to obtain an updated target directory list, including:
[0011] The target directory family to which the first directory belongs is determined from the list of candidate directories. The target directory family includes the target parent directory corresponding to the first directory and at least one first-level subdirectory corresponding to the target parent directory.
[0012] If the update type is the directory type, then the candidate directory list is updated according to the target directory family and the first directory to obtain the target directory list;
[0013] If the update type is the data type, then in the target directory family, the lowest-level target subdirectory corresponding to the first directory is determined, and the candidate directory list is updated according to the lowest-level target subdirectory to obtain the target directory list;
[0014] If the update type is the status type, then the directory status to be updated is obtained, and the candidate directory list is updated according to the directory status, the target directory family and the first directory to obtain the target directory list.
[0015] In one possible implementation, the directory type is an addition type, a modification type, or a deletion type; the candidate directory list is updated according to the target directory family and the first directory to obtain the target directory list, including:
[0016] If the directory type is the newly added type, then the first directory is added to the target directory family to obtain the target directory list;
[0017] If the directory type is the modification type, then in the target directory family, a target directory matching the first directory is determined, and according to the directory type, the target directory is updated to the first directory to obtain the target directory list;
[0018] If the directory type is the deletion type, then in the target directory family, a target directory matching the first directory is determined, and the target directory is deleted to obtain the target directory list.
[0019] In one possible implementation, the candidate directory list is updated based on the lowest-level target subdirectory to obtain the target directory list, including:
[0020] Retrieve at least one data file to be updated;
[0021] In the list of candidate directories, add at least one data file to be updated to at least one data file corresponding to the lowest-level target subdirectory;
[0022] Obtain the current update time, and update the version information of at least one data file to be updated based on the current update time.
[0023] In one possible implementation, the candidate directory list further includes the current directory status; the candidate directory list is updated based on the directory status, the target directory family, and the first directory to obtain the target directory list, including:
[0024] Within the target directory family, determine the target directory that matches the first directory.
[0025] Obtain the current directory status of the target directory;
[0026] Determine whether the current directory status is the same as the target directory status;
[0027] If so, the list of candidate directories is determined as the target directory list;
[0028] If not, the current directory status is updated based on the current directory status to obtain the target directory list.
[0029] In one possible implementation, determining the candidate directory list corresponding to the user identifier in the initial directory list includes:
[0030] The user identifier is subjected to authentication processing to obtain the authentication result;
[0031] If the verification result is successful, then the user permissions corresponding to the user identifier are determined;
[0032] Based on the user permissions, a list of candidate directories corresponding to the user identifier is determined in the initial directory list.
[0033] In one possible implementation, the method further includes:
[0034] Obtain a data query request, wherein the data query request includes the identifier of the target user;
[0035] Based on the identifier of the target user, a query list for the target user is determined, the query list including at least one query parent directory identifier and at least one level query subdirectory corresponding to each query parent directory identifier;
[0036] Obtain a set of target directories, the set of target directories including at least one target parent directory identifier in the query list and at least one first-level target subdirectory identifier corresponding to each query parent directory identifier;
[0037] Based on the target directory set, determine the query results corresponding to the data query request.
[0038] In one possible implementation, determining the query result corresponding to the data query request based on the target directory set includes:
[0039] In the set of target directories, determine the lowest-level target subdirectory identifier corresponding to each target parent directory identifier;
[0040] Retrieve at least one target data file corresponding to each lowest-level target subdirectory identifier;
[0041] The query results are determined to include at least one target data file and the target directory family corresponding to each target data file.
[0042] Secondly, embodiments of this application provide a catalog updating apparatus, the apparatus comprising:
[0043] The first acquisition module is used to acquire an initial directory list, which includes at least one parent directory identifier, at least one level subdirectory corresponding to each parent directory identifier, and at least one data file corresponding to each lowest level subdirectory.
[0044] The second acquisition module is used to acquire a directory update request, wherein the directory update request includes a user identifier, at least one first directory to be updated, and an update type;
[0045] A determining module is configured to determine a list of candidate directories corresponding to the user identifier in the initial directory list, wherein the list of candidate directories includes the directory identifiers of the at least one first directory;
[0046] The processing module is configured to update the candidate directory list according to the at least one first directory and the update type, obtain the updated target directory list, and send the updated target directory list to a preset device.
[0047] In one possible implementation, the processing module is specifically used for:
[0048] The target directory family to which the first directory belongs is determined from the list of candidate directories. The target directory family includes the target parent directory corresponding to the first directory and at least one first-level subdirectory corresponding to the target parent directory.
[0049] If the update type is the directory type, then the candidate directory list is updated according to the target directory family and the first directory to obtain the target directory list;
[0050] If the update type is the data type, then in the target directory family, the lowest-level target subdirectory corresponding to the first directory is determined, and the candidate directory list is updated according to the lowest-level target subdirectory to obtain the target directory list;
[0051] If the update type is the status type, then the directory status to be updated is obtained, and the candidate directory list is updated according to the directory status, the target directory family and the first directory to obtain the target directory list.
[0052] In one possible implementation, the processing module is specifically used for:
[0053] If the directory type is the newly added type, then the first directory is added to the target directory family to obtain the target directory list;
[0054] If the directory type is the modification type, then in the target directory family, a target directory matching the first directory is determined, and according to the directory type, the target directory is updated to the first directory to obtain the target directory list;
[0055] If the directory type is the deletion type, then in the target directory family, a target directory matching the first directory is determined, and the target directory is deleted to obtain the target directory list.
[0056] In one possible implementation, the processing module is specifically used for:
[0057] Retrieve at least one data file to be updated;
[0058] In the list of candidate directories, add at least one data file to be updated to at least one data file corresponding to the lowest-level target subdirectory;
[0059] Obtain the current update time, and update the version information of at least one data file to be updated based on the current update time.
[0060] In one possible implementation, the processing module is specifically used for:
[0061] Within the target directory family, determine the target directory that matches the first directory.
[0062] Obtain the current directory status of the target directory;
[0063] Determine whether the current directory status is the same as the target directory status;
[0064] If so, the list of candidate directories is determined as the target directory list;
[0065] If not, the current directory status is updated based on the current directory status to obtain the target directory list.
[0066] In one possible implementation, the second determining module is specifically used for:
[0067] The user identifier is subjected to authentication processing to obtain the authentication result;
[0068] If the verification result is successful, then the user permissions corresponding to the user identifier are determined;
[0069] Based on the user permissions, a list of candidate directories corresponding to the user identifier is determined in the initial directory list.
[0070] In one possible implementation, the device further includes a query module.
[0071] The query module is used for:
[0072] Obtain a data query request, wherein the data query request includes the identifier of the target user;
[0073] Based on the identifier of the target user, a query list for the target user is determined, the query list including at least one query parent directory identifier and at least one level query subdirectory corresponding to each query parent directory identifier;
[0074] Obtain a set of target directories, the set of target directories including at least one target parent directory identifier in the query list and at least one first-level target subdirectory identifier corresponding to each query parent directory identifier;
[0075] Based on the target directory set, determine the query results corresponding to the data query request.
[0076] The query module is used for:
[0077] In the set of target directories, determine the lowest-level target subdirectory identifier corresponding to each target parent directory identifier;
[0078] Retrieve at least one target data file corresponding to each lowest-level target subdirectory identifier;
[0079] The query results are determined to include at least one target data file and the target directory family corresponding to each target data file.
[0080] Thirdly, embodiments of this application provide a catalog update device, including:
[0081] At least one processor; and
[0082] A memory communicatively connected to the at least one processor; wherein,
[0083] The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the method described in any of the first aspects.
[0084] Fourthly, embodiments of this application provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method described in any one of the first aspects.
[0085] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method described in any one of the first aspects.
[0086] The directory update method, apparatus, and device provided in this application determine an initial directory list based on multiple product information and / or business data. The initial directory list includes at least one parent directory identifier, at least one first-level subdirectory corresponding to each parent directory identifier, and at least one data file corresponding to each lowest-level subdirectory. A directory update request is obtained, including a user identifier, at least one first directory to be updated, and an update type. A candidate directory list corresponding to the user identifier is determined from the initial directory list. The candidate directory list includes at least one directory identifier for a first directory. Based on at least one first directory and the update type, the candidate directory list is updated to obtain the updated target directory list. In the above process, the initial directory list includes multi-level directories. Multi-level directories are used to indicate the type and structure information of data files corresponding to products or businesses. Multi-level directories can also indicate the relationships between multiple products or businesses. When updating the directory, the corresponding parent and subdirectories can be determined and updated accordingly, instead of traversing all directories in the directory list to determine the directory to be updated. Furthermore, the directory list that a user can update can be determined based on the user identifier, avoiding information leakage caused by each user being able to view the entire directory list, thus improving the reliability of the directory update. Attached Figure Description
[0087] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0088] Figure 1A schematic diagram illustrating the application scenarios provided in the embodiments of this application;
[0089] Figure 2 A flowchart illustrating a catalog update method provided in an embodiment of this application;
[0090] Figure 3 This is a schematic diagram illustrating the process of obtaining a directory update request provided in an embodiment of this application;
[0091] Figure 4 A flowchart illustrating another directory update method provided in an embodiment of this application;
[0092] Figure 5 A flowchart illustrating the method for obtaining data files provided in the application embodiment;
[0093] Figure 6 This is a schematic diagram illustrating the process of obtaining a target directory set provided in an embodiment of this application;
[0094] Figure 7 A schematic diagram illustrating the catalog update process provided in this application embodiment;
[0095] Figure 8 This is a schematic diagram of the structure of a catalog updating device provided in an embodiment of this application;
[0096] Figure 9 A schematic diagram of another directory updating device provided in an embodiment of this application;
[0097] Figure 10 This is a schematic diagram of the structure of the catalog update device provided in an embodiment of this application.
[0098] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0099] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0100] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof 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 a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0101] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0102] It should be noted that the catalog update method and apparatus of this application can be used in the field of big data, or in any field other than big data. The application field of the catalog update method and apparatus of this application is not limited.
[0103] To facilitate understanding, the following will be combined with... Figure 1 The application scenarios applicable to the embodiments of this application will be described.
[0104] Figure 1 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application. Please refer to [link / reference]. Figure 1 The system includes a terminal device 101 and a catalog update device 102. The terminal device 101 can be a mobile phone, tablet, computer, etc. The catalog update device 102 can be a server, and it contains a database. The database stores a catalog list, through which multiple product information or business data can be retrieved. When product information or business data in the catalog list needs updating, the user can select the product information or business data to be updated through the settings page of the terminal device 101 and send it to the catalog update device 102. After receiving the product information or business data to be updated from the terminal device 101, the catalog update device 102 determines the corresponding product information or business data in the catalog list and updates the catalog list accordingly, obtaining an updated catalog list. This allows the user to obtain the latest version of product information or business data.
[0105] In related technologies, directory updates can be performed as follows: The corresponding business or product data to be updated is determined through the master directory, and the directory list is then updated to obtain the updated directory list. However, since multiple products or businesses are associated with only one directory list, updating the directory requires traversing all directories in the list to determine the directory to be updated. Furthermore, since every user can view the directory list, there is a potential for information leakage, resulting in low reliability of directory updates.
[0106] In this embodiment, an initial directory list is determined based on multiple product information and / or business data. The initial directory list includes at least one parent directory identifier, at least one level subdirectory corresponding to each parent directory identifier, and at least one data file corresponding to each lowest-level subdirectory. A directory update request is obtained, which includes a user identifier, at least one first directory to be updated, and an update type. A candidate directory list corresponding to the user identifier is determined from the initial directory list. The candidate directory list includes at least one directory identifier for a first directory. Based on at least one first directory and the update type, the candidate directory list is updated to obtain the updated target directory list. In the above process, the initial directory list includes multi-level directories. Multi-level directories are used to indicate the type and structure information of data files corresponding to a product or business. Multi-level directories can also indicate the relationship between multiple products or businesses. When updating the directory, the corresponding parent and subdirectories can be determined and updated accordingly, instead of traversing all directories in the directory list to determine the directory to be updated. Furthermore, the directory list that a user can update can be determined based on the user identifier, avoiding information leakage caused by each user being able to view the entire directory list, thus improving the reliability of directory updates.
[0107] The method described in this application will now be illustrated through specific embodiments. It should be noted that the following embodiments may exist independently or in combination with each other; identical or similar content will not be repeated in different embodiments.
[0108] Figure 2 This is a flowchart illustrating a directory update method provided in an embodiment of this application. Please refer to [link / reference]. Figure 2 The method may include:
[0109] S201. Obtain the initial directory list.
[0110] The execution entity in this application embodiment can be a directory update device or a directory update apparatus installed within the directory update device. The directory update apparatus can be implemented through software or a combination of software and hardware. The directory update device can be a server.
[0111] The initial directory list includes at least one parent directory identifier, at least one level subdirectory corresponding to each parent directory identifier, and at least one data file corresponding to each lowest level subdirectory.
[0112] The documentation may include a detailed description of the service or product, as well as answers to frequently asked questions about the service or product.
[0113] The identifier for a directory in the directory list can be a search_key structure.
[0114] An initial catalog list can be determined based on the products and services a company can provide, as well as the relationships between each product and service, and this initial catalog list is stored in the preset storage space of the catalog update device. When a user needs to update or query the catalog, the initial catalog list is retrieved from the preset storage space.
[0115] For example, Bank A offers multiple business transaction services and multiple financial products. An initial catalog can be determined based on the business types corresponding to these services, the relationships between each service, and the relationships between each product. The specific details of the multiple business transactions and financial products are shown in Table 1.
[0116] Table 1
[0117] Service 1 Loans Service 2 electronic Service 3 cash Financial products Business type Product 1 Bonds Product 2 credit card Product 3 stock
[0118] The services shown in Table 1 can be grouped into one main category, and the products into another. The service identifier FWA is used as the parent directory identifier for business transaction services, and the product identifier CPB is used as the parent directory identifier for financial products. Based on the business type, at least one first-level subdirectory is created under the corresponding parent directory, with each first-level subdirectory corresponding to one business type. Under each first-level subdirectory, at least one second-level subdirectory can be created, and so on, to obtain the directory family corresponding to each business transaction service and each financial product, thus generating the initial directory list.
[0119] For Service 1 shown in Table 1, the identifier of the first-level subdirectory corresponding to the lending type is J101, and the identifier of the second-level subdirectory is S029, which corresponds to Service 1. Therefore, the directory family corresponding to Service 1 is FWA-J101-S029, and the directory name corresponding to Service 1 is Service-Lending. The directory name is provided to the user so that they can query and update the service using the directory name. Based on this method, the initial directory list can be obtained as shown in Table 2.
[0120] Table 2
[0121]
[0122]
[0123] Based on the initial directory list shown in Table 2, the lowest-level subdirectories can be identified as service or product identifiers. Each lowest-level subdirectory is associated with the corresponding service or product documentation files.
[0124] S202, Obtain the directory update request.
[0125] The directory update request includes the user ID, at least one primary directory to be updated, and the update type.
[0126] Update types include directory type, data type, and status type.
[0127] Users can access the processing page of the terminal device using their account password or other authentication methods. On the terminal device's processing page, they identify at least one primary directory to be updated and the update type. The terminal device determines the corresponding user identifier based on the user's authentication method. In response to the user's input selection, the terminal device generates a directory update request and sends it to the directory update device.
[0128] Below, in conjunction with Figure 3 The process of obtaining directory update requests is explained. Figure 3 This is a schematic diagram illustrating the process of obtaining a directory update request as provided in an embodiment of this application. Please refer to... Figure 3 This includes interfaces 301 and 302. Interfaces 301 and 302 can be processing pages provided by the terminal device. Referring to interface 301, after the user has authenticated their identity (e.g., account password, facial recognition, etc.), the terminal device displays the processing page. The terminal device determines the corresponding user identifier as user identifier A based on the user's authentication method. The processing page includes a drop-down menu corresponding to the parent directory, drop-down menus corresponding to multiple subdirectories, a drop-down menu corresponding to the update type, and a text input box. Referring to interface 302, the user selects "Cash and Services 3" as the subdirectory in the drop-down menu corresponding to the subdirectory, selects "Directory Type" as the update type in the drop-down menu corresponding to the update type, and enters the new directory in the text input box. The terminal device responds to the user's input selection operation, generates a directory update request, and sends the directory update request to the directory update device. The directory update request can be specifically shown in Table 3.
[0129] Table 3
[0130]
[0131]
[0132] S203. Determine the list of candidate directories corresponding to the user identifier in the initial directory list.
[0133] The list of candidate directories includes at least one directory identifier for the first directory.
[0134] The candidate directory list corresponding to a user identifier can be determined in the initial directory list as follows: perform authentication processing on the user identifier to obtain the authentication result; if the authentication result is successful, determine the user permissions corresponding to the user identifier; based on the user permissions, determine the candidate directory list corresponding to the user identifier in the initial directory list.
[0135] Authentication methods can be pre-configured and stored in the catalog update device. Authentication methods can include account passwords, facial recognition, fingerprint recognition, etc.
[0136] Since different employees in an enterprise manage different services or products, user permissions can be determined by identifying at least one directory that an employee can modify or update based on the services or products they manage.
[0137] For example, as illustrated above, the user identifier is determined to be user identifier A. Authentication is performed on user identifier A, and the authentication result is successful. Then, the user permissions corresponding to the user identifier are determined, and based on these permissions, the candidate directory list corresponding to user identifier A is determined in the initial directory list, including the directory lists corresponding to the multiple services shown in Table 2 above.
[0138] S204. Based on at least one first directory and update type, update the list of directories to be selected to obtain the updated target directory list, and send the updated target directory list to the preset device.
[0139] For any given first directory, the list of directories to be updated can be processed according to the first directory and the update type to obtain the updated target directory list as follows: Determine the target directory family to which the first directory belongs in the list of directories to be updated. The target directory family includes the target parent directory corresponding to the first directory and at least one first-level subdirectory corresponding to the target parent directory. If the update type is a directory type, then update the list of directories to be updated according to the target directory family and the first directory to obtain the target directory list. If the update type is a data type, then determine the lowest-level target subdirectory corresponding to the first directory in the target directory family, and update the list of directories to be updated according to the lowest-level target subdirectory to obtain the target directory list. If the update type is a status type, then obtain the status of the directory to be updated, and update the list of directories to be updated according to the directory status, the target directory family, and the first directory to obtain the target directory list.
[0140] For example, based on the example above, the specific list of candidate directories corresponding to user identifier A can be shown in Table 4:
[0141] Table 4
[0142] Services - Lending - Service 1 FWA-J101-S029 Service - Electronics - Service 2 FWA-D021-S540 Service - Cash - Service 3 FWA-X220-S450
[0143] Based on the directory update requests shown in Table 3 above, the first directory is determined to be Cash-Service 3. From the candidate directory list shown in Table 4, the target directory family to which the first directory belongs is determined to be Service-Cash-Service 3. Since the update type is determined to be directory type, the candidate directory list shown in Table 4 is updated according to the target directory family and the first directory to obtain the target directory list.
[0144] Sending an updated list of target directories to preset devices can notify users who are updating directories, or other users who are querying directories, that their directories have been updated.
[0145] The identifiers of preset devices and the corresponding destination addresses for each preset device can be pre-set. These preset device identifiers and their corresponding destination addresses are then stored in the preset storage space of the directory update device. The preset devices can be the terminal devices sending directory update requests or other terminal devices currently in use by the user.
[0146] For example, after determining the target directory list, the directory update device identifies the device that sent the directory update request as terminal device A. The directory update device retrieves the destination address corresponding to terminal device A from the preset storage space, and sends the updated target directory list to terminal device A based on the destination address, thus notifying the user that the directory update was successful.
[0147] The directory update method provided in this application embodiment obtains an initial directory list. It then obtains a directory update request. From the initial directory list, it determines a list of candidate directories corresponding to a user identifier. Based on at least one first directory and an update type, it updates the list of candidate directories to obtain the updated target directory list. In this process, the initial directory list includes multi-level directories, which indicate the type and structure information of data files corresponding to a product or business. Multi-level directories can also indicate the relationships between multiple products or businesses. When updating the directory, the corresponding parent and child directories can be determined and updated accordingly, instead of traversing all directories in the directory list to determine the directory to be updated. Furthermore, it can determine the directory list that a user can update based on the user identifier, avoiding information leakage caused by each user being able to view the entire directory list, thus improving the reliability of the directory update.
[0148] Based on any of the above embodiments, the following, in conjunction with Figure 4This section provides a detailed explanation of the directory update process.
[0149] Figure 4 This is a flowchart illustrating another directory update method provided in an embodiment of this application. Please refer to... Figure 4 The method includes:
[0150] S401. Obtain the initial directory list.
[0151] It should be noted that the execution process of S401 can be found in S201, and will not be repeated here.
[0152] S402, Obtain directory update request.
[0153] The directory update request includes the user ID, at least one primary directory to be updated, and the update type.
[0154] For example, a directory update request can be specifically shown in Table 5:
[0155] Table 5
[0156]
[0157] S403. Determine the list of candidate directories corresponding to the user identifier in the initial directory list.
[0158] The list of candidate directories includes at least one directory identifier for the first directory.
[0159] For example, based on the directory update request shown in Table 5 above, the user identifier is determined to be user identifier B. The specific list of candidate directories corresponding to user identifier B in the initial directory list is shown in Table 6:
[0160] Table 6
[0161] Services - Credit Cards - Service 1 FWA-X101-S001 Service - Cash - Service 3 FWA-X103-S003 Products - Bonds - Product 2 CPB-ZA1-020 Products - Bonds - Product 5 CPB-ZA1-025 Products - Stocks - Product 3 CPB-ZA2-120
[0162] S404. Determine the target directory family to which the first directory belongs from the list of candidate directories.
[0163] The target directory family includes the target parent directory corresponding to the first directory, and at least one first-level subdirectory corresponding to the target parent directory.
[0164] A directory family is all the directory identifiers included for a service or product, from the parent directory to the lowest-level child directories.
[0165] You can select a target directory that is the same as the first directory from the list of candidate directories. The parent directory and multiple subdirectories corresponding to the target directory are then defined as the target directory family.
[0166] For example, based on the directory update request shown in Table 5 above, the target directory family to which product 5 belongs is determined to be CPB-ZA1-025, the target directory family to which product 3 belongs is determined to be CPB-ZA2-120, and the target directory family to which service 1 belongs is determined to be FWA-X101-S001.
[0167] S405. If the update type is directory type, then update the list of directories to be selected based on the target directory family and the first directory to obtain the target directory list.
[0168] The directory type can be either add, modify, or delete.
[0169] The target directory list can be updated in the following ways: If the directory type is "add", add the first directory to the target directory family to obtain the target directory list; if the directory type is "modify", identify the target directory that matches the first directory in the target directory family, and update the target directory to the first directory according to the directory type to obtain the target directory list; if the directory type is "delete", identify the target directory that matches the first directory in the target directory family, and delete the target directory to obtain the target directory list.
[0170] If the directory type is "new", then when determining the first directory to be updated, the first directory of the new type includes the newly added directory and its corresponding parent directory or subdirectory. This allows the directory update device to determine the target directory family to which the first directory belongs, and thus add the first directory to the target directory family.
[0171] For example, based on the directory update request shown in Table 5 above, the update type for product 5 is determined to be a directory deletion type. Within the target directory family, the target directory matching the first directory is identified as CPB-ZA1-025. The target directory is then deleted, resulting in a target directory list. The specific target directory list is shown in Table 7.
[0172] Table 7
[0173] Services - Credit Cards - Service 1 FWA-X101-S001 Service - Cash - Service 3 FWA-X103-S003 Products - Bonds - Product 2 CPB-ZA1-020 Products - Stocks - Product 3 CPB-ZA2-120
[0174] S406. If the update type is data type, then in the target directory family, determine the lowest-level target subdirectory corresponding to the first directory.
[0175] For example, based on the directory update request shown in Table 5 above, the update type for Product 3 is determined to be data type, and the target directory family for Product 3 is determined to be CPB-ZA2-120. Within the target directory family, the lowest-level target subdirectory corresponding to the first directory is determined to be 120.
[0176] S407. Update the list of directories to be selected based on the lowest-level target subdirectories to obtain the target directory list.
[0177] The target directory list can be updated based on the lowest-level target subdirectory in the following way: obtain at least one data file to be updated; add at least one data file to be updated to the corresponding at least one data file in the lowest-level target subdirectory from the candidate directory list; obtain the current update time, and determine the version information of at least one data file to be updated based on the current update time.
[0178] Users can maintain and manage data based on the version information of the data files.
[0179] For example, based on the directory update request shown in Table 5 above, the data file to be updated for product 3 is determined to be data file 1. In the candidate directory list shown in Table 6 above, the specific data file corresponding to the lowest-level target subdirectory 120 can be determined as shown in Table 8:
[0180] Table 8
[0181] Document 1-1.0 1.0 Document 1-1.1 1.1 Document 1-1.2 1.2 Document 1-1.3 1.3
[0182] Add data file 1 to Table 8, and determine the version information of at least one data file to be updated as 1.4 based on the current update time.
[0183] S408. If the update type is a status type, then obtain the status of the directory to be updated.
[0184] The directory status can be either online and visible, online and invisible, offline and visible, or offline and invisible. When the directory status is online and visible, users can retrieve the corresponding data files by querying.
[0185] For example, based on the directory update request shown in Table 5 above, the update type of service 1 is determined to be a status type, and the status of the directory to be updated is obtained as online.
[0186] S409. Based on the directory status, target directory family, and first directory, update the list of directories to be selected to obtain the target directory list, and send the updated target directory list to the preset device.
[0187] The list of candidate directories also includes the current directory status.
[0188] The candidate directory list can be updated based on the directory status, target directory family, and first directory to obtain the target directory list: In the target directory family, identify the target directory that matches the first directory and obtain the current directory status of the target directory; determine whether the current directory status is the same as the target directory status; if so, determine the candidate directory list as the target directory list; if not, the current directory status is different from the target directory status, update the current directory status according to the current directory status to obtain the target directory list.
[0189] For example, as illustrated above, the target directory family to which service 1 belongs is determined to be FWA-X101-S001. Within this target directory family, the target directory matching the first directory is identified as S001. If the current directory status of the target directory is found to be offline, then the current directory status differs from the previous directory status. The current directory status is then updated from offline to online, resulting in the target directory list.
[0190] The directory update method provided in this application embodiment obtains an initial directory list and a directory update request. A candidate directory list corresponding to a user identifier is determined from the initial directory list. The target directory family to which the first directory belongs is determined from the candidate directory list. If the update type is data type, the lowest-level target subdirectory corresponding to the first directory is determined within the target directory family. The candidate directory list is updated based on the target directory family and the first directory to obtain the target directory list. If the update type is data type, the lowest-level target subdirectory corresponding to the first directory is determined within the target directory family. The candidate directory list is updated based on the lowest-level target subdirectory to obtain the target directory list. If the update type is status type, the directory status to be updated is obtained. The candidate directory list is updated based on the directory status, the target directory family, and the first directory to obtain the target directory list. In the above process, the initial directory list includes multi-level directories. Multi-level directories are used to indicate the type and structure information of data files corresponding to a product or business. Multi-level directories can also indicate the relationship between multiple products or businesses. When updating a directory, the corresponding parent and subdirectories can be identified and updated accordingly, instead of traversing the entire directory list to determine the directory to be updated. Furthermore, the list of directories that a user can update can be determined based on their user identifier, preventing information leakage by ensuring that each user can view the entire directory list, thus improving the reliability of directory updates.
[0191] Users can find the required files in the target directory list. Below, we will combine... Figure 5 This section explains the process by which users retrieve data files.
[0192] Figure 5This is a flowchart illustrating the method for obtaining data files provided in the application embodiment. Please refer to [link / reference]. Figure 5 The method includes:
[0193] S501, Get data query request.
[0194] The data query request includes the identifier of the target user.
[0195] Users can access the query page through the client provided by the company after identity verification, and then retrieve data files by querying data.
[0196] Identity verification can be done through methods such as account passwords or fingerprint recognition.
[0197] For example, a user installs client 1 provided by company A on their terminal device. After registering an account on client 1, the user authenticates and is directed to the query page on client 1. In response to the user's action, the terminal device generates a data query request and sends it to the catalog update device. The data query request includes the target user's identifier A123.
[0198] S502. Determine the query list of the target user based on the target user's identifier.
[0199] The query list includes at least one query parent directory identifier and at least one query subdirectory corresponding to each query parent directory identifier.
[0200] Multiple user identifiers and corresponding query lists for each user identifier can be pre-set, and the multiple user identifiers and corresponding query lists for each user identifier can be stored in the preset storage space of the directory update device.
[0201] After determining the target user's query list based on the target user's identifier, the directory update device sends the query list to the terminal device in the format of map<directory identifier, directory name>. The terminal device parses the query list and displays the directory name on the query page.
[0202] S503, Obtain the target directory set.
[0203] The target directory set includes at least one target parent directory identifier in the query list and at least one first-level target subdirectory identifier corresponding to each query parent directory identifier.
[0204] Users can select a parent directory on the query page. The terminal device responds to the user's click and displays the first-level subdirectories corresponding to the parent directory, and so on, to generate a set of target directories.
[0205] Below, in conjunction with Figure 6 The process of determining and obtaining the target directory set is explained. Figure 6This is a schematic diagram illustrating the process of obtaining a target directory set as provided in an embodiment of this application. Please refer to... Figure 6 This includes interfaces 601 to 602. Interfaces 601 and 602 can be pages provided by the terminal device. Referring to interface 601, after the user opens client 1 provided by enterprise A on the terminal device, the terminal device displays a login page. After the user enters their account and password on the login page, the terminal device generates a data query request and sends it to the directory update device. The data query request includes the user identifier A123. Referring to interface 602, the directory update device determines the target user's query list based on the target user's identifier and sends the target user's query list to the terminal device. The terminal device parses the target user's query list and displays the directory name on the query page. The user first identifies the parent directory as a service on the query page. The terminal device displays the first-level subdirectories corresponding to the parent directory, including deposits, withdrawals, transfers, and loans. After the user identifies the second-level subdirectory as service 4.3 within the first-level subdirectory, they click the "OK" button. Responding to the user's click selection, the terminal device generates a target directory set and sends it to the directory update device. The target directory set is FWA-X301-S004.
[0206] S504. Determine the query results corresponding to the data query request based on the target directory set.
[0207] The query results corresponding to the data query request can be determined based on the target directory set as follows: In the target directory set, determine the lowest-level target subdirectory identifier corresponding to each target parent directory identifier; obtain at least one target data file corresponding to each lowest-level target subdirectory identifier; determine that the query results include at least one target data file and the target directory family corresponding to each target data file.
[0208] For example, as illustrated above, the target directory set is determined to be FWA-X301-S004. Within this target directory set, the lowest-level target subdirectory identifier corresponding to each target parent directory identifier is identified as S004. At least one target data file corresponding to S004 is obtained, including data file 4.5. Therefore, the directory update device determines that the query result includes FWA-X301-S004 and data file 4.5. The directory update device sends the query result to the terminal device. After receiving the query result from the directory update device, the terminal device displays the specific content of the directory name service-borrowing-service 4.3 and data file 4.5 corresponding to the target directory family.
[0209] The method for obtaining data files provided in this application includes: obtaining a data query request; determining a query list for the target user based on the target user's identifier; obtaining a target directory set; and determining the query results corresponding to the data query request based on the target directory set. In this process, users can obtain data files according to their corresponding permissions. This avoids the situation where every user can obtain all data files, thus preventing the leakage of privacy information and improving the security of obtaining data files.
[0210] Based on any of the above embodiments, the following, in conjunction with Figure 7 The process of updating the directory is illustrated with an example.
[0211] Figure 7 This is a schematic diagram illustrating the catalog update process provided in an embodiment of this application. Please refer to [link / reference]. Figure 7 This includes a terminal device 701 and a directory update device 702. The terminal device 701 can be a mobile phone, tablet, computer, or other similar device. The directory update device 702 can be a server, and it includes a database and a preset storage space. The database stores a list of target directories and their corresponding data files, while the preset storage space stores a list of directories corresponding to user identifiers, allowing users to update the directory list or retrieve the corresponding data files based on their permissions.
[0212] The user accesses the settings page of terminal device 701 using an account password or other authentication method. On the settings page, the user selects at least one primary directory to be updated and the update type. Terminal device 701 determines the corresponding user identifier as B123 based on the user's authentication method. In response to the user's input selection, terminal device 701 generates a directory update request and sends it to directory update device 702. The directory update request is detailed in Table 9.
[0213] Table 9
[0214]
[0215] After receiving the directory update request shown in Table 9, the directory update device 702 determines the candidate directory list corresponding to user identifier B123 in the initial directory list, as shown in Table 10:
[0216] Table 10
[0217] Services - Lending - Service 1 FWA-J101-D001 Services - Loans - Services 2 FWA-J101-D002 Service - Transfer - Service 3 FWA-ZA02-X501 Service - Cash - Service 4 FWA-XJ25-J230
[0218] Based on the directory update requests shown in Table 9, directory update device 702 determines that the target directory family to which service 1 belongs is FWA-J101, and the target directory family to which service 3 belongs is FWA-ZA02-X501. Directory update device 702 determines that the update type of service 5 is a new directory type, and adds the identifier of the first directory (borrowing / debiting) - service 5 to the target directory family, thus obtaining a target directory list. Directory update device 702 determines that the update type of service 3 is a data type, and in the target directory family, determines that the lowest-level target subdirectory corresponding to service 3 is X501. The directory update device 702 determines that at least one data file corresponding to the lowest-level target subdirectory X501 can be specifically shown in Table 11.
[0219] Table 11
[0220]
[0221]
[0222] The directory update device 702 obtains the data file 3 to be updated. From the candidate directory list shown in Table 10, data file 3 is added to Table 11. The current update time, 2023 / 08 / 17 11:30, is obtained, and based on this time, the version information of data file 3 is determined to be 1.4. The directory update device 702 determines the target directory list after the update as shown in Table 12.
[0223] Table 12
[0224] Services - Lending - Service 1 FWA-J101-D001 Document 1; Version 1.3 Services - Loans - Services 2 FWA-J101-D002 Document 2; Version 1.2 Services - Loans - Services 5 FWA-J101-D005 Document 5; Version 1.0 Service - Transfer - Service 3 FWA-ZA02-X501 Document 3; Version 1.4 Service - Cash - Service 4 FWA-XJ25-J230 Document 4; Version 1.1
[0225] After determining the updated target directory list, the directory update device 702 identifies the terminal device that sent the directory update request as terminal device 701. The directory update device 702 retrieves the destination address (address B2) corresponding to terminal device 701 from a preset storage space and, based on destination address B2, sends the updated target directory list shown in Table 12 to terminal device 701 to indicate that the user performing the directory update has successfully updated.
[0226] Users can search for the required documents in the target directory list of the directory update device 702. Users can access the query page after authentication via the client provided by the terminal device 701. In response to the user's operation, the terminal device 701 generates a data query request and sends it to the directory update device 702. The data query request includes the target user's identifier C123. After receiving the data query request from the terminal device 701, the directory update device 702 determines the target user's query list based on the target user's identifier C123. The directory update device 702 sends the query list to the terminal device 701. The terminal device 701 displays the query list on the query page, which is used to determine the target directory set as FWA-XJ25-J230, and sends the target directory set to the directory update device 702. Based on the target directory set, the directory update device 702 determines that the query results corresponding to the data query request include document 4 and FWA-XJ25-J230, and sends the query results to the terminal device 701. Terminal device 701 parses and processes the results, and displays data file 4 and the directory name corresponding to FWA-XJ25-J230, Service-Cash-Service 4, through the query page.
[0227] The directory update method provided in this application embodiment obtains an initial directory list and a directory update request. A candidate directory list corresponding to a user identifier is determined from the initial directory list. The target directory family to which the first directory belongs is determined from the candidate directory list. If the update type is data type, the lowest-level target subdirectory corresponding to the first directory is determined within the target directory family. The candidate directory list is updated based on the target directory family and the first directory to obtain the target directory list. If the update type is data type, the lowest-level target subdirectory corresponding to the first directory is determined within the target directory family. The candidate directory list is updated based on the lowest-level target subdirectory to obtain the target directory list. If the update type is status type, the directory status to be updated is obtained. The candidate directory list is updated based on the directory status, the target directory family, and the first directory to obtain the target directory list. In the above process, the initial directory list includes multi-level directories. Multi-level directories are used to indicate the type and structure information of data files corresponding to a product or business. Multi-level directories can also indicate the relationship between multiple products or businesses. When updating a directory, the corresponding parent and subdirectories can be identified and updated accordingly, instead of traversing the entire directory list to determine the directory to be updated. Furthermore, the list of directories that a user can update can be determined based on their user identifier, preventing information leakage by ensuring that each user can view the entire directory list, thus improving the reliability of directory updates.
[0228] Figure 8This is a schematic diagram of a directory updating device provided in an embodiment of this application. Please refer to... Figure 7 The catalog update device 10 may include:
[0229] The first acquisition module 11 is used to determine an initial directory list, the initial directory list including at least one parent directory identifier, at least one level subdirectory corresponding to each parent directory identifier, and at least one data file corresponding to each lowest level subdirectory;
[0230] The second acquisition module 12 is used to acquire a directory update request, wherein the directory update request includes a user identifier, at least one first directory to be updated, and an update type;
[0231] The determining module 13 is used to determine the candidate directory list corresponding to the user identifier in the initial directory list, wherein the candidate directory list includes the directory identifier of the at least one first directory;
[0232] Processing module 14 is used to update the candidate directory list according to the at least one first directory and the update type, to obtain the updated target directory list, and to send the updated target directory list to a preset device.
[0233] In one possible implementation, the processing module 14 is specifically used for:
[0234] The target directory family to which the first directory belongs is determined from the list of candidate directories. The target directory family includes the target parent directory corresponding to the first directory and at least one first-level subdirectory corresponding to the target parent directory.
[0235] If the update type is the directory type, then the candidate directory list is updated according to the target directory family and the first directory to obtain the target directory list;
[0236] If the update type is the data type, then in the target directory family, the lowest-level target subdirectory corresponding to the first directory is determined, and the candidate directory list is updated according to the lowest-level target subdirectory to obtain the target directory list;
[0237] If the update type is the status type, then the directory status to be updated is obtained, and the candidate directory list is updated according to the directory status, the target directory family and the first directory to obtain the target directory list.
[0238] In one possible implementation, the processing module 14 is specifically used for:
[0239] If the directory type is the newly added type, then the first directory is added to the target directory family to obtain the target directory list;
[0240] If the directory type is the modification type, then in the target directory family, a target directory matching the first directory is determined, and according to the directory type, the target directory is updated to the first directory to obtain the target directory list;
[0241] If the directory type is the deletion type, then in the target directory family, a target directory matching the first directory is determined, and the target directory is deleted to obtain the target directory list.
[0242] In one possible implementation, the processing module 14 is specifically used for:
[0243] Retrieve at least one data file to be updated;
[0244] In the list of candidate directories, add at least one data file to be updated to at least one data file corresponding to the lowest-level target subdirectory;
[0245] Obtain the current update time, and update the version information of at least one data file to be updated based on the current update time.
[0246] In one possible implementation, the processing module 14 is specifically used for:
[0247] Within the target directory family, determine the target directory that matches the first directory.
[0248] Obtain the current directory status of the target directory;
[0249] Determine whether the current directory status is the same as the target directory status;
[0250] If so, the list of candidate directories is determined as the target directory list;
[0251] If not, the current directory status is updated based on the current directory status to obtain the target directory list.
[0252] In one possible implementation, the determining module 13 is specifically used for:
[0253] The user identifier is subjected to authentication processing to obtain the authentication result;
[0254] If the verification result is successful, then the user permissions corresponding to the user identifier are determined;
[0255] Based on the user permissions, a list of candidate directories corresponding to the user identifier is determined in the initial directory list.
[0256] The directory updating device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0257] Figure 9 This is a schematic diagram of another directory updating device provided in an embodiment of this application. Figure 8 Based on the illustrated embodiments, please refer to Figure 9 The directory update device 10 also includes a query module 15.
[0258] The query module 15 is used for:
[0259] Obtain a data query request, wherein the data query request includes the identifier of the target user;
[0260] Based on the identifier of the target user, a query list for the target user is determined, the query list including at least one query parent directory identifier and at least one level query subdirectory corresponding to each query parent directory identifier;
[0261] Obtain a set of target directories, the set of target directories including at least one target parent directory identifier in the query list and at least one first-level target subdirectory identifier corresponding to each query parent directory identifier;
[0262] Based on the target directory set, determine the query results corresponding to the data query request.
[0263] The query module 15 is used for:
[0264] In the set of target directories, determine the lowest-level target subdirectory identifier corresponding to each target parent directory identifier;
[0265] Retrieve at least one target data file corresponding to each lowest-level target subdirectory identifier;
[0266] The query results are determined to include at least one target data file and the target directory family corresponding to each target data file.
[0267] The directory updating device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0268] Figure 10 This is a schematic diagram of the structure of the catalog update device provided in an embodiment of this application. Please refer to... Figure 10The catalog update device 20 may include a memory 21 and a processor 22. Exemplarily, the memory 21 and the processor 22 are interconnected via a bus 23.
[0269] Memory 21 is used to store program instructions;
[0270] The processor 22 is used to execute the program instructions stored in the memory, so that the directory update device 20 performs the method shown in the above method embodiment.
[0271] The catalog update device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be repeated here.
[0272] This application provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above-described method when executed by a processor.
[0273] This application embodiment may also provide a computer program product, including a computer program that, when executed by a processor, can implement the above-described method.
[0274] All or part of the steps in the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above-described method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof.
[0275] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0276] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0277] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0278] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include these modifications and variations.
[0279] In this application, the term "comprising" and its variations can refer to non-limiting inclusion; the term "or" and its variations can refer to "and / or". The terms "first", "second", etc., in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. In this application, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
Claims
1. A directory update method, characterized in that, include: Obtain an initial directory list, which includes at least one parent directory identifier, at least one level subdirectory corresponding to each parent directory identifier, and at least one data file corresponding to each lowest level subdirectory; Obtain a directory update request, wherein the directory update request includes a user identifier, at least one first directory to be updated, and an update type; In the initial directory list, a list of candidate directories corresponding to the user identifier is determined, wherein the list of candidate directories includes the directory identifiers of the at least one first directory; The candidate directory list is updated according to the at least one first directory and the update type to obtain the updated target directory list, and the updated target directory list is sent to the preset device. The update types include directory type, data type, and status type; Based on the at least one first directory and the update type, the candidate directory list is updated to obtain an updated target directory list, including: For any first directory, the target directory family to which the first directory belongs is determined in the list of candidate directories. The target directory family includes the target parent directory corresponding to the first directory and at least one first-level subdirectory corresponding to the target parent directory. Each first-level subdirectory corresponds to a business type. If the update type is the directory type, then the candidate directory list is updated according to the target directory family and the first directory to obtain the target directory list; If the update type is the data type, then in the target directory family, the lowest-level target subdirectory corresponding to the first directory is determined, and the candidate directory list is updated according to the lowest-level target subdirectory to obtain the target directory list; If the update type is the status type, then the directory status to be updated is obtained, and the candidate directory list is updated according to the directory status, the target directory family and the first directory to obtain the target directory list.
2. The method according to claim 1, characterized in that, The directory type can be a new type, a modified type, or a deleted type; Based on the target directory family and the first directory, the candidate directory list is updated to obtain the target directory list, including: If the directory type is the newly added type, then the first directory is added to the target directory family to obtain the target directory list; If the directory type is the modification type, then in the target directory family, a target directory matching the first directory is determined, and according to the directory type, the target directory is updated to the first directory to obtain the target directory list; If the directory type is the deletion type, then in the target directory family, a target directory matching the first directory is determined, and the target directory is deleted to obtain the target directory list.
3. The method according to claim 1, characterized in that, Based on the lowest-level target subdirectory, the candidate directory list is updated to obtain the target directory list, including: Retrieve at least one data file to be updated; In the list of candidate directories, add at least one data file to be updated to at least one data file corresponding to the lowest-level target subdirectory; Obtain the current update time, and update the version information of at least one data file to be updated based on the current update time.
4. The method according to claim 1, characterized in that, The candidate directory list also includes the current directory status; based on the directory status, the target directory family, and the first directory, the candidate directory list is updated to obtain the target directory list, including: Within the target directory family, determine the target directory that matches the first directory. Obtain the current directory status of the target directory; Determine whether the current directory status is the same as the target directory status; If so, the list of candidate directories is determined as the target directory list; If not, the current directory state is different from the directory state, then the current directory state is updated according to the directory state to obtain the target directory list.
5. The method according to any one of claims 1-4, characterized in that, Determining the candidate directory list corresponding to the user identifier in the initial directory list includes: The user identifier is subjected to authentication processing to obtain the authentication result; If the verification result is successful, then the user permissions corresponding to the user identifier are determined; Based on the user permissions, a list of candidate directories corresponding to the user identifier is determined in the initial directory list.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: Obtain a data query request, wherein the data query request includes the identifier of the target user; Based on the identifier of the target user, a query list for the target user is determined, the query list including at least one query parent directory identifier and at least one level query subdirectory corresponding to each query parent directory identifier; Obtain a set of target directories, the set of target directories including at least one target parent directory identifier in the query list and at least one first-level target subdirectory identifier corresponding to each query parent directory identifier; Based on the target directory set, determine the query results corresponding to the data query request.
7. The method according to claim 6, characterized in that, Based on the target directory set, determine the query results corresponding to the data query request, including: In the set of target directories, determine the lowest-level target subdirectory identifier corresponding to each target parent directory identifier; Retrieve at least one target data file corresponding to each lowest-level target subdirectory identifier; The query results are determined to include at least one target data file and the target directory family corresponding to each target data file.
8. A catalog updating device, characterized in that, The device includes: The first acquisition module is used to determine an initial directory list, which includes at least one parent directory identifier, at least one level subdirectory corresponding to each parent directory identifier, and at least one data file corresponding to each lowest level subdirectory. The second acquisition module is used to acquire a directory update request, wherein the directory update request includes a user identifier, at least one first directory to be updated, and an update type; A determining module is configured to determine a list of candidate directories corresponding to the user identifier in the initial directory list, wherein the list of candidate directories includes the directory identifiers of the at least one first directory; The processing module is used to update the candidate directory list according to the at least one first directory and the update type to obtain the updated target directory list; the update type includes directory type, data type and status type; The processing module is specifically used to determine the target directory family to which any first directory belongs in the list of candidate directories. The target directory family includes the target parent directory corresponding to the first directory and at least one first-level subdirectory corresponding to the target parent directory. Each first-level subdirectory corresponds to a business type. If the update type is the directory type, then the candidate directory list is updated according to the target directory family and the first directory to obtain the target directory list; If the update type is the data type, then in the target directory family, the lowest-level target subdirectory corresponding to the first directory is determined, and the candidate directory list is updated according to the lowest-level target subdirectory to obtain the target directory list; If the update type is the status type, then the directory status to be updated is obtained, and the candidate directory list is updated according to the directory status, the target directory family and the first directory to obtain the target directory list.
9. A catalog update device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, in, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.
Citation Information
Patent Citations
File management method, device and system
CN107633053A
Universal directory management method and device and computer equipment
CN113392066A