CN115118735A - 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
CN115118735A
CN115118735A CN202210645679.4A CN202210645679A CN115118735A CN 115118735 A CN115118735 A CN 115118735A CN 202210645679 A CN202210645679 A CN 202210645679A CN 115118735 A CN115118735 A CN 115118735A
Authority
CN
China
Prior art keywords
account
group
personal
accounts
target
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.)
Granted
Application number
CN202210645679.4A
Other languages
Chinese (zh)
Other versions
CN115118735B (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

Images

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 account numbers in a target group into a plurality of account number sets, wherein each account number set comprises part of account numbers in the plurality of account numbers, and the account numbers in different account number sets are different, wherein the target group comprises at least two group account numbers and personal account numbers belonging to the at least two group account numbers; the method comprises the steps of obtaining data corresponding to accounts in one account set from a server each time, updating data corresponding to locally stored same accounts based on the obtained data, and continuing to update data corresponding to accounts in the next account set after updating is completed until updating of the data corresponding to the accounts in the account sets is completed. According to the method, the number of interaction times between the terminal and the server is reduced and the data synchronization speed is improved through batch data synchronization.

Description

Data synchronization method, group management method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data synchronization method, a group management method, an apparatus, a device, and a storage medium.
Background
With the development of computer technology, more and more objects are in business communication through the instant messaging application, and more account data are generated through the instant messaging application. In the related art, groups are established through instant messaging applications, each group includes a plurality of accounts, and for a terminal logging in any account, data of the group needs to be synchronized to the local.
Disclosure of Invention
The embodiment of the application provides a data synchronization method, a group management method, a device, equipment and a storage medium, and improves the data synchronization speed. The technical scheme is as follows:
in one aspect, a data synchronization method is provided, and the method includes:
dividing a plurality of account numbers in a target group into a plurality of account number sets, wherein each account number set comprises part of account numbers in the plurality of account numbers, and the account numbers in different account number sets are different, wherein the target group comprises at least two group account numbers and personal account numbers belonging to the at least two group account numbers;
the method comprises the steps of obtaining data corresponding to accounts in one account set from a server each time, updating data corresponding to locally stored same accounts based on the obtained data, and continuing to update data corresponding to accounts in the next account set after updating is completed until updating of the data corresponding to the accounts in the account sets is completed.
In one possible implementation, the method further includes:
and receiving a stop updating notification returned by the server, wherein the stop updating notification indicates that updating of data corresponding to the accounts in the current account set is stopped, 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 manner, after the data corresponding to the accounts 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 has data access authority, reading data corresponding to the accessed account 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 currently logged-in first personal account, 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 the personal account belonging to the first group account with the second group account, or associating the personal account belonging to the first group account with the personal account belonging to the second group account;
any two related accounts allow instant messaging under the condition that a friend relationship is not established.
In another aspect, there is provided a data synchronization apparatus, the apparatus including:
the system comprises a set dividing module, a target group setting module and a group setting module, wherein the set dividing module is used for dividing a plurality of account numbers in the target group into a plurality of account number sets, each account number set comprises part of the account numbers, and the account numbers in different account number sets are different, wherein the target group comprises at least two group account numbers and personal account numbers belonging to the at least two group account numbers;
and the data updating module is used for acquiring data corresponding to the account in one account set from the server each time, updating the data corresponding to the same locally stored account based on the acquired data, and continuously updating the data corresponding to the account in the next account set after the updating is finished until the updating of the data corresponding to the accounts in the account sets is finished.
In one possible implementation, the data update module includes:
a request sending unit, configured to send, to any account set in the multiple account sets, a data update request corresponding to the account set to the server, where the server is configured to return, in response to the data update request, data corresponding to an account in the account set;
and the data receiving unit is used for receiving data corresponding to the accounts in the account set returned by the server.
In another possible implementation manner, the data update request carries a currently logged-in target personal account, 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, under the condition that the local version identifier of the target group is inconsistent with the network version identifier of the target group in the server, acquire data corresponding to an account in one account set from the server each time, and update data corresponding to the same account stored locally based on the acquired data.
In another possible implementation manner, the data updating module is configured to, when 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, acquire, from the server, data corresponding to the accounts in the current account set, and update, based on the acquired data, data corresponding to the same locally stored account.
In another possible implementation manner, the data updating module is configured to acquire, from the server, data corresponding to an account in the current account set and a network version identifier of the current account set;
the device further comprises:
and the version identifier updating module is used for updating the local version identifier of the current account set into the network version identifier of the current account set under the condition that the data corresponding to the accounts in the current account set is updated.
In another possible implementation manner, the apparatus further includes:
and the update stopping module is used for receiving an update stopping notification returned by the server, wherein the update stopping notification indicates that updating of data corresponding to the accounts in the current account set is stopped, and the update stopping notification is returned by the server under the condition that 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.
In another possible implementation manner, the apparatus further includes:
and the version identifier updating module is used for updating the local version identifier of the target group into the network version identifier of the target group under the condition that the data corresponding to the accounts in the plurality of account sets is updated.
In another possible implementation manner, the apparatus further includes: a data storage module to:
performing hash calculation on a plurality of account numbers in the target group respectively to obtain a hash value corresponding to each account number;
grouping the plurality of account numbers based on the hash values corresponding to the plurality of account numbers;
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 account numbers with the same feature value at the target position in the hash value into the same group.
In another possible implementation manner, the apparatus further includes: a data reading module 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 data access authority, reading data corresponding to the accessed account number from the data table, and displaying the read data.
In another aspect, a group management apparatus is provided, the apparatus comprising:
the group creation module is used for creating a target group based on a currently logged first personal account, 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 number association module, configured to associate a personal account number belonging to the first group account number with the second group account number in the target group, or associate 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 related accounts allow instant messaging under the condition that a friend relationship is not established.
In one possible implementation, the group creation module is configured to:
responding to the operation of creating the group, acquiring an input group name through a creating interface, and creating the target group named by the group name;
inviting the personal account through an invitation interface, and adding the personal account accepting the invitation and the group account to which the personal account accepting the invitation 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 manner, the apparatus further includes: a first communication module to:
displaying at least one personal account number associated with the first personal account number in an associated account number 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 the first personal account and the plurality of personal accounts;
and displaying the instant messaging interface of the first group, and inputting a communication message in the instant messaging interface.
In another possible implementation manner, the apparatus further includes: a second communication module to:
displaying at least one group account related to the first personal account in a related account display interface;
in response to a selection operation for any group account, displaying at least one individual account belonging to the selected group account;
and responding to the selection operation of any one currently displayed personal account, displaying an instant messaging interface of the personal account, and performing instant messaging with the personal account in the instant messaging interface.
In another possible implementation manner, the apparatus further includes: a third communication module to:
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 communication messages through the batch communication interface;
and respectively sending the communication messages to the selected at least two personal accounts.
In another possible implementation manner, the apparatus further includes: an application sharing module to:
in response to an add application operation on the target group, selecting a target application from at least one application of the first group account;
adding the target application to the target group, wherein the accounts in the target group have the right to use the applications in the target group.
In another possible implementation manner, the apparatus further includes: a group management module to:
managing the target group;
wherein the target group comprises at least one group, each group comprises at least one group account and a personal account belonging to the at least one group account, and the management comprises at least one of:
deleting any packet in the target group;
adding a new packet in the target group;
and moving at least one personal account or at least one group account in the first group in the target group to a second group in the target group.
In another aspect, a computer device is provided, which includes a processor and a memory, where at least one computer program is stored, and the at least one computer program is loaded by the processor and executed to implement the operations performed by the data synchronization method or the group management method according to the above aspect.
In another aspect, a computer-readable storage medium is provided, in which at least one computer program is stored, the at least one computer program being loaded and executed by a processor to implement the operations performed by the data synchronization method or the group management method according to the above aspect.
In another aspect, a computer program product is provided, which includes a computer program, and when being executed by a processor, the computer program implements the operations performed by the data synchronization method or the group management method according to the above aspects.
According to the data synchronization method, the account numbers in the target group are divided into a plurality of account number sets, data corresponding to the account numbers in one account number set are obtained from the server, after the data corresponding to the account numbers in the account number sets are updated, data corresponding to the account numbers in the next account number set are continuously obtained until the data corresponding to all the account numbers are updated, in the data synchronization process, data are obtained from the server once, the terminal and the server interact once, the data corresponding to the account numbers are obtained in batches according to the account number sets, the individual interaction of each account number is not needed, the interaction times of the terminal and the server are reduced, 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 group account, the individual accounts belonging to the first group account and a second group account can be added into the target group, so that the individual accounts belonging to different group accounts are in one target group, and the accounts are correlated, so that the function of allowing instant communication under the condition that no friend relationship is established between any two correlated accounts is realized, and a novel instant communication mode is provided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of a group management method according to an embodiment of the present application;
fig. 3 is a flowchart of another group management method provided in the 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 diagram of an invitation interface provided by an embodiment of the application;
fig. 6 is a schematic diagram of establishing an association relationship according to an embodiment of the present application;
FIG. 7 is a schematic view of a toolbar 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 diagram illustrating a process for sharing an application according to 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 disclosure;
fig. 12 is a flowchart of a data synchronization method provided in an embodiment of the present application;
FIG. 13 is a flow chart of another data synchronization method provided in an embodiment of the present application;
FIG. 14 is a diagram illustrating a data synchronization process provided by an embodiment of the present application;
fig. 15 is a schematic structural diagram of a data synchronization apparatus 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
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.
It will be understood that the terms "first," "second," and the like, as used herein, may be used herein to describe various concepts that are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, a first arrangement order may be referred to as a second arrangement order, and a second arrangement order may be referred to as a first arrangement order, without departing from the scope of the present application.
As used herein, the terms "at least one," "a plurality," "each," "any," and the like, at least one includes one, two, or more than two, and a plurality includes two or more than two, each referring to each of the corresponding plurality, and any referring to any one of the plurality. For example, the plurality of account numbers include 3 account numbers, each account number refers to each of the 3 account numbers, and any one of the 3 account numbers refers to any one of the 3 account numbers, which may be the first one, the second one, or the third one.
It is understood that the information (including but not limited to personal account information, group account information, etc.) and data (including but not limited to data corresponding to an account, stored data, displayed data, etc.) referred to in the present application are authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the relevant data need to comply with relevant laws and regulations and standards of relevant countries and regions. For example, the personal account number, the group account number, and the data corresponding to the account referred to in the present application are all acquired with 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 taken as an example in fig. 1) and a server 102. The terminal 101 and the server 102 are connected via a wireless or wired network.
The terminal 101 has installed thereon 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 terminal. Optionally, the first application is an application in an operating system of the terminal 101 or an application provided by a third party. For example, the first application is an instant messaging application. Optionally, the server 102 is an independent physical server, or a server cluster or distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, web service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), big data and artificial intelligence platform.
In this embodiment of the application, the terminal 101 divides a plurality of accounts in the target group into a plurality of account sets, then, for each account set, sequentially obtains data corresponding to the accounts in the account set from the server 102, updates data corresponding to locally stored identical accounts based on the obtained data, continues to obtain data corresponding to the account in the next account set from the server 102 after updating the data corresponding to the accounts in one account set, and updates the data corresponding to the locally stored identical accounts until the data corresponding to the accounts in all the account sets is updated, and completes updating the data corresponding to the accounts in a batch updating manner.
The embodiment of the application provides a data synchronization method and a group management method aiming at a target group. For the target group, first, a target group needs to be created, then the created target group needs to be managed, and data related to the target group is synchronized from a server to terminals logged in by each account included in the target group.
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 comprises the steps of:
201. the terminal creates a target group based on a currently logged-in first personal account, 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 group account, the group account has at least one corresponding personal account, and 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 performs group creation operation based on the first personal account, and creates a target group, wherein the first personal account is any one of the personal accounts belonging to the first group account. In the process of creating the target group, the terminal first creates a target group including the first personal account and a 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, a second group account or personal accounts belonging to the second group account to join the target group. Wherein the second group account is different from the first group account.
202. The terminal associates a personal account belonging to a first group account with a second group account in a target group, or associates the personal account belonging to the first group account with a personal account belonging to the second group account, wherein any two associated accounts allow instant communication without establishing a friend relationship.
In the embodiment of the application, when no friend relationship is established between any two accounts and the 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 the 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 the association between the personal account belonging to the first group account and the personal account belonging to the 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 a personal account belonging to a first group account with a personal account belonging to a 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 relationship, but do not establish an association relationship 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 group account, the individual accounts belonging to the first group account and a second group account can be added into the target group, so that the individual accounts belonging to different group accounts are in one target group, and the accounts are correlated, so that the function of allowing instant communication under the condition that no friend relationship is established between any two correlated accounts is realized, and a novel instant communication 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 comprises the steps of:
301. the terminal creates a target group based on the currently logged-in first personal account.
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. The number of the second group accounts in the target group may be one or more, and the number of the second group accounts is not limited in the embodiment of the present application.
In the embodiment of the application, the terminal logs in based on the first personal account, then performs group creation operation based on the first personal account, and creates a target group, wherein the first personal account is any one of the personal accounts belonging to the first group account. In the process of creating the target group, the terminal first creates a target group including the first personal account and a 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, a second group account or personal accounts belonging to the second group account to join the target group.
In one possible implementation manner, the terminal responds to a group creating operation based on the first personal account, acquires an input group name through a creating 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 in response to a trigger operation on the creation control 4011, a target group named by the group name is created.
The target group just created by the terminal includes the first personal account and the first group account to which the first personal account belongs, but does not include other personal accounts or group accounts, and at this time, other personal accounts or group accounts can be invited through the invitation interface. The terminal invites the personal account through the invitation interface, and adds the personal account accepting the invitation and the group account to which the personal account accepting the invitation belongs to the target group; and/or the terminal invites the group account through an 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 inviting other accounts through the invitation interface, the individual 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 the invitation personal account and the invitation group account, the difference is that when a certain personal account is invited, after the personal account accepts the invitation, not only the person 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 the personal accounts belonging to the group account are added to the target group. The invitation mode can directly invite a certain personal account under the condition that the personal account needs to be invited, and can directly invite a group account under the condition that the personal accounts belonging to a certain group account need to be invited, and each personal account belonging to the group account does not need to be invited one by one, so that the invitation mode is more convenient and more flexible.
Alternatively, the terminal can invite the individual account or the group account in the following 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 the group account accepts the invitation under the condition that the invited personal account or the group account triggers the invitation link, so that the personal account or the group account and the personal accounts belonging to the group account are added to a 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 with 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 notifications to the other personal accounts or the group accounts.
For example, referring to fig. 5, after the target group is created, an invitation interface 501 is displayed, in which invitation interface 501 different invitation modes are displayed: linking invitation, invitation code invitation and pulling account numbers, selecting any invitation mode to invite other personal account numbers or group account numbers to join the target group.
It should be noted that, in the embodiment of the present application, the description is only given by taking an example that after a target group is created, other personal accounts or group accounts are invited directly through an invitation interface, 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 invitation timing is not limited in the embodiment of the present application.
In one possible implementation manner, after the terminal creates the target group, a first personal account for creating the target group is set as an administrator account, and the first personal account has a function of managing the target group. Of course, other personal accounts in the target group can also be set as administrator accounts based on the first personal account, and the other personal accounts may be personal accounts belonging to the first group account or personal accounts belonging to the second group account. Alternatively, in a case where a personal account belonging to the second group account is set as the administrator account, the personal account belonging to the second group account has a function of managing the personal accounts belonging to the second group account in the target group, but does not have a function of managing the personal accounts belonging to the first group account or other second group accounts in the target group.
In one possible implementation, the group account further includes a sub-group account to which a personal account belonging to the sub-group account belongs. Correspondingly, when the personal account is invited to join the target group, the personal account, the sub-group account to which the personal account belongs and the group account are added to the target group under the condition that the personal account accepts the invitation. For example, if the group account is an account of an enterprise, the sub-group account is an account of a department in the enterprise, and the personal account is an account of an employee in the enterprise.
In addition, in one possible implementation manner, the number of accounts that can join in the target group has an upper threshold, and in the case that the number of accounts that have already joined in the target group does not reach the upper threshold, the account can be invited to join in the target group. For example, the upper threshold may be 2000, 2500, 3000, or other values.
It should be noted that, in the embodiment of the present application, only the first personal account is used to create the target group as an example for description, in another embodiment, another group may be created based on the first personal account, or the first personal account may join in a group created based on another personal account, which is not limited in the embodiment of the present application.
302. And the terminal associates the personal account belonging to the first group account with the second group account or associates the personal account belonging to the first group account with the personal account belonging to the second group account 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 not associated, when a terminal logs in based on a personal account having a management function, the plurality of group accounts and the plurality of personal accounts in the target group are displayed, and when the terminal logs in based on any one personal account not having the management function, other personal accounts belonging to the same group account as the personal account and the group account to which the personal account belongs are displayed, but the personal accounts belonging to other group accounts are not displayed.
Therefore, in order to enable instant messaging by the personal accounts belonging to different group accounts, the personal account belonging to the first group account is associated with the personal account belonging to the second group account, or the personal account belonging to the first group account is associated with the second group account. Any two related accounts allow instant messaging under the condition that a friend relationship is not established. In the embodiment of the application, the account numbers are associated, that is, the association relationship 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 the group account joined in the target group. For other accounts, it is necessary to associate the other accounts with each other based on an account having a management function. In one possible implementation manner, 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. For any personal account belonging to the first group account, the personal account can be associated with at least one second group account or a personal account belonging to at least one second group account, and similarly, any second group account or a personal account belonging to a second group account can be associated with at least one personal account belonging to the first group account.
In one possible implementation manner, the terminal enters the account number association interface from the association relationship display interface. The terminal displays an incidence relation display interface, the incidence relation display interface displays at least one established incidence relation, an account number incidence interface is displayed in response to the triggering operation of any incidence relation, and the established incidence relation can be edited on the account number incidence interface; the incidence relation display interface also displays an incidence relation establishing control, responds to the triggering operation of the incidence relation establishing control, displays an account number incidence relation interface, and can establish incidence relation between account numbers in the account number incidence relation interface.
For example, referring to an association relationship display interface 601 and an account association interface 602 shown in fig. 6, an established association relationship 1 and an association relationship 2 are displayed in the association relationship display interface 601, and an association relationship control "establish an association relationship" is established, and in response to a click operation on the association relationship establishment control, an account association interface 602 is displayed, where 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 to configure at least one personal account to be associated and belonging to a first group account, the first configuration area is used to configure 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, and the personal account 1 and the personal account 2 are configured in the second configuration area, the personal account 1 and the personal account 2 are personal accounts belonging to the first group account, and establish an association relationship in response to a trigger operation for determining "save" of the association control.
In this embodiment of the application, for a first personal account, after determining other personal accounts or group accounts associated with the first personal account, instant messaging can be performed based on the associated accounts, see step 303.
303. The terminal carries out instant messaging based on the first personal account and at least one personal account related to the first personal account.
In the embodiment of the present application, the instant messaging between the first personal account and the associated other personal accounts is taken as an example for explanation, and for the other personal accounts in the target group, after the association relationship is established, the instant messaging mode is the same as that of the first personal account.
In one possible implementation manner, the terminal displays at least one personal account associated with a first personal account in an associated account display interface, and creates a first group in response to a selection operation of multiple personal accounts in the at least one personal account, wherein the first group includes the first personal account and the multiple 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 in the first group, thereby realizing instant messaging based on the first group. The associated account display interface is used for displaying a personal account associated with a first person.
Optionally, the terminal displays at least one group account associated with the first personal account in an associated account display interface, displays at least one personal account belonging to the selected group account in response to a selection operation on any group account, selects a personal account from the displayed at least one personal account, returns to the interface on which the at least one group account is displayed, continues to select a personal account from the personal accounts belonging to another group account in response to a selection operation on another group account until a plurality of personal accounts are selected, and then 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 a message in other format, and the content and the form of the communication message are not limited in the embodiment of the present application.
In one possible implementation manner, a toolbar is displayed on the instant messaging interface of the first group, and forms, documents, web page links and the like sent by the accounts in the first group are displayed in the toolbar. Optionally, due to the fact that the display area of the toolbar in the instant messaging interface is limited, the displayed content may not be complete, and the terminal displays the toolbar interface in response to the triggering operation of the toolbar, 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 positioned above the message sending area, a toolbar interface 702 is displayed in response to a trigger operation on the toolbar 7011, and a form 1, a form 2, a document 1, and a document 2 in the toolbar are displayed on the toolbar interface 702.
It should be noted that, in the embodiment of the present application, the first group is merely created as an example, and in another embodiment, a second group may also be created in a manner similar to the first group, and the personal accounts in the second group perform instant communication in an instant communication 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 related to the first personal account in a related account display interface; in response to a selection operation for any group account, displaying at least one individual account belonging to the selected group account; and responding to the selection operation of any one currently displayed personal account, displaying an instant messaging interface of the personal account, and carrying out instant messaging with the personal account in the instant messaging 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 the first personal account and the personal account can independently perform instant messaging through the instant messaging interface.
In the embodiment of the application, in the target group, when the associated account number is in communication, a new group can be further created according to needs, instant communication among a plurality of account numbers is performed through the created group, or the instant communication is performed with the associated account number alone, so that the flexibility of communication is improved.
304. The terminal sends communication messages 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 a first personal account, the first personal account may create or join a plurality of target groups, and in a case where the same communication message needs to be sent to different accounts in different target groups, the communication message may be sent in a batch sending manner.
In one possible implementation, the terminal displays a batch communication interface in response to a batch communication operation. Wherein the bulk 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 the batch communication interface. And inputting communication messages through a batch communication interface, and respectively sending the communication messages to the selected at least two personal accounts. The at least two personal accounts may be accounts belonging to the same target group or account belonging to different target groups, which is not limited in this embodiment of the application.
Optionally, the terminal displays a group management interface, the group management interface includes at least one target group created or joined based on the first personal account and a batch communication control, and the batch communication interface is displayed in response to a triggering operation on the batch communication control.
Optionally, the bulk communication interface includes an establish bulk 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 communication messages on the message sending interface, and selects at least two personal accounts; or the terminal responds to the triggering operation of the communication record viewing control and displays a communication record interface, and 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 sending determining control, where the terminal displays a plurality of selectable personal accounts in the account input area, where the plurality of personal accounts belong to a plurality of target groups that the first personal account joins or is created, and then determines at least two personal accounts to receive a message in response to a selection operation on at least two of the plurality of personal accounts. The terminal inputs a communication message to be transmitted in the message input area. Optionally, an attachment such as a picture or a file may be added to the message input area. And then the terminal responds to the triggering operation of the determined sending control and sends a communication message to the selected at least two personal accounts.
Optionally, the terminal sends the at least two personal accounts and a communication message to the server, and the server sends the communication message to the terminal logged in with the at least two personal accounts respectively.
For example, referring to fig. 8, a group 1 created by a first personal account and a group 2 joined together, and a batch communication control "message bulk", are displayed in a group management interface 801, a batch communication interface 802 is displayed in response to a trigger operation on "message bulk", the batch communication interface 802 includes a batch communication control "new message bulk" and a communication record viewing control "all bulk records", and in response to a trigger operation on "new message bulk", a message sending interface 803 is displayed, an account to receive a message is input in an account input area in the message sending interface, and a communication message to be sent is input in a message input area.
In the embodiment of the application, the communication messages can be sent to the accounts belonging to different target groups simultaneously in a batch communication mode, the communication messages do not need to be sent to the accounts in each target group independently, and the communication efficiency is improved.
305. And adding the target application in the target group by the terminal based on the first personal account.
In the embodiment of the present application, a target application is added to a target group based on a first personal account, and in another embodiment, the target application may be added to the target group based on other personal accounts in the target group.
In one possible implementation manner, the terminal responds to an application adding operation of the target group, and selects a target application from at least one application of the first group account; and adding the target application to a target group so that other accounts in the target group can use the target application. 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 usage right for a personal account belonging to a second group account in the target group based on the first personal account, and in this case, the personal account belonging to the first group account and the personal account belonging to the second group account and having the usage right in the target group can only use the target application.
In a possible implementation manner, the terminal displays a group interface of a target group, where the group interface includes an application sharing control, displays an application sharing interface in response to a trigger operation on the application sharing control, displays at least one application of the first group account in response to a trigger operation on an application addition 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, and "share application: 2 "; in response to the triggering operation on the application sharing control, an application sharing interface 902 is displayed, an application adding control "add application" and added applications 1 and 2 are displayed in the application sharing interface 902, and in response to the triggering operation on the "add application", an application to be added is selected.
306. The terminal manages the target group based on the first personal account.
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:
the first method comprises the following steps: and (4) grouping management.
After the terminal creates the target group, the terminal can group the group account and the personal account 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. Alternatively, the terminal deletes any packet in response to a deletion operation for the packet. For example, the terminal displays a deletion control in response to a long-press operation on any one of the groups, 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-grouping control in response to a long-press operation on any one of the groups, displays an add-grouping window in response to a trigger operation on the add-grouping control, the add-grouping window including a grouping name input area, a confirmation add control, and a cancel add control, inputs a grouping name in the group name input area in the add-grouping window, adds a group named with the grouping name in response to the trigger operation on the confirmation add control, or cancels the addition of a new group in response to the trigger operation on the cancel add control.
And the second method comprises the following steps: and account movement management.
In one possible implementation manner, the terminal moves at least one personal account or at least one group account in the first group in the target group to the second group in the target group. Wherein the first packet and the second packet are different packets.
Optionally, the terminal displays an account moving control in response to a long press operation on a first group, displays group accounts and personal accounts in the first group in response to a triggering operation on the account moving control, selects a second group to which the group accounts are to be moved in response to a moving operation on at least one group account, 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 number, selects a second group to be moved to, and moves the at least one personal account number to the second group.
And the third is that: and managing group names.
In one possible implementation, the group name of the target group is edited in response to an editing operation on the group name of the target group.
Of course, other management can be performed on the target group, for example, editing a group name, moving a position of the group in the group interface, and the like, which is not limited in this embodiment of the application.
It should be noted that, in the embodiment of the present application, only the first personal account is taken as an example for description, and in another embodiment, a 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 movement control "batch mobile account", and a group name modification 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 'adding grouping' control, and displaying an adding grouping window; and displaying a window for modifying the group name in response to the triggering operation of the control of modifying the group name. Fig. 10 is only an example of displaying the controls of the management group together, and in another embodiment, the controls may be displayed in different display manners.
And the third is that: account addition management and deletion management.
In one possible implementation, the terminal can add a new personal account or group account in the target group, similar to step 301 above.
In one possible implementation manner, the terminal can delete the personal account or the group account in the target group, wherein in the case of deleting the group account, the personal account belonging to the group account is also deleted.
For example, referring to fig. 11, after a target group is created based on a first personal account, for example, a personal account belonging to a first group account is added, referring to an account management interface 1101 shown in fig. 11, in response to a triggering operation on an editing control in the account management interface 1101, an account management interface 1102 is displayed, and "account 2" can be deleted by clicking a deletion control "delete" corresponding to "account 2" in the account management interface 1102. A personal account belonging to the first group account may be added to both the account management interface 1101 and the account management interface 1102.
It should be noted that, in the embodiment of the present application, the execution order of steps 302 to 303, 304, 305, and 306 is not limited.
It should be noted that, after the target group is managed based on the first personal account in steps 301 to 306, the generated data needs to be synchronized to the server, so that the server synchronizes the data generated based on the first personal account to the terminal 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 group account, the individual accounts belonging to the first group account and a second group account can be added into the target group, so that the individual accounts belonging to different group accounts are in one target group, and the accounts are correlated, so that the function of allowing instant communication under the condition that no friend relationship is established between any two correlated accounts is realized, and a novel instant communication mode is provided.
The above embodiments describe the creation process and the group management process of the target group, and the 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 main execution body of the method is a terminal, and referring to fig. 12, the method comprises the following steps:
1201. the terminal divides a plurality of account numbers in a target group into a plurality of account number sets, each account number set comprises a part of account numbers in the account numbers, the account numbers in different account number sets are different, and the target group comprises at least two group account numbers and personal account numbers belonging to the at least two group account numbers.
The creating process and the managing 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 again.
When the terminal logs in based on any account in the target group, data corresponding to the account in the target group needs to be synchronized to the terminal. Considering that the number of the account numbers in the target group is large, in order to improve the synchronization speed, the account numbers in the target group are divided into a plurality of account number sets, each account number set comprises a part of the account numbers, the account numbers in different account number sets are different, and then the data corresponding to the account numbers are updated according to the account number sets.
1202. The terminal acquires data corresponding to the account in one account set from the server each time, updates the data corresponding to the same locally stored account based on the acquired data, and continuously updates the data corresponding to the account in the next account set after the updating is completed until the updating of the data corresponding to the accounts in the account sets is completed.
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, the data corresponding to the accounts in the next account set is updated until the data corresponding to the accounts in the account sets are updated.
According to the data synchronization method, the account numbers in the target group are divided into a plurality of account number sets, data corresponding to the account numbers in one account number set are obtained from the server, after the data corresponding to the account numbers in the account number sets are updated, data corresponding to the account numbers in the next account number set are continuously obtained until the data corresponding to all the account numbers are updated, in the data synchronization process, data are obtained from the server once, the terminal and the server interact once, the data corresponding to the account numbers are obtained in batches according to the account number sets, the individual interaction of each account number is not needed, the interaction times of the terminal and the server are reduced, 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 interactive subject of the method is a terminal and a server, referring to fig. 13, the method comprises the following steps:
1301. the terminal divides a plurality of account numbers in the target group into a plurality of account number sets.
The creating process and the managing 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 again.
When the terminal logs in based on any account number in the target group, data corresponding to the account number in the target group needs to be synchronized to the terminal. Considering that the number of the account numbers in the target group is large, in order to improve the synchronization speed, the account numbers in the target group are divided into a plurality of account number sets, each account number set comprises a part of the account numbers, the account numbers in different account number sets are different, and then the data corresponding to the account numbers are updated according to the account number sets. The embodiment of the present application takes the case that the current terminal logs in based on the target personal account as an example.
In a possible implementation manner, the terminal divides an account set according to a group account to which each individual account belongs, that is, the individual accounts belonging to the same group account and the group account are divided into an account set; or, the terminal classifies according to the sequence of each account added to the target group, for example, 10 accounts are used as a group, and the account set is divided according to the time of adding to the target group; or the terminal randomly classifies the plurality of personal accounts and group accounts; or other manners of dividing the account set may also be adopted, which is not limited in this embodiment of the present application.
Each account set comprises a part of accounts in the plurality of accounts, and the part of accounts can be personal accounts or group accounts, or one part of accounts can be personal accounts and the other part of accounts can be group accounts. In addition, the number of the accounts in each account set may be the same or different, and this is not limited in this 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 identification of the target group.
And the terminal sequentially acquires data corresponding to the account in each account set from the server according to the divided account sets. The current account set is any one of the account sets, and for the current account set, 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 to enable the server to determine whether data needs to be updated, the data update request carries the local version identification of the target group. The local version identification represents the version of data corresponding to the account locally stored in the terminal.
In a 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. And the terminal receives data corresponding to the account in the account set returned by the server, and updates the locally stored data corresponding to the same account based on the received data.
After receiving a data updating request, the server determines whether the local version identification is consistent with the network version identification of the target group, the network version identification represents the latest version of data corresponding to the account in the target group stored by the server, under the condition that the local version identification is inconsistent with the network version identification, the data stored locally by the terminal is not the latest data and needs to be updated, the server returns the data corresponding to the account in the current account set to the terminal, and the terminal receives the data corresponding to the account in the current account set returned by the server and updates the data corresponding to the same account stored locally. And under the condition that the local version identification is consistent with the network version identification, the data stored locally by the terminal is 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 number comprises account number deleting data, account number adding data, account number information updating data and the like. The account deletion data refers to that a certain account in the current account set is deleted, the account addition data refers to that other accounts are added in the current account set, and the account information update data refers to that the account information of the account is updated, for example, the accounts are updated in groups in a target group, the account associated with the account is updated, and the like. Of course, the data corresponding to the account further includes other data, for example, a head portrait corresponding to the account, and the data corresponding to the account is not limited in this embodiment.
In a possible implementation manner, considering that a target personal account does not have the authority of accessing an account which is not associated with the target personal account, even if data corresponding to the account which is not associated with the target personal account is sent to a 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 a 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 a current account set, so that data synchronization is realized, and meanwhile, the amount of transmitted data is reduced, and the data synchronization speed is improved.
In one possible implementation manner, the data update request also carries a local version identifier of 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 and the local version identification of the current account set is inconsistent with the network version identification of the current account set in the server, the server returns data corresponding to the accounts in the current account 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 set is consistent with the network version identification of the current account set in the server, the data corresponding to the accounts in the current account set stored locally by the terminal is the latest data, and the server does not need to return the data corresponding to the accounts in the current account set to the terminal.
In addition, in a possible implementation manner, the server returns data corresponding to an account in the current account set to the terminal, and simultaneously returns a network version identifier of the current account set to the terminal, and the terminal updates the local version identifier of the current account set to the network version identifier of the current account set when the data corresponding to the account in the current account set is updated, so as to ensure that the data stored locally in the terminal is corresponding to the local version identifier.
In a possible implementation manner, the process of updating, by the terminal, data corresponding to an account in the current account set includes: and the terminal updates the data corresponding to each account in the current account set in sequence, and after the data corresponding to one account is updated, the terminal updates the data corresponding to the next account until the data corresponding to all accounts in the current account set are updated. Optionally, under the condition that updating of data corresponding to any account fails, updating of data corresponding to an account in the current account set is finished.
For example, referring to fig. 14, taking an account set including 3 accounts as an example, the terminal obtains data corresponding to the 3 accounts in batch from the server, then updates the data corresponding to the account 1 first, updates the data corresponding to the account 2 after the data corresponding to the account 1 is updated successfully, and updates the data corresponding to the account 3 after the data corresponding to the account 2 is updated successfully, where if the data corresponding to one account fails to be updated, the updating is finished.
In a possible implementation manner, the server returns an update stop 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 not consistent 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 update stop notification returned by the server. The update stopping notification indicates that updating of data corresponding to the account in the current account set is stopped, that is, the update stopping 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 account in the current account set.
In addition, in a possible implementation manner, when the terminal updates the data corresponding to each account, the data may be updated in a synchronous update manner or an asynchronous update manner, which is not limited in this embodiment of the application.
It should be noted that, in step 1303, the description is only given by taking an example that the terminal determines whether to return data to the terminal based on whether the local version identifier is consistent with the network version identifier, in another embodiment, it is not necessary to determine whether the local version identifier is consistent with the network version identifier, 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 account sets is completed.
After the data corresponding to the account in one account set is updated, continuing to update the data corresponding to the account in the next account set, where the updating manner of the data corresponding to the account in the next account set is the same as that in the above-described implementation manner of step 1303-step 1304, and is not described herein again.
1306. And the terminal updates the local version identification of the target group into the network version identification of the target group under the condition that the data corresponding to the accounts in the plurality of account sets is updated.
And under the condition that the data corresponding to the accounts in the plurality of account sets is updated, the terminal updates the local version identification of the target group into the network version identification of the target group so as to ensure that the data stored locally in the terminal is corresponding to the local version identification.
When the terminal locally stores data corresponding to the account, in consideration of a large number of accounts, if the terminal stores corresponding data for each account, a large number of data tables are generated, and the writing and reading speeds of the data are reduced under the condition of a large number of data tables. Therefore, in order to reduce the number of data tables, in the embodiment of the application, when data is stored, the terminal performs hash calculation on a plurality of account numbers in the target group respectively to obtain a hash value corresponding to each account number; grouping the plurality of account numbers based on the hash values corresponding to the plurality of account numbers; 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 and the data corresponding to the individual account belonging to the group account in the same data table.
In one possible implementation manner, the grouping, by the terminal, the multiple account numbers based on hash values corresponding to the multiple account numbers includes: and dividing account numbers with the same characteristic value at the target position in the hash value into the same group. The target position is any position in the hash value, for example, the target position is the last position, the first position, or other positions in the hash value. Since the feature value at one position is any one of values 0 to 9, the plurality of account numbers are divided into ten groups at most.
In a possible implementation manner, the terminal also reads data from the data table, that is, the terminal verifies the data access authority of the target personal account number in response to the data access operation of any account number based on the target personal account number; and under the condition that the target personal account has the data access authority, reading data corresponding to the accessed account from the data table and displaying the read data, and under the condition that the target personal account does not have the data access authority, displaying a reading failure prompt to prompt that the data corresponding to the account is not read. The access right of the target personal account refers to whether the target personal account has the right to view the data corresponding to the accessed account.
It should be noted that, in the embodiment of the present application, the target group is only used as an example for description, and in another embodiment, other groups to which the target personal account number is added are grouped in the same manner. Optionally, for account numbers in different groups, the account numbers in each group may be divided into multiple groups according to the difference of the groups, and then the data corresponding to the account numbers in the same group are stored in the same data table; or, the account numbers of all the groups are mixed together, the account numbers in a plurality of groups are divided into a plurality of groups, and then the data corresponding to the account numbers in the same group are stored in the same data table.
Compared with the mode of storing the data corresponding to the account of each group in one data table in the related technology, the data storage mode in the embodiment of the application greatly reduces the number of the data tables by grouping the accounts, avoids the problem that the number of the data tables is continuously increased along with the increase of the accounts, simultaneously avoids the problem that the data is stored in one data table to cause the overlarge of a single data table, enables the data tables to have higher performance, and improves the speed of storing and reading the data.
According to the data synchronization method, the account numbers in the target group are divided into a plurality of account number sets, data corresponding to the account numbers in one account number set are obtained from the server, after the data corresponding to the account numbers in the account number sets are updated, data corresponding to the account numbers in the next account number set are continuously obtained until the data corresponding to all the account numbers are updated, in the data synchronization process, data are obtained from the server once, the terminal and the server interact once, the data corresponding to the account numbers are obtained in batches according to the account number sets, the individual interaction of each account number is not needed, the interaction times of the terminal and the server are reduced, 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 apparatus according to an embodiment of the present application. Referring to fig. 15, the apparatus includes:
a set dividing module 1501, configured to divide a plurality of account numbers in a target group into a plurality of account number sets, where each account number set includes some account numbers in the plurality of account numbers, and account numbers in different account number sets are different, where the target group includes at least two group account numbers and personal account numbers belonging to at least two group account numbers;
the data updating module 1502 is configured to acquire data corresponding to an account in one account set from the server each time, update locally-stored data corresponding to the same account based on the acquired data, and continue to update data corresponding to an account in the next account set after the update is completed until the update of data corresponding to accounts in the multiple account sets is completed.
The application provides a data synchronization device, divide the account number in the target group into a plurality of account number sets, obtain the data that the account number in an account number set corresponds from the server, after the data that the account number in this account number set corresponds is updated, continue to obtain the data that the account number in the next account number set corresponds, until the data update that all account numbers correspond is accomplished, in data synchronization process, every obtains data from the server, the terminal interacts once with the server, through obtaining the data that the account number corresponds in batches according to the account number set, need not to interact alone to every account number, the number of interactions of terminal and server has been reduced, thereby reduce the length of time that consumes in the data transmission process, improve data synchronization speed.
In one possible implementation, the data update module 1502 includes:
the request sending unit is used for sending a data updating request corresponding to the account set to the server for any account set in the account sets, and the server is used for responding to the data updating request and returning data corresponding to the accounts in the account set;
and the data receiving unit is used for receiving data corresponding to the accounts in the account set returned by the server.
In another possible implementation manner, the data update request carries a currently logged-in target personal account, and the data receiving unit is configured to receive data corresponding to an account associated with the target personal account in an account set returned by the server.
In another possible implementation manner, the data updating module 1502 is configured to, when the local version identifier of the target group is inconsistent with the network version identifier of the target group in the server, acquire data corresponding to an account in one account set from the server each time, and update data corresponding to the same account stored locally based on the acquired data.
In another possible implementation manner, the data updating module 1502 is configured to, when 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, obtain data corresponding to an account in the current account set from the server, and update data corresponding to the same account stored locally based on the obtained data.
In another possible implementation manner, the data updating module 1502 is configured to obtain, from a server, data corresponding to an account in a current account set and a network version identifier of the current account set;
the device still includes:
and the version identifier updating module is used for updating the local version identifier of the current account set into the network version identifier of the current account set under the condition that the data corresponding to the accounts in the current account set is updated.
In another possible implementation manner, the apparatus further includes:
and the update stopping module is used for receiving an update stopping notification returned by the server, wherein the update stopping notification represents that the update of the data corresponding to the account in the current account set is stopped, and the update stopping notification is returned under the condition that the local version identifier of the server in 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.
In another possible implementation manner, the apparatus further includes:
and the version identifier updating module is used for updating the local version identifier of the target group into the network version identifier of the target group under the condition that the data corresponding to the accounts in the plurality of account sets is updated.
In another possible implementation manner, the apparatus further includes: a data storage module to:
performing hash calculation on a plurality of account numbers in the target group respectively to obtain a hash value corresponding to each account number;
grouping the plurality of account numbers based on the hash values corresponding to the plurality of account numbers;
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 account numbers with the same feature value at the target location in the hash value into the same group.
In another possible implementation manner, the apparatus further includes: a data reading module to:
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 has the data access authority, reading data corresponding to the accessed account from the data table, and displaying the read data.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
It should be noted that: the data synchronization apparatus provided in the above embodiment is only illustrated by the division of the above functional modules when synchronizing data, and in practical applications, the above function allocation may be completed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the above described functions. In addition, the data synchronization apparatus and the data synchronization method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments, and are not described herein again.
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:
the group creating module 1601 is configured to create a target group based on a currently logged-in first personal account, 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 a personal account belonging to a first group account with a second group account in the target group, or associate a personal account belonging to the first group account with a personal account belonging to the second group account;
any two related accounts allow instant messaging under the condition that a friend relationship is not established.
The embodiment of the application provides a novel group, after a target group is created based on a first group account, the individual accounts belonging to the first group account and a second group account can be added into the target group, so that the individual accounts belonging to different group accounts are in one target group, and the accounts are correlated, so that the function of allowing instant communication under the condition that no friend relationship is established between any two correlated accounts is realized, and a novel instant communication mode is provided.
In one possible implementation, the group creating module 1601 is configured to:
responding to the operation of creating the group, acquiring the input group name through a creating interface, and creating a target group named by the group name;
inviting the personal account through an invitation interface, and adding the personal account accepting the invitation and a group account to which the personal account accepting the invitation belongs to a target group; and/or inviting the group account through an 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 manner, the apparatus further includes: a first communication module to:
displaying at least one personal account number associated with the first personal account number in an associated account number display interface;
in response to a selection operation of a plurality of personal accounts in at least one personal account, creating a first group including a first personal account and the plurality of personal accounts;
and displaying the instant messaging interface of the first group, and inputting a communication message in the instant messaging interface.
In another possible implementation manner, the apparatus further includes: a second communication module to:
displaying at least one group account related to the first personal account in a related account display interface;
in response to a selection operation for any group account, displaying at least one individual account belonging to the selected group account;
and responding to the selection operation of any one of the currently displayed personal accounts, displaying an instant messaging interface of the personal account, and carrying out instant messaging with the personal account in the instant messaging interface.
In another possible implementation manner, the apparatus further includes: a third communication module to:
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 communication messages through a batch communication interface;
and respectively sending communication messages to the selected at least two personal accounts.
In another possible implementation manner, the apparatus further includes: an application sharing module to:
responding to an application adding operation of the target group, and selecting a target application from at least one application of the first group account;
and adding the target application to the target group, wherein the account number in the target group has the authority of using the application in the target group.
In another possible implementation manner, the apparatus further includes: a group management module to:
managing the target group;
the target group comprises at least one group, each group comprises at least one group account and a personal account belonging to the at least one group account, and the management comprises at least one of the following:
deleting any group in the target group;
adding a new group in the target group;
at least one personal account or at least one group account in a first group in the target group is moved to a second group in the target group.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
It should be noted that: the group management apparatus provided in the above embodiment is only illustrated by the division of the functional modules when managing the group, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the computer device may be divided into different functional modules to complete all or part of the functions described above. In addition, the group management apparatus and the group management method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
The embodiment of the present application further provides a computer device, where the computer device includes a processor and a memory, where the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor, so as to implement the operations performed by the data synchronization method or the group management method in the foregoing embodiments.
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 4-core processors, 8-core processors, and the like. The processor 1701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1701 may also include a main processor, which is a processor for Processing data in an awake state, also called a Central Processing Unit (CPU), and a coprocessor; 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) that is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 1701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The memory 1702 may include one or more computer-readable storage media, which may be non-transitory. The 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 the memory 1702 is used to store at least one computer program for execution by the processor 1701 to implement the data synchronization method or the group management method provided by the method embodiments of the present application.
In some embodiments, terminal 1700 may also optionally include: a peripheral interface 1703 and at least one peripheral. The processor 1701, memory 1702 and peripheral interface 1703 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 1703 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1704, a display screen 1705, a camera assembly 1706, an audio circuit 1707, and a power supply 1708.
The peripheral interface 1703 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1701 and the memory 1702. In some embodiments, the processor 1701, memory 1702, and peripheral interface 1703 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 1701, the memory 1702, and the peripheral interface 1703 may be implemented on separate chips or circuit boards, which are not limited in this embodiment.
The Radio Frequency circuit 1704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1704 communicates with a communication network and other communication devices via electromagnetic signals. The rf circuit 1704 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1704 may further include NFC (Near Field Communication) related circuits, which are not limited in this 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 screen 1705 is a touch display screen, the display screen 1705 also has the ability to capture touch signals on or above the surface of the display screen 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, display 1705 may be one, disposed on a front panel of terminal 1700; in other embodiments, display 1705 may be at least two, each disposed on a different surface of terminal 1700 or in a folded design; in other embodiments, display 1705 may be a flexible display disposed on a curved surface or a folded surface of terminal 1700. Even further, the display screen 1705 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1705 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1706 is used to capture images or video. Optionally, 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 number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1706 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1707 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, inputting the electric signals into the processor 1701 for processing, or inputting the electric signals into the radio frequency circuit 1704 for voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1700. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1701 or the radio frequency circuit 1704 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1707 may also include a headphone jack.
Power supply 1708 is used to power the various components in terminal 1700. The power source 1708 may be alternating current, direct current, disposable or rechargeable. When the power supply 1708 includes 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 architecture shown in fig. 17 is not intended to be limiting with respect to terminal 1700, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
Optionally, the computer device is provided as a server. Fig. 18 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 1800 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1801 and one or more memories 1802, where the memory 1802 stores at least one computer program, and the at least one computer program is loaded and executed by the processors 1801 to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where at least one computer program is stored in the computer-readable storage medium, 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 in the foregoing embodiments.
The embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the operations performed by the data synchronization method or the group management method of the foregoing embodiment.
In some embodiments, the computer program according to the embodiments of the present application may be deployed to be executed on one computer device or on multiple computer devices located at one site, or may be executed on multiple computer devices distributed at multiple sites and interconnected by a communication network, and the multiple computer devices distributed at the multiple sites and interconnected by the communication network may constitute a block chain 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 instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only an alternative embodiment of the present application and is not intended to limit the present application, and any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (21)

