WO2018076865A1 - Data sharing method, device, storage medium, and electronic device - Google Patents

Data sharing method, device, storage medium, and electronic device Download PDF

Info

Publication number
WO2018076865A1
WO2018076865A1 PCT/CN2017/095623 CN2017095623W WO2018076865A1 WO 2018076865 A1 WO2018076865 A1 WO 2018076865A1 CN 2017095623 W CN2017095623 W CN 2017095623W WO 2018076865 A1 WO2018076865 A1 WO 2018076865A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
user
user data
identification information
shared
Prior art date
Application number
PCT/CN2017/095623
Other languages
French (fr)
Chinese (zh)
Inventor
江凌生
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018076865A1 publication Critical patent/WO2018076865A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present invention relates to the field of network technologies, and in particular, to a data sharing method, apparatus, storage medium, and electronic device.
  • the way of storing user data has gradually changed from hardware storage (such as mobile hard disk, U disk) to cloud server storage.
  • the user can store the user data in the cloud server anytime and anywhere through the cloud server application in the mobile terminal, and the user can also share the user data in the cloud server to other users.
  • the invention provides a data sharing method, device, storage medium and electronic device, which can improve the security of user data sharing.
  • an embodiment of the present invention provides a data sharing method, including:
  • an embodiment of the present invention provides a data sharing apparatus, including:
  • An obtaining unit configured to acquire user data and corresponding identification information and synchronize to the cloud server
  • a sending unit configured to send a data sharing request to the cloud server, where the data sharing request includes identifier information of the user data to be shared;
  • the receiving and sending unit is configured to receive a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to perform the following steps:
  • an embodiment of the present invention provides an electronic device including a memory storing executable program code, a processor coupled to the memory, and the processor invoking the executable stored in the memory Program code, perform the following steps:
  • the invention provides a data sharing method, device, storage medium and electronic device, which can improve the security of user data sharing.
  • FIG. 1 is a schematic diagram of a scenario of a data sharing system according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart diagram of a data sharing method according to an embodiment of the present invention.
  • FIG. 3 is another schematic flowchart of a data sharing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a data sharing apparatus according to an embodiment of the present invention.
  • FIG. 5 is another schematic structural diagram of a data sharing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • first, second, and the like in the present invention may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
  • a first control may be referred to as a second control, and similarly, a second control may be referred to as a first control, without departing from the scope of the present invention.
  • Both the first control and the second control are controls, but they are not the same control.
  • the terms “comprises” and “comprising” and “comprising” are intended to cover a non-exclusive inclusion.
  • the data sharing system mainly includes a data sharing device and a cloud server, wherein the data sharing device can be integrated into a mobile terminal such as a tablet computer or a mobile phone, and the server and the mobile terminal can be connected through a wired or wireless network. connection.
  • FIG. 1 is a schematic diagram of a data sharing system provided by the present invention.
  • the data sharing device is specifically integrated in a mobile phone, and is mainly used to acquire user data of a shared user and corresponding identification information and synchronize to the cloud server. Sending a data sharing request and receiving a data sharing link; and transmitting the data sharing link to the target user's mobile terminal.
  • the data sharing system may further include a cloud server, where a large number of shared user user data and corresponding identification information are stored; the cloud server is mainly used to receive and save user data and an identifier corresponding thereto. And generating a data sharing link according to the user data to be shared in the data sharing request, and transmitting the data sharing link to the mobile terminal of the sharing user; and, when the target user clicks the data sharing link, the mobile terminal receiving the target user sends Accessing the data request and transmitting the user data to be shared to the target user's mobile terminal according to the access data request.
  • a cloud server where a large number of shared user user data and corresponding identification information are stored; the cloud server is mainly used to receive and save user data and an identifier corresponding thereto. And generating a data sharing link according to the user data to be shared in the data sharing request, and transmitting the data sharing link to the mobile terminal of the sharing user; and, when the target user clicks the data sharing link, the mobile terminal receiving the target user sends Accessing the data request
  • the embodiment of the invention provides a data sharing method, including:
  • the obtaining the user data and the identifier information corresponding thereto and synchronizing to the cloud server specifically includes:
  • the obtaining the identification information of the user data by using the editing interface includes:
  • the sharing range is used as identification information of the user data.
  • the receiving the data sharing link generated by the cloud server according to the identifier information of the user data to be shared further includes: receiving a data access password generated by the cloud server according to the identifier information of the user data to be shared. ;
  • the sending the data sharing link to the terminal to be shared by the user further includes: sending the data access password to the terminal of the user to be shared.
  • the method before the sending the data sharing request to the cloud server, the method further includes: acquiring identifier information of the user data to be shared.
  • the sending a data sharing request to the cloud server includes:
  • the method further includes:
  • FIG. 2 is a schematic flowchart diagram of a data sharing method according to the present invention.
  • the data sharing method can be applied to electronic devices such as personal computers, handheld or laptop devices, mobile phones, personal digital assistants (PDAs), media players, and the like, and is not specifically limited herein.
  • PDAs personal digital assistants
  • Step S101 acquiring user data and corresponding identification information and synchronizing to the cloud server;
  • Step S102 Send a data sharing request to the cloud server, where the data sharing request includes identification information of user data to be shared;
  • Step S103 Receive a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user.
  • step S101 after the user logs in to the cloud server application through the electronic device, the user data is acquired from the memory of the electronic device according to the user's selection, wherein the user data includes a picture, a video, an address book, and the like.
  • the user can edit the user data through the cloud server application.
  • the user editing the user data includes editing the sharing range of the user data.
  • the sharing range of the A picture is set to "friend”
  • the sharing range of the B video is set to "family” and the like.
  • the “friend” is the identification information of the A picture
  • the electronic device acquires the identification information of the A picture, and synchronizes the A picture and its identification information to the cloud server.
  • the identification information of the user data is not limited to the sharing range of the user data, and may also be other information that plays the role of identification, and is not specifically limited herein.
  • multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data.
  • the sharing range of the A picture, the B picture, and the C video is set to "friend”.
  • the identification information of the user data may also be the unique identification information of the user data, for example, the address information of the user data is used as the identification information, and is not specifically limited herein.
  • the electronic device may generate a list of identification information when the user edits the user data.
  • the identification information list is used to store identification information of each user data. After the user edits all the user data, the electronic device synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
  • the user data and the identification information corresponding thereto are synchronized to the cloud server, and in other embodiments, the user data and the corresponding identification information may be separately synchronized to the cloud server.
  • the user data is first synchronized to the cloud server, and the user data is edited to obtain the identification information of the user data, and the identification information is synchronized to the cloud server, and no specific restrictions are imposed thereon.
  • steps S102 and S103 when the user needs to share user data such as his own picture, the user enters the sharing interface by clicking the sharing portal in the cloud server application.
  • the sharing interface the user data is displayed.
  • the electronic device After the user clicks on any of the user data to be shared, the electronic device sends a data sharing request to the cloud server, where the data sharing request includes the identification information of the user data to be shared.
  • the user sets the identification information of 10 pictures in advance as “friends”.
  • the user clicks the sharing portal to enter the sharing interface the user clicks on any picture whose identification information is “friend”, indicating that the user wishes to identify the information as “friends”. All 10 pictures were shared.
  • the electronic device sends a data sharing request carrying the "friend" identification information to the cloud server.
  • the identifier information of the user data to be shared carried in the data sharing request is not limited to one, and may be multiple.
  • the data sharing request includes “friend” identification information and “relative person” identification information, that is, the user wishes to identify the identifier.
  • the user data of the "friends" and “relatives" is shared with the target users.
  • the cloud server When the cloud server receives the data sharing request, the identifier information of the user data to be shared is parsed from the data sharing request, and a data sharing link is generated according to the identification information of the user data to be shared, and then the generated data sharing link is sent. To electronic devices.
  • the electronic device After receiving the data sharing link fed back by the cloud server, the electronic device sends the data sharing link to the terminal of the target user according to the user's selection, so that the target user can browse the user data to be shared by clicking the data sharing link. At this time, the target user can only view the user data to be shared, and cannot view other user data, thereby improving the security of the user data.
  • the data sharing method in this embodiment synchronizes the user data and the corresponding identification information to the cloud server, and then sends the data sharing request carrying the identification information of the user data to be shared to the cloud server, and receives the cloud server according to the After sharing the data sharing link generated by the identification information of the user data, the data sharing link is sent to the terminal of the target user, so that the target user can browse the user data to be shared through the data sharing link.
  • the data sharing method allows the target user to browse only the user data to be shared, and cannot view other user data, thereby improving the security of the user data and facilitating the sharing of data.
  • FIG. 3 is another schematic flowchart of a data sharing method according to the present invention.
  • the data sharing method can be applied to electronic devices such as personal computers, handheld or laptop devices, mobile phones, personal digital assistants (PDAs), media players, and the like, and is not specifically limited herein.
  • PDAs personal digital assistants
  • Step S201 Acquiring user data, and generating an editing interface of the user data; acquiring identification information of the user data through the editing interface; and synchronizing the user data and the identification information corresponding thereto to the cloud server;
  • Step S202 Obtain identification information of user data to be shared.
  • Step S203 Send a data sharing request to the cloud server, where the data sharing request includes the identification information of the user data to be shared;
  • Step S204 Receive a data sharing link and a data access password generated by the cloud server according to the identifier information of the user data to be shared, and send the data sharing link and the data access password to the terminal of the target user;
  • Step S205 Acquire the prompt information generated by the cloud server after the target user successfully accesses the data to be shared, and display the sharing status of the user data to be shared according to the prompt information.
  • step S201 after the user logs in to the cloud server application through the electronic device, the user data is acquired from the memory of the electronic device according to the user's selection, wherein the user data includes a picture, a video, an address book, and the like.
  • the electronic device After the user data is acquired, the electronic device generates an editing interface of the user data and displays the editing interface.
  • the user can edit the user data in the editing interface.
  • the user editing the user data includes editing the sharing range of the user data. For example, set the sharing range of the A picture to "friend", set the sharing range of the B video to "family” and the like.
  • the “friend” is the identification information of the A picture
  • the electronic device acquires the identification information of the A picture, and synchronizes the A picture and the corresponding identification information to the cloud server.
  • the electronic device obtains the identification information set by the user for the user data through the editing interface, and synchronizes the obtained user data and the corresponding identification information to the cloud server.
  • the identification information of the user data is not limited to the sharing range of the user data, and may also be other information that plays the role of identification, and is not specifically limited herein.
  • multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data.
  • the sharing range of the A picture, the B picture, and the C video is set to "friend”.
  • the identification information of the user data may also be the unique identification information of the user data, for example, the address information of the user data is used as the identification information, and is not specifically limited herein.
  • the electronic device may generate a list of identification information when the user edits the user data.
  • the identification information list is used to store identification information of each user data. After the user edits all the user data, the electronic device synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
  • the user data and the identification information corresponding thereto are synchronized to the cloud server, and in other embodiments, the user data and the corresponding identification information page can be synchronized to the cloud server respectively.
  • the user data is first synchronized to the cloud server, and the user data is edited to obtain the identification information of the user data, and the identification information is synchronized to the cloud server, and no specific restrictions are imposed thereon.
  • steps S202 to S203 when the user needs to share user data such as his own picture, the user enters the sharing interface by clicking the sharing portal in the cloud server application.
  • the sharing interface In the sharing interface, the user data and the corresponding identification information are displayed.
  • the electronic device obtains the identification information of the user data to be shared, and generates the identification information according to the user data to be shared.
  • Data sharing request and then send the generated data sharing request to the cloud server. It can be understood that the data sharing request includes identification information of the user data to be shared.
  • the user sets the identification information of 10 pictures in advance as “friends”.
  • the user clicks the sharing portal to enter the sharing interface the user clicks on any picture whose identification information is “friend”, indicating that the user wishes to identify the information as “friends”. All 10 pictures were shared.
  • the electronic device sends a data sharing request carrying the "friend" identification information to the cloud server.
  • the identifier information of the user data to be shared carried in the data sharing request is not limited to one, and may be multiple.
  • the data sharing request includes “friend” identification information and “relative person” identification information, that is, the user wishes to identify the identifier.
  • the user data of the "friends" and “relatives" is shared with the target users.
  • the cloud server When the cloud server receives the data sharing request, the identifier information of the user data to be shared is parsed from the data sharing request, and the data sharing link and the data access password are generated according to the identification information of the user data to be shared, and the generated data is generated. Data sharing links and data access passwords are sent to the electronic device.
  • steps S204 to S205 after the electronic device receives the data sharing link and the data access password sent by the cloud server, the data sharing link and the data access password are sent to the target user's terminal, so that the target user clicks the data sharing. You can browse the user data to be shared by linking and entering the data access password. At this time, the target user can only view the user data to be shared, and cannot view other user data, thereby improving the security of the user data.
  • the data access password is set to have a certain lifetime.
  • the data access password is valid from the time when the data access password is generated to the preset time period, and the user can successfully access the user data to be shared by inputting the data access password.
  • the preset time period is exceeded, the data access password will be invalid. At this time, entering the data access password will not be able to access the user data to be shared.
  • the cloud server After the target user successfully accesses the data to be shared, the cloud server generates a prompt message and sends the prompt information to the electronic device. After the electronic device obtains the prompt information, the sharing status of the user data to be shared is displayed according to the prompt information. For example, according to the prompt information, a dialog box is displayed, and the dialog box displays the words to be shared that the user data has been successfully shared, and the like. In this way, the user can know that the target user has successfully browsed the user data to be shared.
  • the first user opens the application of the cloud server in the mobile phone, and after successfully logging in to the application, the first user clicks the import data button, so that the application can obtain the user data in the mobile phone.
  • the application will pop up the editing interface of the user data.
  • user data is displayed.
  • the selection bar has identification information that is shared by the user, such as "friends", “family”, “work”, “life”, and the like.
  • the first user sets identification information of each user data through a selection field. For example, the first user selects “friends” in the selection column corresponding to the picture A.
  • the mobile phone saves the identification information of the picture A as “friends”, and synchronizes the picture A and its identification information “friends” to the cloud server.
  • Such a push can complete the setting of each user data identification information, and synchronize the user data and its corresponding identification information to the cloud server.
  • the first user When the first user needs to share the user data whose identification information is “family” to the second user, the first user enters the sharing interface by clicking the sharing portal, and the user data and the identification information corresponding to the user data are displayed in the sharing interface. . The first user clicks on any user data whose identification information is “family”. At this time, the mobile phone sends a data sharing request carrying the “family” identification information to the cloud server.
  • the cloud server obtains the “family” identification information by parsing the data sharing request, and obtains all user data stored in the “family” identification information, and generates a data sharing link according to the user data with the “family” identification information. And the data access password, and the data sharing link and the data access password are sent to the first user.
  • the first user forwards the received data sharing link and data access password to the second user.
  • a dialog box for inputting the access password is first presented.
  • the second user inputs the data access password, the user data shared by the first user can be successfully browsed.
  • the data sharing method in this embodiment synchronizes the user data and the corresponding identification information to the cloud server, and then sends the data sharing request carrying the identification information of the user data to be shared to the cloud server, and receives the cloud server according to the After sharing the data sharing link and the data access password generated by the identification information of the user data, the data sharing link and the data access password are sent to the target user's terminal, so that the target user can browse the shared user data through the data sharing link and the data access password. .
  • the data sharing method allows the target user to browse only the user data to be shared, but cannot view other user data. At the same time, the data access password can further protect the user data and increase the security of the user data.
  • the embodiment of the invention further provides a data sharing device, comprising:
  • An obtaining unit configured to acquire user data and corresponding identification information and synchronize to the cloud server
  • a sending unit configured to send a data sharing request to the cloud server, where the data sharing request includes identifier information of the user data to be shared;
  • the receiving and sending unit is configured to receive a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user.
  • the obtaining unit is specifically configured to:
  • the obtaining unit is specifically configured to:
  • the sharing range is used as identification information of the user data.
  • the receiving and sending unit is further configured to:
  • the sending unit is specifically configured to:
  • the data sharing device further includes a prompting unit, the prompting unit is configured to:
  • FIG. 4 is a schematic structural diagram of a data sharing apparatus according to the present invention.
  • the data sharing device 300 in this embodiment can be applied to an electronic device such as a personal computer, a handheld or a laptop device, a mobile phone, a personal digital assistant (PDA), a media player, and the like, and is not specifically limited herein.
  • PDA personal digital assistant
  • the data sharing device 300 in this embodiment includes an obtaining unit 301, a transmitting unit 302, and a receiving and transmitting unit 303.
  • the obtaining unit 301 is configured to acquire the user data and the identifier information corresponding thereto and synchronize to the cloud server
  • the sending unit 302 is configured to send a data sharing request to the cloud server, where the data sharing request includes the user data to be shared.
  • the identifier sending information is used by the receiving and sending unit 303 to receive the data sharing link generated by the cloud server according to the identifier information of the user data to be shared, and send the data sharing link to the terminal of the target user.
  • the data sharing device 300 in this embodiment will be described in detail below with reference to FIG.
  • the obtaining unit 301 acquires user data from the memory of the electronic device according to the user's selection, wherein the user data includes a picture, a video, an address book, and the like.
  • the user can edit the user data through the cloud server application.
  • the user editing the user data includes editing the sharing range of the user data.
  • the sharing range of the A picture is set to "friend”
  • the sharing range of the B video is set to "family” and the like.
  • the obtaining unit 301 will acquire the sharing range "friend” of the A picture, and save the "friend” as the identification information of the A picture, and then the A picture and Its identification information is synchronized to the cloud server.
  • the identification information of the user data is not limited to the sharing range of the user data, and may also be other information that plays the role of identification, and is not specifically limited herein.
  • multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data.
  • the sharing range of the A picture, the B picture, and the C video is set to "friend”.
  • the identification information of the user data may also be the unique identification information of the user data, for example, the address information of the user data is used as the identification information, and is not specifically limited herein.
  • the user acquiring 301 may generate a list of identification information when the user edits the user data.
  • the identification information list is used to store identification information of each user data.
  • the obtaining unit 301 synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
  • the user When the user needs to share user data, the user enters the sharing interface by clicking the sharing portal in the cloud server application. In the sharing interface, the user data and the corresponding identification information are displayed. After the user clicks on any of the user data to be shared, the sending unit 302 obtains the identification information corresponding to the shared user data, and sends the user data to be shared. A data sharing request that identifies the information to the cloud server.
  • the sending unit 302 will acquire the identification information of the picture, and send the data sharing request carrying the “friend” identification information to the cloud server.
  • the identifier information of the user data to be shared carried in the data sharing request is not limited to one, and may be multiple.
  • the data sharing request includes “friend” identification information and “relative person” identification information, that is, the user wishes to identify the identifier. The user data of the "friends" and “relatives" is shared with the target users.
  • the cloud server When the cloud server receives the data sharing request, the identifier information of the user data to be shared is parsed from the data sharing request, and a data sharing link is generated according to the identification information of the user data to be shared, and then the generated data sharing link is sent. To the receiving and transmitting unit 303 of the electronic device.
  • the receiving and sending unit 303 After receiving the data sharing link fed back by the cloud server, the receiving and sending unit 303 sends the data sharing link to the terminal of the target user according to the user's selection, so that the target user can browse the user data to be shared by clicking the data sharing link. . At this time, the target user can only view the user data to be shared, and cannot view other user data, thereby improving the security of the user data.
  • the data sharing device 300 acquires the user data and the identification information thereof by the obtaining unit 301 and synchronizes to the cloud server; the sending unit 302 sends a data sharing request carrying the identification information of the user data to be shared to the cloud server.
  • the receiving and sending unit 303 After receiving the data sharing link generated by the cloud server according to the identification information of the user data to be shared, the receiving and sending unit 303 sends the data sharing link to the terminal of the target user, so that the target user can browse the user data to be shared through the data sharing link.
  • the data sharing device allows the target user to browse only the user data to be shared, and cannot view other user data, thereby improving the security of the user data and facilitating the sharing of data.
  • FIG. 5 is another schematic structural diagram of a data sharing apparatus according to the present invention.
  • the data sharing device 400 in this embodiment may be applied to an electronic device such as a personal computer, a handheld or a laptop device, a mobile phone, a personal digital assistant (PDA), a media player, and the like, and is not specifically limited herein.
  • PDA personal digital assistant
  • the data sharing device 400 in this embodiment includes an obtaining unit 401, a transmitting unit 402, a receiving and transmitting unit 403, and a prompting unit 404.
  • the obtaining unit 401 acquires user data from the memory of the electronic device according to the user's selection, wherein the user data includes a picture, a video, an address book, and the like.
  • the obtaining unit 401 After the obtaining unit 401 acquires the user data, the obtaining unit 401 generates an editing interface of the user data, and displays the editing interface.
  • the user can edit the user data in the editing interface.
  • the user editing the user data includes editing the sharing range of the user data. For example, set the sharing range of the A picture to "friend”, set the sharing range of the B video to "family” and the like.
  • the obtaining unit 401 acquires the sharing range “friend” of the A picture, and saves the “friend” as the identification information of the A picture, and then the A picture and the identifier thereof.
  • the information is synchronized to the cloud server, that is, the obtaining unit 401 acquires the identification information set by the user for the user data through the editing interface, and synchronizes the obtained identification information to the cloud server.
  • the identification information of the user data is not limited to the sharing range of the user data, and may also be other information that plays the role of identification, and is not specifically limited herein.
  • multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data.
  • the sharing range of the A picture, the B picture, and the C video is set to "friend”.
  • the identification information of the user data may also be the unique identification information of the user data, for example, the address information of the user data is used as the identification information, and is not specifically limited herein.
  • the obtaining unit 401 may generate a list of identification information when the user edits the user data.
  • the identification information list is used to store identification information of each user data. After the user edits all the user data, the obtaining unit 401 synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
  • the user When the user needs to share user data such as his own picture, the user enters the sharing interface by clicking the sharing portal in the cloud server application. In the sharing interface, the user data and the corresponding identification information are displayed. After the user clicks on any of the user data to be shared, the sending unit 402 obtains the identification information of the user data to be shared, and generates the identification information according to the user data to be shared. The data sharing request sends the generated data sharing request to the cloud server. It can be understood that the data sharing request includes the identification information of the user data to be shared.
  • the sending unit 402 sends a data sharing request carrying the "friend” identification information to the cloud server.
  • the identifier information of the user data to be shared carried in the data sharing request is not limited to one, and may be multiple.
  • the data sharing request includes “friend” identification information and “relative person” identification information, that is, the user wishes to identify the identifier.
  • the user data of the "friends" and “relatives” is shared with the target users.
  • the cloud server When the cloud server receives the data sharing request, the identifier information of the user data to be shared is parsed from the data sharing request, and the data sharing link and the data access password are generated according to the identification information of the user data to be shared, and the generated data is generated.
  • the data sharing link and the data access password are sent to the receiving and transmitting unit 403.
  • the receiving and transmitting unit 403 After the receiving and transmitting unit 403 receives the data sharing link and the data access password sent by the cloud server, the data sharing link and the data access password are sent to the target user's terminal, so that the target user clicks the data sharing link and inputs the data access.
  • the password allows you to browse the user data to be shared. At this time, the target user can only view the user data to be shared, and cannot view other user data, thereby improving the security of the user data.
  • the data access password is set to have a certain lifetime.
  • the data access password is valid from the time when the data access password is generated to the preset time period, and the user can successfully access the user data to be shared by inputting the data access password.
  • the preset time period is exceeded, the data access password will be invalid. At this time, entering the data access password will not be able to access the user data to be shared.
  • the cloud server After the target user successfully accesses the data to be shared, the cloud server generates a prompt message and sends the prompt information to the prompting unit 404.
  • the prompting unit 404 obtains the prompt information, the sharing status of the user data to be shared is displayed according to the prompt information. For example, the prompting unit 404 displays a dialog box according to the prompt information, and the dialog box displays the words to be shared that the user data has been successfully shared, and the like. In this way, the user can know that the target user has successfully browsed the user data to be shared.
  • the data sharing device 400 of the present embodiment acquires the user data and the identification information thereof by the obtaining unit 401 and synchronizes to the cloud server; when the user shares the user data, the sending unit 402 sends a data sharing request that carries the identification information of the user data to be shared.
  • the data sharing link is sent to the terminal of the target user, so that the target user can browse the data to be shared through the data sharing link, and simultaneously browse the target user successfully.
  • the prompting unit 404 can prompt the user to share the sharing status of the user data.
  • the data sharing device can enable the target user to browse only the user data to be shared, and cannot view other user data, thereby improving the security of the user data, and the user can know the sharing status of the user data to be shared in time.
  • the embodiment of the invention further provides a storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the following steps:
  • FIG. 6 is a schematic structural diagram of an electronic device according to the present invention.
  • the electronic device 500 described in this embodiment includes: at least one input device 510; at least one output device 520; at least one processor 530, a memory 540, and a power source 550.
  • the processor 530 can be a central processing unit (CPU, Central) Processing Unit).
  • Input device 510, output device 520, processor 530, memory 540, and power supply 550 are connected by a bus.
  • the input device 510 may specifically be a touch panel or a physical button.
  • the output device 520 can be specifically a display screen.
  • the memory 540 can be a high speed RAM memory or a non-volatile memory (non-volatile) Memory), such as disk storage.
  • Memory 540 is used to store a set of program code.
  • Power supply 550 is used to provide voltage to input device 510, output device 520, processor 530, and memory 540.
  • the input device 510, the output device 520, and the processor 530 are configured to call the program code stored in the memory 540, and perform the following operations:
  • the processor 530 is configured to acquire user data, and specifically, acquire user data from the electronic device 500 according to a user's selection.
  • the processor 530 is further configured to acquire identification information of the user data, and synchronize the user data and the identification information corresponding thereto to the cloud server.
  • the processor when acquiring user data and identification information corresponding thereto and synchronizing to the cloud server, the processor is configured to perform the following steps:
  • the processor when the identification information of the user data is acquired through the editing interface, the processor is configured to perform the following steps:
  • the sharing range is used as identification information of the user data.
  • the processor 530 is configured to obtain identification information of the user data to be shared, and generate a data sharing request according to the identification information of the user data to be shared, and send a data sharing request to the cloud server.
  • the processor when sending a data sharing request to the cloud server, the processor is configured to perform the following steps:
  • the cloud server When the cloud server receives the data sharing request, the identifier information of the user data to be shared is parsed from the data sharing request, and a data sharing link is generated according to the identification information of the user data to be shared, and then the generated data sharing link is sent. To the electronic device 500.
  • the processor is further configured to perform the following steps:
  • the processor 530 is further configured to receive a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send a data sharing link to the terminal of the target user. Thereby, the target user can browse the user data to be shared by clicking the data sharing link. At this time, the target user can only view the user data to be shared, and cannot view other user data, thereby improving the security of the user data.
  • the processor when receiving the data sharing link generated by the cloud server according to the identifier information of the user data to be shared, the processor is configured to: receive the identifier information of the cloud server according to the user data to be shared. Generated data access password;
  • the processor when the data sharing link is sent to the electronic device of the target user, the processor is further configured to: send the data access password to the electronic device of the target user.
  • the input device 510, the output device 520, and the processor 530 which are described in this embodiment, may be implemented in a data sharing method provided by any embodiment of the present invention. For the simplicity of the description, I will not repeat them here.
  • the electronic device 500 of the embodiment the processor 530 executes the program code corresponding to the data sharing method provided by the present invention, so that the electronic device 500 can only present the user data to be shared to the target user, and other user data is not presented. Enhance the security of user data to target users.
  • FIG. 6 is only a block diagram of a partial structure related to the solution of the present application.
  • the specific electronic device 500 may include more or less components than those shown in the figure, or a combination of some Some components, or have different component arrangements.
  • Each functional unit in the embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided in the present invention are a data sharing method, device, storage medium, and electronic device. The sharing method comprises: acquiring user data and identification information thereof and synchronizing to a cloud server; transmitting a data sharing request to the cloud server, where the data sharing request comprises identification information of user data to be shared; receiving a data sharing link generated by the cloud server on the basis of the identification information of the user data to be shared, and transmitting the data sharing link to a terminal of a target user.

