CN115118735B - Data synchronization method, group management method, device, equipment and storage medium - Google Patents

Data synchronization method, group management method, device, equipment and storage medium Download PDF

Info

Publication number
CN115118735B
CN115118735B CN202210645679.4A CN202210645679A CN115118735B CN 115118735 B CN115118735 B CN 115118735B CN 202210645679 A CN202210645679 A CN 202210645679A CN 115118735 B CN115118735 B CN 115118735B
Authority
CN
China
Prior art keywords
account
group
accounts
personal
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210645679.4A
Other languages
Chinese (zh)
Other versions
CN115118735A (en
Inventor
黄铁鸣
李斌
罗程
张龙飞
舒展
叶波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202210645679.4A priority Critical patent/CN115118735B/en
Publication of CN115118735A publication Critical patent/CN115118735A/en
Application granted granted Critical
Publication of CN115118735B publication Critical patent/CN115118735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a data synchronization method, a group management method, a device, equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: dividing a plurality of accounts in a target group into a plurality of account sets, wherein each account set comprises part of the accounts in the plurality of accounts and accounts in different account sets are different, and the target group comprises at least two group accounts and personal accounts belonging to the at least two group accounts; and acquiring data corresponding to the accounts in one account set from the server each time, updating the data corresponding to the same account stored locally based on the acquired data, and continuously updating the data corresponding to the accounts in the next account set after updating is completed until the data corresponding to the accounts in the plurality of account sets are updated. According to the method, the interaction times between the terminal and the server are reduced and the data synchronization speed is improved through batch synchronization of the data.

Description

Data synchronization method, group management method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a data synchronization method, a group management method, a device, equipment and a storage medium.
Background
With the development of computer technology, more and more objects communicate business through instant messaging application, and more account data are generated through the instant messaging application. In the related art, groups are established through instant messaging application, each group comprises a plurality of accounts, and for a terminal logging in any account, the data of the group needs to be synchronized locally, but with the continuous development of the instant messaging application, the established groups are more and more diverse, and the current data synchronization mode has limitations.
Disclosure of Invention
The embodiment of the application provides a data synchronization method, a group management method, a device, equipment and a storage medium, which improve the data synchronization speed. The technical scheme is as follows:
in one aspect, a data synchronization method is provided, the method including:
dividing a plurality of accounts in a target group into a plurality of account sets, wherein each account set comprises part of the accounts in the plurality of accounts, and the accounts included in different account sets are different, and the target group comprises at least two group accounts and personal accounts belonging to the at least two group accounts;
And acquiring data corresponding to the accounts in one account set from the server each time, updating the data corresponding to the same account stored locally based on the acquired data, and continuously updating the data corresponding to the accounts in the next account set after updating is completed until the data corresponding to the accounts in the plurality of account sets are updated.
In one possible implementation, the method further includes:
and receiving a stop update notification returned by the server, wherein the stop update notification represents data corresponding to the account number in the current account number set to stop updating, and the stop update notification is returned by the server when the local version identification of the target group is inconsistent with the network version identification of the target group and the local version identification of the current account number set is consistent with the network version identification of the current account number set in the server.
In another possible implementation manner, after the data corresponding to the account numbers in the same group are stored in the same data table, the method further includes:
responding to data access operation of any account based on a target personal account, and verifying the data access authority of the target personal account;
And under the condition that the target personal account number has the data access authority, reading the data corresponding to the accessed account number from the data table, and displaying the read data.
In another aspect, a group management method is provided, the method including:
creating a target group based on a first personal account currently logged in, wherein the target group comprises a group account set and a personal account set, the group account set comprises a first group account to which the first personal account belongs and a second group account different from the first group account, and the personal account set comprises a personal account belonging to the first group account and a personal account belonging to the second group account;
in the target group, associating a personal account number belonging to the first group account number with the second group account number, or associating a personal account number belonging to the first group account number with a personal account number belonging to the second group account number;
any two associated accounts allow instant messaging under the condition that a friend relation is not established.
In another aspect, there is provided a data synchronization apparatus, the apparatus comprising:
the system comprises a collection dividing module, a target group and a user terminal, wherein the collection dividing module is used for dividing a plurality of accounts in the target group into a plurality of account collections, each account collection comprises part of accounts in the plurality of accounts, and the accounts included in different account collections are different, wherein the target group comprises at least two group accounts and personal accounts belonging to the at least two group accounts;
The data updating module is used for acquiring data corresponding to the accounts in one account set from the server each time, updating the data corresponding to the same locally stored accounts based on the acquired data, and continuously updating the data corresponding to the accounts in the next account set after the updating is completed until the updating of the data corresponding to the accounts in the plurality of account sets is completed.
In one possible implementation, the data updating module includes:
a request sending unit, configured to send, to the server, a data update request corresponding to any one of the plurality of account sets, where the server is configured to return, in response to the data update request, data corresponding to an account in the account set;
the data receiving unit is used for receiving data corresponding to the account in the account set returned by the server.
In another possible implementation manner, the data update request carries a target personal account currently logged in, and the data receiving unit is configured to receive data corresponding to an account associated with the target personal account in the account set returned by the server.
In another possible implementation manner, the data updating module is configured to acquire, from the server, data corresponding to an account in one account set each time, and update, based on the acquired data, data corresponding to the same account stored locally, where the local version identifier of the target group is inconsistent with the network version identifier of the target group in the server.
In another possible implementation manner, the data updating module is configured to obtain, from the server, data corresponding to an account in the current account set if the local version identifier of the target group is inconsistent with the network version identifier of the target group in the server and the local version identifier of the current account set is inconsistent with the network version identifier of the current account set in the server, and update the data corresponding to the same account stored locally based on the obtained data.
In another possible implementation manner, the data updating module is configured to obtain, from the server, data corresponding to an account in the current account set and a network version identifier of the current account set;
The apparatus further comprises:
and the version identification updating module is used for updating the local version identification of the current account number set into the network version identification of the current account number set under the condition that the data corresponding to the account numbers in the current account number set are updated.
In another possible implementation, the apparatus further includes:
and the stop updating module is used for receiving a stop updating notification returned by the server, wherein the stop updating notification represents data corresponding to the account in the current account set to stop updating, and the stop updating notification is returned by the server under the condition that the local version identification of the target group is inconsistent with the network version identification of the target group and the local version identification of the current account set is consistent with the network version identification of the current account set in the server.
In another possible implementation, the apparatus further includes:
and the version identification updating module is used for updating the local version identification of the target group into the network version identification of the target group under the condition that the data updating corresponding to the accounts in the plurality of account sets is completed.
In another possible implementation, the apparatus further includes: a data storage module for:
carrying out hash calculation on a plurality of accounts in the target group respectively to obtain a hash value corresponding to each account;
grouping the plurality of accounts based on hash values corresponding to the plurality of accounts;
and storing the data corresponding to the account numbers in the same group in the same data table.
In another possible implementation manner, the data storage module is configured to divide the account numbers with the same characteristic values at the target positions in the hash values into the same group.
In another possible implementation, the apparatus further includes: a data reading module for:
responding to data access operation of any account based on a target personal account, and verifying the data access authority of the target personal account;
and under the condition that the target personal account number has the data access authority, reading the data corresponding to the accessed account number from the data table, and displaying the read data.
In another aspect, there is provided a group management apparatus, the apparatus comprising:
the group creation module is used for creating a target group based on a first personal account currently logged in, wherein the target group comprises a group account set and a personal account set, the group account set comprises a first group account to which the first personal account belongs and a second group account different from the first group account, and the personal account set comprises a personal account belonging to the first group account and a personal account belonging to the second group account;
An account association module, configured to associate, in the target group, a personal account belonging to the first group account with the second group account, or associate a personal account belonging to the first group account with a personal account belonging to the second group account;
any two associated accounts allow instant messaging under the condition that a friend relation is not established.
In one possible implementation, the group creation module is configured to:
responding to a group creation operation, acquiring an input group name through a creation interface, and creating the target group named by the group name;
inviting the personal account through an inviting interface, and adding the personal account which accepts the invitation and the group account which the personal account which accepts the invitation belongs to the target group; and/or inviting a group account through the invitation interface, and adding the group account accepting the invitation and the personal account belonging to the group account accepting the invitation to the target group.
In another possible implementation, the apparatus further includes: a first communication module for:
displaying at least one personal account associated with the first personal account in an associated account display interface;
Responsive to a selection operation of a plurality of personal accounts of the at least one personal account, creating a first group including the first personal account and the plurality of personal accounts;
displaying the instant messaging interface of the first group, and inputting a communication message in the instant messaging interface.
In another possible implementation, the apparatus further includes: a second communication module for:
displaying at least one group account associated with the first personal account in an associated account display interface;
in response to a selection operation of any group account, displaying at least one personal account belonging to the selected group account;
and responding to the selection operation of any currently displayed personal account, displaying an instant communication interface of the personal account, and carrying out instant communication with the personal account in the instant communication interface.
In another possible implementation, the apparatus further includes: a third communication module for:
responding to the batch communication operation, and displaying a batch communication interface;
selecting at least two personal accounts from the personal accounts in each target group to which the first personal account belongs through the batch communication interface;
Inputting a communication message through the batch communication interface;
and respectively sending the communication message to the selected at least two personal accounts.
In another possible implementation, the apparatus further includes: an application sharing module for:
selecting a target application from at least one application of the first group account in response to an add application operation to the target group;
the target application is added to the target group, wherein the account number in the target group has rights to use the application in the target group.
In another possible implementation, the apparatus further includes: a group management module for:
managing the target group;
wherein the target group comprises at least one group, each group comprising at least one group account and a personal account belonging to the at least one group account, the managing comprising at least one of:
deleting any packet in the target group;
adding a new packet in the target group;
at least one personal account number or at least one group account number in a first group of the target group is moved to a second group of the target group.
In another aspect, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to implement the operations performed by the data synchronization method or the group management method as described in the above aspect.
In another aspect, there is provided a computer readable storage medium having stored therein at least one computer program loaded and executed by a processor to implement the operations performed by the data synchronization method or the group management method as described in the above aspects.
In another aspect, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the operations performed by the data synchronization method or the group management method of the above aspects.
According to the data synchronization method provided by the application, the accounts in the target group are divided into a plurality of account sets, the data corresponding to the accounts in one account set is acquired from the server, the data corresponding to the accounts in the next account set is continuously acquired after the data corresponding to the accounts in the account set are updated, until the data corresponding to all the accounts are updated, in the data synchronization process, each time the data is acquired from the server, the terminal interacts with the server once, and the data corresponding to the accounts are acquired in batches according to the account sets, so that the interaction times of the terminal and the server are reduced without independently carrying out interaction for each account, the time consumed in the data transmission process is reduced, and the data synchronization speed is improved.
The embodiment of the application provides a novel group, after a target group is created based on a first personal account, personal accounts belonging to a first group account and a second group account can be added into the target group, so that the personal accounts belonging to different group accounts are in one target group, and the function of allowing instant messaging between any two associated accounts under the condition of not establishing a friend relationship is realized by correlating the accounts, and a novel instant messaging mode is provided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
FIG. 2 is a flow chart of a group management method provided by an embodiment of the present application;
FIG. 3 is a flowchart of another group management method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a group creation interface provided by an embodiment of the present application;
FIG. 5 is a schematic illustration of an invitation interface provided by an embodiment of the application;
FIG. 6 is a schematic diagram for establishing an association relationship according to an embodiment of the present application;
FIG. 7 is a schematic illustration of a toolbar provided according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a batch communication process provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of a shared application process provided by an embodiment of the present application;
FIG. 10 is a schematic diagram of a group management process provided by an embodiment of the present application;
fig. 11 is a schematic diagram of an account management process according to an embodiment of the present application;
FIG. 12 is a flowchart of a data synchronization method according to an embodiment of the present application;
FIG. 13 is a flowchart of another data synchronization method according to an embodiment of the present application;
FIG. 14 is a schematic diagram of a data synchronization process according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of a data synchronization device according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of a group management device according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of a terminal according to an embodiment of the present application;
Fig. 18 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It is to be understood that the terms "first," "second," and the like, as used herein, may be used to describe various concepts, but are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, the first permutation may be referred to as a second permutation and the second permutation may be referred to as a first permutation without departing from the scope of the present application.
The terms "at least one", "a plurality", "each", "any" and the like as used herein, at least one includes one, two or more, a plurality includes two or more, each means each of the corresponding plurality, and any one means any of the plurality. For example, the plurality of accounts includes 3 accounts, and each account refers to each account of the 3 accounts, and any one refers to any one of the 3 accounts, which may be the first, the second, or the third.
It will be appreciated that the information (including, but not limited to, personal account information, group account information, etc.) and data (including, but not limited to, account corresponding data, stored data, presented data, etc.) involved in the present application are both user-authorized or fully authorized by parties, and the collection, use and processing of relevant data requires compliance with relevant laws and regulations and standards of the relevant country and region. For example, the personal account number, the group account number, the account-corresponding data, and the like, which are referred to in the present application, are acquired under the condition of sufficient authorization.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes at least one terminal 101 (1 is illustrated in fig. 1) and a server 102. The terminal 101 and the server 102 are connected by a wireless or wired network.
The terminal 101 is installed with a first application served by the server 102, through which the terminal 101 can implement functions such as data transmission, message interaction, and the like. Optionally, the terminal 101 is a computer, a mobile phone, a tablet computer, or other terminals. Alternatively, the first application is an application in the operating system of the terminal 101 or an application provided for a third party. For example, the first application is an instant messaging application. Optionally, the server 102 is a stand-alone physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), and basic cloud computing services such as big data and artificial intelligence platforms.
In the embodiment of the present application, the terminal 101 divides a plurality of accounts in a target group into a plurality of account sets, then sequentially acquires data corresponding to the accounts in the account sets from the server 102 for each account set, updates the locally stored data corresponding to the same account based on the acquired data, continuously acquires data corresponding to the account in the next account set from the server 102 after updating the data corresponding to the account in one account set, and updates the locally stored data corresponding to the same account until the data corresponding to the accounts in all account sets are updated, and completes updating the data corresponding to the accounts in a batch update manner.
The embodiment of the application provides a data synchronization method and a group management method for a target group. For the target group, it is first necessary to create the target group, then manage the created target group, and synchronize data related to the target group from the server to terminals that log in to each account included in the target group, and an embodiment of creating the target group and managing the target group will be described below.
Fig. 2 is a flowchart of a group management method according to an embodiment of the present application. The execution main body of the embodiment of the application is a terminal. Referring to fig. 2, the method includes the steps of:
201. the terminal creates a target group based on a first personal account currently logged in, wherein the target group comprises a group account set and a personal account set, the group account set comprises a first group account to which the first personal account belongs and a second group account different from the first group account, and the personal account set comprises a personal account belonging to the first group account and a personal account belonging to the second group account.
For any one of the personal accounts, the personal account belongs to a group account, and for any one of the group accounts, the group account has at least one corresponding personal account, the at least one personal account belongs to the group account.
In the embodiment of the application, the terminal logs in based on the first personal account, then executes group creation operation based on the first personal account, and creates the target group, wherein the first personal account is any personal account belonging to the first group account. In the process of creating the target group, the terminal firstly creates the target group comprising the first personal account and the first group account to which the first personal account belongs based on the first personal account, and then invites other personal accounts belonging to the first group account, the second group account or the personal account belonging to the second group account to join the target group. Wherein the second group account is different from the first group account.
202. And the terminal associates the personal account belonging to the first group account with the second group account in the target group, or associates the personal account belonging to the first group account with the personal account belonging to the second group account, wherein any two associated accounts allow instant messaging under the condition that a friend relation is not established.
In the embodiment of the application, under the condition that any two accounts do not establish a friend relationship and the any two accounts do not belong to the same group account, instant communication is not allowed between the two accounts. In order to realize communication among personal accounts belonging to different group accounts in the target group, the personal accounts belonging to different group accounts are associated in the target group, namely, the association relationship among the personal accounts belonging to different group accounts is established.
Taking the establishment of an association between a personal account belonging to a first group account and a personal account belonging to a second group account as an example, when the association is established, one way is to directly associate the personal account belonging to the first group account with the second group account, and under the condition, the personal account belonging to the first group account and at least one personal account belonging to the second group account both establish the association; another way is to associate the personal account belonging to the first group account with the personal account belonging to the second group account, in which case the personal account belonging to the first group account and the one personal account belonging to the second group account both establish an association, but not with other personal accounts belonging to the second group account.
The embodiment of the application provides a novel group, after a target group is created based on a first personal account, personal accounts belonging to a first group account and a second group account can be added into the target group, so that the personal accounts belonging to different group accounts are in one target group, and the function of allowing instant messaging between any two associated accounts under the condition of not establishing a friend relationship is realized by correlating the accounts, and a novel instant messaging mode is provided.
Fig. 3 is a flowchart of another group management method according to an embodiment of the present application. The execution main body of the embodiment of the application is a terminal. Referring to fig. 3, the method includes the steps of:
301. the terminal creates a target group based on the first personal account number currently logged in.
The target group comprises a group account set and a personal account set, wherein the group account set comprises a first group account to which a first personal account belongs and a second group account different from the first group account, and the personal account set comprises a personal account belonging to the first group account and a personal account belonging to the second group account. The number of the second group accounts in the target group may be one or more, and the embodiment of the application does not limit the number of the second group accounts.
In the embodiment of the application, the terminal logs in based on the first personal account, then executes group creation operation based on the first personal account, and creates the target group, wherein the first personal account is any personal account belonging to the first group account. In the process of creating the target group, the terminal firstly creates the target group comprising the first personal account and the first group account to which the first personal account belongs based on the first personal account, and then invites other personal accounts belonging to the first group account, the second group account or the personal account belonging to the second group account to join the target group.
In one possible implementation manner, the terminal responds to a group creation operation based on the first personal account number, obtains an input group name through a creation interface, and creates a target group named by the group name. For example, referring to the creation interface 401 shown in fig. 4, a group name "AAAA" is input in the creation interface 401, a creation control 4011 is included in the creation interface 401, and a target group named by the group name is created in response to a trigger operation to the creation control 4011.
The target group just created by the terminal comprises the first personal account and the first group account to which the first personal account belongs, but does not comprise other personal accounts or group accounts, and the other personal accounts or group accounts can be invited through the invitation interface. Namely, the terminal invites the personal account through an invitation interface, and adds the personal account which accepts the invitation and the group account which the personal account which accepts the invitation belongs to the target group; and/or the terminal invites the group account through the invitation interface, and adds the group account accepting the invitation and the personal account belonging to the group account accepting the invitation to the target group. That is, when other accounts are invited through the invitation interface, the personal account may be directly invited, or the group account may be invited, which is not limited in the embodiment of the present application.
In the embodiment of the present application, for inviting a personal account and inviting a group account, when inviting a personal account, the difference is that after the personal account accepts the invitation, not only the personal account is added to the target group, but also the group account to which the personal account belongs is added to the target group. When a certain group account is invited, after the group account accepts the invitation, not only the group account is added to the target group, but also all personal accounts belonging to the group account are added to the target group. According to the invitation mode, a certain personal account can be directly invited under the condition that the personal account needs to be invited, and the group account can be directly invited under the condition that the personal account belonging to the group account needs to be invited, so that each personal account belonging to the group account does not need to be invited one by one, the invitation mode is more convenient, and the invitation mode is more flexible.
Alternatively, the terminal can invite a personal account number or a group account number in several ways. The terminal sends an invitation link to other personal accounts or group accounts based on the first personal account, and determines that the personal account or group account accepts the invitation under the condition that the invited personal account or group account triggers the invitation link, so that the personal account or group account and the personal account belonging to the group account are added to the target group; or the terminal generates an invitation code corresponding to the target group, sends the invitation code to other personal accounts or group accounts, and enables the other personal accounts or group accounts to accept the invitation by scanning the invitation code by the terminal logged in the other personal accounts or group accounts; or the terminal directly pulls other personal accounts or group accounts to join the target group based on the first personal account, and sends invitation notification to the other personal accounts or group accounts.
For example, referring to fig. 5, after the target group is created, an invitation interface 501 is displayed, and different invitation modes are displayed in the invitation interface 501: and (3) linking the invitation, inviting the code to invite and pulling the account, and selecting any inviting mode to invite other personal accounts or group accounts to join the target group.
It should be noted that, in the embodiment of the present application, after the target group is created, other personal accounts or group accounts are directly invited through the invitation interface as an example, in another embodiment, other personal accounts or group accounts can be invited to join the target group at any time after the target group is created, and the embodiment of the present application does not limit the opportunity of the invitation.
In one possible implementation manner, after the terminal creates the target group, a first personal account number for creating the target group is set as an administrator account number, where the first personal account number has a function of managing the target group. Of course, other personal accounts in the target group can be set as administrator accounts based on the first personal account, and the other personal accounts can be personal accounts belonging to the first group account or personal accounts belonging to the second group account. Optionally, in the case where the personal account number belonging to the second group account number is set as the administrator account number, the personal account number belonging to the second group account number has a function of managing the personal account number belonging to the second group account number in the target group, and does not have a function of managing the personal account number belonging to the first group account number or the other second group account numbers in the target group.
In one possible implementation, the group account further includes a sub-group account to which the personal account belonging to the sub-group account belongs. Correspondingly, when the personal account is invited to join in the target group, under the condition that the personal account accepts the invitation, the personal account, the sub-group account to which the personal account belongs and the group account are added to the target group. For example, if the group account is an account of a certain enterprise, the sub-group account is an account of a certain department in the enterprise, and the individual account is an account of a certain employee in the enterprise.
In addition, in one possible implementation, the number of accounts that can be added in the target group has an upper threshold, and in a case that the number of accounts that have been added in the target group does not reach the upper threshold, the accounts can be invited to join the target group. For example, the upper threshold is 2000, 2500, 3000, or other value.
It should be noted that, in the embodiment of the present application, only the first personal account creation target group is described as an example, and in another embodiment, other groups may be created based on the first personal account, or the first personal account may be added to the group created based on the other personal accounts, which is not limited in this embodiment of the present application.
302. The terminal associates the personal account number belonging to the first group account number with the second group account number or associates the personal account number belonging to the first group account number with the personal account number belonging to the second group account number in the target group.
In the embodiment of the application, after a target group is created, a plurality of personal accounts belonging to a plurality of group accounts are included in the target group, and before the plurality of personal accounts are associated, under the condition that the terminal logs in based on the personal account with the management function, the plurality of group accounts and the plurality of personal accounts in the target group are displayed, and under the condition that the terminal logs in based on any one personal account without the management function, other personal accounts belonging to the same group account as the personal account and the group account belonging to the personal account are displayed, but the personal accounts belonging to other group accounts are not displayed.
Thus, in order to enable instant messaging by personal accounts belonging to different group accounts, a personal account belonging to a first group account is associated with a personal account belonging to a second group account, or a personal account belonging to the first group account is associated with the second group account. Any two associated accounts allow instant messaging under the condition that a friend relation is not established. In the embodiment of the application, account numbers are associated, namely, the association relation between the account numbers is established.
For the first personal account, since the target group is created based on the first personal account, the first personal account is considered to be associated with the personal account or group account added to the target group. For other accounts, it is necessary to correlate other accounts based on the account having the management function. In one possible implementation, at least one personal account belonging to a first group account and at least one second group account to be associated are selected in an account association interface, and then a plurality of personal accounts belonging to the first group account are associated with the personal accounts belonging to the at least one second group account in response to a triggering operation of an association control in the account association interface. Wherein for any one of the personal accounts belonging to the first group account, the personal account can be associated with at least one second group account or the personal account belonging to at least one second group account, and as such, any one of the second group account or the personal account belonging to the second group account can be associated with at least one of the personal accounts belonging to the first group account.
In one possible implementation, the terminal enters the account association interface from the association display interface. The terminal displays an incidence relation display interface, wherein the incidence relation display interface displays at least one established incidence relation, and responds to the triggering operation of any incidence relation, an account incidence interface is displayed, so that the established incidence relation can be edited on the account incidence interface; the association relation display interface also displays an association relation establishing control, and responds to the triggering operation of the association relation establishing control to display an account association interface, so that the association relation between accounts can be established in the account association interface.
For example, referring to the association display interface 601 and the account association interface 602 shown in fig. 6, an established association 1, an association 2 and an established association control "establish an association" are displayed in the association display interface 601, in response to a clicking operation on the established association control, the account association interface 602 is displayed, the account association interface 602 includes a first configuration area, a second configuration area and a determination association control, the second configuration area is used for configuring at least one personal account belonging to a first group account to be associated, the first configuration area is used for configuring at least one second group account to be associated or a personal account belonging to at least one second group account, in fig. 6, the second group account 1 and the second group account 2 to be associated are configured in the first configuration area, in response to a triggering operation on the determination association control, "save" is configured on the personal account 1 and the personal account 2, and an association is established.
In the embodiment of the present application, for the first personal account, after determining the other personal account or group account associated with the first personal account, instant messaging can be performed based on the associated account, see step 303.
303. The terminal performs instant messaging based on the first personal account number and at least one personal account number associated with the first personal account number.
In the embodiment of the application, the instant messaging between the first personal account and other associated personal accounts is taken as an example, and the instant messaging mode is the same as the instant messaging mode of the first personal account after the association relation is established for the other personal accounts in the target group.
In one possible implementation manner, a terminal displays at least one personal account associated with a first personal account in an associated account display interface, and in response to a selection operation of a plurality of personal accounts in the at least one personal account, creates a first group including the first personal account and the plurality of personal accounts. And then displaying an instant messaging interface of the first group, inputting a communication message in the instant messaging interface, and sending the communication message to other accounts except the first personal account number in the first group, so as to realize instant messaging based on the first group. The associated account display interface is used for displaying a personal account associated with the first person.
Optionally, the terminal displays at least one group account associated with the first personal account in the associated account display interface, responds to the selection operation of any group account, displays at least one personal account belonging to the selected group account, selects a personal account from the displayed at least one personal account, returns to the interface displaying at least one group account, responds to the selection operation of another group account, continues to select a personal account belonging to the personal account of the other group account until a plurality of personal accounts are selected, and creates the first group.
Optionally, the communication message input in the instant communication interface is a text message, a voice message, a picture, a document or other format message, and the embodiment of the application does not limit the content and the form of the communication message.
In one possible implementation, a toolbar is displayed on the instant messaging interface of the first group, and a table, a document, a web page link or the like sent by the account numbers in the first group is displayed in the toolbar. Alternatively, since the toolbar display area in the instant messaging interface is limited, the content which may be displayed is not complete, the terminal responds to the triggering operation of the toolbar to display the toolbar interface, and the whole content in the toolbar is displayed in the toolbar interface.
For example, referring to the instant messaging interface 701 shown in fig. 7, a toolbar 7011 is displayed below the instant messaging interface 701, the toolbar 7011 is located above the messaging area, a toolbar interface 702 is displayed in response to a trigger operation to the toolbar 7011, and table 1, table 2, document 1, and document 2 in the toolbar are displayed in the toolbar interface 702.
It should be noted that, in the embodiment of the present application, the first group is only created as an example, and in another embodiment, a second group may be created in a similar manner to the first group, and the personal accounts in the second group perform instant messaging in the instant messaging interface of the second group, where the personal accounts included in the second group are not identical to the personal accounts included in the first group.
In another possible implementation manner, the terminal displays at least one group account associated with the first personal account in an associated account display interface; in response to a selection operation of any group account, displaying at least one personal account belonging to the selected group account; and responding to the selection operation of any currently displayed personal account, displaying an instant communication interface of the personal account, and carrying out instant communication with the personal account in the instant communication interface. The instant messaging interface of the personal account is an interface for instant messaging between the first personal account and the personal account, and through the instant messaging interface, the first personal account and the personal account can perform instant messaging independently.
In the embodiment of the application, in the target group, when the associated account numbers are communicated, a new group can be further established according to the requirement, and the instant messaging among a plurality of account numbers is carried out through the established group or the instant messaging is carried out independently with the associated account numbers, so that the flexibility of the communication is improved.
304. And the terminal sends a communication message to at least two personal accounts in each target group to which the first personal account belongs based on the first personal account.
In the embodiment of the application, for the first personal account, the first personal account can create or join in a plurality of target groups, and when the same communication message needs to be sent to different accounts in different target groups, the communication message can be sent in a batch sending mode.
In one possible implementation, the terminal displays a bulk communication interface in response to a bulk communication operation. The batch communication operation indicates that the same communication message is sent to at least two personal accounts. And then selecting at least two personal accounts from the personal accounts in each target group to which the first personal account belongs through a batch communication interface. And inputting communication information through a batch communication interface, and respectively sending the communication information to the selected at least two personal accounts. The at least two personal accounts may be accounts belonging to the same target group, or may be accounts belonging to different target groups, which is not limited in the embodiment of the present application.
Optionally, the terminal displays a group management interface, where the group management interface includes at least one target group created or joined based on the first personal account number and a bulk communication control, and the bulk communication interface is displayed in response to a triggering operation of the bulk communication control.
Optionally, the batch communication interface includes a setup batch communication control and a communication record view control. The terminal responds to the triggering operation of establishing the batch communication control, displays a message sending interface, inputs a communication message on the message sending interface, and selects at least two personal accounts; or the terminal responds to the triggering operation of the communication record checking control, and displays a communication record interface, wherein the communication record interface comprises the sent communication message and an account number for receiving the communication message.
Optionally, the message sending interface includes an account input area, a message input area and a determining sending control, the terminal displays a plurality of selectable personal accounts in the account input area, the plurality of personal accounts belong to a plurality of target groups added or created by the first personal account, and then determines at least two personal accounts of the message to be received in response to a selection operation of the at least two personal accounts in the plurality of personal accounts. The terminal inputs a communication message to be transmitted in a message input area. Optionally, an attachment such as a picture, a file, etc. may be added to the message input area. And then the terminal responds to the triggering operation of the determining and sending control to send the communication message to the selected at least two personal accounts.
Optionally, the terminal sends the at least two personal accounts and the communication message to the server, and the server sends the communication message to the terminal logged in with the at least two accounts respectively.
For example, referring to fig. 8, in the group management interface 801, a group 1 created by the first personal account number and a joined group 2 are displayed, and a batch communication control "message group send", in response to a trigger operation for "message group send", a batch communication interface 802 is displayed, the batch communication interface 802 including a batch communication control "new message group send" and a communication record viewing control "all group send record" is established, in response to a trigger operation for "new message group send", a message transmission interface 803 is displayed, an account number of a message to be received is input in an account number input area in the message transmission interface, and a communication message to be transmitted is input in a message input area.
In the embodiment of the application, the communication message can be simultaneously sent to the accounts belonging to different target groups in a batch communication mode, and the communication message does not need to be independently sent to the accounts in each target group, so that the communication efficiency is improved.
305. And adding the target application into the target group by the terminal based on the first personal account number.
The embodiment of the application is described by taking the example of adding the target application into the target group based on the first personal account number, and in another embodiment, the target application can be added into the target group based on other personal account numbers in the target group.
In one possible implementation, the terminal selects a target application from at least one application of the first group account in response to an add application operation to the target group; the target application is added to the target group so that other accounts in the target group can use the target application. Wherein at least one application of the first group account is a sub-application in the first application, for example, the first application is an instant messaging application, and the target application is an applet in the instant messaging application.
Optionally, after the target application is added to the target group, the terminal sets a use right for the personal account belonging to the second group account in the target group based on the first personal account, where in this case, the personal account belonging to the first group account and the personal account having the use right belonging to the second group account in the target group can use the target application.
In one possible implementation, the terminal displays a group interface of a target group, the group interface including an application sharing control, displays the application sharing interface in response to a triggering operation of the application sharing control, displays at least one application of the first group account in response to a triggering operation of an application adding control in the application sharing interface, selects a target application from the at least one application, and adds the target application to the target group. Wherein the application sharing interface also displays the added application.
Optionally, the number of applications that have currently been added to the target group is displayed in an application sharing control in the group interface.
For example, referring to fig. 9, an application sharing control is displayed in the group interface 901 of the target group, with a "sharing application" displayed thereon: 2 "; in response to the triggering operation of the application sharing control, an application sharing interface 902 is displayed, an application adding control "add application" and an added application 1 and application 2 are displayed in the application sharing interface 902, and in response to the triggering operation of the "add application", an application to be added is selected.
306. The terminal manages the target group based on the first personal account number.
In the embodiment of the application, after the target group is created, the target group can be managed. The management of the target group includes at least one of:
first kind: and (5) packet management.
After creating the target group, the terminal can group the group account number and the personal account number in the target group. The target group includes at least one group, each group including at least one group account and a personal account belonging to the at least one group account.
In one possible implementation, for at least one packet in the target group, the terminal deletes any packet in the target group. Optionally, the terminal deletes any packet in response to a delete operation for that packet. For example, the terminal displays a deletion control in response to a long press operation on any group, and deletes the group in response to a trigger operation on the deletion control.
In one possible implementation, the terminal adds a new packet in the target group. Optionally, the terminal displays an add group control in response to a long press operation on any group, displays an add group window in response to a trigger operation on the add group control, wherein the add group window comprises a group name input area, an acknowledge add control and a cancel add control, inputs a group name in the group name input area in the add group window, adds a group named by the group name in response to the trigger operation on the acknowledge add control, or cancels adding a new group in response to the trigger operation on the cancel add control.
Second kind: and (5) account mobile management.
In one possible implementation, the terminal moves at least one personal account number or at least one group account number in a first group in the target group to a second group in the target group. Wherein the first packet and the second packet are different packets.
Optionally, the terminal responds to the long-press operation on the first group, displays an account moving control, responds to the triggering operation on the account moving control, displays the group accounts and the personal accounts in the first group, responds to the moving operation on at least one group account, selects a second group to be moved to, and moves the at least one group account and the personal accounts belonging to the at least one group account to the second group. Or, the terminal responds to the moving operation of at least one personal account, selects a second grouping to be moved to, and moves the at least one personal account to the second grouping.
Third kind: group name management.
In one possible implementation, the group name of the target group is edited in response to an editing operation of the group name of the target group.
Of course, other management can be performed on the target group, such as editing a group name, a location of a mobile group in a group interface, and the like, which is not limited by the embodiment of the present application.
It should be noted that, in the embodiment of the present application, the first personal account is merely taken as an example for illustration, and in another embodiment, the target application may be added to the target group based on other personal accounts in the target group.
For example, referring to fig. 10, in response to a long press operation on group 1 in the target group, a delete control "delete current group", an add group control "add group", an account number move control "mass move account number", and a group name modify control "modify group name" are displayed in the group interface 1001, and in response to a trigger operation on the "delete current group" control, group 1 is deleted; responding to the triggering operation of the group adding control, and displaying a group adding window; in response to a trigger operation to the "modify group name" control, a window is displayed that modifies the group name. In fig. 10, only the control of the management group is shown together as an example, and in another embodiment, the several controls may be displayed separately by different display manners.
Third kind: account addition management and deletion management.
In one possible implementation, the terminal can add a new personal account number or group account number in the target group, similar to that described above in step 301.
In one possible implementation, the terminal can delete the personal account number or the group account number in the target group, where in the case of deleting the group account number, the personal account number belonging to the group account number is also deleted.
For example, referring to fig. 11, after creating the target group based on the first personal account, a personal account belonging to the first group account is added, referring to the account management interface 1101 shown in fig. 11, in response to a triggering operation on an edit control in the account management interface 1101, the account management interface 1102 is displayed, and the "account 2" may be deleted by clicking a delete control "delete" corresponding to the "account 2" in the account management interface 1102. Wherein, personal accounts belonging to the first group accounts may be added in both the account management interface 1101 and the account management interface 1102.
It should be noted that, the execution sequence of steps 302-303, 304, 305 and 306 is not limited in the embodiment of the present application.
It should be noted that, after the target group is managed based on the first personal account in the steps 301 to 306, the generated data needs to be synchronized to the server, so that the server synchronizes the generated data based on the first personal account to the terminals logged in based on other accounts in the target group.
The embodiment of the application provides a novel group, after a target group is created based on a first personal account, personal accounts belonging to a first group account and a second group account can be added into the target group, so that the personal accounts belonging to different group accounts are in one target group, and the function of allowing instant messaging between any two associated accounts under the condition of not establishing a friend relationship is realized by correlating the accounts, and a novel instant messaging mode is provided.
The above-described embodiments introduce the creation process and the group management process of the target group, and a data synchronization method for the target group is described below.
Fig. 12 is a flowchart of a data synchronization method according to an embodiment of the present application. The execution subject of the method is a terminal, see fig. 12, and the method comprises the following steps:
1201. The terminal divides a plurality of accounts in a target group into a plurality of account sets, each account set comprises a part of accounts in the plurality of accounts, and the accounts included in different account sets are different, wherein the target group comprises at least two group accounts and personal accounts belonging to at least two group accounts.
The creation process and the management process of the target group in the embodiment of the present application are detailed in the embodiment shown in fig. 2, and are not described herein.
When the terminal logs in based on any account in the target group, the data corresponding to the account in the target group needs to be synchronized to the terminal. In order to improve the synchronization speed, the plurality of accounts in the target group are divided into a plurality of account sets, each account set comprises a part of accounts in the plurality of accounts, the accounts in different account sets are different, and then data corresponding to the accounts are updated according to the account sets.
1202. The terminal acquires data corresponding to the accounts in one account set from the server each time, updates the data corresponding to the same account stored locally based on the acquired data, and continuously updates the data corresponding to the accounts in the next account set after updating is completed until updating the data corresponding to the accounts in the plurality of account sets is completed.
And the terminal sequentially acquires data corresponding to the accounts in each account set from the server according to the divided account sets, namely after the data corresponding to the accounts in one account set is updated, updating the data corresponding to the accounts in the next account set until the data corresponding to the accounts in the account sets is updated.
According to the data synchronization method provided by the application, the accounts in the target group are divided into a plurality of account sets, the data corresponding to the accounts in one account set is acquired from the server, the data corresponding to the accounts in the next account set is continuously acquired after the data corresponding to the accounts in the account set are updated, until the data corresponding to all the accounts are updated, in the data synchronization process, each time the data is acquired from the server, the terminal interacts with the server once, and the data corresponding to the accounts are acquired in batches according to the account sets, so that the interaction times of the terminal and the server are reduced without independently carrying out interaction for each account, the time consumed in the data transmission process is reduced, and the data synchronization speed is improved.
Fig. 13 is a flowchart of a data synchronization method according to an embodiment of the present application. The interaction subject of the method is a terminal and a server, see fig. 13, and the method comprises the following steps:
1301. The terminal divides a plurality of accounts in the target group into a plurality of account sets.
The creation process and the management process of the target group in the embodiment of the present application are detailed in the embodiment shown in fig. 2, and are not described herein.
When the terminal logs in based on any account in the target group, the data corresponding to the account in the target group needs to be synchronized to the terminal. In order to improve the synchronization speed, the plurality of accounts in the target group are divided into a plurality of account sets, each account set comprises a part of accounts in the plurality of accounts, the accounts in different account sets are different, and then data corresponding to the accounts are updated according to the account sets. The embodiment of the application is illustrated by taking the current terminal logging in based on the target personal account number as an example.
In one possible implementation manner, the terminal divides the account set according to the group account to which each personal account belongs, namely, the personal account belonging to the same group account and the group account are divided into one account set; or, the terminal classifies the target group according to the sequence of adding each account, for example, 10 accounts are taken as a group, and the account set is divided according to the time of adding the target group; or the terminal randomly classifies a plurality of personal accounts and group accounts; or other manners of dividing the account number set may be adopted, which is not limited by the embodiment of the present application.
Each account set comprises a part of accounts in a plurality of accounts, wherein the part of accounts can be personal accounts, group accounts or part of the accounts can be personal accounts, and the other part of the accounts is group accounts. In addition, the number of the accounts in each account set may be the same or different, which is not limited in the embodiment of the present application.
1302. And the terminal sends a data updating request corresponding to the current account set to the server, wherein the data updating request carries the local version identifier of the target group.
And the terminal sequentially acquires data corresponding to the accounts in each account set from the server according to the divided account sets. The terminal sends a data updating request corresponding to the current account set to the server, wherein the data updating request is used for requesting to update data corresponding to the accounts in the current account set.
In order for the server to determine whether update data is needed, the data update request carries a local version identification of the target group. The local version identifier represents a version of data corresponding to an account locally stored by the terminal.
In one possible implementation manner, the data update request further carries a target personal account number logged in by the current terminal, so that the server determines an account number associated with the target personal account number in the current account number set according to the target personal account number, and returns data corresponding to the associated account number to the terminal.
1303. And the server responds to the data updating request, and returns the data corresponding to the account in the current account set under the condition that the local version identification of the target group is inconsistent with the network version identification of the target group in the server.
1304. The terminal receives data corresponding to the account numbers in the account number set returned by the server, and updates the data corresponding to the same locally stored account numbers based on the received data.
After receiving the data updating request, the server determines whether the local version identifier is consistent with the network version identifier of the target group, the network version identifier represents the latest version of the data corresponding to the account number in the target group stored by the server, and when the local version identifier is inconsistent with the network version identifier, the data stored locally by the terminal is not the latest data, the data stored locally by the terminal needs to be updated, the server returns the data corresponding to the account number in the current account number set to the terminal, and the terminal receives the data corresponding to the account number in the current account number set returned by the server and updates the data corresponding to the same locally stored account number. And under the condition that the local version identification is consistent with the network version identification, the data stored locally by the terminal are the latest data, updating is not needed, and the server does not need to return the data corresponding to the account in the current account set to the terminal.
The data corresponding to the account comprises account deletion data, account newly-added data, account information updating data and the like. The account deletion data refers to that a certain account in the current account set has been deleted, the account newly-added data refers to that other accounts are newly added in the current account set, and the account information update data refers to that the account information of the account has been updated, for example, the account is updated in a group in a target group, the account associated with the account is updated, and the like. Of course, the data corresponding to the account number also includes other data, such as an avatar corresponding to the account number, and the embodiment of the application does not limit the data corresponding to the account number.
In one possible implementation manner, considering that for the target personal account, the target personal account does not have permission to access the account which is not associated, even if the data corresponding to the account which is not associated with the target personal account is sent to the terminal, the terminal cannot access the data based on the target personal account, so that the server determines the account which is associated with the target personal account in the target group according to the target personal account, and then returns the data corresponding to the account which is associated with the target personal account in the current account set, thereby reducing the amount of data transmitted while achieving data synchronization so as to improve the data synchronization speed.
In one possible implementation, the data update request also carries a local version identification of the current account set. When the local version identification of the target group is inconsistent with the network version identification of the target group in the server and the local version identification of the current account number set is inconsistent with the network version identification of the current account number set in the server, the server returns data corresponding to the account number in the current account number set to the terminal; and under the condition that the local version identification of the target group is inconsistent with the network version identification of the target group in the server and the local version identification of the current account number set is consistent with the network version identification of the current account number set in the server, the data corresponding to the account number in the current account number set stored locally by the terminal are the latest data, and the server does not need to return the data corresponding to the account number in the current account number set to the terminal.
In addition, in one possible implementation manner, the server returns the data corresponding to the account in the current account set to the terminal, and returns the network version identifier of the current account set to the terminal, and under the condition that the data updating corresponding to the account in the current account set is completed, the local version identifier of the current account set is updated to the network version identifier of the current account set, so that the data locally stored by the terminal is ensured to be corresponding to the local version identifier.
In one possible implementation manner, the process of updating the data corresponding to the account in the current account set by the terminal includes: the terminal sequentially updates the data corresponding to each account in the current account set, and after the data corresponding to one account is updated, the data corresponding to the next account is updated until the data corresponding to all accounts in the current account set is updated. Optionally, under the condition that updating of the data corresponding to any account fails, updating of the data corresponding to the account in the current account set is ended.
For example, referring to fig. 14, taking an account set including 3 accounts as an example, the terminal acquires data corresponding to the 3 accounts in batches from the server, then updates data corresponding to the account 1 first, updates data corresponding to the account 2 after the data corresponding to the account 1 is successfully updated, and updates data corresponding to the account 3 after the data corresponding to the account 2 is successfully updated, wherein if the data corresponding to one account fails to be updated, the updating is ended.
In one possible implementation manner, the server returns a stop update notification to the terminal when the local version identifier of the target group is consistent with the network version identifier of the target group, or when the local version identifier of the target group is inconsistent with the network version identifier of the target group, and the local version identifier of the current account set is consistent with the network version identifier of the current account set in the server, and the terminal receives the stop update notification returned by the server. The stopping update notification indicates that updating of data corresponding to the accounts in the current account set is stopped, that is, the stopping update notification indicates that the data in the current account set is the latest data, and the terminal does not need to update the data corresponding to the accounts in the current account set.
In addition, in one possible implementation manner, when the terminal updates the data corresponding to each account, the terminal may update in a synchronous update manner or may update in an asynchronous update manner, which is not limited in the embodiment of the present application.
It should be noted that, in the step 1303, only whether the terminal returns data to the terminal is determined based on whether the local version identifier is consistent with the network version identifier is described as an example, in another embodiment, whether the local version identifier is consistent with the network version identifier is not required to be determined, and the server directly returns corresponding data to the terminal after receiving the data update request.
1305. And the terminal continues to send a data updating request corresponding to the next account set to the server until the data updating corresponding to the accounts in the plurality of account sets is completed.
After the updating of the data corresponding to the account in one account set is completed, the data corresponding to the account in the next account set is continuously updated, and the updating manner of the data corresponding to the account in the next account set is the same as that of the embodiments of the steps 1303-1304, which are not described herein again.
1306. And under the condition that the data updating corresponding to the accounts in the plurality of account sets is completed, the terminal updates the local version identifier of the target group to the network version identifier of the target group.
Under the condition that the data updating corresponding to the accounts in the plurality of account sets is completed, the terminal updates the local version identifier of the target group to the network version identifier of the target group so as to ensure that the data locally stored by the terminal corresponds to the local version identifier.
When the terminal locally stores data corresponding to the account numbers, if the corresponding data is stored for each account number, a large number of data tables are generated, and when the number of data tables is large, the writing and reading speeds of the data are reduced. Therefore, in order to reduce the number of data tables, in the embodiment of the application, when data is stored, the terminal respectively carries out hash calculation on a plurality of accounts in the target group to obtain a hash value corresponding to each account; grouping the plurality of accounts based on hash values corresponding to the plurality of accounts; and storing the data corresponding to the account numbers in the same group in the same data table.
In one possible implementation manner, in order to reduce the calculation amount of hash calculation, a terminal performs hash calculation on a plurality of group accounts in a target group to obtain a hash value corresponding to each group account, and groups the group accounts based on the hash values corresponding to the group accounts; and storing the data corresponding to the group account number in the same group and the data corresponding to the personal account number belonging to the group account number in the same data table.
In one possible implementation manner, the terminal groups the plurality of accounts based on hash values corresponding to the plurality of accounts, including: and dividing the account numbers with the same characteristic value at the target position in the hash value into the same group. Wherein the target location is any location in the hash value, e.g., the target location is the last location, the first location, or other locations in the hash value. Since the characteristic value at one location is any one of values 0 to 9, the plurality of account numbers are divided into ten groups at most.
In one possible implementation manner, the terminal also reads data from the data table, namely, the terminal responds to the data access operation of any account based on the target personal account to verify the data access authority of the target personal account; and when the target personal account number does not have the data access right, displaying a reading failure prompt to prompt that the data corresponding to the account number is not read. The access permission of the target personal account number refers to whether the target personal account number has permission to view data corresponding to the accessed account number.
It should be noted that, in the embodiment of the present application, the target group is merely taken as an example, and in another embodiment, other groups to which the target personal account number is added are grouped in the same manner. Optionally, for the accounts of different groups, the data corresponding to the accounts may be divided into multiple groups according to the groups, and then the data corresponding to the accounts in the same group are stored in the same data table; or mixing all the group accounts together, dividing the accounts in the groups into a plurality of groups, and storing the data corresponding to the accounts in the same group in the same data table.
Compared with the mode of storing the data corresponding to the account numbers of each group in one data table in the related art, the data storage mode in the embodiment of the application greatly reduces the number of the data tables by grouping the account numbers, avoids the continuous increase of the number of the data tables along with the increase of the account numbers, and simultaneously avoids the problem that the data is stored in one data table to cause the overlarge single data table, so that the data table has higher performance, and the data storage mode improves the data storage and reading speed.
According to the data synchronization method provided by the application, the accounts in the target group are divided into a plurality of account sets, the data corresponding to the accounts in one account set is acquired from the server, the data corresponding to the accounts in the next account set is continuously acquired after the data corresponding to the accounts in the account set are updated, until the data corresponding to all the accounts are updated, in the data synchronization process, each time the data is acquired from the server, the terminal interacts with the server once, and the data corresponding to the accounts are acquired in batches according to the account sets, so that the interaction times of the terminal and the server are reduced without independently carrying out interaction for each account, the time consumed in the data transmission process is reduced, and the data synchronization speed is improved.
Fig. 15 is a schematic structural diagram of a data synchronization device according to an embodiment of the present application. Referring to fig. 15, the apparatus includes:
the set dividing module 1501 is configured to divide a plurality of accounts in a target group into a plurality of account sets, where each account set includes a part of accounts in the plurality of accounts, and accounts in different account sets are different, where the target group includes at least two group accounts and a personal account belonging to at least two group accounts;
The data updating module 1502 is configured to obtain, from the server, data corresponding to an account in one account set each time, update data corresponding to the same account stored locally based on the obtained data, and continuously update data corresponding to an account in a next account set after the update is completed, until the update of data corresponding to accounts in multiple account sets is completed.
According to the data synchronization device provided by the application, the accounts in the target group are divided into a plurality of account sets, the data corresponding to the accounts in one account set is acquired from the server, the data corresponding to the accounts in the next account set is continuously acquired after the data corresponding to the accounts in the account set are updated, until the data corresponding to all the accounts are updated, in the data synchronization process, each time the data is acquired from the server, the terminal interacts with the server once, and the data corresponding to the accounts are acquired in batches according to the account sets, so that the interaction times of the terminal and the server are reduced without independently carrying out interaction for each account, the time consumed in the data transmission process is reduced, and the data synchronization speed is improved.
In one possible implementation, the data update module 1502 includes:
The request sending unit is used for sending a data updating request corresponding to any account set in the plurality of account sets to the server, and the server is used for responding to the data updating request and returning data corresponding to the accounts in the account sets;
the data receiving unit is used for receiving data corresponding to the account in the account set returned by the server.
In another possible implementation manner, the data update request carries a target personal account currently logged in, and the data receiving unit is configured to receive data corresponding to an account associated with the target personal account in the account set returned by the server.
In another possible implementation manner, the data updating module 1502 is configured to obtain, from the server, data corresponding to an account in one account set each time, and update, based on the obtained data, data corresponding to the same account stored locally, where the local version identifier of the target group is inconsistent with the network version identifier of the target group in the server.
In another possible implementation manner, the data updating module 1502 is configured to obtain, from the server, data corresponding to an account in the current account set, and update the data corresponding to the same locally stored account based on the obtained data, where the local version identifier of the target group is inconsistent with the network version identifier of the target group in the server, and the local version identifier of the current account set is inconsistent with the network version identifier of the current account set in the server.
In another possible implementation manner, the data updating module 1502 is configured to obtain, from a server, data corresponding to an account in the current account set and a network version identifier of the current account set;
the apparatus further comprises:
and the version identification updating module is used for updating the local version identification of the current account number set into the network version identification of the current account number set under the condition that the data corresponding to the account number in the current account number set is updated.
In another possible implementation, the apparatus further includes:
and the updating stopping module is used for receiving an updating stopping notification returned by the server, wherein the updating stopping notification represents data corresponding to the account in the current account set to be updated, and the updating stopping notification is returned by the server under the condition that the local version identification of the target group is inconsistent with the network version identification of the target group and the local version identification of the current account set is consistent with the network version identification of the current account set in the server.
In another possible implementation, the apparatus further includes:
and the version identification updating module is used for updating the local version identification of the target group into the network version identification of the target group under the condition that the data updating corresponding to the accounts in the plurality of account sets is completed.
In another possible implementation, the apparatus further includes: a data storage module for:
respectively carrying out hash calculation on a plurality of accounts in the target group to obtain a hash value corresponding to each account;
grouping the plurality of accounts based on hash values corresponding to the plurality of accounts;
and storing the data corresponding to the account numbers in the same group in the same data table.
In another possible implementation manner, the data storage module is configured to divide the account numbers with the same characteristic value at the target position in the hash value into the same group.
In another possible implementation, the apparatus further includes: a data reading module for:
responding to data access operation of any account based on the target personal account, and verifying the data access authority of the target personal account;
and under the condition that the target personal account number has the data access authority, reading the data corresponding to the accessed account number from the data table, and displaying the read data.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein.
It should be noted that: in the data synchronization device provided in the above embodiment, only the division of the above functional modules is used for illustration when synchronizing data, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the data synchronization device and the data synchronization method provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the data synchronization device and the data synchronization method are detailed in the method embodiments and are not repeated herein.
Fig. 16 is a schematic structural diagram of a group management device according to an embodiment of the present application. Referring to fig. 16, the apparatus includes:
a group creation module 1601, configured to create a target group based on a first personal account currently logged in, where the target group includes a group account set and a personal account set, the group account set includes a first group account to which the first personal account belongs and a second group account different from the first group account, and the personal account set includes a personal account belonging to the first group account and a personal account belonging to the second group account;
an account association module 1602, configured to associate, in a target group, a personal account belonging to a first group account with a second group account, or associate a personal account belonging to the first group account with a personal account belonging to the second group account;
any two associated accounts allow instant messaging under the condition that a friend relation is not established.
The embodiment of the application provides a novel group, after a target group is created based on a first personal account, personal accounts belonging to a first group account and a second group account can be added into the target group, so that the personal accounts belonging to different group accounts are in one target group, and the function of allowing instant messaging between any two associated accounts under the condition of not establishing a friend relationship is realized by correlating the accounts, and a novel instant messaging mode is provided.
In one possible implementation, the group creation module 1601 is configured to:
responding to a group creation operation, acquiring an input group name through a creation interface, and creating a target group named by the group name;
inviting the personal account through an inviting interface, and adding the group account to which the personal account accepted the inviting personal account belongs to the target group; and/or inviting the group account through the invitation interface, and adding the group account accepting the invitation and the personal account belonging to the group account accepting the invitation to the target group.
In another possible implementation, the apparatus further includes: a first communication module for:
displaying at least one personal account associated with the first personal account in an associated account display interface;
in response to a selection operation of a plurality of personal accounts of the at least one personal account, creating a first group including a first personal account and the plurality of personal accounts;
displaying the instant communication interface of the first group, and inputting a communication message in the instant communication interface.
In another possible implementation, the apparatus further includes: a second communication module for:
displaying at least one group account associated with the first personal account in an associated account display interface;
In response to a selection operation of any group account, displaying at least one personal account belonging to the selected group account;
and responding to the selection operation of any currently displayed personal account, displaying an instant communication interface of the personal account, and performing instant communication with the personal account in the instant communication interface.
In another possible implementation, the apparatus further includes: a third communication module for:
responding to the batch communication operation, and displaying a batch communication interface;
selecting at least two personal accounts from the personal accounts in each target group to which the first personal account belongs through a batch communication interface;
inputting a communication message through a batch communication interface;
and respectively sending communication messages to the selected at least two personal accounts.
In another possible implementation, the apparatus further includes: an application sharing module for:
selecting a target application from at least one application of the first group account in response to an add application operation to the target group;
a target application is added to the target group, wherein the account number in the target group has rights to use the application in the target group.
In another possible implementation, the apparatus further includes: a group management module for:
Managing the target group;
wherein the target group comprises at least one group, each group comprising at least one group account and a personal account belonging to the at least one group account, the managing comprising at least one of:
deleting any packet in the target group;
adding a new packet in the target group;
at least one individual account number or at least one group account number in a first group of target groups is moved to a second group of target groups.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein.
It should be noted that: in the group management device provided in the above embodiment, when managing a group, only the division of the above functional modules is used for illustration, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the group management device and the group management method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments, which are not repeated herein.
The embodiment of the application also provides a computer device, which comprises a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to realize the operations executed by the data synchronization method or the group management method of the embodiment.
Optionally, the computer device is provided as a terminal. Fig. 17 is a schematic structural diagram of a terminal 1700 according to an embodiment of the present application. The terminal 1700 includes: a processor 1701 and a memory 1702.
The processor 1701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 1701 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1701 may be integrated with a GPU (Graphics Processing Unit, image processor) for taking care of rendering and drawing of content that the display screen is required to display. In some embodiments, the processor 1701 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 1702 may include one or more computer-readable storage media, which may be non-transitory. Memory 1702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1702 is used to store at least one computer program for execution by processor 1701 to implement the data synchronization method or group management method provided by the method embodiments of the present application.
In some embodiments, terminal 1700 may further optionally include: a peripheral interface 1703, and at least one peripheral. The processor 1701, memory 1702, and peripheral interface 1703 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 1703 by buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1704, a display screen 1705, a camera assembly 1706, audio circuitry 1707, and a power source 1708.
The peripheral interface 1703 may be used to connect at least one Input/Output (I/O) related peripheral to the processor 1701 and the memory 1702. In some embodiments, the processor 1701, the memory 1702, and the peripheral interface 1703 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 1701, the memory 1702, and the peripheral interface 1703 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1704 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1704 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1704 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1704 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 1704 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 1704 may also include NFC (Near Field Communication, short range wireless communication) related circuitry, which is not limited by the present application.
The display screen 1705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 1705 is a touch display, the display 1705 also has the ability to collect touch signals at or above the surface of the display 1705. The touch signal may be input as a control signal to the processor 1701 for processing. At this point, the display 1705 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1705 may be one and disposed on the front panel of the terminal 1700; in other embodiments, the display 1705 may be at least two, respectively disposed on different surfaces of the terminal 1700 or in a folded design; in other embodiments, the display 1705 may be a flexible display disposed on a curved surface or a folded surface of the terminal 1700. Even more, the display 1705 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The display 1705 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 1706 is used to capture images or video. Optionally, the camera assembly 1706 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1706 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 1707 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1701 for processing, or inputting the electric signals to the radio frequency circuit 1704 for voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be multiple and separately disposed at different locations of the terminal 1700. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 1701 or the radio frequency circuit 1704 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 1707 may also include a headphone jack.
A power supply 1708 is used to power the various components in the terminal 1700. The power source 1708 may be alternating current, direct current, disposable battery, or rechargeable battery. When the power source 1708 comprises a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
Those skilled in the art will appreciate that the structure shown in fig. 17 is not limiting and that terminal 1700 may include more or less components than shown, or may combine certain components, or may employ a different arrangement of components.
Optionally, the computer device is provided as a server. Fig. 18 is a schematic diagram of a server according to an embodiment of the present application, where the server 1800 may have a relatively large difference between configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1801 and one or more memories 1802, where the memories 1802 store at least one computer program, and the at least one computer program is loaded and executed by the processors 1801 to implement the methods according to the foregoing method embodiments. Of course, the server may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
The embodiment of the application also provides a computer readable storage medium, in which at least one computer program is stored, and the at least one computer program is loaded and executed by a processor to implement the operations performed by the data synchronization method or the group management method of the above embodiment.
The embodiment of the present application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the operations performed by the data synchronization method or the group management method of the above embodiment.
In some embodiments, a computer program according to an embodiment of the present application may be deployed to be executed on one computer device or on multiple computer devices located at one site, or on multiple computer devices distributed across multiple sites and interconnected by a communication network, where the multiple computer devices distributed across multiple sites and interconnected by a communication network may constitute a blockchain system.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing is merely an alternative embodiment of the present application and is not intended to limit the embodiment of the present application, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the embodiment of the present application should be included in the protection scope of the present application.

