Group creation method, device, electronic device, storage medium and computer program product
By storing account group index information and account groups in the database, splitting data processing and querying, the problem of poor maintainability of group creation and maintenance in the existing technology is solved, and the system's response speed and data query are improved efficiency.
Patent Information
- Application Number
- CN202210445181.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-26
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2042-04-26
AI Technical Summary
Existing databases have poor maintenance problems when creating and maintaining groups, especially when the amount of data and account groups are increasing, it is difficult to respond to group changes and add new groups in a timely manner.
By storing the index information of the account group and the account group itself in a database between the client and the second system, splitting data processing and querying, alleviating the data processing pressure of a single system, and using the index information to trigger the second system to query the account group. to improve the maintainability of the system.
It effectively improves the system's maintainability and data query efficiency, reduces the data processing pressure of a single system, and ensures the flexibility and accuracy of group creation and editing.
Smart Images

Figure CN114896493B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to database technology, and more particularly to a group creation method, device, electronic device, storage medium, and computer program product. Background Art
[0002] With the increasing development of computer technology, in order to achieve accurate allocation of resources, before conducting business, business parties conducting business promotion can select target groups and then provide resources to the selected target groups.
[0003] In the related art, the people to be selected can be stored in advance in a database corresponding to the system. After receiving the selection request, the system selects the people to be selected in the database, generates a corresponding group and stores it in the database of the system.
[0004] However, as the amount of data and account groups in the database continues to increase, the data processing pressure of the system continues to increase. When the group changes or new groups need to be added, it is difficult to respond in a timely manner, and there is a problem of poor group maintainability. Summary of the invention
[0005] The present disclosure provides a group creation method, device, electronic device, storage medium and computer program product to at least solve the problem of poor maintainability of account groups in related technologies. The technical solution of the present disclosure is as follows:
[0006] According to a first aspect of an embodiment of the present disclosure, a group creation method is provided, which is applied to a first system, and the method includes:
[0007] In response to the client's account group creation request, a screening request carrying an account screening rule is sent to the second system, wherein the screening request is used to trigger the second system to screen predetermined candidate accounts according to the account screening rule to obtain a target account set, and send corresponding feedback information to the first system;
[0008] Based on the feedback information, create index information corresponding to the target account set, store the index information in a database corresponding to the first system, and send a group creation instruction to the second system to trigger the second system to generate an account group corresponding to the target account set, and store the account group in a database corresponding to the second system;
[0009] After receiving a creation success message returned by the second system in response to the group creation instruction, a request processing result is returned to the client.
[0010] In an exemplary embodiment, if the account screening rule is a plurality of account screening rules for screening different target account sets from the candidate accounts, the step of creating index information corresponding to the target account set based on the feedback information includes:
[0011] Based on the feedback information, a main table of account sets corresponding to the candidate accounts is generated, and for each target account set, a sub-table corresponding to the target account set is generated;
[0012] Based on the account set main table and the sub-table corresponding to each target account set, index information corresponding to each target account set is generated.
[0013] In an exemplary embodiment, generating a sub-table corresponding to the target account set includes:
[0014] Acquire set attribute information corresponding to the target account set, and acquire associated account group information corresponding to the suspicious account group and / or the recommended account group associated with the target account set;
[0015] Determine an account group identifier corresponding to an account group to be generated corresponding to the target account set;
[0016] Based on the set attribute information, the associated account group information, the account group identifier, and the account screening rule corresponding to the target account set, a subtable corresponding to the target account set is generated.
[0017] In an exemplary embodiment, the feedback information includes the number of accounts corresponding to the target account in the target account set, and before creating the index information corresponding to the target account set based on the feedback information, the method further includes:
[0018] Acquire the number of accounts in the feedback information, and send preview information of the number of accounts to the client;
[0019] If confirmation information returned by the client in response to the preview information is received, the step of creating index information corresponding to the target account set based on the feedback information is performed.
[0020] In an exemplary embodiment, after sending the group creation instruction to the second system, the method further includes:
[0021] Responding to an account group editing request from the client, obtaining account group editing information;
[0022] Sending the account group editing information to the second system to trigger the second system to update the account group stored in a database corresponding to the second system based on the account group editing information;
[0023] If update completion information returned by the second system for the stored account group is received, the index information in the database corresponding to the first system is updated.
[0024] In an exemplary embodiment, the index information includes an account group status, and the sending the account group edit information to the second system includes:
[0025] Calling the group update interface corresponding to the second system, sending the account group editing information to the second system, and adjusting the account group status in the index information to an update status;
[0026] The updating of the index information includes:
[0027] The account group status is adjusted to be effective.
[0028] In an exemplary embodiment, after sending the group creation instruction to the second system, the method further includes:
[0029] receiving group update information sent by the second system; the group update information corresponds to an updated target account set, the updated target account set being obtained after the second system screens the current candidate accounts based on the account screening rule at a preset time interval;
[0030] The index information is updated based on the group update information.
[0031] According to a second aspect of an embodiment of the present disclosure, a group creation method is provided, which is applied to a second system, and the method includes:
[0032] receiving a screening request; the screening request is sent by the first system to the second system in response to an account group creation request sent by the client, and the screening request carries an account screening rule;
[0033] Screening predetermined candidate accounts according to the account screening rule to obtain a target account set, and sending feedback information to the first system to trigger the first system to create index information corresponding to the target account set based on the feedback information, and sending a group creation instruction to the second system;
[0034] After receiving the group creation instruction, an account group corresponding to the target account set is generated, the account group is stored in a database corresponding to the second system, and a creation success message is returned to the first system to trigger the first system to return the request processing result to the client; the group creation instruction is sent by the first system to the second system after storing the index information in the database corresponding to the first system.
[0035] In an exemplary embodiment, after returning a creation success message to the first system, the method further includes:
[0036] receiving the account group editing information sent by the first system, and updating the account group stored in the database corresponding to the second system based on the account group editing information; the account group editing information is obtained by the first system in response to the account group editing request of the client;
[0037] Acquire update completion information for the stored account group, and send the update completion information to the first system to trigger the first system to update the index information.
[0038] In an exemplary embodiment, after returning a creation success message to the first system, the method further includes:
[0039] At a preset time interval, based on the account screening rule, the candidate accounts in the current candidate account set are screened to obtain an updated target account set;
[0040] The group update information corresponding to the updated target account set is obtained and sent to the first system to trigger the first system to update the index information based on the group update information.
[0041] According to a third aspect of an embodiment of the present disclosure, a group creation device is provided, which is applied to a first system, and the device includes:
[0042] a request receiving unit, configured to execute, in response to the account group creation request of the client, send a screening request carrying an account screening rule to the second system, wherein the screening request is used to trigger the second system to screen predetermined candidate accounts according to the account screening rule to obtain a target account set, and send corresponding feedback information to the first system;
[0043] an index information creation unit, configured to create index information corresponding to the target account set based on the feedback information, store the index information in a database corresponding to the first system, and send a group creation instruction to the second system to trigger the second system to generate an account group corresponding to the target account set, and store the account group in a database corresponding to the second system;
[0044] The processing result returning unit is configured to return the request processing result to the client after receiving the creation success message returned by the second system in response to the group creation instruction.
[0045] In an exemplary embodiment, if the account screening rule is a plurality of account screening rules for screening different target account sets from the candidate accounts, the index information creating unit includes:
[0046] A data table creation module is configured to generate an account set master table corresponding to the candidate account based on the feedback information, and, for each target account set, generate a sub-table corresponding to the target account set;
[0047] The index information generating module is configured to generate index information corresponding to each target account set based on the account set main table and the sub-table corresponding to each target account set.
[0048] In an exemplary embodiment, the data table creation module is configured to execute:
[0049] Acquire set attribute information corresponding to the target account set, and acquire associated account group information corresponding to the suspicious account group and / or the recommended account group associated with the target account set;
[0050] Determine an account group identifier corresponding to an account group to be generated corresponding to the target account set;
[0051] Based on the set attribute information, the associated account group information, the account group identifier, and the account screening rule corresponding to the target account set, a subtable corresponding to the target account set is generated.
[0052] In an exemplary embodiment, the feedback information includes the number of accounts corresponding to the target account in the target account set, and the device further includes:
[0053] a preview information generating unit, configured to obtain the number of accounts in the feedback information, and send preview information for the number of accounts to the client;
[0054] The confirmation information receiving unit is configured to execute the step of creating index information corresponding to the target account set based on the feedback information if confirmation information returned by the client in response to the preview information is received.
[0055] In an exemplary embodiment, the apparatus further comprises:
[0056] an account group editing information acquiring unit, configured to execute in response to an account group editing request of the client, and acquire account group editing information;
[0057] an account group edit information sending unit, configured to send the account group edit information to the second system to trigger the second system to update the account group stored in the database corresponding to the second system based on the account group edit information;
[0058] The first index information updating unit is configured to update the index information in the database corresponding to the first system if update completion information returned by the second system for the stored account group is received.
[0059] In an exemplary embodiment, the index information includes the account group status, and the account group edit information sending unit is configured to execute:
[0060] Calling the group update interface corresponding to the second system, sending the account group editing information to the second system, and adjusting the account group status in the index information to an update status;
[0061] The first index information updating unit is configured to execute:
[0062] The account group status is adjusted to be effective.
[0063] In an exemplary embodiment, the apparatus further comprises:
[0064] a group update information receiving unit configured to receive group update information sent by the second system; the group update information corresponds to an updated target account set, the updated target account set being obtained after the second system screens the current candidate accounts based on the account screening rule at a preset time interval;
[0065] The second index information updating unit is configured to update the index information based on the group update information.
[0066] According to a fourth aspect of an embodiment of the present disclosure, a group creation device is provided, which is applied to a second system, and the device includes:
[0067] a screening request receiving unit, configured to receive a screening request; the screening request is sent by the first system to the second system in response to an account group creation request sent by the client, and the screening request carries an account screening rule;
[0068] an account screening unit, configured to screen predetermined candidate accounts according to the account screening rule to obtain a target account set, and send feedback information to the first system to trigger the first system to create index information corresponding to the target account set based on the feedback information, and send a group creation instruction to the second system;
[0069] The group creation unit is configured to generate an account group corresponding to the target account set after receiving the group creation instruction, store the account group in a database corresponding to the second system, and return a creation success message to the first system to trigger the first system to return the request processing result to the client; the group creation instruction is sent by the first system to the second system after storing the index information in the database corresponding to the first system.
[0070] In an exemplary embodiment, the apparatus further comprises:
[0071] an account group editing information receiving unit, configured to receive the account group editing information sent by the first system, and update the account group stored in the database corresponding to the second system based on the account group editing information; the account group editing information is obtained by the first system in response to the account group editing request of the client;
[0072] The update message sending unit is configured to obtain update completion information for the stored account group and send the update completion information to the first system to trigger the first system to update the index information.
[0073] In an exemplary embodiment, the apparatus further comprises:
[0074] an account set updating unit, configured to perform screening of candidate accounts in the current candidate account set based on the account screening rule at a preset time interval to obtain an updated target account set;
[0075] The group update information sending unit is configured to obtain the group update information corresponding to the updated target account set and send it to the first system to trigger the first system to update the index information based on the group update information.
[0076] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0077] processor;
[0078] a memory for storing instructions executable by the processor;
[0079] The processor is configured to execute the instructions to implement any of the group creation methods described above.
[0080] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any of the group creation methods described above.
[0081] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is enabled to execute any of the group creation methods described above.
[0082] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0083] In an embodiment of the present disclosure, when selecting accounts, the index information of the account group and the account group itself are stored in separate libraries, so that the subsequent business calls and data queries for group selection are split into different systems. When a call request for a created account group is received, the first system responds and triggers the second system to query the corresponding account group based on the index information, thereby reducing the data processing pressure and coupling of a single system and improving the maintainability of the system.
[0084] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0086] Figure 1 The figure is a diagram showing an application environment of a group creation method according to an exemplary embodiment.
[0087] Figure 2 The figure is a flowchart of a group creation method according to an exemplary embodiment.
[0088] Figure 3 The diagram is a schematic diagram showing the structure of index information in a first system database according to an exemplary embodiment.
[0089] Figure 4The figure is a schematic diagram of an association structure of account groups in a second system database according to an exemplary embodiment.
[0090] Figure 5 The figure is a flowchart of another group creation method according to an exemplary embodiment.
[0091] Figure 6 The diagram is a schematic diagram showing interaction between a first system and a second system according to an exemplary embodiment.
[0092] Figure 7 The figure is a device architecture diagram showing a group creation method according to an exemplary embodiment.
[0093] Figure 8 It is a timing diagram showing a group creation method according to an exemplary embodiment.
[0094] Fig. 9 The figure is a block diagram of a device for creating a group according to an exemplary embodiment.
[0095] Fig.10 It is a block diagram of another device for creating a group according to an exemplary embodiment.
[0096] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0097] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0098] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0099] It should also 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 display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0100] The group creation method provided in the present disclosure can be applied to Figure 1 In the application environment shown. In the application environment, a client 110, a first system 120 and a second system 130 are included. The client 110 can communicate with the first system 120 through a network, and the first system 120 can communicate with the second system 130 through a network; the first system 120 and the second system 130 respectively have corresponding databases, which can be integrated on the first system 120 and the second system 130 respectively, or can be placed on the cloud. Among them, the client 110 can be deployed on a terminal device, which can be but not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The first system 120 and the second system 130 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0101] Figure 2 is a flow chart of a group creation method according to an exemplary embodiment. Figure 2 As shown, the method is applied to the first system 120 as an example for description, and may include the following steps.
[0102] In step S210, in response to the client's account group creation request, a screening request carrying account screening rules is sent to the second system. The screening request is used to trigger the second system to screen predetermined candidate accounts according to the account screening rules, obtain a target account set, and send corresponding feedback information to the first system.
[0103] As an example, the account group to be created may be the account group corresponding to the resources to be delivered, and each target account in the account group to be created is the delivery object corresponding to the resources to be delivered. For example, when delivering corresponding resources to novice merchants, the target accounts in the account group to be created may be novice merchant accounts that meet the account screening rules.
[0104] Exemplarily, the candidate account may be any of the following: a live broadcast user account, a merchant account, or a buyer account.
[0105] In actual application, the user can send an account group creation request to the first system through the client. When creating a group, the user can specify the corresponding account screening rule. After the client sends the account group creation request containing the account screening rule to the first system, the first system can obtain the account screening rule.
[0106] After obtaining the account screening rule, the first system may send a screening request carrying the account screening rule to the second system. After receiving the screening request, the second system may screen the predetermined candidate accounts according to the account screening rule, determine the target account set based on the screened target accounts, and then send feedback information to the first system according to the current target account set.
[0107] Specifically, the account screening rules can be obtained based on a combination of account type tags. For example, the client can provide multiple account type tags and generate corresponding account screening rules based on the selected account type tags; or, the account screening rules can also be a set of candidate accounts customized by the user.
[0108] Multiple accounts can be pre-stored in other databases, which can be databases independent of the first system and the second system. Accounts in the database can be used as candidate accounts. For example, the current merchant accounts on the platform can be stored in other databases, and all merchant accounts can be used as candidate accounts. After obtaining the screening rules, the second system can screen out a limited set of accounts from the currently given candidate accounts as the target account set.
[0109] In step S220, based on the feedback information, index information corresponding to the target account set is created, the index information is stored in the database corresponding to the first system, and a group creation instruction is sent to the second system to trigger the second system to generate an account group corresponding to the target account set, and store the account group in the database corresponding to the second system.
[0110] As an example, the index information may be a logical pointer pointing to a target account set stored in a database or a database table corresponding to the target account set. Through the index information, the corresponding target account set may be quickly located in the database.
[0111] The feedback information may include information indicating whether the second system screens out target accounts matching the account screening rule and generates a target account set.
[0112] In actual applications, after receiving the feedback information, the first system can determine whether the second system has screened out the target account that matches the account screening rule based on the feedback information, and generate a corresponding target account set. If it is determined that the second system has generated the target account set, the first system can create index information corresponding to the target account set and store the index information in the database corresponding to the first system.
[0113] After the index information is successfully stored in the database of the first system, the first system can send a group creation instruction to the second system. The second system that receives the group creation instruction can generate a corresponding account group according to the currently generated target account set and store the account group in the corresponding database of the second system.
[0114] In step S230, after receiving the creation success message returned by the second system in response to the group creation instruction, the request processing result is returned to the client.
[0115] In a specific implementation, after the second system stores the account group in the database of the second system, it can return a creation success message to the first system in response to receiving the group creation instruction, so as to indicate that the second system has created and stored the corresponding account group. After receiving the creation success message, it can be determined that the target account set has stored the corresponding index information in the database of the first system, and at the same time, the corresponding account group is also stored in the second system. Therefore, it can be determined that the account group has been created. The first system can generate a request processing result and return it to the client. The request processing result can include information that the group has been successfully created, so that the user can be informed that the relevant account group has been created.
[0116] In the above group creation method, in response to the client's account group creation request, the first system can send a screening request carrying an account screening rule to the second system, triggering the second system to screen the candidate accounts according to the account screening rule, obtain the target account set, and send corresponding feedback information to the first system. The first system can create index information corresponding to the target account set based on the feedback information, store the index information in the database corresponding to the first system, send a group creation instruction to the second system to trigger the second system to generate an account group corresponding to the target account set, and store the account group in the database corresponding to the second system. After receiving the creation success message returned by the second system for the group creation instruction, the request processing result is returned to the client. In the present disclosure, when selecting an account, the index information of the account group and the account group itself are stored in separate libraries, so that the subsequent business calls and data queries of the crowd selection are split into different systems, so that when a call request for the created account group is received, the first system responds and triggers the second system to query the corresponding account group based on the index information, thereby reducing the data processing pressure and coupling of a single system and improving the maintainability of the system.
[0117] In the related art, when selecting an account, the selected account group is stored in the database of the same system. The system is used to respond to related requests for selecting or calling an account group, and to process the request. The database of the system is searched to find the account group corresponding to the request. In this way, due to the storage pressure and access pressure of the database, the account group is often filtered out based on only one account screening rule. However, with the emergence of the demand for refined account classification, creating an account group based on only one account screening rule each time does not allow users to filter out different account groups in a timely manner.
[0118] Based on this, in an exemplary embodiment, the account screening rule may be a single account screening rule or a plurality of account screening rules for screening different target account sets from candidate accounts. If the account screening rule is a plurality of account screening rules for screening different target account sets from candidate accounts, in step S220, the index information corresponding to the target account set is created based on the feedback information, including:
[0119] Based on the feedback information, an account set master table corresponding to the candidate account is generated, and, for each target account set, a sub-table corresponding to the target account set is generated; based on the account set master table and the sub-table corresponding to each target account set, index information corresponding to each target account set is generated.
[0120] In a specific implementation, after receiving the feedback information, the account set master table corresponding to the current candidate account can be generated. In the account set master table, group creation requirement information related to the account group creation request can be recorded. By querying the master table, one or more target account sets triggered by this group creation request and screened based on the current candidate account can be determined. For example, during a business resource delivery process, the business party can deliver corresponding resources to different types of accounts. For this business resource delivery, the corresponding account group creation request can be sent to the first system, and the first system can be triggered to generate the corresponding account set master table.
[0121] At the same time, the first system can also generate a sub-table corresponding to each target account set based on the feedback information, that is, each sub-table corresponds to the target account set obtained by filtering through the corresponding account filtering rule.
[0122] After generating the main table and the sub-tables corresponding to each target account set, the first system may generate index information corresponding to each target account set based on the main table and the sub-tables corresponding to each target account set.
[0123] In the present disclosure, by generating an account set main table corresponding to the candidate accounts and a sub-table corresponding to each target account set, and based on the account set main table and the sub-table corresponding to each target account set, generating index information corresponding to each target account set, the sub-table storage of the index information is realized, avoiding storing all the index information in the same data table, and providing a basis for subsequently improving the data query efficiency of the first system and the second system; and each account set main table can support multiple sub-tables, and multiple population sub-packages can be set under a population package constructed by the user, so as to realize refined account stratification.
[0124] In an exemplary embodiment, the step of obtaining the sub-table corresponding to the target account set may include the following steps:
[0125] Obtain set attribute information corresponding to the target account set, and obtain associated account group information corresponding to the suspicious account group and / or recommended account group associated with the target account set; determine the account group identifier corresponding to the account group to be generated corresponding to the target account set; generate a subtable corresponding to the target account set based on the set attribute information, the associated account group information, the account group identifier and the account screening rule corresponding to the target account set.
[0126] As an example, the set attribute information may record the set attributes corresponding to the corresponding target account set. Exemplarily, the set attribute information may include at least one of the following: primary key identifier, Chinese name of the target account set, description information of the target account set, target account set type, account type, target account set status, primary key identifier of the main table corresponding to the target account set, number of target accounts in the target account set, creator, updater, creation time, and update time.
[0127] The suspicious account group may be a pre-divided group including one or more suspicious accounts, such as a pre-generated blacklist. The recommended account group may be a pre-divided group including one or more recommended accounts, such as a preset whitelist. Both the suspicious account group and the recommended account group may be stored in the form of files, such as a blacklist file and a whitelist file.
[0128] Suspicious accounts and recommended accounts can be determined based on the historical account behavior of each account, such as whether they have ever defrauded delivery resources, etc. Of course, they can also be pre-divided by users. The associated account group information can include the group identifier or group storage location corresponding to the suspicious account group and / or the recommended account group.
[0129] In a specific implementation, the first system can obtain the set attribute information corresponding to the target account set, and can determine the suspicious account group or recommended account group associated with the target account set. For example, the user can store the suspicious account group or recommended account group in the second system in advance, obtain the corresponding group storage location and add it to the account group creation request. Therefore, after receiving the request, the first system can determine the suspicious account group or recommended account group associated with the target account set, and obtain the corresponding group storage location as the associated account group information.
[0130] In addition, the first system can also determine the account group identifier corresponding to the account group to be generated corresponding to the target account set in the second system. For example, after receiving the feedback information, the first system can configure corresponding account group identifiers for the one or more target account sets contained in the feedback information. The account group identifier is also the identifier of the corresponding account group when the second system generates the corresponding account group.
[0131] After obtaining the account group identifier, the first system may generate a sub-table corresponding to the target account set according to the set attribute information, the account group information, the account group identifier, and the account screening rule corresponding to the target account set.
[0132] For example, Figure 3 As shown in the figure, it is a schematic diagram of the association between the main table and the sub-table. Among them, a crowd package can correspond to a set containing multiple crowd sub-packages. The crowd package main table is used to describe the collection attribute information of the set, while the crowd sub-package corresponds to the target account set, and the sub-table corresponding to the crowd sub-package is used to describe the collection attribute information corresponding to the target account set. Figure 3 As shown, it can be based on Figure 3 The information shown in is used to generate the account set main table and sub-table, and the account set main table and sub-table are associated, and based on the associated account set main table and sub-table, the index information of each target account set is obtained.
[0133] In the present disclosure, a subtable corresponding to the target account set can be generated based on the set attribute information, associated account group information, account group identifier and account screening rules corresponding to the target account set, which can provide a basis for quickly locating the specified account group later.
[0134] In an exemplary embodiment, the blacklist file and the whitelist file may be stored in a database of the second system, and the stored blacklist file or whitelist file may be associated with the account group in the database of the second system, as shown in the following example. Figure 4As shown. By storing the blacklist and whitelist files and the account groups in separate tables and then associating them, the system query efficiency can be effectively improved. At the same time, combined selection can be achieved. Specifically, after obtaining the target account set according to the account screening rules, the target accounts in the target account set can be adjusted in combination with the blacklist file and the whitelist file. For example, the target accounts in the target account set that match the suspicious accounts in the blacklist file can be removed from the target account set, or the recommended accounts that do not appear in the target account set in the whitelist file can be added to the target account set.
[0135] In an exemplary embodiment, the feedback information includes the number of accounts corresponding to the target account in the target account set. In step S220, before creating the index information corresponding to the target account set based on the feedback information, the following steps are also included:
[0136] The number of accounts in the feedback information is obtained, and preview information about the number of accounts is sent to the client; if confirmation information returned by the client for the preview information is received, a step of creating index information corresponding to the target account set based on the feedback information is executed.
[0137] In a specific implementation, after receiving the feedback information, the first system may read the number of accounts from the feedback information to determine the number of accounts corresponding to the target account in the target account set generated after screening according to the account screening rule.
[0138] After obtaining the number of accounts, the first system can compare the currently obtained number of accounts with the preset upper limit of the number of accounts, which can be the maximum number of accounts corresponding to the resources to be delivered. If the number of accounts is less than or equal to the upper limit of the number of accounts, the first system can generate preview information of the number of accounts and send the preview information to the client. After the user views the preview information through the client and confirms it, the client can be triggered to return confirmation information to the first system for the preview information. After obtaining the confirmation information returned for the preview information, the first system can create index information corresponding to the target account set based on the feedback information.
[0139] In addition, if the number of accounts is greater than the upper limit of the number of accounts, the first system may generate a corresponding prompt message and send it to the client, informing the user that the number of accounts currently screened exceeds the upper limit of the number of accounts.
[0140] In the present disclosure, the number of accounts in the feedback information is obtained, preview information on the number of accounts is sent to the client, and upon receiving confirmation information returned by the client for the preview information, the step of creating index information corresponding to the target account set based on the feedback information is executed. By previewing the number of selected accounts, the matching between the number of selected people and business delivery resources can be effectively improved, thereby enhancing the account selection capability.
[0141] In an exemplary embodiment, after sending the group creation instruction to the second system, the method further includes:
[0142] In response to the client's account group editing request, obtain account group editing information; send the account group editing information to the second system to trigger the second system to update the account group stored in the database corresponding to the second system based on the account group editing information; if the second system returns the update completion information for the stored account group, update the index information in the database corresponding to the first system.
[0143] As an example, the account group editing request may include at least one of the following information: updated account screening rules, and updated candidate accounts.
[0144] In actual application, the client can send an account group editing request to the first system to edit the currently created account group. In response to the received account group editing request, the first system can obtain account group editing information.
[0145] Specifically, the client can provide multiple account type tags, each of which corresponds to an account type. For example, the account type tag can include gender or the number of account followers, etc. When the candidate account is a merchant account, the account type tag can also include the merchant account level and the total amount of commodity transactions (Gross Merchandise Volume, GMV) within a preset time. The user can select a target account type tag from the multiple account type tags provided by the client, and the client can generate a corresponding account screening rule based on the selected target account type tag. For example, the account screening rule can be "the number of account followers> 200,000 && the account is an active user or a well-known user's account".
[0146] When the user needs to modify the account filtering rules, the current target account type tag can be adjusted, such as deleting the target account type tag or adding a new target account type tag. The client can then generate a new account filtering rule based on the updated target account type tag, add the new account filtering rule as account group editing information to the account group editing request, and send it to the first system.
[0147] After acquiring the account group editing information, the first system may send the account group editing information to the second system. After receiving the account group editing information, the second system may update the account group stored in the second system database based on the currently received account group editing information.
[0148] Specifically, when the account group editing information includes updated account screening rules, the second system can screen the predetermined candidate accounts according to the updated account screening rules to obtain updated target accounts and target account sets, and then update the account groups stored in the second system database according to the updated target account sets.
[0149] After updating the stored account group, the second system may return corresponding update completion information to the first group for the currently stored account group, so that the first system correspondingly updates the index information stored in the first system database in response to the received update completion information.
[0150] In the present disclosure, the first system obtains account group editing information and sends the account group editing information to the second system, thereby triggering the second system to update the account group stored in the database corresponding to the second system based on the account group editing information. If the second system returns the update completion information for the stored account group, the index information in the database corresponding to the first system is updated, and the created account group can be edited, thereby increasing the flexibility of account selection.
[0151] In an exemplary embodiment, the index information may include the account group status, for example, Figure 3 The crowd package status shown, wherein sending the account group editing information to the second system includes:
[0152] The group update interface corresponding to the second system is called, the account group editing information is sent to the second system, and the account group status in the index information is adjusted to the update status.
[0153] As an example, the update status may refer to an updating status, in which the corresponding index information and account group are currently not editable or downloadable.
[0154] In a specific implementation, the second system may provide a group update interface externally, which may be called by other devices, such as a remote device, and after the interface is called, the account group stored in the second system database is updated according to the returned parameters.
[0155] In this embodiment, after obtaining the account group edit information, the first system can call the group update interface corresponding to the second system, and send the account group edit information to the second system through the group update interface. For example, the interface provided by the second system can be an RPC (Remote Procedure Call) interface or a gRPC interface, and the first system can send the account group edit information as a parameter corresponding to the group update interface to the second system.
[0156] After sending the account group edit information, the first system may adjust the account group status in the index information to an updated status.
[0157] The updating of the index information includes:
[0158] The account group status is adjusted to be effective.
[0159] In actual application, after receiving the update completion information returned by the second system for the account group, the first system can adjust the account group status in the index information to the effective state. In the effective state, the corresponding index information or account group can be downloaded or edited again.
[0160] In the present disclosure, the first system can send account group editing information to the second system by calling an interface, so as to ensure the normal creation and calling of the account group when the first system and the second system are deployed in a distributed manner; and, by timely adjusting the account group status in the index information before and after the second system updates the stored account group, it can ensure that the index information stored in the first system database matches the account group stored in the second system database, thereby avoiding erroneous modification or erroneous calling of the account group and improving the maintainability and reliability of the account group.
[0161] In an exemplary embodiment, after sending the group creation instruction to the second system, the method further includes:
[0162] Receive group update information sent by the second system; the group update information corresponds to the updated target account set, and the updated target account set is obtained after the second system screens the current candidate accounts based on the account screening rule at a preset time interval; based on the group update information, update the index information.
[0163] As an example, the group update information may indicate the updated content of the account group stored in the second system database. For example, the group update information may include the updated account group and the number of target accounts corresponding to the updated account group.
[0164] In actual applications, the second system can also screen and match the current candidate accounts at a preset time interval. Specifically, the candidate accounts can be a plurality of predetermined accounts, but as time goes by, accounts may be added or cancelled, resulting in changes in the candidate accounts.
[0165] Based on this, after receiving the account screening rules sent by the first system, the second system can back up and store the account screening rules, and read the stored account screening rules at preset time intervals, and match the current candidate accounts based on the account screening rules to obtain updated target accounts and target account sets. After determining the updated target account set, the second system can generate corresponding group update information based on the updated target account set and send it to the first system. After obtaining the group update information, the first system can update the index information in the first system database based on the group update information.
[0166] In the present disclosure, the second system can update the stored account groups in a timely manner at preset time intervals, and can ensure the accuracy of the target accounts in the circled account groups. At the same time, the second system can send group update information to the first system, and can notify the first system to update the index information in a timely manner when the second system actively updates the account groups, thereby ensuring that the index information stored in the first system database matches the account groups stored in the second system database, thereby improving the maintainability and reliability of the account groups.
[0167] Figure 5 is a flow chart of a group creation method according to an exemplary embodiment. Figure 5 As shown, the method is applied to the second system 130 as an example for description, and may include the following steps.
[0168] In step S510, a screening request is received; the screening request is sent by the first system to the second system in response to the account group creation request sent by the client, and the screening request carries account screening rules.
[0169] In actual application, the user can send an account group creation request to the first system through the client. When creating a group, the user can set an account screening rule and add it to the account group creation request. After the client sends the account group creation request to the first system, the first system can obtain the account screening rule from the request.
[0170] After determining the candidate accounts and obtaining the account screening rules, the first system may send a screening request carrying the account screening rules to the second system.
[0171] In step S520, the candidate accounts are screened according to the account screening rules to obtain the target account set, and feedback information is sent to the first system to trigger the first system to create index information corresponding to the target account set based on the feedback information and send a group creation instruction to the second system.
[0172] After receiving the screening request, the second system may screen predetermined candidate accounts according to the account screening rules, determine a target account set based on the screened target accounts, and further send feedback information to the first system according to the current target account set.
[0173] Specifically, the account screening rules can be obtained based on the combination of account type labels. For example, the client can provide multiple account type labels and generate corresponding account screening rules based on the selected account type labels; or, the account screening rules can also be a candidate account set defined by the user. After obtaining the account screening rules, the second system can filter out a limited account set from the currently given candidate accounts as the target account set based on the account screening rules.
[0174] In step S530, after receiving the group creation instruction, an account group corresponding to the target account set is generated, the account group is stored in the database corresponding to the second system, and a creation success message is returned to the first system to trigger the first system to return the request processing result to the client; the group creation instruction is sent by the first system to the second system after storing the index information in the database corresponding to the first system.
[0175] After receiving the feedback information, the first system can determine whether the second system has screened out the target account matching the account screening rule according to the feedback information, and generate a corresponding target account set. If it is determined that the second system has generated the target account set, the first system can create index information corresponding to the target account set and store the index information in the database corresponding to the first system.
[0176] After the index information is successfully stored in the database of the first system, the first system can send a group creation instruction to the second system. The second system that receives the group creation instruction can generate a corresponding account group based on the currently generated target account set and store the account group in the corresponding database of the second system.
[0177] Furthermore, after storing the account group in the database of the second system, the second system may return a creation success message to the first system in response to receiving the group creation instruction, so as to indicate that the second system has created and stored the corresponding account group. After receiving the creation success message, it can be determined that the target account set has stored the corresponding index information in the database of the first system, and the corresponding account group is also stored in the second system. Therefore, it can be determined that the account group has been created. The first system may generate a request processing result and return it to the client. The request processing result may include information that the group has been successfully created, so that the user can be informed that the relevant account group has been created.
[0178] In the above group creation method, the second system can receive a screening request, which is sent by the first system to the second system in response to the account group creation request sent by the client, and carries an account screening rule. The second system can screen the predetermined candidate accounts according to the account screening rule to obtain the target account set, and send feedback information to the first system, triggering the first system to create index information corresponding to the target account set based on the feedback information, and send a group creation instruction to the second system. After receiving the group creation instruction, an account group corresponding to the target account set is generated, and the account group is stored in the database corresponding to the second system, and a creation success message is returned to the first system to trigger the first system to return the request processing result to the client, wherein the account group creation request is sent by the first system to the second system after storing the index information in the database corresponding to the first system. In the present disclosure, when selecting accounts, the index information of the account group and the account group itself are stored in separate libraries, so that the subsequent business calls and data queries for group selection are split into different systems. When a call request for a created account group is received, the first system responds and triggers the second system to query the corresponding account group based on the index information, thereby reducing the data processing pressure and coupling of a single system and improving the maintainability of the system.
[0179] In an exemplary embodiment, after returning a creation success message to the first system, the method further includes:
[0180] Receive the account group editing information sent by the first system, and based on the account group editing information, update the account group stored in the database corresponding to the second system; the account group editing information is obtained by the first system in response to the account group editing request of the client; obtain the update completion information for the stored account group, and send it to the first system to trigger the first system to update the index information.
[0181] In actual application, the client can send an account group editing request to the first system to edit the currently created account group. In response to the received account group editing request, the first system can obtain account group editing information.
[0182] After acquiring the account group editing information, the first system may send the account group editing information to the second system. After receiving the account group editing information, the second system may update the account group stored in the second system database based on the currently received account group editing information.
[0183] Specifically, when the account group editing information includes updated account screening rules, the second system can screen the predetermined candidate accounts according to the updated account screening rules to obtain updated target accounts and target account sets, and then update the account groups stored in the second system database according to the updated target account sets.
[0184] After updating the stored account group, the second system may return corresponding update completion information to the first group for the currently stored account group, so that the first system correspondingly updates the index information stored in the first system database in response to the received update completion information.
[0185] In the present disclosure, the first system obtains the account group editing information and sends the account group editing information to the second system, thereby triggering the second system to update the account group stored in the database corresponding to the second system based on the account group editing information. If the second system receives the update completion information returned by the second system for the stored account group, the index information is updated, and the created account group can be edited, thereby increasing the flexibility of account selection.
[0186] In an exemplary embodiment, after returning the confirmation storage information to the first system, the method further includes:
[0187] At preset time intervals, candidate accounts in the current candidate account set are screened based on account screening rules to obtain an updated target account set; group update information corresponding to the updated target account set is obtained and sent to the first system to trigger the first system to update the index information based on the group update information.
[0188] In actual applications, the second system can also screen and match the current candidate accounts at a preset time interval. Specifically, the candidate accounts can be a plurality of predetermined accounts, but as time goes by, accounts may be added or cancelled, resulting in changes in the candidate accounts.
[0189] Based on this, after receiving the account screening rules sent by the first system, the second system can back up and store the account screening rules, and read the stored account screening rules at preset time intervals, and match the current candidate accounts based on the account screening rules to obtain updated target accounts and target account sets. After determining the updated target account set, the second system can generate corresponding group update information based on the updated target account set and send it to the first system. After obtaining the group update information, the first system can update the index information in the first system database based on the group update information.
[0190] In the present disclosure, the second system can update the stored account groups in a timely manner at preset time intervals, and can ensure the accuracy of the target accounts in the circled account groups. At the same time, the second system can send group update information to the first system, and can notify the first system to update the index information in a timely manner when the second system actively updates the account groups, thereby ensuring that the index information stored in the first system database matches the account groups stored in the second system database, thereby improving the maintainability and reliability of the account groups.
[0191] In order to enable those skilled in the art to better understand the above steps, the embodiments of the present disclosure are exemplarily described below with reference to some examples, but it should be understood that the embodiments of the present disclosure are not limited thereto.
[0192] In practical applications, such as Figure 6 As shown, the first system can call the second system in gRPC mode, for example, to preview the circled results, add a blacklist file / whitelist file to the database of the second system, or obtain the account group stored in the second system. The second system can send response information to the first system through the message queue. For example, if the account group stored in the data of the second system is updated, the second system will send an MQ (Message Queue) message to the first system to inform the first system of the update of the account group through the MQ message. Of course, the first system can also interact with the second system by sending MQ messages. The first system and the second system communicate asynchronously through MQ, which can fully decouple the business and data storage, improve readability, maintainability, and improve the access efficiency of each business party.
[0193] In order to enable those skilled in the art to better understand the data flow between the first system and the second system, the device architecture of the group creation method is first introduced below. Figure 7 As shown, the first system and the second system may respectively have corresponding API service layers (front-end oriented), aggregation service layers (business oriented), and domain service layers (data oriented).
[0194] For the first system, services can be provided to business users through a client (such as a web front end). The user can upload and download files, preview and create and edit crowd packages, add blacklists and whitelists, and manage logs through the crowd selection service provided by the first system.
[0195] In the first system, the data generated by the domain service layer can be stored in the secondary storage in a variety of ways. For example, the data processed during the file upload or download process can be stored in CDN (Content Delivery Network); the data generated by the crowd package preview, creation and editing, and adding blacklists and whitelists can be first stored in the message queue and sent to the database of the second system through the message queue. In addition, the data in the MQ queue can also be sent to the database of the first system, such as the MYSQL database, for primary storage; the logs involved in the log management process can be stored in es (Elasticsearch).
[0196] For the second system, the second system provides an external interface RPC for crowd selection at the domain service layer. When the interface is called, it can perform judgment and storage processing to obtain the corresponding selected population (that is, the pre-created account group, which can also be called the selection list, selection results, and crowd package) from the database corresponding to the second system, or obtain the selection results and store them in the database of the second system, where the database of the second system can be a MYSQL database. In this embodiment, since the database of the second system is a MYSQL database, when the first system requests the second system to obtain the bitmap result set corresponding to the crowd selection result through the GRPC interface, the second system can execute the corresponding SQL statement to query according to the rules of sub-library and table.
[0197] The first system and the second system can establish data association through the primary key ID. The second system can perform a modulo operation on the primary key ID corresponding to the stored circled list, and store the corresponding circled list in a separate table for use by the first system.
[0198] In an exemplary embodiment, Figure 8 As shown, users can set account type tags or upload account collection files through the client's group creation page to configure account screening rules. After clicking Submit, the count interface provided by the first system can be called, and the first system triggers the second system to calculate the number of selected people according to the account screening rules, and the second system returns the corresponding number of selected people to the first system. When the number of selected people exceeds the upper limit, the corresponding prompt can be returned to the group creation page. If the number of selected people is less than or equal to the upper limit, the preview result is returned to the group creation page, and in response to user operations, the create interface of the first system can be called.
[0199] In response to the call of the create interface, the first system can insert the record of the group of people and the group of sub-groups (i.e., index information) in the database of the first system, and instruct the second system to create the corresponding group of people. In response to the corresponding instruction, the second system can asynchronously generate a selection list (i.e., account group) and store it in the database of the second system. After receiving the creation success information returned by the second system, the first system can return a creation success message (i.e., request processing result) to the group creation page, and the group creation page can display a prompt message of the successful addition in the interface.
[0200] After the crowd package is successfully created, the user can also edit the created crowd package. Specifically, in response to the request to edit the crowd package, the group creation page can call the grpc interface of the first system and send the account group editing information to the first system. In response to the call of the interface, the first system can call the grpc interface of the second system and update the crowd package record stored in the database of the first system (i.e. update the index information) after the call is successful. The second system can update the stored crowd package based on the account group editing information received from the first system.
[0201] In addition, after the second system automatically updates the crowd package stored in the database at a time interval, it can send a change message for the crowd package status and the number of selected persons to the first system, and the first system can update its corresponding database accordingly according to the message.
[0202] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0203] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.
[0204] Based on the same inventive concept, the embodiment of the present disclosure further provides a group creation device for implementing the above-mentioned group creation method.
[0205] Fig. 9 FIG. 9 is a block diagram of a group creation device 900 according to an exemplary embodiment. Fig. 9 The device can be applied to the first system, and includes a request receiving unit 901, an index information creating unit 902 and a processing result returning unit 903.
[0206] The request receiving unit 901 is configured to execute, in response to the account group creation request of the client, send a screening request carrying an account screening rule to the second system, wherein the screening request is used to trigger the second system to screen predetermined candidate accounts according to the account screening rule to obtain a target account set, and send corresponding feedback information to the first system;
[0207] The index information creation unit 902 is configured to create index information corresponding to the target account set based on the feedback information, store the index information in a database corresponding to the first system, and send a group creation instruction to the second system to trigger the second system to generate an account group corresponding to the target account set, and store the account group in a database corresponding to the second system;
[0208] The processing result returning unit 903 is configured to return the request processing result to the client after receiving the creation success message returned by the second system in response to the group creation instruction.
[0209] In an exemplary embodiment, if the account screening rule is a plurality of account screening rules for screening different target account sets from the candidate accounts, the index information creating unit includes:
[0210] A data table creation module is configured to generate an account set master table corresponding to the candidate account based on the feedback information, and, for each target account set, generate a sub-table corresponding to the target account set;
[0211] The index information generating module is configured to generate index information corresponding to each target account set based on the account set main table and the sub-table corresponding to each target account set.
[0212] In an exemplary embodiment, the data table creation module is configured to execute:
[0213] Acquire set attribute information corresponding to the target account set, and acquire associated account group information corresponding to the suspicious account group and / or the recommended account group associated with the target account set;
[0214] Determine an account group identifier corresponding to an account group to be generated corresponding to the target account set;
[0215] Based on the set attribute information, the associated account group information, the account group identifier, and the account screening rule corresponding to the target account set, a subtable corresponding to the target account set is generated.
[0216] In an exemplary embodiment, the feedback information includes the number of accounts corresponding to the target account in the target account set, and the device further includes:
[0217] a preview information generating unit, configured to obtain the number of accounts in the feedback information, and send preview information for the number of accounts to the client;
[0218] The confirmation information receiving unit is configured to execute the step of creating index information corresponding to the target account set based on the feedback information if confirmation information returned by the client in response to the preview information is received.
[0219] In an exemplary embodiment, the apparatus further comprises:
[0220] an account group editing information acquiring unit, configured to execute in response to an account group editing request of the client, and acquire account group editing information;
[0221] an account group edit information sending unit, configured to send the account group edit information to the second system, so as to trigger the second system to update the account group stored in the database corresponding to the second system based on the account group edit information;
[0222] The first index information updating unit is configured to update the index information in the database corresponding to the first system if update completion information returned by the second system for the stored account group is received.
[0223] In an exemplary embodiment, the index information includes an account group status, and the account group edit information sending unit is configured to execute:
[0224] Calling the group update interface corresponding to the second system, sending the account group editing information to the second system, and adjusting the account group status in the index information to an update status;
[0225] The first index information updating unit is configured to execute:
[0226] The account group status is adjusted to be effective.
[0227] In an exemplary embodiment, the apparatus further comprises:
[0228] a group update information receiving unit configured to receive group update information sent by the second system; the group update information corresponds to an updated target account set, the updated target account set being obtained after the second system screens the current candidate accounts based on the account screening rule at a preset time interval;
[0229] The second index information updating unit is configured to update the index information based on the group update information.
[0230] Fig.10 FIG. 1 is a block diagram of a group creation device 1000 according to an exemplary embodiment. Fig.10 The device can be applied to the second system, and includes a screening request receiving unit 1001, an account screening unit 1002 and a group creating unit 1003.
[0231] The screening request receiving unit 1001 is configured to receive a screening request; the screening request is sent by the first system to the second system in response to the account group creation request sent by the client, and the screening request carries an account screening rule;
[0232] The account screening unit 1002 is configured to perform screening of predetermined candidate accounts according to the account screening rule to obtain a target account set, and send feedback information to the first system to trigger the first system to create index information corresponding to the target account set based on the feedback information, and send a group creation instruction to the second system;
[0233] The group creation unit 1003 is configured to generate an account group corresponding to the target account set after receiving the group creation instruction, store the account group in a database corresponding to the second system, and return a creation success message to the first system to trigger the first system to return the request processing result to the client; the group creation instruction is sent by the first system to the second system after storing the index information in the database corresponding to the first system.
[0234] In an exemplary embodiment, the apparatus further comprises:
[0235] an account group editing information receiving unit, configured to receive the account group editing information sent by the first system, and update the account group stored in the database corresponding to the second system based on the account group editing information; the account group editing information is obtained by the first system in response to the account group editing request of the client;
[0236] The update message sending unit is configured to obtain update completion information for the stored account group and send the update completion information to the first system to trigger the first system to update the index information.
[0237] In an exemplary embodiment, the apparatus further comprises:
[0238] an account set updating unit, configured to perform screening of candidate accounts in the current candidate account set based on the account screening rule at a preset time interval to obtain an updated target account set;
[0239] The group update information sending unit is configured to obtain the group update information corresponding to the updated target account set and send it to the first system to trigger the first system to update the index information based on the group update information.
[0240] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0241] Each module in the above device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0242] Fig.11 1 is a block diagram of an electronic device 1100 for implementing a group creation method according to an exemplary embodiment. For example, the electronic device 1100 may be a server. Fig.11 , the electronic device 1100 includes a processing component 1120, which further includes one or more processors, and a memory resource represented by a memory 1122 for storing instructions executable by the processing component 1120, such as an application. The application stored in the memory 1122 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1120 is configured to execute the instructions to perform the above method.
[0243] The electronic device 1100 may further include a power supply component 1124 configured to perform power management of the electronic device 1100, a wired or wireless network interface 1126 configured to connect the electronic device 1100 to a network, and an input / output (I / O) interface 1128. The electronic device 1100 may operate based on an operating system stored in the memory 1122, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or the like.
[0244] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1122 including instructions, and the instructions can be executed by a processor of the electronic device 1100 to perform the above method. The storage medium can be a computer-readable storage medium, for example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0245] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions. The instructions can be executed by a processor of the electronic device 1100 to complete the above method.
[0246] It should be noted that the above-mentioned devices, electronic devices, computer-readable storage media, computer program products, etc. may also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments, which will not be described one by one here.
[0247] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0248] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A group creation method, characterized in that: Applied to the first system, the method comprises: In response to the client's account group creation request, a screening request carrying an account screening rule is sent to the second system, wherein the screening request is used to trigger the second system to screen predetermined candidate accounts according to the account screening rule to obtain a target account set, and send corresponding feedback information to the first system; Based on the feedback information, create index information corresponding to the target account set, store the index information in a database corresponding to the first system, and send a group creation instruction to the second system to trigger the second system to generate an account group corresponding to the target account set, and store the account group in a database corresponding to the second system; After receiving a creation success message returned by the second system in response to the group creation instruction, a request processing result is returned to the client.
2. The method according to claim 1, characterized in that If the account screening rule is a plurality of account screening rules for screening different target account sets from the candidate accounts, the creating index information corresponding to the target account set based on the feedback information includes: Based on the feedback information, a main table of account sets corresponding to the candidate accounts is generated, and for each target account set, a sub-table corresponding to the target account set is generated; Based on the account set main table and the sub-table corresponding to each target account set, index information corresponding to each target account set is generated.
3. The method according to claim 2, characterized in that The generating a sub-table corresponding to the target account set includes: Acquire set attribute information corresponding to the target account set, and acquire associated account group information corresponding to the suspicious account group and / or the recommended account group associated with the target account set; Determine an account group identifier corresponding to an account group to be generated corresponding to the target account set; Based on the set attribute information, the associated account group information, the account group identifier, and the account screening rule corresponding to the target account set, a subtable corresponding to the target account set is generated.
4. The method according to claim 1, characterized in that: After sending the group creation instruction to the second system, the method further includes: receiving group update information sent by the second system; the group update information corresponds to an updated target account set, the updated target account set being obtained after the second system screens the current candidate accounts based on the account screening rule at a preset time interval; The index information is updated based on the group update information.
5. The method according to claim 1, characterized in that After sending the group creation instruction to the second system, the method further includes: Responding to an account group editing request from the client, obtaining account group editing information; Sending the account group editing information to the second system to trigger the second system to update the account group stored in a database corresponding to the second system based on the account group editing information; If update completion information returned by the second system for the stored account group is received, the index information in the database corresponding to the first system is updated.
6. The method according to claim 5, characterized in that The index information includes the account group status, and the sending the account group editing information to the second system includes: Calling the group update interface corresponding to the second system, sending the account group editing information to the second system, and adjusting the account group status in the index information to an update status; The updating of the index information includes: The account group status is adjusted to be effective.
7. The method according to claim 1, characterized in that After sending the group creation instruction to the second system, the method further includes: receiving group update information sent by the second system; the group update information corresponds to an updated target account set, the updated target account set being obtained after the second system screens the current candidate accounts based on the account screening rule at a preset time interval; The index information is updated based on the group update information.
8. A group creation method, characterized in that: Applied to the second system, the method comprises: receiving a screening request; the screening request is sent by the first system to the second system in response to an account group creation request sent by the client, and the screening request carries an account screening rule; Screening predetermined candidate accounts according to the account screening rule to obtain a target account set, and sending feedback information to the first system to trigger the first system to create index information corresponding to the target account set based on the feedback information, and sending a group creation instruction to the second system; After receiving the group creation instruction, an account group corresponding to the target account set is generated, the account group is stored in a database corresponding to the second system, and a creation success message is returned to the first system to trigger the first system to return the request processing result to the client; the group creation instruction is sent by the first system to the second system after storing the index information in the database corresponding to the first system.
9. The method according to claim 8, characterized in that After returning a creation success message to the first system, the method further includes: receiving the account group editing information sent by the first system, and updating the account group stored in the database corresponding to the second system based on the account group editing information; the account group editing information is obtained by the first system in response to the account group editing request of the client; Acquire update completion information for the stored account group, and send the update completion information to the first system to trigger the first system to update the index information.
10. The method according to claim 8, characterized in that After returning a creation success message to the first system, the method further includes: At a preset time interval, based on the account screening rule, the candidate accounts in the current candidate account set are screened to obtain an updated target account set; The group update information corresponding to the updated target account set is obtained and sent to the first system to trigger the first system to update the index information based on the group update information.
11. A group creation device, characterized in that: Applied to the first system, the device comprises: a request receiving unit, configured to execute, in response to the account group creation request of the client, send a screening request carrying an account screening rule to the second system, wherein the screening request is used to trigger the second system to screen predetermined candidate accounts according to the account screening rule to obtain a target account set, and send corresponding feedback information to the first system; an index information creation unit, configured to create index information corresponding to the target account set based on the feedback information, store the index information in a database corresponding to the first system, send a group creation instruction to the second system to trigger the second system to generate an account group corresponding to the target account set, and store the account group in a database corresponding to the second system; The processing result returning unit is configured to return the request processing result to the client after receiving the creation success message returned by the second system in response to the group creation instruction.
12. The device according to claim 11, characterized in that If the account screening rule is a plurality of account screening rules for screening different target account sets from the candidate accounts, the index information creating unit includes: A data table creation module is configured to generate an account set master table corresponding to the candidate account based on the feedback information, and, for each target account set, generate a sub-table corresponding to the target account set; The index information generating module is configured to generate index information corresponding to each target account set based on the account set main table and the sub-table corresponding to each target account set.
13. The device according to claim 12, characterized in that The data table creation module is configured to execute: Acquire set attribute information corresponding to the target account set, and acquire associated account group information corresponding to the suspicious account group and / or the recommended account group associated with the target account set; Determine an account group identifier corresponding to an account group to be generated corresponding to the target account set; Based on the set attribute information, the associated account group information, the account group identifier, and the account screening rule corresponding to the target account set, a subtable corresponding to the target account set is generated.
14. The device according to claim 12, characterized in that The feedback information includes the number of accounts corresponding to the target account in the target account set, and the device further includes: a preview information generating unit, configured to obtain the number of accounts in the feedback information, and send preview information for the number of accounts to the client; The confirmation information receiving unit is configured to execute the step of creating index information corresponding to the target account set based on the feedback information if confirmation information returned by the client in response to the preview information is received.
15. The device according to claim 11, characterized in that The device also includes: an account group editing information acquiring unit, configured to execute in response to an account group editing request of the client, and acquire account group editing information; an account group edit information sending unit, configured to send the account group edit information to the second system to trigger the second system to update the account group stored in the database corresponding to the second system based on the account group edit information; The first index information updating unit is configured to update the index information in the database corresponding to the first system if update completion information returned by the second system for the stored account group is received.
16. The device according to claim 15, characterized in that The index information includes the account group status, and the account group edit information sending unit is configured to execute: Calling the group update interface corresponding to the second system, sending the account group editing information to the second system, and adjusting the account group status in the index information to an update status; The first index information updating unit is configured to execute: The account group status is adjusted to be effective.
17. The device according to claim 11, characterized in that The device also includes: a group update information receiving unit configured to receive group update information sent by the second system; the group update information corresponds to an updated target account set, the updated target account set being obtained after the second system screens the current candidate accounts based on the account screening rule at a preset time interval; The second index information updating unit is configured to update the index information based on the group update information.
18. A group creation device, characterized in that: Applied to the second system, the device comprises: a screening request receiving unit, configured to receive a screening request; the screening request is sent by the first system to the second system in response to an account group creation request sent by the client, and the screening request carries an account screening rule; an account screening unit, configured to screen predetermined candidate accounts according to the account screening rule to obtain a target account set, and send feedback information to the first system to trigger the first system to create index information corresponding to the target account set based on the feedback information, and send a group creation instruction to the second system; The group creation unit is configured to generate an account group corresponding to the target account set after receiving the group creation instruction, store the account group in a database corresponding to the second system, and return a creation success message to the first system to trigger the first system to return the request processing result to the client; the group creation instruction is sent by the first system to the second system after storing the index information in the database corresponding to the first system.
19. The device according to claim 18, characterized in that The device also includes: an account group editing information receiving unit, configured to receive the account group editing information sent by the first system, and update the account group stored in the database corresponding to the second system based on the account group editing information; the account group editing information is obtained by the first system in response to the account group editing request of the client; The update message sending unit is configured to obtain update completion information for the stored account group and send the update completion information to the first system to trigger the first system to update the index information.
20. The device according to claim 18, characterized in that The device also includes: an account set updating unit, configured to perform screening of candidate accounts in the current candidate account set based on the account screening rule at a preset time interval to obtain an updated target account set; The group update information sending unit is configured to obtain the group update information corresponding to the updated target account set and send it to the first system to trigger the first system to update the index information based on the group update information.
21. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the group creation method as described in any one of claims 1 to 10.
22. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the group creation method according to any one of claims 1 to 10.
23. A computer program product, comprising instructions, characterized in that: When the instruction is executed by a processor of an electronic device, the electronic device is enabled to execute the group creation method as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Data reading method and device, server and storage medium
CN112463800A
Multimedia resource recall method and device, equipment and storage medium
CN114168763A
Fact-based indexing for natural language search
WO2009029922A2