Description

数据分享方法、装置、存储介质及电子设备 Data sharing method, device, storage medium and electronic device
本申请要求于2016年10月25日提交中国专利局、申请号为201610938197.2、发明名称为“数据分享方法及装置、移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610938197.2, filed on Jan. 25, 2016, the disclosure of which is incorporated herein in in.
技术领域Technical field
本发明涉及网络技术领域,特别是涉及一种数据分享方法、装置、存储介质及电子设备。The present invention relates to the field of network technologies, and in particular, to a data sharing method, apparatus, storage medium, and electronic device.
背景技术Background technique
随着网络技术的不断发展,存储用户数据的方式已逐渐从硬件存储(如移动硬盘、U盘)转变为云端服务器存储。用户可以通过移动终端内的云端服务器应用程序随时随地地将用户数据存储在云端服务器中,用户也可以将云端服务器中的用户数据分享给其他用户。With the continuous development of network technology, the way of storing user data has gradually changed from hardware storage (such as mobile hard disk, U disk) to cloud server storage. The user can store the user data in the cloud server anytime and anywhere through the cloud server application in the mobile terminal, and the user can also share the user data in the cloud server to other users.
技术问题technical problem
本发明提供一种数据分享方法、装置、存储介质及电子设备,能提高用户数据分享的安全性。The invention provides a data sharing method, device, storage medium and electronic device, which can improve the security of user data sharing.
技术解决方案Technical solution
第一方面,本发明实施例提供了一种数据分享方法,其包括:In a first aspect, an embodiment of the present invention provides a data sharing method, including:
获取用户数据及与其相对应的标识信息并同步至云端服务器;Obtain user data and corresponding identification information and synchronize to the cloud server;
发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及Sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared;
接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。Receiving a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and sending the data sharing link to the terminal of the target user.
第二方面,本发明实施例提供了一种数据分享装置,其包括:In a second aspect, an embodiment of the present invention provides a data sharing apparatus, including:
获取单元,用于获取用户数据及与其相对应的标识信息并同步至云端服务器;An obtaining unit, configured to acquire user data and corresponding identification information and synchronize to the cloud server;
发送单元,用于发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及a sending unit, configured to send a data sharing request to the cloud server, where the data sharing request includes identifier information of the user data to be shared;
接收发送单元,用于接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。The receiving and sending unit is configured to receive a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user.
第三方面,本发明实施例提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:In a third aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to perform the following steps:
获取用户数据及与其相对应的标识信息并同步至云端服务器;Obtain user data and corresponding identification information and synchronize to the cloud server;
发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及Sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared;
接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。Receiving a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and sending the data sharing link to the terminal of the target user.
第四方面,本发明实施例提供了一种电子设备,其包括存储有可执行程序代码的存储器;与所述存储器耦合的处理器;所述处理器调用所述存储器中存储的所述可执行程序代码,执行以下步骤:In a fourth aspect, an embodiment of the present invention provides an electronic device including a memory storing executable program code, a processor coupled to the memory, and the processor invoking the executable stored in the memory Program code, perform the following steps:
获取用户数据及与其相对应的标识信息并同步至云端服务器;Obtain user data and corresponding identification information and synchronize to the cloud server;
发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及Sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared;
接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。Receiving a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and sending the data sharing link to the terminal of the target user.
有益效果 Beneficial effect
本发明提供一种数据分享方法、装置、存储介质及电子设备,能提高用户数据分享的安全性。The invention provides a data sharing method, device, storage medium and electronic device, which can improve the security of user data sharing.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1为本发明实施例提供的数据分享系统的场景示意图。FIG. 1 is a schematic diagram of a scenario of a data sharing system according to an embodiment of the present invention.
图2为本发明实施例提供的数据分享方法的流程示意图。FIG. 2 is a schematic flowchart diagram of a data sharing method according to an embodiment of the present invention.
图3为本发明实施例提供的数据分享方法的另一流程示意图。FIG. 3 is another schematic flowchart of a data sharing method according to an embodiment of the present invention.
图4为本发明实施例提供的数据分享装置的结构示意图。FIG. 4 is a schematic structural diagram of a data sharing apparatus according to an embodiment of the present invention.
图5为本发明实施例提供的数据分享装置的另一结构示意图。FIG. 5 is another schematic structural diagram of a data sharing apparatus according to an embodiment of the present invention.
图6为本发明实施例提供的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明中的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。例如,在不脱离本发明的范围的情况下,可以将第一控件称为第二控件,且类似地,可将第二控件称为第一控件。第一控件与第二控件两者都是控件,但其不是同一控件。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。The terms "first", "second", and the like in the present invention may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first control may be referred to as a second control, and similarly, a second control may be referred to as a first control, without departing from the scope of the present invention. Both the first control and the second control are controls, but they are not the same control. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion.
本发明实施例提供的数据分享系统主要包括数据分享装置以及云端服务器,其中,该数据分享装置具体可以集成在如平板电脑,手机等移动终端中,该服务器与移动终端可通过有线或无线网络进行连接。The data sharing system provided by the embodiment of the present invention mainly includes a data sharing device and a cloud server, wherein the data sharing device can be integrated into a mobile terminal such as a tablet computer or a mobile phone, and the server and the mobile terminal can be connected through a wired or wireless network. connection.
请参考图1,图1为本发明提供的数据分享系统的场景示意图,该数据分享装置具体集成在手机中,主要用于获取分享用户的用户数据及与其相对应的标识信息并同步至云端服务器;发送数据分享请求,并接收数据分享链接;再将所述数据分享链接发送至目标用户的移动终端。Please refer to FIG. 1. FIG. 1 is a schematic diagram of a data sharing system provided by the present invention. The data sharing device is specifically integrated in a mobile phone, and is mainly used to acquire user data of a shared user and corresponding identification information and synchronize to the cloud server. Sending a data sharing request and receiving a data sharing link; and transmitting the data sharing link to the target user's mobile terminal.
另外,如图1所示,该数据分享系统还可以包括云端服务器,存储有大量分享用户的用户数据及其相对应的标识信息;云端服务器主要用于接收并保存用户数据和与其相对应的标识信息,并根据数据分享请求中的待分享用户数据生成数据分享链接,并将该数据分享链接发送给分享用户的移动终端;以及,当目标用户点击数据分享链接后,接收目标用户的移动终端发送的访问数据请求,并根据访问数据请求将待分享用户数据发送至目标用户的移动终端中。In addition, as shown in FIG. 1 , the data sharing system may further include a cloud server, where a large number of shared user user data and corresponding identification information are stored; the cloud server is mainly used to receive and save user data and an identifier corresponding thereto. And generating a data sharing link according to the user data to be shared in the data sharing request, and transmitting the data sharing link to the mobile terminal of the sharing user; and, when the target user clicks the data sharing link, the mobile terminal receiving the target user sends Accessing the data request and transmitting the user data to be shared to the target user's mobile terminal according to the access data request.
本发明实施例提供了一种数据分享方法,包括:The embodiment of the invention provides a data sharing method, including:
获取用户数据及与其相对应的标识信息并同步至云端服务器;Obtain user data and corresponding identification information and synchronize to the cloud server;
发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及Sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared;
接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。Receiving a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and sending the data sharing link to the terminal of the target user.
一实施例中,所述获取用户数据及与其相对应的标识信息并同步至云端服务器具体包括:In an embodiment, the obtaining the user data and the identifier information corresponding thereto and synchronizing to the cloud server specifically includes:
获取所述用户数据,并生成所述用户数据的编辑界面;Obtaining the user data, and generating an editing interface of the user data;
通过所述编辑界面获取所述用户数据的标识信息;以及Obtaining identification information of the user data through the editing interface;
将所述用户数据及与其相对应的标识信息同步至所述云端服务器。Synchronizing the user data and the identification information corresponding thereto to the cloud server.
一实施例中,所述通过所述编辑界面获取所述用户数据的标识信息,包括:In an embodiment, the obtaining the identification information of the user data by using the editing interface includes:
通过所述编辑界面获取用户编辑的分享范围;Obtaining a shared range edited by the user through the editing interface;
将所述分享范围作为所述用户数据的标识信息。The sharing range is used as identification information of the user data.
一实施例中,所述接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接还包括:接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据访问密码;In an embodiment, the receiving the data sharing link generated by the cloud server according to the identifier information of the user data to be shared further includes: receiving a data access password generated by the cloud server according to the identifier information of the user data to be shared. ;
所述发送所述数据分享链接至待分享用户的终端还包括:发送所述数据访问密码至所述待分享用户的终端。The sending the data sharing link to the terminal to be shared by the user further includes: sending the data access password to the terminal of the user to be shared.
一实施例中,在所述发送数据分享请求至所述云端服务器之前,还包括获取待分享用户数据的标识信息。In an embodiment, before the sending the data sharing request to the cloud server, the method further includes: acquiring identifier information of the user data to be shared.
一实施例中,所述发送数据分享请求至所述云端服务器,包括:In an embodiment, the sending a data sharing request to the cloud server includes:
进入分享界面,所述分享界面中显示有待分享用户数据;Entering a sharing interface, where the user data to be shared is displayed in the sharing interface;
当用户点击了所述待分享用户数据时,发送数据分享请求至所述云端服务器。When the user clicks on the user data to be shared, a data sharing request is sent to the cloud server.
一实施例中,在所述发送所述数据分享链接至目标用户的终端之后,还包括:In an embodiment, after the sending the data sharing link to the target user's terminal, the method further includes:
获取所述云端服务器在所述目标用户成功访问所述待分享用户数据后生成的提示信息;Obtaining prompt information generated by the cloud server after the target user successfully accesses the to-be-shared user data;
根据所述提示信息,显示所述待分享用户数据的分享状态。And displaying, according to the prompt information, a sharing status of the user data to be shared.
请参照图2,图2为本发明的数据分享方法的的流程示意图。该数据分享方法可以应用于个人计算机、手持式或膝上型设备、移动电话、个人数字助理(PDA)、媒体播放器等电子设备上,在此不做具体限制。Please refer to FIG. 2. FIG. 2 is a schematic flowchart diagram of a data sharing method according to the present invention. The data sharing method can be applied to electronic devices such as personal computers, handheld or laptop devices, mobile phones, personal digital assistants (PDAs), media players, and the like, and is not specifically limited herein.
本实施例中的数据分享方法包括:The data sharing method in this embodiment includes:
步骤S101:获取用户数据及与其相对应的标识信息并同步至云端服务器;Step S101: acquiring user data and corresponding identification information and synchronizing to the cloud server;
步骤S102:发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及Step S102: Send a data sharing request to the cloud server, where the data sharing request includes identification information of user data to be shared;
步骤S103:接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。Step S103: Receive a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user.
下面将结合图2对本实施例中的数据分享方法做详细地说明。The data sharing method in this embodiment will be described in detail below with reference to FIG.
在步骤S101中,当用户通过电子设备登陆云端服务器应用程序后,根据用户的选择从电子设备的存储器中获取用户数据,其中,用户数据包括图片、视频、通讯录等。In step S101, after the user logs in to the cloud server application through the electronic device, the user data is acquired from the memory of the electronic device according to the user's selection, wherein the user data includes a picture, a video, an address book, and the like.
在获取到用户数据后,用户可以通过云端服务器应用程序对用户数据进行编辑。在此,用户对用户数据进行编辑包括编辑用户数据的分享范围。例如,将A图片的分享范围设置为“朋友”,将B视频的分享范围设置为“家人”等。当用户将A图片的分享范围设置为“朋友”后,“朋友”就是A图片的标识信息,电子设备将获取该A图片的标识信息,并将该A图片及其标识信息同步至云端服务器。在此需要说明的是,用户数据的标识信息不限于用户数据的分享范围,也可以为其他的起到标识作用的信息,在此不做具体限制。After the user data is obtained, the user can edit the user data through the cloud server application. Here, the user editing the user data includes editing the sharing range of the user data. For example, the sharing range of the A picture is set to "friend", and the sharing range of the B video is set to "family" and the like. After the user sets the sharing range of the A picture to "friend", the "friend" is the identification information of the A picture, and the electronic device acquires the identification information of the A picture, and synchronizes the A picture and its identification information to the cloud server. It should be noted that the identification information of the user data is not limited to the sharing range of the user data, and may also be other information that plays the role of identification, and is not specifically limited herein.
另外,在本实施例中,多个用户数据可以对应一个标识信息,即用户数据的标识信息不是用户数据的唯一标识信息。例如,将A图片、B图片、C视频的分享范围均设置为“朋友”。当然,在其他实施例中,用户数据的标识信息也可以为用户数据的唯一标识信息,例如将用户数据的地址信息作为标识信息,在此不做具体限制。In addition, in this embodiment, multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data. For example, the sharing range of the A picture, the B picture, and the C video is set to "friend". Of course, in other embodiments, the identification information of the user data may also be the unique identification information of the user data, for example, the address information of the user data is used as the identification information, and is not specifically limited herein.
为了可以减少电子设备向云端服务器同步数据的频率,用户在编辑用户数据时,电子设备可以生成一个标识信息列表。该标识信息列表用于保存每个用户数据的标识信息。当用户将所有用户数据编辑完后,电子设备再将用户数据和该标识信息列表同步至云端服务器,使得云端服务器可以保存每个用户数据对应的标识信息。In order to reduce the frequency at which the electronic device synchronizes data with the cloud server, the electronic device may generate a list of identification information when the user edits the user data. The identification information list is used to store identification information of each user data. After the user edits all the user data, the electronic device synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
另外,需要说明的是,在本实施例中,用户数据和与其相对应的标识信息一起同步至云端服务器,在其他实施例中,用户数据和与其相对应的标识信息也可以分别同步至云端服务器,即先同步用户数据至云端服务器,再通过对用户数据进行编辑获得用户数据的标识信息,并将标识信息同步至云端服务器,在此不做具体限制。In addition, it should be noted that, in this embodiment, the user data and the identification information corresponding thereto are synchronized to the cloud server, and in other embodiments, the user data and the corresponding identification information may be separately synchronized to the cloud server. The user data is first synchronized to the cloud server, and the user data is edited to obtain the identification information of the user data, and the identification information is synchronized to the cloud server, and no specific restrictions are imposed thereon.
在步骤S102和S103中,当用户需要分享自己的图片等用户数据时,用户通过点击云端服务器应用程序中的分享入口进入分享界面。在分享界面中,显示有用户数据,用户点击任意一个待分享用户数据后,电子设备将发送数据分享请求至云端服务器,其中,该数据分享请求中包括待分享用户数据的标识信息。In steps S102 and S103, when the user needs to share user data such as his own picture, the user enters the sharing interface by clicking the sharing portal in the cloud server application. In the sharing interface, the user data is displayed. After the user clicks on any of the user data to be shared, the electronic device sends a data sharing request to the cloud server, where the data sharing request includes the identification information of the user data to be shared.
例如,用户预先设置了10张图片的标识信息为“朋友”,当用户点击分享入口进入分享界面后,用户点击任意一张标识信息为“朋友”的图片,表示用户希望将标识信息为“朋友”的10张图片均分享出去。此时,电子设备将携带有该“朋友”标识信息的数据分享请求发送至云端服务器。需要说明的是,数据分享请求携带的待分享用户数据的标识信息不局限一个,也可以为多个,例如,数据分享请求包括“朋友”标识信息和“亲人”标识信息,即用户希望将标识信息为“朋友”和“亲人”的用户数据分享给目标用户。For example, the user sets the identification information of 10 pictures in advance as “friends”. When the user clicks the sharing portal to enter the sharing interface, the user clicks on any picture whose identification information is “friend”, indicating that the user wishes to identify the information as “friends”. All 10 pictures were shared. At this time, the electronic device sends a data sharing request carrying the "friend" identification information to the cloud server. It should be noted that the identifier information of the user data to be shared carried in the data sharing request is not limited to one, and may be multiple. For example, the data sharing request includes “friend” identification information and “relative person” identification information, that is, the user wishes to identify the identifier. The user data of the "friends" and "relatives" is shared with the target users.
当云端服务器接收到该数据分享请求时,将从该数据分享请求中解析出待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享链接,再将生成的数据分享链接发送至电子设备。When the cloud server receives the data sharing request, the identifier information of the user data to be shared is parsed from the data sharing request, and a data sharing link is generated according to the identification information of the user data to be shared, and then the generated data sharing link is sent. To electronic devices.
当电子设备接收到云端服务器反馈回的数据分享链接后,根据用户的选择将该数据分享链接发送至目标用户的终端,从而使得目标用户通过点击该数据分享链接即可以浏览待分享用户数据。此时,目标用户仅仅可以观看到待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性。After receiving the data sharing link fed back by the cloud server, the electronic device sends the data sharing link to the terminal of the target user according to the user's selection, so that the target user can browse the user data to be shared by clicking the data sharing link. At this time, the target user can only view the user data to be shared, and cannot view other user data, thereby improving the security of the user data.
本实施例中的数据分享方法,通过将用户数据和与其相对应的标识信息同步至云端服务器,再发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器,当接收到云端服务器根据待分享用户数据的标识信息生成的数据分享链接后,将该数据分享链接发送至目标用户的终端,使得目标用户可以通过数据分享链接浏览待分享用户数据。该数据分享方法可以让目标用户仅能浏览待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性,同时给分享数据提供便利性。The data sharing method in this embodiment synchronizes the user data and the corresponding identification information to the cloud server, and then sends the data sharing request carrying the identification information of the user data to be shared to the cloud server, and receives the cloud server according to the After sharing the data sharing link generated by the identification information of the user data, the data sharing link is sent to the terminal of the target user, so that the target user can browse the user data to be shared through the data sharing link. The data sharing method allows the target user to browse only the user data to be shared, and cannot view other user data, thereby improving the security of the user data and facilitating the sharing of data.
在一实施例中,请参照图3,图3为本发明的数据分享方法的另一流程示意图。该数据分享方法可以应用于个人计算机、手持式或膝上型设备、移动电话、个人数字助理(PDA)、媒体播放器等电子设备上,在此不做具体限制。In an embodiment, please refer to FIG. 3. FIG. 3 is another schematic flowchart of a data sharing method according to the present invention. The data sharing method can be applied to electronic devices such as personal computers, handheld or laptop devices, mobile phones, personal digital assistants (PDAs), media players, and the like, and is not specifically limited herein.
本实施例中的数据分享方法包括:The data sharing method in this embodiment includes:
步骤S201:获取用户数据,并生成所述用户数据的编辑界面;通过所述编辑界面获取所述用户数据的标识信息;将所述用户数据和与其相对应的标识信息同步至所述云端服务器;Step S201: Acquiring user data, and generating an editing interface of the user data; acquiring identification information of the user data through the editing interface; and synchronizing the user data and the identification information corresponding thereto to the cloud server;
步骤S202:获取待分享用户数据的标识信息;Step S202: Obtain identification information of user data to be shared.
步骤S203:发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括所述待分享用户数据的标识信息;Step S203: Send a data sharing request to the cloud server, where the data sharing request includes the identification information of the user data to be shared;
步骤S204:接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接和数据访问密码,并发送所述数据分享链接和数据访问密码至目标用户的终端;Step S204: Receive a data sharing link and a data access password generated by the cloud server according to the identifier information of the user data to be shared, and send the data sharing link and the data access password to the terminal of the target user;
步骤S205:获取所述云端服务器在所述目标用户成功访问所述待分享用户数据后生成的提示信息;根据所述提示信息,显示所述待分享用户数据的分享状态。Step S205: Acquire the prompt information generated by the cloud server after the target user successfully accesses the data to be shared, and display the sharing status of the user data to be shared according to the prompt information.
下面将结合图3对本实施例中的数据分享方法做详细地说明。The data sharing method in this embodiment will be described in detail below with reference to FIG.
在步骤S201中,当用户通过电子设备登陆云端服务器应用程序后,根据用户的选择从电子设备的存储器中获取用户数据,其中,用户数据包括图片、视频、通讯录等。In step S201, after the user logs in to the cloud server application through the electronic device, the user data is acquired from the memory of the electronic device according to the user's selection, wherein the user data includes a picture, a video, an address book, and the like.
在获取用户数据后,电子设备将生成用户数据的编辑界面,并将该编辑界面显示出来。用户可以在该编辑界面对用户数据进行编辑。在此,用户对用户数据进行编辑包括编辑用户数据的分享范围。例如,将A图片的分享范围设置为“朋友”,将B视频的分享范围设置为“家人”等等。当用户将A图片的分享范围设置为朋友后,该“朋友”就是A图片的标识信息,电子设备将获取该A图片的标识信息,并将该A图片及其对应的标识信息同步至云端服务器,即电子设备通过编辑界面获取用户对用户数据设置的标识信息,并将获取到的用户数据及其对应的标识信息同步至云端服务器。在此需要说明的是,用户数据的标识信息不限于用户数据的分享范围,也可以为其他的起到标识作用的信息,在此不做具体限制。After the user data is acquired, the electronic device generates an editing interface of the user data and displays the editing interface. The user can edit the user data in the editing interface. Here, the user editing the user data includes editing the sharing range of the user data. For example, set the sharing range of the A picture to "friend", set the sharing range of the B video to "family" and the like. After the user sets the sharing range of the A picture as a friend, the “friend” is the identification information of the A picture, and the electronic device acquires the identification information of the A picture, and synchronizes the A picture and the corresponding identification information to the cloud server. The electronic device obtains the identification information set by the user for the user data through the editing interface, and synchronizes the obtained user data and the corresponding identification information to the cloud server. It should be noted that the identification information of the user data is not limited to the sharing range of the user data, and may also be other information that plays the role of identification, and is not specifically limited herein.
另外,在本实施例中,多个用户数据可以对应一个标识信息,即用户数据的标识信息不是用户数据的唯一标识信息。例如,将A图片、B图片、C视频的分享范围均设置为“朋友”。当然,在其他实施例中,用户数据的标识信息也可以为用户数据的唯一标识信息,例如将用户数据的地址信息作为标识信息,在此不做具体限制。In addition, in this embodiment, multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data. For example, the sharing range of the A picture, the B picture, and the C video is set to "friend". Of course, in other embodiments, the identification information of the user data may also be the unique identification information of the user data, for example, the address information of the user data is used as the identification information, and is not specifically limited herein.
为了可以减少电子设备向云端服务器同步数据的频率,用户在编辑用户数据时,电子设备可以生成一个标识信息列表。该标识信息列表用于保存每个用户数据的标识信息。当用户将所有用户数据编辑完后,电子设备再将用户数据和该标识信息列表同步至云端服务器,使得云端服务器可以保存每个用户数据对应的标识信息。In order to reduce the frequency at which the electronic device synchronizes data with the cloud server, the electronic device may generate a list of identification information when the user edits the user data. The identification information list is used to store identification information of each user data. After the user edits all the user data, the electronic device synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
另外,需要说明的是,在本实施例中,用户数据和与其相对应的标识信息一起同步至云端服务器,在其他实施例中,用户数据和与其相对应的标识信息页可以分别同步至云端服务器,即先同步用户数据至云端服务器,再通过对用户数据进行编辑获得用户数据的标识信息,并将标识信息同步至云端服务器,在此不做具体限制。In addition, in this embodiment, the user data and the identification information corresponding thereto are synchronized to the cloud server, and in other embodiments, the user data and the corresponding identification information page can be synchronized to the cloud server respectively. The user data is first synchronized to the cloud server, and the user data is edited to obtain the identification information of the user data, and the identification information is synchronized to the cloud server, and no specific restrictions are imposed thereon.
在步骤S202至S203中,当用户需要分享自己的图片等用户数据时,用户通过点击云端服务器应用程序中的分享入口进入分享界面。在分享界面中,显示出用户数据及与其对应的标识信息,用户点击任意一个待分享用户数据后,电子设备将获取到该待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享请求,再将生成的数据分享请求发送至云端服务器中。可以理解的是,数据分享请求包括待分享用户数据的标识信息。In steps S202 to S203, when the user needs to share user data such as his own picture, the user enters the sharing interface by clicking the sharing portal in the cloud server application. In the sharing interface, the user data and the corresponding identification information are displayed. After the user clicks on any of the user data to be shared, the electronic device obtains the identification information of the user data to be shared, and generates the identification information according to the user data to be shared. Data sharing request, and then send the generated data sharing request to the cloud server. It can be understood that the data sharing request includes identification information of the user data to be shared.
例如,用户预先设置了10张图片的标识信息为“朋友”,当用户点击分享入口进入分享界面后,用户点击任意一张标识信息为“朋友”的图片,表示用户希望将标识信息为“朋友”的10张图片均分享出去。此时,电子设备将携带有该“朋友”标识信息的数据分享请求发送至云端服务器。需要说明的是,数据分享请求携带的待分享用户数据的标识信息不局限一个,也可以为多个,例如,数据分享请求包括“朋友”标识信息和“亲人”标识信息,即用户希望将标识信息为“朋友”和“亲人”的用户数据分享给目标用户。For example, the user sets the identification information of 10 pictures in advance as “friends”. When the user clicks the sharing portal to enter the sharing interface, the user clicks on any picture whose identification information is “friend”, indicating that the user wishes to identify the information as “friends”. All 10 pictures were shared. At this time, the electronic device sends a data sharing request carrying the "friend" identification information to the cloud server. It should be noted that the identifier information of the user data to be shared carried in the data sharing request is not limited to one, and may be multiple. For example, the data sharing request includes “friend” identification information and “relative person” identification information, that is, the user wishes to identify the identifier. The user data of the "friends" and "relatives" is shared with the target users.
当云端服务器接收到该数据分享请求时,将从该数据分享请求中解析出待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享链接和数据访问密码,并将生成的数据分享链接和数据访问密码发送至电子设备。When the cloud server receives the data sharing request, the identifier information of the user data to be shared is parsed from the data sharing request, and the data sharing link and the data access password are generated according to the identification information of the user data to be shared, and the generated data is generated. Data sharing links and data access passwords are sent to the electronic device.
在步骤S204至S205中,当电子设备接收到由云端服务器发送的数据分享链接和数据访问密码后,将发送该数据分享链接和数据访问密码至目标用户的终端,这样目标用户通过点击该数据分享链接并输入数据访问密码即可以浏览待分享用户数据。此时,目标用户仅可以观看到待分享用户数据,而无法观看其他的用户数据,从而提高了用户数据的安全性。In steps S204 to S205, after the electronic device receives the data sharing link and the data access password sent by the cloud server, the data sharing link and the data access password are sent to the target user's terminal, so that the target user clicks the data sharing. You can browse the user data to be shared by linking and entering the data access password. At this time, the target user can only view the user data to be shared, and cannot view other user data, thereby improving the security of the user data.
为了进一步地保护用户数据,数据访问密码设置为具有一定使用期限。例如,从生成该数据访问密码开始到预设时间段内,该数据访问密码为有效,用户可以通过输入该数据访问密码成功访问待分享用户数据。当超过该预设时间段内,则该数据访问密码将无效,此时输入该数据访问密码将无法访问待分享用户数据。To further protect user data, the data access password is set to have a certain lifetime. For example, the data access password is valid from the time when the data access password is generated to the preset time period, and the user can successfully access the user data to be shared by inputting the data access password. When the preset time period is exceeded, the data access password will be invalid. At this time, entering the data access password will not be able to access the user data to be shared.
当目标用户成功访问待分享用户数据后,云端服务器将生成一个提示信息,并将提示信息发送给电子设备。电子设备获取到该提示信息后,将根据该提示信息显示待分享用户数据的分享状态。例如,根据该提示信息显示一对话框,对话框内显示出待分享用户数据已经分享成功的字样,等等。这样,用户就可以知道目标用户已经成功浏览了待分享用户数据。After the target user successfully accesses the data to be shared, the cloud server generates a prompt message and sends the prompt information to the electronic device. After the electronic device obtains the prompt information, the sharing status of the user data to be shared is displayed according to the prompt information. For example, according to the prompt information, a dialog box is displayed, and the dialog box displays the words to be shared that the user data has been successfully shared, and the like. In this way, the user can know that the target user has successfully browsed the user data to be shared.
为了更加清晰地解释说明本实施例中的数据分享方法,下面将结合具体的应用场景来说明。In order to explain the data sharing method in this embodiment more clearly, the following will be described in conjunction with a specific application scenario.
在该应用场景中,第一用户打开手机中的云端服务器的应用程序,成功登陆该应用程序后,第一用户点击导入数据按钮,使得该应用程序可以获取到手机中的用户数据。In the application scenario, the first user opens the application of the cloud server in the mobile phone, and after successfully logging in to the application, the first user clicks the import data button, so that the application can obtain the user data in the mobile phone.
当获取完用户数据后,应用程序将弹出用户数据的编辑界面。在该编辑界面中,显示出用户数据。在每个用户数据的旁边都设有选择栏。该选择栏内存有分享用户预先设置的标识信息,例如“朋友”、“家人”、“工作”、“生活”等等标识信息。第一用户通过选择栏设定每个用户数据的标识信息。例如第一用户在图片A对应的选择栏中选择“朋友”,此时手机将保存该图片A的标识信息为“朋友”,并将图片A及其标识信息“朋友”同步至云端服务器,以此类推,可以完成对每个用户数据标识信息的设置,并将用户数据及其对应的标识信息同步至云端服务器。After the user data is obtained, the application will pop up the editing interface of the user data. In the editing interface, user data is displayed. There is a selection bar next to each user data. The selection bar has identification information that is shared by the user, such as "friends", "family", "work", "life", and the like. The first user sets identification information of each user data through a selection field. For example, the first user selects “friends” in the selection column corresponding to the picture A. At this time, the mobile phone saves the identification information of the picture A as “friends”, and synchronizes the picture A and its identification information “friends” to the cloud server. Such a push can complete the setting of each user data identification information, and synchronize the user data and its corresponding identification information to the cloud server.
当第一用户需要分享标识信息为“家人”的用户数据给第二用户时,第一用户通过点击分享入口进入分享界面,在该分享界面内,将显示出用户数据以及用户数据对应的标识信息。第一用户点击标识信息为“家人”的任意一个用户数据,此时,手机将发送一个携带有“家人”标识信息的数据分享请求至云端服务器。When the first user needs to share the user data whose identification information is “family” to the second user, the first user enters the sharing interface by clicking the sharing portal, and the user data and the identification information corresponding to the user data are displayed in the sharing interface. . The first user clicks on any user data whose identification information is “family”. At this time, the mobile phone sends a data sharing request carrying the “family” identification information to the cloud server.
云端服务器通过解析该数据分享请求获取到“家人”标识信息,并获取其内存储的带有“家人”标识信息的所有用户数据,根据该带有“家人”标识信息的用户数据生成数据分享链接和数据访问密码,并将该数据分享链接和数据访问密码发送给第一用户。The cloud server obtains the “family” identification information by parsing the data sharing request, and obtains all user data stored in the “family” identification information, and generates a data sharing link according to the user data with the “family” identification information. And the data access password, and the data sharing link and the data access password are sent to the first user.
第一用户将接收到的数据分享链接和数据访问密码转发给第二用户。第二用户点击数据分享链接时,首先呈现一个输入访问密码的对话框,第二用户输入数据访问密码后,将可以成功浏览第一用户分享的用户数据。The first user forwards the received data sharing link and data access password to the second user. When the second user clicks on the data sharing link, a dialog box for inputting the access password is first presented. After the second user inputs the data access password, the user data shared by the first user can be successfully browsed.
上述应用场景仅仅是为了进一步说明本实施例中的数据分享方法,不能用于限制本实施例中数据分享方法的适用范围。The foregoing application scenario is only for further explaining the data sharing method in this embodiment, and cannot be used to limit the applicable scope of the data sharing method in this embodiment.
本实施例中的数据分享方法,通过将用户数据和与其相对应的标识信息同步至云端服务器,再发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器,当接收到云端服务器根据待分享用户数据的标识信息生成的数据分享链接和数据访问密码后,将该数据分享链接和数据访问密码发送至目标用户的终端,使得目标用户可以通过数据分享链接和数据访问密码浏览待分享用户数据。该数据分享方法可以让目标用户仅能浏览待分享用户数据,而无法观看其他的用户数据,同时,通过数据访问密码可以进一步保护用户数据,增加用户数据的安全性。The data sharing method in this embodiment synchronizes the user data and the corresponding identification information to the cloud server, and then sends the data sharing request carrying the identification information of the user data to be shared to the cloud server, and receives the cloud server according to the After sharing the data sharing link and the data access password generated by the identification information of the user data, the data sharing link and the data access password are sent to the target user's terminal, so that the target user can browse the shared user data through the data sharing link and the data access password. . The data sharing method allows the target user to browse only the user data to be shared, but cannot view other user data. At the same time, the data access password can further protect the user data and increase the security of the user data.
本发明实施例还提供一种数据分享装置,包括:The embodiment of the invention further provides a data sharing device, comprising:
获取单元,用于获取用户数据及与其相对应的标识信息并同步至云端服务器;An obtaining unit, configured to acquire user data and corresponding identification information and synchronize to the cloud server;
发送单元,用于发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及a sending unit, configured to send a data sharing request to the cloud server, where the data sharing request includes identifier information of the user data to be shared;
接收发送单元,用于接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。The receiving and sending unit is configured to receive a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user.
一实施例中,所述获取单元具体用于:In an embodiment, the obtaining unit is specifically configured to:
获取所述用户数据,并生成所述用户数据的编辑界面;Obtaining the user data, and generating an editing interface of the user data;
通过所述编辑界面获取所述用户数据的标识信息;以及Obtaining identification information of the user data through the editing interface;
将所述用户数据及与其相对应的标识信息同步至所述云端服务器。Synchronizing the user data and the identification information corresponding thereto to the cloud server.
一实施例中,所述获取单元具体用于:In an embodiment, the obtaining unit is specifically configured to:
通过所述编辑界面获取用户编辑的分享范围;Obtaining a shared range edited by the user through the editing interface;
将所述分享范围作为所述用户数据的标识信息。The sharing range is used as identification information of the user data.
一实施例中,所述接收发送单元还用于:In an embodiment, the receiving and sending unit is further configured to:
接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据访问密码,并发送所述数据访问密码至所述待分享用户的终端。Receiving a data access password generated by the cloud server according to the identifier information of the user data to be shared, and sending the data access password to the terminal of the user to be shared.
一实施例中,所述发送单元具体用于;In an embodiment, the sending unit is specifically configured to:
进入分享界面,所述分享界面中显示有待分享用户数据;Entering a sharing interface, where the user data to be shared is displayed in the sharing interface;
当用户点击了所述待分享用户数据时,发送数据分享请求至所述云端服务器。When the user clicks on the user data to be shared, a data sharing request is sent to the cloud server.
一实施例中,所述数据分享装置还包括提示单元,所述提示单元用于:In an embodiment, the data sharing device further includes a prompting unit, the prompting unit is configured to:
获取所述云端服务器在所述目标用户成功访问所述待分享用户数据后生成的提示信息;Obtaining prompt information generated by the cloud server after the target user successfully accesses the to-be-shared user data;
根据所述提示信息,显示所述待分享用户数据的分享状态。And displaying, according to the prompt information, a sharing status of the user data to be shared.
请参照图4,图4为本发明数据分享装置的结构示意图。本实施例中的数据分享装置300可以应用于个人计算机、手持式或膝上型设备、移动电话、个人数字助理(PDA)、媒体播放器等电子设备上,在此不做具体限制。Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a data sharing apparatus according to the present invention. The data sharing device 300 in this embodiment can be applied to an electronic device such as a personal computer, a handheld or a laptop device, a mobile phone, a personal digital assistant (PDA), a media player, and the like, and is not specifically limited herein.
本实施例中的数据分享装置300包括获取单元301、发送单元302和接收发送单元303。其中,获取单元301用于获取用户数据及与其相对应的标识信息并同步至云端服务器;发送单元302用于发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;接收发送单元303用于接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。The data sharing device 300 in this embodiment includes an obtaining unit 301, a transmitting unit 302, and a receiving and transmitting unit 303. The obtaining unit 301 is configured to acquire the user data and the identifier information corresponding thereto and synchronize to the cloud server, and the sending unit 302 is configured to send a data sharing request to the cloud server, where the data sharing request includes the user data to be shared. The identifier sending information is used by the receiving and sending unit 303 to receive the data sharing link generated by the cloud server according to the identifier information of the user data to be shared, and send the data sharing link to the terminal of the target user.
下面将结合图4对本实施例中的数据分享装置300做详细地说明。The data sharing device 300 in this embodiment will be described in detail below with reference to FIG.
当用户通过电子设备登陆云端服务器应用程序后,获取单元301根据用户的选择从电子设备的存储器中获取用户数据,其中,用户数据包括图片、视频、通讯录等。After the user logs in to the cloud server application through the electronic device, the obtaining unit 301 acquires user data from the memory of the electronic device according to the user's selection, wherein the user data includes a picture, a video, an address book, and the like.
在获取单元301获取到用户数据后,用户可以通过云端服务器应用程序对用户数据进行编辑。在此,用户对用户数据进行编辑包括编辑用户数据的分享范围。例如,将A图片的分享范围设置为“朋友”,将B视频的分享范围设置为“家人”等。当用户将A图片的分享范围设置为“朋友”后,获取单元301将获取该A图片的分享范围“朋友”,并将该“朋友”保存为A图片的标识信息,再将该A图片及其标识信息同步至云端服务器。在此需要说明的是,用户数据的标识信息不限于用户数据的分享范围,也可以为其他的起到标识作用的信息,在此不做具体限制。After the obtaining unit 301 obtains the user data, the user can edit the user data through the cloud server application. Here, the user editing the user data includes editing the sharing range of the user data. For example, the sharing range of the A picture is set to "friend", and the sharing range of the B video is set to "family" and the like. After the user sets the sharing range of the A picture as "friend", the obtaining unit 301 will acquire the sharing range "friend" of the A picture, and save the "friend" as the identification information of the A picture, and then the A picture and Its identification information is synchronized to the cloud server. It should be noted that the identification information of the user data is not limited to the sharing range of the user data, and may also be other information that plays the role of identification, and is not specifically limited herein.
另外,在本实施例中,多个用户数据可以对应一个标识信息,即用户数据的标识信息不是用户数据的唯一标识信息。例如,将A图片、B图片、C视频的分享范围均设置为“朋友”。当然,在其他实施例中,用户数据的标识信息也可以为用户数据的唯一标识信息,例如将用户数据的地址信息作为标识信息,在此不做具体限制。In addition, in this embodiment, multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data. For example, the sharing range of the A picture, the B picture, and the C video is set to "friend". Of course, in other embodiments, the identification information of the user data may also be the unique identification information of the user data, for example, the address information of the user data is used as the identification information, and is not specifically limited herein.
为了可以减少电子设备向云端服务器同步数据的频率,用户在编辑用户数据时,获取单元301可以生成一个标识信息列表。该标识信息列表用于保存每个用户数据的标识信息。当用户将所有用户数据编辑完后,获取单元301再将用户数据和该标识信息列表同步至云端服务器,使得云端服务器可以保存每个用户数据对应的标识信息。In order to reduce the frequency of the electronic device synchronizing data to the cloud server, the user acquiring 301 may generate a list of identification information when the user edits the user data. The identification information list is used to store identification information of each user data. After the user edits all the user data, the obtaining unit 301 synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
当用户需要分享用户数据时,用户通过点击云端服务器应用程序中的分享入口进入分享界面。在分享界面中,显示有用户数据及与其相对应的标识信息,用户点击任意一个待分享用户数据后,发送单元302将获取该带分享用户数据对应的标识信息,并发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器。When the user needs to share user data, the user enters the sharing interface by clicking the sharing portal in the cloud server application. In the sharing interface, the user data and the corresponding identification information are displayed. After the user clicks on any of the user data to be shared, the sending unit 302 obtains the identification information corresponding to the shared user data, and sends the user data to be shared. A data sharing request that identifies the information to the cloud server.
例如,用户点击分享入口进入分享界面后,用户点击标识信息“朋友”的一张图片,这表示用户希望将标识信息为“朋友”的所有用户数据分享给好友。此时,发送单元302将获取该图片的标识信息,并将携带有该“朋友”标识信息的数据分享请求发送至云端服务器。需要说明的是,数据分享请求携带的待分享用户数据的标识信息不局限一个,也可以为多个,例如,数据分享请求包括“朋友”标识信息和“亲人”标识信息,即用户希望将标识信息为“朋友”和“亲人”的用户数据分享给目标用户。For example, after the user clicks the sharing portal to enter the sharing interface, the user clicks on a picture of the identification information “friends”, which means that the user wants to share all the user data whose identification information is “friends” to the friend. At this time, the sending unit 302 will acquire the identification information of the picture, and send the data sharing request carrying the “friend” identification information to the cloud server. It should be noted that the identifier information of the user data to be shared carried in the data sharing request is not limited to one, and may be multiple. For example, the data sharing request includes “friend” identification information and “relative person” identification information, that is, the user wishes to identify the identifier. The user data of the "friends" and "relatives" is shared with the target users.
当云端服务器接收到该数据分享请求时,将从该数据分享请求中解析出待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享链接,再将生成的数据分享链接发送至电子设备的接收发送单元303。When the cloud server receives the data sharing request, the identifier information of the user data to be shared is parsed from the data sharing request, and a data sharing link is generated according to the identification information of the user data to be shared, and then the generated data sharing link is sent. To the receiving and transmitting unit 303 of the electronic device.
当接收发送单元303接收到云端服务器反馈回的数据分享链接后,根据用户的选择将该数据分享链接发送至目标用户的终端,从而使得目标用户通过点击该数据分享链接即可以浏览待分享用户数据。此时,目标用户仅仅可以观看到待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性。After receiving the data sharing link fed back by the cloud server, the receiving and sending unit 303 sends the data sharing link to the terminal of the target user according to the user's selection, so that the target user can browse the user data to be shared by clicking the data sharing link. . At this time, the target user can only view the user data to be shared, and cannot view other user data, thereby improving the security of the user data.
本实施例中的数据分享装置300,其通过获取单元301获取用户数据及其标识信息并同步至云端服务器;由发送单元302发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器,当接收发送单元303接收到云端服务器根据待分享用户数据的标识信息生成的数据分享链接后,将该数据分享链接发送至目标用户的终端,使得目标用户可以通过数据分享链接浏览待分享用户数据。该数据分享装置可以让目标用户仅能浏览待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性,同时给分享数据提供便利性。The data sharing device 300 in this embodiment acquires the user data and the identification information thereof by the obtaining unit 301 and synchronizes to the cloud server; the sending unit 302 sends a data sharing request carrying the identification information of the user data to be shared to the cloud server. After receiving the data sharing link generated by the cloud server according to the identification information of the user data to be shared, the receiving and sending unit 303 sends the data sharing link to the terminal of the target user, so that the target user can browse the user data to be shared through the data sharing link. The data sharing device allows the target user to browse only the user data to be shared, and cannot view other user data, thereby improving the security of the user data and facilitating the sharing of data.
请参照图5,图5为本发明数据分享装置的另一结构示意图。本实施例中的数据分享装置400可以应用于个人计算机、手持式或膝上型设备、移动电话、个人数字助理(PDA)、媒体播放器等电子设备上,在此不做具体限制。Please refer to FIG. 5. FIG. 5 is another schematic structural diagram of a data sharing apparatus according to the present invention. The data sharing device 400 in this embodiment may be applied to an electronic device such as a personal computer, a handheld or a laptop device, a mobile phone, a personal digital assistant (PDA), a media player, and the like, and is not specifically limited herein.
本实施例中的数据分享装置400包括获取单元401、发送单元402、接收发送单元403和提示单元404。The data sharing device 400 in this embodiment includes an obtaining unit 401, a transmitting unit 402, a receiving and transmitting unit 403, and a prompting unit 404.
当用户通过电子设备登陆云端服务器应用程序后,获取单元401根据用户的选择从电子设备的存储器中获取用户数据,其中,用户数据包括图片、视频、通讯录等。After the user logs in to the cloud server application through the electronic device, the obtaining unit 401 acquires user data from the memory of the electronic device according to the user's selection, wherein the user data includes a picture, a video, an address book, and the like.
在获取单元401获取用户数据后,获取单元401将生成用户数据的编辑界面,并将该编辑界面显示出来。用户可以在该编辑界面对用户数据进行编辑。在此,用户对用户数据进行编辑包括编辑用户数据的分享范围。例如,将A图片的分享范围设置为“朋友”,将B视频的分享范围设置为“家人”等等。当用户将A图片的分享范围设置为朋友后,获取单元401将获取该A图片的分享范围“朋友”,并将该“朋友”保存为A图片的标识信息,再将该A图片及其标识信息同步至云端服务器,即获取单元401通过编辑界面获取用户对用户数据设置的标识信息,并将获取到的标识信息同步至云端服务器。在此需要说明的是,用户数据的标识信息不限于用户数据的分享范围,也可以为其他的起到标识作用的信息,在此不做具体限制。After the obtaining unit 401 acquires the user data, the obtaining unit 401 generates an editing interface of the user data, and displays the editing interface. The user can edit the user data in the editing interface. Here, the user editing the user data includes editing the sharing range of the user data. For example, set the sharing range of the A picture to "friend", set the sharing range of the B video to "family" and the like. After the user sets the sharing range of the A picture as a friend, the obtaining unit 401 acquires the sharing range “friend” of the A picture, and saves the “friend” as the identification information of the A picture, and then the A picture and the identifier thereof. The information is synchronized to the cloud server, that is, the obtaining unit 401 acquires the identification information set by the user for the user data through the editing interface, and synchronizes the obtained identification information to the cloud server. It should be noted that the identification information of the user data is not limited to the sharing range of the user data, and may also be other information that plays the role of identification, and is not specifically limited herein.
另外,在本实施例中,多个用户数据可以对应一个标识信息,即用户数据的标识信息不是用户数据的唯一标识信息。例如,将A图片、B图片、C视频的分享范围均设置为“朋友”。当然,在其他实施例中,用户数据的标识信息也可以为用户数据的唯一标识信息,例如将用户数据的地址信息作为标识信息,在此不做具体限制。In addition, in this embodiment, multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data. For example, the sharing range of the A picture, the B picture, and the C video is set to "friend". Of course, in other embodiments, the identification information of the user data may also be the unique identification information of the user data, for example, the address information of the user data is used as the identification information, and is not specifically limited herein.
为了可以减少电子设备向云端服务器同步数据的频率,用户在编辑用户数据时,获取单元401可以生成一个标识信息列表。该标识信息列表用于保存每个用户数据的标识信息。当用户将所有用户数据编辑完后,获取单元401再将用户数据和该标识信息列表同步至云端服务器,使得云端服务器可以保存每个用户数据对应的标识信息。In order to reduce the frequency of the electronic device synchronizing data to the cloud server, the obtaining unit 401 may generate a list of identification information when the user edits the user data. The identification information list is used to store identification information of each user data. After the user edits all the user data, the obtaining unit 401 synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
当用户需要分享自己的图片等用户数据时,用户通过点击云端服务器应用程序中的分享入口进入分享界面。在分享界面中,显示有用户数据及与其对应的标识信息,用户点击任意一个待分享用户数据后,发送单元402将获取到待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享请求,再将生成的数据分享请求发送至云端服务器中,可以理解的是,数据分享请求包括待分享用户数据的标识信息。When the user needs to share user data such as his own picture, the user enters the sharing interface by clicking the sharing portal in the cloud server application. In the sharing interface, the user data and the corresponding identification information are displayed. After the user clicks on any of the user data to be shared, the sending unit 402 obtains the identification information of the user data to be shared, and generates the identification information according to the user data to be shared. The data sharing request sends the generated data sharing request to the cloud server. It can be understood that the data sharing request includes the identification information of the user data to be shared.
例如,用户点击分享入口进入分享界面后,用户点击标识信息为“朋友”的任意一张图片,即用户希望将标识信息为“朋友”的所有用户数据分享给好友。此时,发送单元402将携带有该“朋友”标识信息的数据分享请求发送至云端服务器。需要说明的是,数据分享请求携带的待分享用户数据的标识信息不局限一个,也可以为多个,例如,数据分享请求包括“朋友”标识信息和“亲人”标识信息,即用户希望将标识信息为“朋友”和“亲人”的用户数据分享给目标用户。For example, after the user clicks the sharing portal to enter the sharing interface, the user clicks on any picture whose identification information is “friend”, that is, the user wants to share all the user data whose identification information is “friend” to the friend. At this time, the sending unit 402 sends a data sharing request carrying the "friend" identification information to the cloud server. It should be noted that the identifier information of the user data to be shared carried in the data sharing request is not limited to one, and may be multiple. For example, the data sharing request includes “friend” identification information and “relative person” identification information, that is, the user wishes to identify the identifier. The user data of the "friends" and "relatives" is shared with the target users.
当云端服务器接收到该数据分享请求时,将从该数据分享请求中解析出待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享链接和数据访问密码,并将生成的数据分享链接和数据访问密码发送至接收发送单元403。When the cloud server receives the data sharing request, the identifier information of the user data to be shared is parsed from the data sharing request, and the data sharing link and the data access password are generated according to the identification information of the user data to be shared, and the generated data is generated. The data sharing link and the data access password are sent to the receiving and transmitting unit 403.
当接收发送单元403接收到由云端服务器发送的数据分享链接和数据访问密码后,将发送该数据分享链接和数据访问密码至目标用户的终端,这样目标用户通过点击该数据分享链接并输入数据访问密码即可以浏览待分享用户数据。此时,目标用户仅可以观看到待分享用户数据,而无法观看其他的用户数据,从而提高了用户数据的安全性。After the receiving and transmitting unit 403 receives the data sharing link and the data access password sent by the cloud server, the data sharing link and the data access password are sent to the target user's terminal, so that the target user clicks the data sharing link and inputs the data access. The password allows you to browse the user data to be shared. At this time, the target user can only view the user data to be shared, and cannot view other user data, thereby improving the security of the user data.
为了进一步地保护用户数据,数据访问密码设置为具有一定使用期限。例如,从生成该数据访问密码开始到预设时间段内,该数据访问密码为有效,用户可以通过输入该数据访问密码成功访问待分享用户数据。当超过该预设时间段内,则该数据访问密码将无效,此时输入该数据访问密码将无法访问待分享用户数据。To further protect user data, the data access password is set to have a certain lifetime. For example, the data access password is valid from the time when the data access password is generated to the preset time period, and the user can successfully access the user data to be shared by inputting the data access password. When the preset time period is exceeded, the data access password will be invalid. At this time, entering the data access password will not be able to access the user data to be shared.
当目标用户成功访问待分享用户数据后,云端服务器将生成一个提示信息,并将提示信息发送给提示单元404。提示单元404获取到该提示信息后,将根据该提示信息显示待分享用户数据的分享状态。例如,提示单元404根据该提示信息显示一个对话框,对话框内显示出待分享用户数据已经分享成功的字样,等等。这样,用户就可以知道目标用户已经成功浏览了待分享用户数据。After the target user successfully accesses the data to be shared, the cloud server generates a prompt message and sends the prompt information to the prompting unit 404. After the prompting unit 404 obtains the prompt information, the sharing status of the user data to be shared is displayed according to the prompt information. For example, the prompting unit 404 displays a dialog box according to the prompt information, and the dialog box displays the words to be shared that the user data has been successfully shared, and the like. In this way, the user can know that the target user has successfully browsed the user data to be shared.
本实施例的数据分享装置400,其通过获取单元401获取用户数据及其标识信息并同步至云端服务器;当用户分享用户数据时,发送单元402发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器,当接收发送单元403接收到数据分享链接后,将该数据分享链接发送至目标用户的终端,使得目标用户可以通过数据分享链接浏览待分享用户数据,同时,在目标用户成功浏览待分享用户数据后,提示单元404可以提示用户待分享用户数据的分享状态。该数据分享装置可以让目标用户仅能浏览待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性,同时用户可以及时得知待分享用户数据的分享状态。The data sharing device 400 of the present embodiment acquires the user data and the identification information thereof by the obtaining unit 401 and synchronizes to the cloud server; when the user shares the user data, the sending unit 402 sends a data sharing request that carries the identification information of the user data to be shared. To the cloud server, after the receiving and sending unit 403 receives the data sharing link, the data sharing link is sent to the terminal of the target user, so that the target user can browse the data to be shared through the data sharing link, and simultaneously browse the target user successfully. After sharing the user data, the prompting unit 404 can prompt the user to share the sharing status of the user data. The data sharing device can enable the target user to browse only the user data to be shared, and cannot view other user data, thereby improving the security of the user data, and the user can know the sharing status of the user data to be shared in time.
本发明实施例还提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:The embodiment of the invention further provides a storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the following steps:
获取用户数据及与其相对应的标识信息并同步至云端服务器;Obtain user data and corresponding identification information and synchronize to the cloud server;
发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及Sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared;
接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。Receiving a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and sending the data sharing link to the terminal of the target user.
本发明实施例还提供一种电子设备,该电子设备可以是智能手机、平板电脑等设备。请参照图6,图6为本发明电子设备的结构示意图。本实施例中所描述的电子设备500,包括:至少一个输入设备510;至少一个输出设备520;至少一个处理器530、存储器540和电源550。其中,处理器530可以为中央处理器(CPU,Central Processing Unit)。输入设备510、输出设备520、处理器530、存储器540和电源550通过总线连接。其中,输入设备510具体可为触控面板或者物理按键等。输出设备520具体可为显示屏。存储器540可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。存储器540用于存储一组程序代码。电源550用于向输入设备510、输出设备520、处理器530和存储器540提供电压。输入设备510、输出设备520和处理器530用于调用存储器540中存储的程序代码,执行如下操作:The embodiment of the invention further provides an electronic device, which may be a device such as a smart phone or a tablet computer. Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of an electronic device according to the present invention. The electronic device 500 described in this embodiment includes: at least one input device 510; at least one output device 520; at least one processor 530, a memory 540, and a power source 550. Wherein, the processor 530 can be a central processing unit (CPU, Central) Processing Unit). Input device 510, output device 520, processor 530, memory 540, and power supply 550 are connected by a bus. The input device 510 may specifically be a touch panel or a physical button. The output device 520 can be specifically a display screen. The memory 540 can be a high speed RAM memory or a non-volatile memory (non-volatile) Memory), such as disk storage. Memory 540 is used to store a set of program code. Power supply 550 is used to provide voltage to input device 510, output device 520, processor 530, and memory 540. The input device 510, the output device 520, and the processor 530 are configured to call the program code stored in the memory 540, and perform the following operations:
处理器530用于获取用户数据,具体地,根据用户的选择从电子设备500获取用户数据。处理器530还用于获取用户数据的标识信息,并将用户数据和与其相对应的标识信息同步至云端服务器。The processor 530 is configured to acquire user data, and specifically, acquire user data from the electronic device 500 according to a user's selection. The processor 530 is further configured to acquire identification information of the user data, and synchronize the user data and the identification information corresponding thereto to the cloud server.
一实施例中,在获取用户数据及与其相对应的标识信息并同步至云端服务器时,所述处理器用于执行以下步骤:In an embodiment, when acquiring user data and identification information corresponding thereto and synchronizing to the cloud server, the processor is configured to perform the following steps:
获取所述用户数据,并生成所述用户数据的编辑界面;Obtaining the user data, and generating an editing interface of the user data;
通过所述编辑界面获取所述用户数据的标识信息;以及Obtaining identification information of the user data through the editing interface;
将所述用户数据及与其相对应的标识信息同步至所述云端服务器。Synchronizing the user data and the identification information corresponding thereto to the cloud server.
一实施例中,在通过所述编辑界面获取所述用户数据的标识信息时,所述处理器用于执行以下步骤:In an embodiment, when the identification information of the user data is acquired through the editing interface, the processor is configured to perform the following steps:
通过所述编辑界面获取用户编辑的分享范围;Obtaining a shared range edited by the user through the editing interface;
将所述分享范围作为所述用户数据的标识信息。The sharing range is used as identification information of the user data.
当用户需要分享用户数据时,用户通过点击云端服务器应用程序中的分享入口进入分享界面,用户在分享界面中选择待分享用户数据。处理器530用于获取待分享用户数据的标识信息,并根据该待分享用户数据的标识信息生成数据分享请求,发送数据分享请求至云端服务器。When the user needs to share the user data, the user enters the sharing interface by clicking the sharing portal in the cloud server application, and the user selects the user data to be shared in the sharing interface. The processor 530 is configured to obtain identification information of the user data to be shared, and generate a data sharing request according to the identification information of the user data to be shared, and send a data sharing request to the cloud server.
一实施例中,在发送数据分享请求至所述云端服务器时,所述处理器用于执行以下步骤:In an embodiment, when sending a data sharing request to the cloud server, the processor is configured to perform the following steps:
进入分享界面,所述分享界面中显示有待分享用户数据;Entering a sharing interface, where the user data to be shared is displayed in the sharing interface;
当用户点击了所述待分享用户数据时,发送数据分享请求至所述云端服务器。When the user clicks on the user data to be shared, a data sharing request is sent to the cloud server.
当云端服务器接收到该数据分享请求时,将从该数据分享请求中解析出待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享链接,再将生成的数据分享链接发送至电子设备500。When the cloud server receives the data sharing request, the identifier information of the user data to be shared is parsed from the data sharing request, and a data sharing link is generated according to the identification information of the user data to be shared, and then the generated data sharing link is sent. To the electronic device 500.
一实施例中,在所述发送所述数据分享链接至目标用户的电子设备之后,所述处理器还用于执行以下步骤:In an embodiment, after the sending the data sharing link to the electronic device of the target user, the processor is further configured to perform the following steps:
获取所述云端服务器在所述目标用户成功访问所述待分享用户数据后生成的提示信息;Obtaining prompt information generated by the cloud server after the target user successfully accesses the to-be-shared user data;
根据所述提示信息,显示所述待分享用户数据的分享状态。And displaying, according to the prompt information, a sharing status of the user data to be shared.
处理器530还用于接收云端服务器根据待分享用户数据的标识信息生成的数据分享链接,并发送数据分享链接至目标用户的终端。从而使得目标用户通过点击该数据分享链接即可以浏览待分享用户数据。此时,目标用户仅仅可以观看到待分享用户数据,而无法观看其他的用户数据,提高用户数据的安全性。The processor 530 is further configured to receive a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send a data sharing link to the terminal of the target user. Thereby, the target user can browse the user data to be shared by clicking the data sharing link. At this time, the target user can only view the user data to be shared, and cannot view other user data, thereby improving the security of the user data.
一实施例中,在接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接时,所述处理器用于执行:接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据访问密码;In an embodiment, when receiving the data sharing link generated by the cloud server according to the identifier information of the user data to be shared, the processor is configured to: receive the identifier information of the cloud server according to the user data to be shared. Generated data access password;
一实施例中,在发送所述数据分享链接至目标用户的电子设备时,所述处理器还用于执行:发送所述数据访问密码至所述目标用户的电子设备。In an embodiment, when the data sharing link is sent to the electronic device of the target user, the processor is further configured to: send the data access password to the electronic device of the target user.
具体实现中,本实施例中所描述的输入设备510、输出设备520和处理器530可执行本发明任一实施例提供的一种数据分享方法中所描述的实现方式,为了说明书的简洁性,在此不再赘述。In an implementation, the input device 510, the output device 520, and the processor 530, which are described in this embodiment, may be implemented in a data sharing method provided by any embodiment of the present invention. For the simplicity of the description, I will not repeat them here.
本实施例的电子设备500,其处理器530执行本发明提供的数据分享方法对应的程序代码,使得该电子设备500可以仅将待分享用户数据呈现给目标用户,而其他用户数据则不会呈现给目标用户,增强用户数据的安全性。The electronic device 500 of the embodiment, the processor 530 executes the program code corresponding to the data sharing method provided by the present invention, so that the electronic device 500 can only present the user data to be shared to the target user, and other user data is not presented. Enhance the security of user data to target users.
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,具体的电子设备500可以包括比图所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。It will be understood by those skilled in the art that the structure shown in FIG. 6 is only a block diagram of a partial structure related to the solution of the present application. The specific electronic device 500 may include more or less components than those shown in the figure, or a combination of some Some components, or have different component arrangements.
本发明实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。上述提到的存储介质可以是只读存储器,磁盘或光盘等。上述的各装置或系统,可以执行相应方法实施例中的方法。Each functional unit in the embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium. The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. Each of the above described devices or systems can perform the methods of the corresponding method embodiments.
综上所述,虽然本发明已以优选实施例揭露如上,但上述优选实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。In the above, the present invention has been disclosed in the above preferred embodiments, but the preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various modifications without departing from the spirit and scope of the invention. The invention is modified and retouched, and the scope of the invention is defined by the scope defined by the claims.