Claims (38)

1. A method of data synchronization, the method comprising:
dividing a plurality of accounts in a target group into a plurality of account sets, wherein each account set comprises part of the accounts in the plurality of accounts, and the accounts included in different account sets are different, and the target group comprises at least two group accounts and personal accounts belonging to the at least two group accounts;
and acquiring data corresponding to the accounts in one account set from the server each time, updating the data corresponding to the same account stored locally based on the acquired data, and continuously updating the data corresponding to the accounts in the next account set after updating is completed until the data corresponding to the accounts in the plurality of account sets are updated.
2. The method according to claim 1, wherein obtaining data corresponding to an account in one account set from the server each time includes:
For any account set in the plurality of account sets, sending a data update request corresponding to the account set to the server, wherein the server is used for responding to the data update request and returning data corresponding to the accounts in the account set;
and receiving data corresponding to the accounts in the account set returned by the server.
3. The method according to claim 2, wherein the data update request carries a currently logged-in target personal account, and the receiving data corresponding to an account in the account set returned by the server includes:
and receiving data corresponding to the account associated with the target personal account in the account set returned by the server.
4. The method according to claim 1, wherein each time data corresponding to an account in one account set is obtained from the server, updating the locally stored data corresponding to the same account based on the obtained data, includes:
and under the condition that the local version identification of the target group is inconsistent with the network version identification of the target group in the server, acquiring data corresponding to the accounts in one account set from the server each time, and updating the data corresponding to the locally stored same account based on the acquired data.
5. The method according to claim 4, wherein, in the case that the local version identifier of the target group is inconsistent with the network version identifier of the target group in the server, each time data corresponding to an account in one account set is acquired from the server, updating the locally stored data corresponding to the same account based on the acquired data includes:
and under the condition that the local version identification of the target group is inconsistent with the network version identification of the target group in the server and the local version identification of the current account number set is inconsistent with the network version identification of the current account number set in the server, acquiring data corresponding to the accounts in the current account number set from the server, and updating the data corresponding to the locally stored same account number based on the acquired data.
6. The method according to claim 5, wherein the obtaining, from the server, data corresponding to an account in the current account set includes:
acquiring data corresponding to the accounts in the current account set and a network version identifier of the current account set from the server;
The method further comprises the steps of:
and under the condition that the data updating corresponding to the accounts in the current account set is completed, updating the local version identifier of the current account set into the network version identifier of the current account set.
7. The method according to claim 4, wherein the method further comprises:
and under the condition that the data updating corresponding to the accounts in the plurality of account sets is completed, updating the local version identifier of the target group into the network version identifier of the target group.
8. The method according to claim 1, wherein the method further comprises:
carrying out hash calculation on a plurality of accounts in the target group respectively to obtain a hash value corresponding to each account;
grouping the plurality of accounts based on hash values corresponding to the plurality of accounts;
and storing the data corresponding to the account numbers in the same group in the same data table.
9. The method of claim 8, wherein grouping the plurality of accounts based on hash values corresponding to the plurality of accounts comprises:
and dividing the account numbers with the same characteristic value at the target position in the hash value into the same group.
10. The method of claim 5, wherein the method further comprises:
and receiving a stop update notification returned by the server, wherein the stop update notification represents data corresponding to the account number in the current account number set to stop updating, and the stop update notification is returned by the server when the local version identification of the target group is inconsistent with the network version identification of the target group and the local version identification of the current account number set is consistent with the network version identification of the current account number set in the server.
11. The method of claim 8, wherein the method further comprises:
responding to data access operation of any account based on a target personal account, and verifying the data access authority of the target personal account;
and under the condition that the target personal account number has the data access authority, reading the data corresponding to the accessed account number from the data table, and displaying the read data.
12. A method of group management, the method comprising:
creating a target group based on a first personal account currently logged in, wherein the target group comprises a group account set and a personal account set, the group account set comprises a first group account to which the first personal account belongs and a second group account different from the first group account, and the personal account set comprises a personal account belonging to the first group account and a personal account belonging to the second group account;
In the target group, associating a personal account number belonging to the first group account number with the second group account number, or associating a personal account number belonging to the first group account number with a personal account number belonging to the second group account number;
any two associated accounts allow instant messaging under the condition that a friend relation is not established;
the method further comprises the steps of:
and acquiring data corresponding to the accounts in one account set from the server each time, updating the data corresponding to the same account stored locally based on the acquired data, and continuously updating the data corresponding to the accounts in the next account set after the updating is completed until the updating of the data corresponding to the accounts in the plurality of account sets is completed.
13. The method of claim 12, wherein creating the target group based on the first person account currently logged in comprises:
responding to a group creation operation, acquiring an input group name through a creation interface, and creating the target group named by the group name;
inviting the personal account through an inviting interface, and adding the personal account which accepts the invitation and the group account which the personal account which accepts the invitation belongs to the target group; and/or inviting a group account through the invitation interface, and adding the group account accepting the invitation and the personal account belonging to the group account accepting the invitation to the target group.
14. The method according to claim 12, wherein the method further comprises:
displaying at least one personal account associated with the first personal account in an associated account display interface;
responsive to a selection operation of a plurality of personal accounts of the at least one personal account, creating a first group including the first personal account and the plurality of personal accounts;
displaying the instant messaging interface of the first group, and inputting a communication message in the instant messaging interface.
15. The method according to claim 12, wherein the method further comprises:
displaying at least one group account associated with the first personal account in an associated account display interface;
in response to a selection operation of any group account, displaying at least one personal account belonging to the selected group account;
and responding to the selection operation of any currently displayed personal account, displaying an instant communication interface of the personal account, and carrying out instant communication with the personal account in the instant communication interface.
16. The method according to claim 12, wherein the method further comprises:
responding to the batch communication operation, and displaying a batch communication interface;
Selecting at least two personal accounts from the personal accounts in each target group to which the first personal account belongs through the batch communication interface;
inputting a communication message through the batch communication interface;
and respectively sending the communication message to the selected at least two personal accounts.
17. The method according to claim 12, wherein the method further comprises:
selecting a target application from at least one application of the first group account in response to an add application operation to the target group;
the target application is added to the target group, wherein the account number in the target group has rights to use the application in the target group.
18. The method according to claim 12, wherein the method further comprises:
managing the target group;
wherein the target group comprises at least one group, each group comprising at least one group account and a personal account belonging to the at least one group account, the managing comprising at least one of:
deleting any packet in the target group;
adding a new packet in the target group;
At least one personal account number or at least one group account number in a first group of the target group is moved to a second group of the target group.
19. A data synchronization device, the device comprising:
the system comprises a collection dividing module, a target group and a user terminal, wherein the collection dividing module is used for dividing a plurality of accounts in the target group into a plurality of account collections, each account collection comprises part of accounts in the plurality of accounts, and the accounts included in different account collections are different, wherein the target group comprises at least two group accounts and personal accounts belonging to the at least two group accounts;
the data updating module is used for acquiring data corresponding to the accounts in one account set from the server each time, updating the data corresponding to the same locally stored accounts based on the acquired data, and continuously updating the data corresponding to the accounts in the next account set after the updating is completed until the updating of the data corresponding to the accounts in the plurality of account sets is completed.
20. The apparatus of claim 19, wherein the data update module comprises:
a request sending unit, configured to send, to the server, a data update request corresponding to any one of the plurality of account sets, where the server is configured to return, in response to the data update request, data corresponding to an account in the account set;
The data receiving unit is used for receiving data corresponding to the account in the account set returned by the server.
21. The apparatus of claim 20, wherein the data update request carries a currently logged-in target personal account, and the data receiving unit is further configured to receive data corresponding to an account associated with the target personal account in the account set returned by the server.
22. The apparatus of claim 19, wherein the data update module is further configured to:
and under the condition that the local version identification of the target group is inconsistent with the network version identification of the target group in the server, acquiring data corresponding to the accounts in one account set from the server each time, and updating the data corresponding to the locally stored same account based on the acquired data.
23. The apparatus of claim 22, wherein the data update module is further configured to:
and under the condition that the local version identification of the target group is inconsistent with the network version identification of the target group in the server and the local version identification of the current account number set is inconsistent with the network version identification of the current account number set in the server, acquiring data corresponding to the accounts in the current account number set from the server, and updating the data corresponding to the locally stored same account number based on the acquired data.
24. The apparatus of claim 23, wherein the data updating module is further configured to obtain, from the server, data corresponding to an account in the current account set and a network version identifier of the current account set;
the apparatus further comprises:
and the version identification updating module is used for updating the local version identification of the current account number set into the network version identification of the current account number set under the condition that the data corresponding to the account numbers in the current account number set are updated.
25. The apparatus of claim 22, wherein the apparatus further comprises:
and the version identification updating module is used for updating the local version identification of the target group into the network version identification of the target group under the condition that the data updating corresponding to the accounts in the plurality of account sets is completed.
26. The apparatus of claim 19, further comprising a data storage module for:
carrying out hash calculation on a plurality of accounts in the target group respectively to obtain a hash value corresponding to each account;
grouping the plurality of accounts based on hash values corresponding to the plurality of accounts;
And storing the data corresponding to the account numbers in the same group in the same data table.
27. The apparatus of claim 26, wherein the data storage module is further configured to:
and dividing the account numbers with the same characteristic value at the target position in the hash value into the same group.
28. The apparatus of claim 23, further comprising a stop update module configured to:
and receiving a stop update notification returned by the server, wherein the stop update notification represents data corresponding to the account number in the current account number set to stop updating, and the stop update notification is returned by the server when the local version identification of the target group is inconsistent with the network version identification of the target group and the local version identification of the current account number set is consistent with the network version identification of the current account number set in the server.
29. The apparatus of claim 26, further comprising a data reading module configured to:
responding to data access operation of any account based on a target personal account, and verifying the data access authority of the target personal account;
And under the condition that the target personal account number has the data access authority, reading the data corresponding to the accessed account number from the data table, and displaying the read data.
30. A group management device, the device comprising:
the group creation module is used for creating a target group based on a first personal account currently logged in, wherein the target group comprises a group account set and a personal account set, the group account set comprises a first group account to which the first personal account belongs and a second group account different from the first group account, and the personal account set comprises a personal account belonging to the first group account and a personal account belonging to the second group account;
an account association module, configured to associate, in the target group, a personal account belonging to the first group account with the second group account, or associate a personal account belonging to the first group account with a personal account belonging to the second group account;
any two associated accounts allow instant messaging under the condition that a friend relation is not established;
the apparatus further comprises:
the data updating module is used for acquiring data corresponding to the accounts in one account set from the server each time, updating the data corresponding to the same account stored locally based on the acquired data, and continuously updating the data corresponding to the accounts in the next account set after the updating is completed until the updating of the data corresponding to the accounts in the plurality of account sets is completed.
31. The apparatus of claim 30, wherein the group creation module is further configured to:
responding to a group creation operation, acquiring an input group name through a creation interface, and creating the target group named by the group name;
inviting the personal account through an inviting interface, and adding the personal account which accepts the invitation and the group account which the personal account which accepts the invitation belongs to the target group; and/or inviting a group account through the invitation interface, and adding the group account accepting the invitation and the personal account belonging to the group account accepting the invitation to the target group.
32. The apparatus of claim 30, further comprising a first communication module configured to:
displaying at least one personal account associated with the first personal account in an associated account display interface;
responsive to a selection operation of a plurality of personal accounts of the at least one personal account, creating a first group including the first personal account and the plurality of personal accounts;
displaying the instant messaging interface of the first group, and inputting a communication message in the instant messaging interface.
33. The apparatus of claim 30, further comprising a second communication module for:
displaying at least one group account associated with the first personal account in an associated account display interface;
in response to a selection operation of any group account, displaying at least one personal account belonging to the selected group account;
and responding to the selection operation of any currently displayed personal account, displaying an instant communication interface of the personal account, and carrying out instant communication with the personal account in the instant communication interface.
34. The apparatus of claim 30, further comprising a third communication module for:
responding to the batch communication operation, and displaying a batch communication interface;
selecting at least two personal accounts from the personal accounts in each target group to which the first personal account belongs through the batch communication interface;
inputting a communication message through the batch communication interface;
and respectively sending the communication message to the selected at least two personal accounts.
35. The apparatus of claim 30, further comprising an application sharing module for:
Selecting a target application from at least one application of the first group account in response to an add application operation to the target group;
the target application is added to the target group, wherein the account number in the target group has rights to use the application in the target group.
36. The apparatus of claim 30, further comprising a group management module configured to:
managing the target group;
wherein the target group comprises at least one group, each group comprising at least one group account and a personal account belonging to the at least one group account, the managing comprising at least one of:
deleting any packet in the target group;
adding a new packet in the target group;
at least one personal account number or at least one group account number in a first group of the target group is moved to a second group of the target group.
37. A computer device comprising a processor and a memory, wherein the memory has stored therein at least one computer program that is loaded and executed by the processor to perform the operations performed by the data synchronization method of any one of claims 1 to 11 or to perform the operations performed by the group management method of any one of claims 12 to 18.
38. A computer readable storage medium having stored therein at least one computer program loaded and executed by a processor to implement operations performed by a data synchronization method as claimed in any one of claims 1 to 11 or to implement operations performed by a group management method as claimed in any one of claims 12 to 18.
CN202210645679.4A 2022-06-08 2022-06-08 Data synchronization method, group management method, device, equipment and storage medium Active CN115118735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210645679.4A CN115118735B (en) 2022-06-08 2022-06-08 Data synchronization method, group management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210645679.4A CN115118735B (en) 2022-06-08 2022-06-08 Data synchronization method, group management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115118735A CN115118735A (en) 2022-09-27
CN115118735B true CN115118735B (en) 2023-12-01