1. A method for synchronizing data, the method comprising:
dividing a plurality of account numbers in a target group into a plurality of account number sets, wherein each account number set comprises part of account numbers in the plurality of account numbers, and the account numbers in different account number sets are different, wherein the target group comprises at least two group account numbers and personal account numbers belonging to the at least two group account numbers;
the method comprises the steps of obtaining data corresponding to accounts in one account set from a server each time, updating data corresponding to locally stored same accounts based on the obtained data, and continuing to update data corresponding to accounts in the next account set after updating is completed until updating of the data corresponding to the accounts in the account sets is completed.
2. The method according to claim 1, wherein the obtaining data corresponding to the accounts in one account set from the server each time comprises:
for any account set in the account sets, sending a data updating request corresponding to the account set to the server, wherein the server is used for responding to the data updating 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 number related to the target personal account number in the account number set returned by the server.
4. The method according to claim 1, wherein the step of obtaining data corresponding to accounts in one account set from the server each time, and updating data corresponding to the same account stored locally 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 accounts in one account set from the server every time, and updating the data corresponding to the same account which is locally stored based on the acquired data.
5. The method according to claim 4, wherein, when the local version id of the target group is inconsistent with the network version id of the target group in the server, each time data corresponding to an account in one account set is acquired from the server, and data corresponding to the same account stored locally is updated based on the acquired data, including:
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 set is inconsistent with the network version identification of the current account set in the server, acquiring data corresponding to accounts in the current account set from the server, and updating the data corresponding to the same account which is locally stored based on the acquired data.
6. The method according to claim 5, wherein the obtaining data corresponding to the accounts in the current account set from the server includes:
acquiring data corresponding to the accounts in the current account set and network version identification of the current account set from the server;
the method further comprises the following steps:
and under the condition that the data corresponding to the account in the current account set is updated, updating the local version identification of the current account set into the network version identification of the current account set.
7. The method of claim 4, further comprising:
and updating the local version identification of the target group to the network version identification of the target group under the condition that the data corresponding to the accounts in the plurality of account sets is updated.
8. The method of claim 1, further comprising:
performing hash calculation on a plurality of account numbers in the target group respectively to obtain a hash value corresponding to each account number;
grouping the plurality of account numbers based on the hash values corresponding to the plurality of account numbers;
and storing the data corresponding to the accounts in the same group in the same data table.
9. The method of claim 8, wherein grouping the plurality of account numbers based on their corresponding hash values comprises:
and dividing account numbers with the same characteristic value at the target position in the hash value into the same group.
10. A method for group management, the method comprising:
creating a target group based on a currently logged-in first personal account, 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 the personal account belonging to the first group account with the second group account, or associating the personal account belonging to the first group account with the personal account belonging to the second group account;
any two related accounts allow instant messaging under the condition that a friend relationship is not established.
11. The method of claim 10, wherein creating the target group based on the currently logged-in first personal account comprises:
responding to the operation of creating the group, acquiring an input group name through a creating interface, and creating the target group named by the group name;
inviting the personal account through an invitation interface, and adding the personal account accepting the invitation and the group account to which the personal account accepting the invitation 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.
12. The method of claim 10, further comprising:
displaying at least one personal account number associated with the first personal account number in an associated account number 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 the first personal account and the plurality of personal accounts;
and displaying the instant messaging interface of the first group, and inputting a communication message in the instant messaging interface.
13. The method of claim 10, further comprising:
displaying at least one group account related to the first personal account in a related account display interface;
in response to a selection operation for any group account, displaying at least one individual account belonging to the selected group account;
and responding to the selection operation of any one currently displayed personal account, displaying an instant messaging interface of the personal account, and performing instant messaging with the personal account in the instant messaging interface.
14. The method of claim 10, further comprising:
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 communication messages through the batch communication interface;
and respectively sending the communication messages to the selected at least two personal accounts.
15. The method of claim 10, further comprising:
in response to an add application operation on the target group, selecting a target application from at least one application of the first group account;
adding the target application to the target group, wherein the accounts in the target group have the right to use the applications in the target group.
16. The method of claim 10, further comprising:
managing the target group;
wherein the target group comprises at least one group, each group comprises at least one group account and a personal account belonging to the at least one group account, and the management comprises at least one of:
deleting any packet in the target group;
adding a new packet in the target group;
and moving at least one personal account or at least one group account in the first group in the target group to a second group in the target group.
17. A data synchronization apparatus, the apparatus comprising:
the system comprises a set dividing module, a target group setting module and a group setting module, wherein the set dividing module is used for dividing a plurality of account numbers in the target group into a plurality of account number sets, each account number set comprises part of the account numbers, and the account numbers in different account number sets are different, wherein the target group comprises at least two group account numbers and personal account numbers belonging to the at least two group account numbers;
and the data updating module is used for acquiring data corresponding to the account in one account set from the server each time, updating the data corresponding to the same locally stored account based on the acquired data, and continuously updating the data corresponding to the account in the next account set after the updating is finished until the updating of the data corresponding to the accounts in the account sets is finished.
18. A group management apparatus, the apparatus comprising:
the group creation module is used for creating a target group based on a currently logged first personal account, 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 number association module, configured to associate a personal account number belonging to the first group account number with the second group account number in the target group, or associate 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 related accounts allow instant messaging under the condition that a friend relationship is not established.
19. A computer device comprising a processor and a memory, the memory having stored therein at least one computer program that is loaded and executed by the processor to perform operations performed by the data synchronization method of any of claims 1 to 9 or to perform operations performed by the group management method of any of claims 10 to 16.
20. A computer-readable storage medium, having stored therein at least one computer program, which is loaded and executed by a processor, to perform operations performed by the data synchronization method of any one of claims 1 to 9, or to perform operations performed by the group management method of any one of claims 10 to 16.
21. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, performs the operations performed by the data synchronization method of any of claims 1 to 9 or performs the operations performed by the group management method of any of claims 10 to 16.
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 true CN115118735A (en) 2022-09-27
CN115118735B 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
CN115118735B (en) 2023-12-01

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
KR20210064294A (en) Communication access method and apparatus, computer device, and storage medium
CN111953811B (en) Site access method, site registration method, device, equipment and storage medium
US20070076245A1 (en) Information processing device, information processing system, and information processing method
CN109905318A (en) Apparatus control method, device and storage medium
CN112039929B (en) File editing method and device and electronic equipment
CN105207896A (en) Internet calling method and device
CN113709022B (en) Message interaction method, device, equipment and storage medium
CN106371689A (en) Picture splicing method, apparatus and system
CN106453589A (en) Method and apparatus for synchronizing backup data
CN111045568A (en) Virtual article processing method, device, equipment and storage medium based on block chain
CN113689171A (en) Method and device for fusing family schedules
US20120005152A1 (en) Merged Event Logs
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
CN116954430A (en) Conference resource configuration method and device, computer equipment and storage medium
CN111600862B (en) User account management method and device
CN113642010B (en) Method for acquiring data of extended storage device and mobile terminal
CN113946624A (en) Distributed cluster, information processing method and device, electronic equipment and storage medium
CN113986086B (en) Group session recommendation method, device, terminal and computer readable storage medium
CN114330403B (en) Graphic code processing method, device, equipment and medium
CN116016418B (en) Information interaction method and electronic equipment
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