Claims (20)

  1. 一种数据分享方法,其中,包括:A data sharing method, including:
    获取用户数据及与其相对应的标识信息并同步至云端服务器;Obtain user data and corresponding identification information and synchronize to the cloud server;
    发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及Sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared;
    接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。Receiving a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and sending the data sharing link to the terminal of the target user.
  2. 根据权利要求1所述的数据分享方法,其中,所述获取用户数据及与其相对应的标识信息并同步至云端服务器具体包括:The data sharing method according to claim 1, wherein the obtaining the user data and the identification information corresponding thereto and synchronizing to the cloud server specifically includes:
    获取所述用户数据,并生成所述用户数据的编辑界面;Obtaining the user data, and generating an editing interface of the user data;
    通过所述编辑界面获取所述用户数据的标识信息;以及Obtaining identification information of the user data through the editing interface;
    将所述用户数据及与其相对应的标识信息同步至所述云端服务器。Synchronizing the user data and the identification information corresponding thereto to the cloud server.
  3. 根据权利要求2所述的数据分享方法,所述通过所述编辑界面获取所述用户数据的标识信息,包括:The data sharing method according to claim 2, wherein the obtaining the identification information of the user data by using the editing interface comprises:
    通过所述编辑界面获取用户编辑的分享范围;Obtaining a shared range edited by the user through the editing interface;
    将所述分享范围作为所述用户数据的标识信息。The sharing range is used as identification information of the user data.
  4. 根据权利要求1所述的数据分享方法,其中,所述接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接还包括:接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据访问密码;The data sharing method according to claim 1, wherein the receiving the data sharing link generated by the cloud server according to the identification information of the user data to be shared further comprises: receiving the cloud server according to the user data to be shared The data access password generated by the identification information;
    所述发送所述数据分享链接至目标用户的终端还包括:发送所述数据访问密码至所述目标用户的终端。The transmitting the data sharing link to the target user terminal further includes: sending the data access password to the terminal of the target user.
  5. 根据权利要求1所述的数据分享方法,其中,在所述发送数据分享请求至所述云端服务器之前,还包括获取待分享用户数据的标识信息。The data sharing method according to claim 1, wherein before the sending the data sharing request to the cloud server, the method further comprises: acquiring the identification information of the user data to be shared.
  6. 根据权利要求1所述的数据分享方法,其中,所述发送数据分享请求至所述云端服务器,包括:The data sharing method of claim 1, wherein the sending a data sharing request to the cloud server comprises:
    进入分享界面,所述分享界面中显示有待分享用户数据;Entering a sharing interface, where the user data to be shared is displayed in the sharing interface;
    当用户点击了所述待分享用户数据时,发送数据分享请求至所述云端服务器。When the user clicks on the user data to be shared, a data sharing request is sent to the cloud server.
  7. 根据权利要求1所述的数据分享方法,其中,在所述发送所述数据分享链接至目标用户的终端之后,还包括:The data sharing method according to claim 1, wherein after the sending the data sharing link to the terminal of the target user, the method further includes:
    获取所述云端服务器在所述目标用户成功访问所述待分享用户数据后生成的提示信息;Obtaining prompt information generated by the cloud server after the target user successfully accesses the to-be-shared user data;
    根据所述提示信息,显示所述待分享用户数据的分享状态。And displaying, according to the prompt information, a sharing status of the user data to be shared.
  8. 一种数据分享装置,其中,包括:A data sharing device, comprising:
    获取单元,用于获取用户数据及与其相对应的标识信息并同步至云端服务器;An obtaining unit, configured to acquire user data and corresponding identification information and synchronize to the cloud server;
    发送单元,用于发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及a sending unit, configured to send a data sharing request to the cloud server, where the data sharing request includes identifier information of the user data to be shared;
    接收发送单元,用于接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。The receiving and sending unit is configured to receive a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user.
  9. 根据权利要求8所述的数据分享装置,其中,所述获取单元具体用于:The data sharing device according to claim 8, wherein the obtaining unit is specifically configured to:
    获取所述用户数据,并生成所述用户数据的编辑界面;Obtaining the user data, and generating an editing interface of the user data;
    通过所述编辑界面获取所述用户数据的标识信息;以及Obtaining identification information of the user data through the editing interface;
    将所述用户数据及与其相对应的标识信息同步至所述云端服务器。Synchronizing the user data and the identification information corresponding thereto to the cloud server.
  10. 根据权利要求9所述的数据分享装置,其中,所述获取单元具体用于:The data sharing device according to claim 9, wherein the obtaining unit is specifically configured to:
    通过所述编辑界面获取用户编辑的分享范围;Obtaining a shared range edited by the user through the editing interface;
    将所述分享范围作为所述用户数据的标识信息。The sharing range is used as identification information of the user data.
  11. 根据权利要求8所述的数据分享装置,其中,所述接收发送单元还用于:The data sharing device according to claim 8, wherein the receiving and transmitting unit is further configured to:
    接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据访问密码,并发送所述数据访问密码至所述待分享用户的终端。Receiving a data access password generated by the cloud server according to the identifier information of the user data to be shared, and sending the data access password to the terminal of the user to be shared.
  12. 根据权利要求8所述的数据分享装置,其中,所述发送单元具体用于;The data sharing device according to claim 8, wherein the sending unit is specifically configured to:
    进入分享界面,所述分享界面中显示有待分享用户数据;Entering a sharing interface, where the user data to be shared is displayed in the sharing interface;
    当用户点击了所述待分享用户数据时,发送数据分享请求至所述云端服务器。When the user clicks on the user data to be shared, a data sharing request is sent to the cloud server.
  13. 根据权利要求8所述的数据分享装置,其中,所述数据分享装置还包括提示单元,所述提示单元用于:The data sharing device of claim 8, wherein the data sharing device further comprises a prompting unit, the prompting unit is configured to:
    获取所述云端服务器在所述目标用户成功访问所述待分享用户数据后生成的提示信息;Obtaining prompt information generated by the cloud server after the target user successfully accesses the to-be-shared user data;
    根据所述提示信息,显示所述待分享用户数据的分享状态。And displaying, according to the prompt information, a sharing status of the user data to be shared.
  14. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:A storage medium, wherein the storage medium stores a plurality of instructions adapted to be loaded by a processor to perform the following steps:
    获取用户数据及与其相对应的标识信息并同步至云端服务器;Obtain user data and corresponding identification information and synchronize to the cloud server;
    发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及Sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared;
    接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。Receiving a data sharing link generated by the cloud server according to the identification information of the user data to be shared, and sending the data sharing link to the terminal of the target user.
  15. 一种电子设备,其中,包括:An electronic device, comprising:
    存储有可执行程序代码的存储器;a memory storing executable program code;
    与所述存储器耦合的处理器;a processor coupled to the memory;
    所述处理器调用所述存储器中存储的所述可执行程序代码,执行以下步骤:The processor calls the executable program code stored in the memory, and performs the following steps:
    获取用户数据及与其相对应的标识信息并同步至云端服务器;Obtain user data and corresponding identification information and synchronize to the cloud server;
    发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及Sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared;
    接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的电子设备。Receiving a data sharing link generated by the cloud server according to the identifier information of the user data to be shared, and sending the data sharing link to the electronic device of the target user.
  16. 根据权利要求15所述的电子设备,其中,在获取用户数据及与其相对应的标识信息并同步至云端服务器时,所述处理器用于执行以下步骤:The electronic device according to claim 15, wherein when the user data and the identification information corresponding thereto are acquired and synchronized to the cloud server, the processor is configured to perform the following steps:
    获取所述用户数据,并生成所述用户数据的编辑界面;Obtaining the user data, and generating an editing interface of the user data;
    通过所述编辑界面获取所述用户数据的标识信息;以及Obtaining identification information of the user data through the editing interface;
    将所述用户数据及与其相对应的标识信息同步至所述云端服务器。Synchronizing the user data and the identification information corresponding thereto to the cloud server.
  17. 根据权利要求16所述的电子设备,其中,在通过所述编辑界面获取所述用户数据的标识信息时,所述处理器用于执行以下步骤:The electronic device according to claim 16, wherein, when the identification information of the user data is acquired through the editing interface, the processor is configured to perform the following steps:
    通过所述编辑界面获取用户编辑的分享范围;Obtaining a shared range edited by the user through the editing interface;
    将所述分享范围作为所述用户数据的标识信息。The sharing range is used as identification information of the user data.
  18. 根据权利要求15所述的电子设备,其中,在接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接时,所述处理器用于执行:接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据访问密码;The electronic device according to claim 15, wherein, when receiving the data sharing link generated by the cloud server according to the identification information of the user data to be shared, the processor is configured to: receive the cloud server according to the a data access password generated by the identification information of the user data to be shared;
    在发送所述数据分享链接至目标用户的电子设备时,所述处理器还用于执行:发送所述数据访问密码至所述目标用户的电子设备。When the data sharing link is sent to the electronic device of the target user, the processor is further configured to: send the data access password to the electronic device of the target user.
  19. 根据权利要求15所述的电子设备,其中,在发送数据分享请求至所述云端服务器时,所述处理器用于执行以下步骤:The electronic device of claim 15, wherein the processor is configured to perform the following steps when transmitting a data sharing request to the cloud server:
    进入分享界面,所述分享界面中显示有待分享用户数据;Entering a sharing interface, where the user data to be shared is displayed in the sharing interface;
    当用户点击了所述待分享用户数据时,发送数据分享请求至所述云端服务器。When the user clicks on the user data to be shared, a data sharing request is sent to the cloud server.
  20. 根据权利要求15所述的电子设备,其中,在所述发送所述数据分享链接至目标用户的电子设备之后,所述处理器还用于执行以下步骤:The electronic device according to claim 15, wherein after the transmitting the data sharing link to the electronic device of the target user, the processor is further configured to perform the following steps:
    获取所述云端服务器在所述目标用户成功访问所述待分享用户数据后生成的提示信息;Obtaining prompt information generated by the cloud server after the target user successfully accesses the to-be-shared user data;
    根据所述提示信息,显示所述待分享用户数据的分享状态。And displaying, according to the prompt information, a sharing status of the user data to be shared.
PCT/CN2017/095623 2016-10-25 2017-08-02 Data sharing method, device, storage medium, and electronic device WO2018076865A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610938197.2 2016-10-25
CN201610938197.2A CN106534276A (en) 2016-10-25 2016-10-25 Data sharing method and device, mobile terminal

Publications (1)

Publication Number Publication Date
WO2018076865A1 true WO2018076865A1 (en) 2018-05-03

Family

ID=58291850

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095623 WO2018076865A1 (en) 2016-10-25 2017-08-02 Data sharing method, device, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN106534276A (en)
WO (1) WO2018076865A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055444A (en) * 2021-02-22 2021-06-29 深圳市迅雷网络技术有限公司 File sharing method and related device thereof
CN113722105A (en) * 2021-09-14 2021-11-30 百度在线网络技术(北京)有限公司 Cloud application operation method, device, equipment, medium and product
CN114020195A (en) * 2021-10-12 2022-02-08 武汉夜莺科技有限公司 Method and device for processing dialect information and storage medium
CN114745421A (en) * 2022-03-30 2022-07-12 北京奇艺世纪科技有限公司 Fission path data recording method, device, server and storage medium
CN115174266A (en) * 2022-08-09 2022-10-11 宁波奥克斯电气股份有限公司 Air conditioner control method and device, electronic equipment and computer readable storage medium
CN115866015A (en) * 2022-11-15 2023-03-28 宁波奥克斯电气股份有限公司 Air conditioner sharing control method, device and system

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534276A (en) * 2016-10-25 2017-03-22 广东欧珀移动通信有限公司 Data sharing method and device, mobile terminal
CN107659650A (en) * 2017-09-27 2018-02-02 四川长虹电器股份有限公司 photo management method based on label
CN111277981A (en) * 2018-12-04 2020-06-12 阿里巴巴集团控股有限公司 Content sharing method and device
CN111813746A (en) * 2019-04-11 2020-10-23 百度在线网络技术(北京)有限公司 Data sharing method and device and computer readable storage medium
CN114528264A (en) * 2020-11-23 2022-05-24 中移互联网有限公司 Data synchronization method and system
CN113094656A (en) * 2021-03-08 2021-07-09 海信集团控股股份有限公司 Access control terminal device, server and method
CN114666140B (en) * 2022-03-25 2024-03-19 金蝶软件(中国)有限公司 Method, device, computer equipment and medium for accessing form

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120221654A1 (en) * 2011-02-25 2012-08-30 Pantech Co., Ltd. Terminal and method for providing a cloud service
CN103200224A (en) * 2013-02-22 2013-07-10 北京小米科技有限责任公司 Method and device and terminal of information sharing
CN103812882A (en) * 2012-11-06 2014-05-21 腾讯科技(深圳)有限公司 Method and system for transferring files
CN104065560A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Information processing method and system
CN105898582A (en) * 2015-11-30 2016-08-24 乐视网信息技术(北京)股份有限公司 Viewing coupon sharing method, terminal device and server
CN106534276A (en) * 2016-10-25 2017-03-22 广东欧珀移动通信有限公司 Data sharing method and device, mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120221654A1 (en) * 2011-02-25 2012-08-30 Pantech Co., Ltd. Terminal and method for providing a cloud service
CN103812882A (en) * 2012-11-06 2014-05-21 腾讯科技(深圳)有限公司 Method and system for transferring files
CN103200224A (en) * 2013-02-22 2013-07-10 北京小米科技有限责任公司 Method and device and terminal of information sharing
CN104065560A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Information processing method and system
CN105898582A (en) * 2015-11-30 2016-08-24 乐视网信息技术(北京)股份有限公司 Viewing coupon sharing method, terminal device and server
CN106534276A (en) * 2016-10-25 2017-03-22 广东欧珀移动通信有限公司 Data sharing method and device, mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055444A (en) * 2021-02-22 2021-06-29 深圳市迅雷网络技术有限公司 File sharing method and related device thereof
CN113055444B (en) * 2021-02-22 2023-02-14 深圳市迅雷网络技术有限公司 File sharing method and related device thereof
CN113722105A (en) * 2021-09-14 2021-11-30 百度在线网络技术(北京)有限公司 Cloud application operation method, device, equipment, medium and product
CN113722105B (en) * 2021-09-14 2023-08-01 百度在线网络技术(北京)有限公司 Cloud application operation method, device, equipment, medium and product
CN114020195A (en) * 2021-10-12 2022-02-08 武汉夜莺科技有限公司 Method and device for processing dialect information and storage medium
CN114020195B (en) * 2021-10-12 2024-04-26 武汉夜莺科技有限公司 Method and device for processing speaking and operation information and storage medium
CN114745421A (en) * 2022-03-30 2022-07-12 北京奇艺世纪科技有限公司 Fission path data recording method, device, server and storage medium
CN114745421B (en) * 2022-03-30 2023-10-10 北京奇艺世纪科技有限公司 Method, device, server and storage medium for recording fission path data
CN115174266A (en) * 2022-08-09 2022-10-11 宁波奥克斯电气股份有限公司 Air conditioner control method and device, electronic equipment and computer readable storage medium
CN115174266B (en) * 2022-08-09 2024-05-10 宁波奥克斯电气股份有限公司 Air conditioner control method, device, electronic equipment and computer readable storage medium
CN115866015A (en) * 2022-11-15 2023-03-28 宁波奥克斯电气股份有限公司 Air conditioner sharing control method, device and system

Also Published As

Publication number Publication date
CN106534276A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
WO2018076865A1 (en) Data sharing method, device, storage medium, and electronic device
WO2018076841A1 (en) Data sharing method, apparatus, storage medium and server
WO2020125251A1 (en) Federated learning-based model parameter training method, device, apparatus, and medium
WO2017071363A1 (en) Password sharing method, password sharing system, and terminal device
WO2018076889A1 (en) Data backup method, device, system, storage medium and server
WO2017124932A1 (en) Resource sharing method and terminal
WO2018082484A1 (en) Screen capturing method and system for electronic device, and electronic device
WO2018076867A1 (en) Data backup deleting method, device and system, storage medium and server
WO2018082142A1 (en) Screen recording method and device
WO2013159639A1 (en) Method, terminal, server, system and storage medium for microblog topic presentation
WO2014189275A1 (en) Apparatus and method of recognizing external device in a communication system
WO2018076844A1 (en) Data backup method and device, storage medium and electronic apparatus
WO2015018243A1 (en) Ios device based webpage blocking method and device
WO2016101441A1 (en) File synchronization method and system
WO2018201774A1 (en) Data approval method, apparatus, device, and computer readable storage medium
WO2018076840A1 (en) Data sharing method, device, storage medium and server
WO2017067375A1 (en) Video background configuration method and terminal device
WO2018076890A1 (en) Data backup method, device, storage medium, server and system
WO2018076863A1 (en) Data storage method, apparatus, storage medium, server and system
WO2018076888A1 (en) Method, device and system for synchronizing data of mobile terminal, storage medium and mobile terminal
WO2022060149A1 (en) Electronic device for managing right by using decentralized network, and operation method thereof
WO2018076881A1 (en) Data synchronization method and device, storage medium and server
WO2017032061A1 (en) Application starting method, smart watch, and storage medium
WO2018076829A1 (en) Terminal data processing method, apparatus, system, storage medium and server
WO2018076873A1 (en) Data sharing method, apparatus, medium, electronic device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17863366

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17863366

Country of ref document: EP

Kind code of ref document: A1