Family

ID=83326616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210645679.4A Active CN115118735B (en) 2022-06-08 2022-06-08 Data synchronization method, group management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115118735B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283926A (en) * 2013-07-10 2015-01-14 腾讯科技(深圳)有限公司 Data synchronization method, device and server
CN106453586A (en) * 2016-10-31 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Message synchronizing method, device and system
CN107317690A (en) * 2017-07-28 2017-11-03 努比亚技术有限公司 Group's processing method, mobile terminal and computer-readable storage medium
WO2018103588A1 (en) * 2016-12-05 2018-06-14 易果集团有限公司 Method and apparatus for user identity hiding and information forwarding between instant messaging accounts
WO2019033994A1 (en) * 2017-08-16 2019-02-21 阿里巴巴集团控股有限公司 Method and device for account creation, account refilling and data synchronization
CN110417845A (en) * 2018-11-30 2019-11-05 腾讯科技(深圳)有限公司 A kind of method of data synchronization, device and storage medium
WO2020187058A1 (en) * 2019-03-19 2020-09-24 阿里巴巴集团控股有限公司 Public account management method, communication group interaction method, and corresponding device and system
CN112769677A (en) * 2020-12-30 2021-05-07 北京达佳互联信息技术有限公司 Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN112787908A (en) * 2021-01-05 2021-05-11 北京三快在线科技有限公司 Session message transmission method and device, electronic equipment and storage medium
CN113746783A (en) * 2020-05-28 2021-12-03 腾讯科技(深圳)有限公司 Group chat permission control method, team instant messaging application and background server
WO2022095712A1 (en) * 2020-11-05 2022-05-12 华为技术有限公司 Data sharing method, apparatus and system, and electronic device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283926A (en) * 2013-07-10 2015-01-14 腾讯科技(深圳)有限公司 Data synchronization method, device and server
CN106453586A (en) * 2016-10-31 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Message synchronizing method, device and system
WO2018103588A1 (en) * 2016-12-05 2018-06-14 易果集团有限公司 Method and apparatus for user identity hiding and information forwarding between instant messaging accounts
CN107317690A (en) * 2017-07-28 2017-11-03 努比亚技术有限公司 Group's processing method, mobile terminal and computer-readable storage medium
WO2019033994A1 (en) * 2017-08-16 2019-02-21 阿里巴巴集团控股有限公司 Method and device for account creation, account refilling and data synchronization
CN110417845A (en) * 2018-11-30 2019-11-05 腾讯科技(深圳)有限公司 A kind of method of data synchronization, device and storage medium
WO2020187058A1 (en) * 2019-03-19 2020-09-24 阿里巴巴集团控股有限公司 Public account management method, communication group interaction method, and corresponding device and system
CN113746783A (en) * 2020-05-28 2021-12-03 腾讯科技(深圳)有限公司 Group chat permission control method, team instant messaging application and background server
WO2022095712A1 (en) * 2020-11-05 2022-05-12 华为技术有限公司 Data sharing method, apparatus and system, and electronic device
CN112769677A (en) * 2020-12-30 2021-05-07 北京达佳互联信息技术有限公司 Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN112787908A (en) * 2021-01-05 2021-05-11 北京三快在线科技有限公司 Session message transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115118735A (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN110138645B (en) Session message display method, device, equipment and storage medium
CN111078655B (en) Document content sharing method, device, terminal and storage medium
CN110602206B (en) Data sharing method and device based on block chain and storage medium
CN111953811B (en) Site access method, site registration method, device, equipment and storage medium
US10327015B2 (en) Picture combining method, terminal, and picture combining system
CN109905318A (en) Apparatus control method, device and storage medium
CN105207896A (en) Internet calling method and device
US20190199795A1 (en) Method and device for synchronizing backup data, storage medium, electronic device, and server
EP3567887B1 (en) Communication method and device
CN111045568B (en) Virtual article processing method, device, equipment and storage medium based on block chain
CN102984213A (en) Information sharing method, device and system
CN110210007A (en) A kind of processing method of document, terminal and computer equipment
CN113162956A (en) Method, device and network equipment for establishing communication connection
CN114237840A (en) Resource interaction method, device, terminal and storage medium
CN110011904A (en) A kind of distributed transmission method, device and the terminal of adding personalized information
CN115118735B (en) Data synchronization method, group management method, device, equipment and storage medium
CN110532324B (en) Block chain-based bulletin information display method, device, equipment and storage medium
CN111600862B (en) User account management method and device
CN115499197A (en) Public platform operation processing method, device, equipment, storage medium and product
CN116962250A (en) Network quality detection method, device, computer equipment and storage medium
CN114827060A (en) Interaction method and device and electronic equipment
CN114157630B (en) Social relation chain migration method, device, equipment and storage medium
CN113986086B (en) Group session recommendation method, device, terminal and computer readable storage medium
CN114265888B (en) Multi-cluster container management method and device, electronic equipment and storage medium
WO2023216988A1 (en) Call method and communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant