WO2023273667A1 - Data processing method and apparatus, server, client, medium, and product - Google Patents

Data processing method and apparatus, server, client, medium, and product Download PDF

Info

Publication number
WO2023273667A1
WO2023273667A1 PCT/CN2022/093371 CN2022093371W WO2023273667A1 WO 2023273667 A1 WO2023273667 A1 WO 2023273667A1 CN 2022093371 W CN2022093371 W CN 2022093371W WO 2023273667 A1 WO2023273667 A1 WO 2023273667A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
target data
data
client
server
Prior art date
Application number
PCT/CN2022/093371
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 WO2023273667A1 publication Critical patent/WO2023273667A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • 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

Definitions

  • the present disclosure relates to the technical field of data processing, and in particular to a data processing method, device, server, client, medium and product.
  • the present disclosure provides a data processing method, device, server, client, medium and product.
  • the present disclosure provides a data processing method, including:
  • the target notification is obtained by the server based on the type of the target data, and the target notification is used to indicate that a target operation can be performed on the target data;
  • the target request After receiving the trigger instruction for the target content, sending a target request to the server, the target request is used to request to perform the target operation on the target data, so that the server performs the target operation on the target data The target operation.
  • the client can be notified of the data operation, which is convenient for the user to select the operation to be performed on the target data through the client, so that the server can perform corresponding operations on the target data. Therefore, it solves the problem that users need to process the target data through third-party software to get the desired results, which leads to the reduction of user experience, and effectively improves the stickiness between users and clients.
  • the target content includes a target control; the method specifically includes:
  • the trigger instruction corresponding to executing a trigger operation on the target control is received.
  • the display style of the target control is related to the type of the target data.
  • the type of the target data includes: at least one of text, picture, audio, video, and network link.
  • the method when the target operation includes an archiving operation, the method further includes:
  • the first document After receiving the trigger operation performed on the link of the first document, the first document is acquired.
  • the method when the target operation includes an archiving operation, the method further includes:
  • the server receiving a first message from the server, where the first message is used to indicate that the target data has been archived into a first document, and the first document is obtained by storing the target data by the server;
  • the target data is obtained from the first document.
  • the method when the target operation also includes a delayed read operation, the method further includes:
  • the target data is retrieved from the second document.
  • the method further includes:
  • the server receiving a third message from the server, the third message carrying processed data, the processed data obtained by the server performing text conversion and/or video extraction operations on the target data;
  • the method further includes:
  • the server receiving a fourth message from the server, where the fourth message carries an extracted video, and the extracted video is obtained by performing a video extraction operation on the target data by the server;
  • the present disclosure provides a data processing method, including:
  • Target notification Sending a target notification to the client based on the type of the target data, where the target notification is used to indicate that a target operation can be performed on the target data;
  • the target request is obtained by the client after receiving a trigger instruction for target content, the target content is displayed by the client based on the target notification, the The target request is used to request to perform the target operation on the target data;
  • the target operation is performed on the target data.
  • the client can send the target data that needs to be processed to the server, so that the server can perform the corresponding target operation according to the target request determined by the client, thus, using the interaction between the client and the server, Enables efficient processing of data in the client.
  • performing the target operation on the acquired target data includes:
  • the target data is stored in a first document.
  • the method also includes:
  • the method also includes:
  • the method when the target operation also includes a delayed read operation, the method further includes:
  • the method further includes:
  • the method further includes:
  • the present disclosure provides a data processing device, including:
  • a sending module configured to send target data to the server
  • a receiving module configured to receive a target notification from the server, the target notification is obtained by the server based on the type of the target data, and the target notification is used to indicate that target operations can be performed on the target data;
  • a display module configured to display target content based on the target notification
  • the sending module is further configured to send a target request to the server after receiving the trigger instruction for the target content, the target request is used to request the target operation on the target data, so that the server The target operation is performed on the target data.
  • the receiving module is specifically used for:
  • the trigger instruction corresponding to executing a trigger operation on the target control is received.
  • the display style of the target control is related to the type of the target data.
  • the type of the target data includes: at least one of text, picture, audio, video, and network link.
  • the device also includes: an acquisition module;
  • a receiving module further configured to receive a link of the first document from the server
  • An acquiring module configured to acquire the first document after receiving a trigger operation performed on the link of the first document.
  • the receiving module is further configured to receive a first message from the server, where the first message is used to indicate that the target data has been archived into a first document, and the first document is the obtained by storing the target data by the server;
  • the acquiring module is further configured to acquire the target data from the first document based on the first message.
  • the receiving module is further configured to receive a second message from the server, the second message is used to indicate that the target data is acquired in a second document, the second document is the The server stores the target data;
  • the acquiring module is further configured to acquire the target data from the second document based on the second message.
  • the receiving module is further configured to receive a third message from the server, the third message carries processed data, and the processed data is the Data obtained through text conversion and/or video extraction operations;
  • the obtaining module is further configured to obtain the processed data based on the third message.
  • the receiving module is further configured to receive a fourth message from the server, the fourth message carries an extracted video, and the extracted video is a video extracted by the server for the target data obtained by the operation;
  • the obtaining module is further configured to obtain the extracted video based on the fourth message.
  • the present disclosure provides a data processing device, including:
  • a receiving module configured to receive target data from the client
  • a sending module configured to send a target notification to the client based on the type of the target data, where the target notification is used to indicate that target operations can be performed on the target data;
  • the receiving module is further configured to receive a target request from the client, the target request is obtained by the client after receiving a trigger instruction for target content, and the target content is the client based on the target As shown in the notification, the target request is used to request the target operation on the target data;
  • An operation module configured to perform the target operation on the target data.
  • the operating module is specifically for:
  • the target data is stored in a first document.
  • the sending module is further configured to send the link of the first document to the client, so that the client receives the trigger operation performed on the link of the first document , to get the first document.
  • the sending module is further configured to send a first message to the client, where the first message is used to indicate that the target data has been filed in the first document, so that the The client acquires the target data from the first document based on the first message.
  • the device also includes: a storage module;
  • a storage module configured to store the target data into a second file
  • a sending module further configured to send a second message to the client, where the second message is used to indicate to obtain the target data in the second document, so that the client can obtain the target data based on the second message from The target data is obtained from the second document.
  • the operation module is further configured to perform text conversion and/or video extraction operations on the target data to obtain processed data;
  • the sending module is further configured to send a third message to the client, where the third message carries the processed data, so that the client can obtain the processed data.
  • the operation module is further configured to perform a video extraction operation on the target data to obtain the extracted video;
  • the sending module is further configured to send a fourth message to the client, where the fourth message carries the extracted video, so that the client acquires the extracted video.
  • the present disclosure provides a server, including: a memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions in the memory so that the electronic device executes any possibility of the first aspect and the first aspect The data processing method in the design.
  • the present disclosure provides a client, including: a memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions in the memory so that the electronic device executes any one of the second aspect and the second aspect Data handling methods in possible designs.
  • the present disclosure provides a computer storage medium, including computer instructions.
  • the computer instructions When the computer instructions are run on the electronic device, the electronic device executes the data processing method in any possible design of the first aspect and the first aspect. , or, causing the electronic device to execute the data processing method in any possible design of the second aspect and the second aspect.
  • the present disclosure provides a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer is made to execute the data processing method in any possible design of the first aspect and the first aspect, or to make the computer Execute the second aspect and the data processing method in any possible design of the second aspect.
  • FIG. 1 is a signaling interaction diagram between a server and a client provided by an embodiment of the present disclosure
  • 2A-2I are schematic diagrams of an interface for interaction between a server and a client provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a data processing device provided by an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a data processing device provided by an embodiment of the present disclosure.
  • the present disclosure provides a data processing method, device, server, client, computer storage medium, and computer program product.
  • the server notifies the client of data operations based on the client's target request for target data, which is convenient for users
  • the client selects the operation to be performed on the target data, so that the server can perform corresponding operations on the target data. Therefore, it solves the problem that users need to process the target data through third-party software to obtain the required results, effectively improves the data processing efficiency on the client, and at the same time greatly improves the viscosity between users and the client.
  • the data processing method of the present disclosure is executed by an electronic device or an application program, a webpage, a public account, etc. in the electronic device.
  • the electronic device can be a tablet computer, a mobile phone, a wearable device, an in-vehicle device, an augmented reality (AR)/virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC) ), netbooks, personal digital assistants (personal digital assistants, PDAs), smart TVs, smart screens, high-definition TVs, 4K TVs, smart speakers, smart projectors and other devices, this disclosure does not impose any restrictions on the specific types of electronic devices.
  • the present disclosure does not limit the type of the operating system of the electronic device.
  • Android system Linux system
  • Windows system iOS system
  • FIG. 1 is a signaling interaction diagram between a server and a client provided by an embodiment of the present disclosure.
  • the data processing method provided by the present disclosure may include:
  • the client sends the target data to the server.
  • a client corresponds to an application program installed on an electronic device, wherein the application program is a type of software with a chat function, and is used to transmit real-time data sent between users.
  • the target data is some data obtained by the user browsing the specified content on the client, such as the user browsing the push message on the client, or some data generated when the user communicates with other users on the client, such as the user and other users. Chat messages between other users.
  • the present disclosure does not limit the specific form of the target data, for example, the target data may include but not limited to data in the form of text, picture, video, audio and so on.
  • the client sends the target data to the server in this disclosure, it needs to be authorized and authenticated by the user who logs in to the client, and the user can send the target data to the server through the client. safety.
  • the communication connection between the server and the client enables effective data communication between the server and the client.
  • the manner of the communication connection between the server and the client may include but not limited to wired connection and wireless connection.
  • the server sends a target notification to the client based on the type of the target data, where the target notification is used to indicate that a target operation can be performed on the target data.
  • the target data can be classified according to the presentation form of the target data to obtain multiple types of target data.
  • the type of target data may include: chat messages, pictures, text, video and audio.
  • the first user and the second user chat on the client and generate chat messages.
  • the server can determine that the type of the received target data is chat information.
  • the collection of multiple chat messages may be part of the chat messages generated by the first user and the second user on the client, or may be part of the chat messages generated by the first user and the second user on the client. All chat messages for .
  • the first user and the second user chat on the client and generate a chat message
  • the server can determine The type of the received target data is a picture.
  • the first user and the second user chat on the client and generate a chat message. If the client sends a chat message in the chat message to the server, and the chat message is a video, the server can determine to receive the chat message.
  • the type of the target data received is video.
  • the first user and the second user chat on the client to generate a chat message
  • the server can determine to receive the chat message.
  • the type of the target data received is audio.
  • the server can return a target notification to the client, so that the client can choose to perform a corresponding target operation on the target data.
  • the target notification may be displayed on the client in the form of a pop-up window, a chat message, or the like.
  • the client after the client sends the target data to the server, it can perform target operations on the target data according to the received target notification returned by the server.
  • the target operation is an operation on the content of the target data, which may include but not limited to: archiving operation, text translation, text recognition, text conversion and/or audio extraction, translation of picture text and/or recognition of picture text, video extraction.
  • the client terminal displays the target content based on the target notification; after receiving a trigger instruction for the target content, sends a target request to the server.
  • the target request is used to request to perform a target operation on the target data, so that the server performs the target operation on the target data.
  • the target request is a data operation request corresponding to the target operation, and is used to inform the server of the data operation request required by the client for the target data, so that the server performs the target operation on the target data according to the target request.
  • the target request is obtained by the client based on the target notification, and the target request is used to request a target operation on the target data.
  • the identification of the target data is a mark used by the target data to distinguish identity information in the client.
  • the identification of the target data may include, but not limited to, a serial number of the storage location of the target data in the client, or a data serial number of the target data in the client, such as the number 111 .
  • the server may receive multiple target data at the same time, and after receiving the target data sent by the client, the server will store the received target data to save the data in the client.
  • the server when the server receives the target request, it searches out the target data corresponding to the target data mark from the pre-stored multiple target data based on the mark of the target data, so that the server can use different target data marks to facilitate Simultaneous processing of multiple target data.
  • the server performs a target operation on the target data.
  • the server connected to the client can directly perform target operations on the target data according to the needs of the client, respond to the needs of the client in time, and perform corresponding operations on the target data to obtain the processing results of the target data required by the user.
  • the server can notify the client of data operations based on the client's target request for the target data, so that the user can independently select the operation to be performed on the target data through the client. Therefore, it solves the problem that users need to process the target data through third-party software to obtain the required results, effectively improves the data processing efficiency on the client, and at the same time greatly improves the viscosity between users and the client.
  • the server when the target operation includes an archiving operation, performs the target operation on the acquired target data, including: the server stores the target data in the first document.
  • the archiving operation is a storage operation performed on target data, such as writing the target data into a created cloud document, or creating a new cloud document and writing the target data into the newly created cloud document.
  • the first document is a cloud document in the server, and the server communicates with the client, thereby ensuring that the client directly obtains the document from the server when it needs to view the document.
  • the present disclosure does not limit the first document.
  • the first document may be a cloud document created on the server, or the first document may be a new cloud document created by the user on the server through the client.
  • the type of target data sent by the client to the server is a text type for an example description of data interaction between the client and the server, as shown in FIG. 2A .
  • the interface 11 is an interface for the client to send target data to the robot (such as the server mentioned above).
  • the interface 11 may include: an area 101 for displaying specific content of the target data.
  • the type corresponding to the target data displayed in the area 101 is a text type
  • the text type means that the specific content contained in the target data is plain text information.
  • Plain text information such as words, character strings, numbers, or a combination of at least two forms of words, character strings, and numbers.
  • the interface 11 may also include an area 102 for recording the sending time of the target data in the area 101 .
  • the sending time of one object data corresponds to the object data, and when there are multiple object data in the area 101, the area 102 can be displayed in the positions corresponding to the area 101 respectively. In some embodiments, area 102 may be shown above area 101 .
  • the server After the client sends the target data to the server, the server will return a target notification to the client.
  • the interface 11 may include: an area 103 for displaying target notification of target data.
  • the area 103 may include: an area 1031 and an area 1032 .
  • Area 1031 is used for correspondingly displaying the target data information in area 101 . This enables the client to display the target data to be processed to the user, making it convenient for the user to select related operations.
  • the information of the target data may be the target data in the area 101 , and may also be the identification of the target data in the area 101 .
  • the area 1032 is used to display the expansion control of the target notification corresponding to the target data in the area 1031 .
  • the user can instruct the server to perform a target operation on the target data by triggering the expansion control in the area 1032 , wherein the expansion control is "write document" in the area 1032 .
  • the area 104 As exemplarily shown in FIG. 2C is displayed on the interface 11 . Among them, the area 104 is used to display the corresponding target operation under the target notification. Region 104 may include region 1041 and region 1042 .
  • Area 1041 is used to display the creation window of a new document.
  • the user can create a new cloud document for the target data by clicking on the area 1041 .
  • Area 1042 is used to display multiple default windows of existing documents in the server. A user may insert target data into a document by clicking on an existing document window in area 1042 . In some embodiments, users can delete or add existing documents in the area 1042 according to their own needs, so as to meet the data storage requirements.
  • the trigger operation mentioned above may include operations such as clicking and double-clicking.
  • the present disclosure does not limit this.
  • the target content may include a target control.
  • the client sends a target request to the server after receiving a trigger instruction corresponding to executing a trigger operation on the target control.
  • a target control refer to the description of the expanded control in area 1032 in FIG. 2B .
  • the display style of the target control is related to the type of the target data.
  • the target controls displayed under different types of target data have a strong correlation with the target data.
  • the server may also send the client a way to obtain the target data, so that the client can effectively obtain the target data.
  • the server sends the link of the first document to the client, so that the client acquires the first document after receiving a trigger operation performed on the link of the first document.
  • the server after storing the target data in the first document, the server returns an external link to the client, so that the user can trace the target data in real time through the external link on the client.
  • the client may receive a link to the first document from the server.
  • the first document After receiving the trigger operation performed on the link of the first document, the first document is acquired.
  • the first document can be divided into the following multiple situations.
  • the first document may be a new cloud document in the server.
  • the client receives a trigger instruction for the target content to create a new document
  • the first document corresponds to a new cloud document in the server.
  • the link of the first document is generated by the server.
  • the first document may be a default cloud document existing in the server.
  • the client when the client receives a trigger instruction for the target content to insert the target data into a default cloud document, the first document corresponds to the default document.
  • the target request sent by the client to the server carries the identifier of the default document.
  • the identifier of the default document may include a document ID or a document link.
  • the first document may be a cloud document already created in the server.
  • the client when the client receives a trigger instruction for the target content to insert the target data into a created cloud document, the first document corresponds to the created cloud document.
  • the target request sent by the client to the server carries the identifier of the created cloud document.
  • the identifier of the default document may include a document ID or a document link.
  • the server in response to the user's trigger operation on the area 104 through the client, displays the area 105 in the interface 11 as exemplarily shown in FIG. 2D , which is used to display the external link corresponding to the stored document of the target data.
  • the user creates a new document for the target data by clicking the "New" button in the area 1041 in FIG. 2C to store the target data, and the server returns an external link of the stored document of the target data.
  • the user adds the target data to the end of the existing document by clicking the "insert" button in an existing document in area 1042 in FIG. 2C, and the server returns an external link of the stored document of the target data.
  • the storage address of the target data is effectively recorded in the client, which is convenient for the user to effectively trace the target data later.
  • the method in this embodiment may further include:
  • the server sends a first message to the client.
  • the first message is used to indicate that the target data has been filed in the first document, so that the client obtains the target data from the first document based on the first message.
  • the first message is a prompt message sent by the server to the client, which is used to remind the client that the target data has been archived, so that the client can obtain the target data according to the first message when it needs to obtain the target data.
  • this embodiment may further include:
  • the client receives the first message from the server, and acquires target data from the first document based on the first message.
  • the first message is used to indicate that the target data has been archived into the first document, and the first document is obtained by storing the target data by the server.
  • the client receives the first message corresponding to the target data from the server, and can quickly locate the cloud document stored in the target data based on the first message when the target data needs to be viewed, thereby effectively obtaining the target data.
  • the target operation may also include a delayed read operation
  • the method of this embodiment may also include:
  • the server stores the target data in the second document; sends a second message to the client, the second message is used to indicate to obtain the target data in the second document, so that the client obtains the target data from the second document based on the second message .
  • the second document is a cloud document among the documents stored in the server, which is used to represent the delayed reading of the data in the document.
  • the second message may include a link of the second document, and the presentation form of the second message is exemplarily shown as the area 106 in the interface 12 of FIG. 2E . Therefore, the server can perform delayed operation processing on the target data in response to user requirements.
  • the reminder time for delayed reading can be recorded in the area 106, so that when the current time reaches the reminder time, a reading reminder is performed in time.
  • the client receives a second message from the server, the second message is used to indicate to obtain the target data in the second document, and the second document is obtained by the server storing the target data; based on the second message, the target data is obtained from the second document .
  • the second document is a cloud document in which the target data is stored in the server.
  • the client can effectively check the target data based on the second message returned by the server.
  • the type of target data may have multiple implementation types, wherein the type of target data may include: at least one of text, picture, audio, video, and network link. Meanwhile, the target operation may have various realization operations.
  • the method in this embodiment may further include:
  • the server performs a text translation operation on the target data to obtain translation data; sends a translation message to the client, and the translation message carries the translation data, so that the client obtains the translation data based on the translation message.
  • the user can select the operation required by the target data on the client, such as a text translation operation, so that the user can directly obtain the translated result of the target data on the client.
  • the client receives a translation message from the server, the translation message carries translation data, and the translation data is obtained by the server performing a text translation operation on the target data; based on the translation message, the translation data is obtained.
  • the server returns the translation data obtained after the target data is translated to the client, so that it is convenient for the user to directly perform text translation on the target data that needs to be translated on the client, which can effectively improve the accuracy of the target data on the client. effective processing.
  • the method in this embodiment may further include:
  • the server performs text conversion and/or audio extraction operations on the target data to obtain processed data; sends a corresponding message to the client, and the corresponding message carries the processed data, so that the client obtains the processed data.
  • the corresponding message may include converting the message and/or extracting the message.
  • the target data may be an audio type, such as a voice message sent by the first user to the second user, or a voice message sent by the second user to the first user.
  • the client receives a corresponding message from the server, and the corresponding message carries processed data obtained by the server performing text conversion and/or audio extraction on the target data; based on the corresponding message, the processed data is obtained.
  • the server Before storing the target data of the audio type in the cloud document, the server can convert the target data into text and/or extract the audio to obtain the processed data, store the processed data in the cloud document, and return the corresponding data to the client. information.
  • the user can view the text information and audio information corresponding to the target data of the audio type on the client.
  • the method in this embodiment may further include:
  • the server translates the image text and/or recognizes the image text on the target data to obtain the processed data; sends an image processing message to the client, and the image processing message carries the processed data, so that the client can obtain the processed data .
  • the image processing message may include a translation message and/or an identification message.
  • the server when the target data sent by the client to the server is a picture with text, the server will return an interface 13 as exemplarily shown in FIG. 2F to the client.
  • Interface 13 includes: area 107 and area 108 .
  • Area 107 is used to display pictures sent by the client to the server. Wherein, the specific display form of the text in the picture may be in English.
  • Area 108 is used to display the processing operations for the pictures in area 107 provided by the server to the client.
  • the processing operation may include but not limited to: translate text in the picture, recognize text, insert into @@@document, generate external link.
  • each operation box corresponding to more operations in the area 108 is a touchable virtual button for performing corresponding operations on the pictures in the area 107 .
  • the server may return the area 109 as exemplarily shown in FIG. 2G to the client.
  • the server may return the area 110 as exemplarily shown in FIG. 2H to the client.
  • the client receives the image processing message from the server.
  • the image processing message carries the processed data.
  • the processed data is obtained by the server by translating the image text and/or identifying the image text of the target data; based on the image processing message, the processing after the data.
  • the client can perform optical character recognition (Optical Character Recognition, OCR) on the target data of the picture type generated in the client according to the information interaction with the server, thereby effectively obtaining the text information in the picture.
  • OCR optical Character Recognition
  • the server will compress the size of the picture sent by the client, so that when the client checks the picture again, the size will be smaller than the original one, which can reduce the capacity loss of the server for storing pictures.
  • the method of this embodiment may also include:
  • the server performs text conversion and/or video extraction operations on the target data to obtain processed data; sends a third message to the client, and the third message carries the processed data, so that the client obtains the processed data.
  • the client receives a third message from the server, the third message carries processed data, and the processed data is obtained by the server performing text conversion and/or video extraction on the target data; based on the third message, the processed data is obtained data.
  • the server after receiving the target data of the video type sent by the client, the server performs text conversion and/or video extraction on the target data in response to the text conversion and/or video extraction operation of the client, so that the client can obtain the target data processing after the data.
  • the method in this embodiment further includes:
  • a fourth message is sent to the client, where the extracted video is carried in the fourth message, so that the client obtains the extracted video.
  • the target data of the network link type sent by the client to the server is shown as an example in the area 120 in the interface 14 of FIG. 2I .
  • the interface 14 may further include: an area 121 .
  • the area 121 is used to display the acquisition method of the content in the link in the area 120 after receiving the trigger of the virtual button in the area 120 .
  • the client may receive a fourth message from the server, the fourth message carries the extracted video, and the extracted video is obtained by the server performing a video extraction operation on the target data; based on the fourth message, the extracted video is obtained.
  • the extracted video may refer to the display in area 121 in FIG. 2I.
  • the user can click the download button of the video in the area 121 on the client terminal, so that the user can quickly obtain the video in the link.
  • the present disclosure provides another data processing device.
  • the data processing apparatus 300 may include: a sending module 301 , a receiving module 302 and a display module 303 .
  • Sending module 301 configured to send target data to the server
  • a receiving module 302 configured to receive a target notification from the server, the target notification is obtained by the server based on the type of the target data, and the target notification is used to indicate that target operations can be performed on the target data;
  • a display module 303 configured to display target content based on the target notification
  • the sending module 301 is further configured to send a target request to the server after receiving the trigger instruction for the target content, the target request is used to request the target operation on the target data, so that the The server performs the target operation on the target data.
  • the receiving module 302 is specifically used for:
  • the trigger instruction corresponding to executing a trigger operation on the target control is received.
  • the display style of the target control is related to the type of the target data.
  • the type of the target data includes: at least one of text, picture, audio, video, and network link.
  • the device also includes: an acquisition module;
  • the receiving module 302 is further configured to receive the link of the first document from the server;
  • An acquiring module configured to acquire the first document after receiving a trigger operation performed on the link of the first document.
  • the receiving module 302 is further configured to receive a first message from the server, the first message is used to indicate that the target data has been archived into a first document, and the first document is the The server stores the target data;
  • the acquiring module is further configured to acquire the target data from the first document based on the first message.
  • the receiving module 302 is further configured to receive a second message from the server, the second message is used to indicate that the target data is acquired in a second document, the second document is the obtained by storing the target data;
  • the acquiring module is further configured to acquire the target data from the second document based on the second message.
  • the receiving module 302 is further configured to receive a third message from the server, the third message carries processed data, and the processed data is obtained through text conversion and/or video extraction;
  • the obtaining module is further configured to obtain the processed data based on the third message.
  • the receiving module 302 is further configured to receive a fourth message from the server, the fourth message carries an extracted video, and the extracted video is a video extraction operation performed by the server on the target data owned;
  • the obtaining module is further configured to obtain the extracted video based on the fourth message.
  • the data processing device provided in the present disclosure can execute the foregoing method embodiments, and its specific implementation principles and technical effects can be referred to the foregoing method embodiments, which will not be repeated here in the present disclosure.
  • the present disclosure provides a data processing device.
  • the data processing apparatus 400 may include: a receiving module 401 , a sending module 402 and an operating module 404 .
  • a receiving module 401 configured to receive target data from a client
  • a sending module 402 configured to send a target notification to the client based on the type of the target data, where the target notification is used to indicate that target operations can be performed on the target data;
  • the receiving module 401 is further configured to receive a target request from the client, the target request is obtained by the client after receiving a trigger instruction for target content, the target content is the client based on the As displayed in the target notification, the target request is used to request the target operation on the target data;
  • An operation module 403, configured to perform the target operation on the target data.
  • the operation module 403 is specifically used to:
  • the target data is stored in a first document.
  • the sending module 402 is further configured to send the link of the first document to the client, so that the client, after receiving the trigger operation performed on the link of the first document, The first document is obtained.
  • the sending module 402 is further configured to send a first message to the client, where the first message is used to indicate that the target data has been archived in the first document, so that the client The terminal acquires the target data from the first document based on the first message.
  • the device also includes: a storage module
  • a storage module configured to store the target data into a second file
  • the sending module 402 is further configured to send a second message to the client, where the second message is used to indicate to obtain the target data in the second document, so that the client can obtain the target data based on the second message
  • the target data is obtained from the second document.
  • the operation module 403 is further configured to perform text conversion and/or video extraction operations on the target data to obtain processed data;
  • the sending module 402 is further configured to send a third message to the client, where the third message carries the processed data, so that the client obtains the processed data.
  • the operation module 403 is further configured to perform a video extraction operation on the target data to obtain the extracted video;
  • the sending module 402 is further configured to send a fourth message to the client, where the fourth message carries the extracted video, so that the client acquires the extracted video.
  • the data processing device provided in the present disclosure can execute the foregoing method embodiments, and its specific implementation principles and technical effects can be referred to the foregoing method embodiments, which will not be repeated here in the present disclosure.
  • the present disclosure provides an electronic device comprising: one or more processors; memory; and one or more computer programs; wherein the one or more computer programs are stored in the memory; one or more processors When one or more computer programs are executed, the electronic device is made to implement the data processing method of the foregoing embodiments.
  • the present disclosure provides a chip system, which is applied to an electronic device including a memory and a sensor; the chip system includes: a processor; and the processor executes the data processing method of the foregoing embodiments.
  • the present disclosure provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor so that an electronic device implements the data processing method of the foregoing embodiments.
  • the present disclosure provides a computer program product, which causes the computer to execute the data processing method of the foregoing embodiments when the computer program product is run on the computer.
  • all or part of the functions may be implemented by software, hardware, or a combination of software and hardware.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present disclosure are produced in whole or in part.
  • a computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • Computer instructions may be stored on a computer readable storage medium.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
  • a magnetic medium for example, a floppy disk, a hard disk, or a magnetic tape
  • an optical medium for example, DVD
  • a semiconductor medium for example, a solid state disk (solid state disk, SSD)

Abstract

The present disclosure relates to a data processing method and apparatus, a server, a client, a medium, and a product, the method comprising: sending target data to a server; receiving a target notification from the server, the target notification being obtained by the server on the basis of the type of the target data, and the target notification being used for indicating that a target operation may be performed on the target data; on the basis of the target notification, displaying target content; and, after receiving a trigger command for the target content, sending a target request to the server, the target request being used for requesting a target operation be performed on the target data such that the server performs the target operation on the target data. Thus, the processing efficiency of data on a client is effectively increased, and the stickiness between users and clients is greatly improved.

Description

数据处理方法、装置、服务器、客户端、介质和产品Data processing method, device, server, client, medium and product
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110738539.7、申请日为2021年06月30日,名称为“数据处理方法、装置、服务器、客户端、介质和产品”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number 202110738539.7, the filing date is June 30, 2021, and the name is "data processing method, device, server, client, medium and product", and the priority of this Chinese patent application is requested Right, the entire content of this Chinese patent application is hereby incorporated into this application as a reference.
技术领域technical field
本公开涉及数据处理技术领域,尤其涉及一种数据处理方法、装置、服务器、客户端、介质和产品。The present disclosure relates to the technical field of data processing, and in particular to a data processing method, device, server, client, medium and product.
背景技术Background technique
随着互联网技术的不断发展,用户之间的即时通讯也变得越来越简便,用户可通过终端上安装的应用程序(application,APP)的客户端向聊天对象发送消息,从而,实现用户之间的消息互通。With the continuous development of Internet technology, instant messaging between users has become more and more convenient. Users can send messages to chat partners through the client of the application program (APP) installed on the terminal, thereby realizing the communication between users. exchange of messages between them.
然而,用户在使用客户端的过程中,如果需要对聊天消息进行如翻译或者文字识别等操作时,需要利用第三方软件进行相应操作,才可得到处理后的结果,极大的降低了客户端上数据的处理效率。However, in the process of using the client, if the user needs to perform operations such as translation or text recognition on the chat message, he needs to use third-party software to perform corresponding operations to obtain the processed result, which greatly reduces the time spent on the client. Data processing efficiency.
发明内容Contents of the invention
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开提供了一种数据处理方法、装置、服务器、客户端、介质和产品。In order to solve the above technical problem or at least partly solve the above technical problem, the present disclosure provides a data processing method, device, server, client, medium and product.
第一方面,本公开提供了一种数据处理方法,包括:In a first aspect, the present disclosure provides a data processing method, including:
向服务器发送目标数据;Send the target data to the server;
从所述服务器接收目标通知,所述目标通知为所述服务器基于所 述目标数据的类型得到的,所述目标通知用于表示可对所述目标数据进行目标操作;receiving a target notification from the server, where the target notification is obtained by the server based on the type of the target data, and the target notification is used to indicate that a target operation can be performed on the target data;
基于所述目标通知,显示目标内容;displaying targeted content based on the targeted notification;
在接收到针对所述目标内容的触发指令后,向所述服务器发送目标请求,所述目标请求用于请求对所述目标数据进行所述目标操作,以使所述服务器对所述目标数据进行所述目标操作。After receiving the trigger instruction for the target content, sending a target request to the server, the target request is used to request to perform the target operation on the target data, so that the server performs the target operation on the target data The target operation.
通过第一方面提供的方法,能够基于客户端对目标数据的目标请求,对客户端进行数据操作通知,便于用户通过客户端选择目标数据需执行的操作,使得服务器能够对目标数据进行相应操作。从而,解决了用户需要通过第三方软件对目标数据进行数据处理才能得到想要的结果,导致用户使用体验感降低的问题,有效提升了用户与客户端的粘度。Through the method provided in the first aspect, based on the client’s target request for the target data, the client can be notified of the data operation, which is convenient for the user to select the operation to be performed on the target data through the client, so that the server can perform corresponding operations on the target data. Therefore, it solves the problem that users need to process the target data through third-party software to get the desired results, which leads to the reduction of user experience, and effectively improves the stickiness between users and clients.
在一种可能的设计中,所述目标内容包括目标控件;所述方法具体包括:In a possible design, the target content includes a target control; the method specifically includes:
接收对所述目标控件执行触发操作对应的所述触发指令。The trigger instruction corresponding to executing a trigger operation on the target control is received.
在一种可能的设计中,所述目标控件的显示样式与所述目标数据的类型相关。In a possible design, the display style of the target control is related to the type of the target data.
在一种可能的设计中,所述目标数据的类型包括:文本、图片、音频、视频、网络链接中的至少一种。In a possible design, the type of the target data includes: at least one of text, picture, audio, video, and network link.
在一种可能的设计中,在所述目标操作包括归档操作时,所述方法还包括:In a possible design, when the target operation includes an archiving operation, the method further includes:
从所述服务器接收第一文档的链接;receiving a link to a first document from the server;
在接收到对所述第一文档的链接执行的触发操作后,获取所述第一文档。After receiving the trigger operation performed on the link of the first document, the first document is acquired.
在一种可能的设计中,在所述目标操作包括归档操作时,所述方法还包括:In a possible design, when the target operation includes an archiving operation, the method further includes:
从所述服务器接收第一消息,所述第一消息用于指示所述目标数据已归档到第一文档中,所述第一文档为所述服务器对所述目标数据进行存储得到的;receiving a first message from the server, where the first message is used to indicate that the target data has been archived into a first document, and the first document is obtained by storing the target data by the server;
基于所述第一消息,从所述第一文档中获取所述目标数据。Based on the first message, the target data is obtained from the first document.
在一种可能的设计中,在所述目标操作还包括延迟阅读操作时,所述方法还包括:In a possible design, when the target operation also includes a delayed read operation, the method further includes:
从所述服务器接收第二消息,所述第二消息用于指示在第二文档中获取所述目标数据,所述第二文档为所述服务器对所述目标数据进行存储得到的;receiving a second message from the server, where the second message is used to indicate that the target data is acquired in a second document obtained by storing the target data by the server;
基于所述第二消息,从所述第二文档中获取所述目标数据。Based on the second message, the target data is retrieved from the second document.
在一种可能的设计中,在所述目标数据的类型为视频类型,且所述目标操作还包括文字转换和/或视频提取操作时,所述方法还包括:In a possible design, when the type of the target data is a video type, and the target operation also includes text conversion and/or video extraction operations, the method further includes:
从所述服务器接收第三消息,所述第三消息中携带有处理后的数据,所述处理后的数据为所述服务器对所述目标数据进行文字转换和/或视频提取操作得到的;receiving a third message from the server, the third message carrying processed data, the processed data obtained by the server performing text conversion and/or video extraction operations on the target data;
基于所述第三消息,获取所述处理后的数据。Based on the third message, acquire the processed data.
在一种可能的设计中,在所述目标数据的类型为网络链接类型,且所述目标操作还包括视频提取操作时,所述方法还包括:In a possible design, when the type of the target data is a network link type, and the target operation also includes a video extraction operation, the method further includes:
从所述服务器接收第四消息,所述第四消息中携带有提取视频,所述提取视频为所述服务器对所述目标数据进行视频提取操作得到的;receiving a fourth message from the server, where the fourth message carries an extracted video, and the extracted video is obtained by performing a video extraction operation on the target data by the server;
基于所述第四消息,获取所述提取视频。Based on the fourth message, acquire the extracted video.
第二方面,本公开提供了一种数据处理方法,包括:In a second aspect, the present disclosure provides a data processing method, including:
从客户端接收目标数据;Receive target data from the client;
基于所述目标数据的类型,向所述客户端发送目标通知,所述目标通知用于表示可对所述目标数据进行目标操作;Sending a target notification to the client based on the type of the target data, where the target notification is used to indicate that a target operation can be performed on the target data;
从所述客户端接收目标请求,所述目标请求为所述客户端在接收到针对目标内容的触发指令后得到的,所述目标内容为所述客户端基于所述目标通知显示的,所述目标请求用于请求对所述目标数据进行所述目标操作;Receive a target request from the client, the target request is obtained by the client after receiving a trigger instruction for target content, the target content is displayed by the client based on the target notification, the The target request is used to request to perform the target operation on the target data;
对所述目标数据进行所述目标操作。The target operation is performed on the target data.
通过第二方面提供的方法,客户端可将需要处理的目标数据发送 给服务器,使得服务器根据客户端确定出的目标请求,执行相应的目标操作,从而,利用客户端与服务器之间的交互,实现客户端中数据的有效处理。Through the method provided by the second aspect, the client can send the target data that needs to be processed to the server, so that the server can perform the corresponding target operation according to the target request determined by the client, thus, using the interaction between the client and the server, Enables efficient processing of data in the client.
在一种可能的设计中,在所述目标操作包括归档操作时,对获取到的所述目标数据进行所述目标操作,包括:In a possible design, when the target operation includes an archiving operation, performing the target operation on the acquired target data includes:
将所述目标数据存储到第一文档中。The target data is stored in a first document.
在一种可能的设计中,所述方法还包括:In a possible design, the method also includes:
向所述客户端发送所述第一文档的链接,以使所述客户端在接收到对所述第一文档的链接执行的触发操作后,获取所述第一文档。Sending the link of the first document to the client, so that the client acquires the first document after receiving a trigger operation performed on the link of the first document.
在一种可能的设计中,所述方法还包括:In a possible design, the method also includes:
向所述客户端发送第一消息,所述第一消息用于指示所述目标数据已归档到所述第一文档中,以使所述客户端基于所述第一消息从所述第一文档中获取所述目标数据。sending a first message to the client, where the first message is used to indicate that the target data has been archived in the first document, so that the client can retrieve the first document from the first document based on the first message Get the target data in .
在一种可能的设计中,在所述目标操作还包括延迟阅读操作时,所述方法还包括:In a possible design, when the target operation also includes a delayed read operation, the method further includes:
将所述目标数据存储到第二文档中;storing the target data in a second file;
向所述客户端发送第二消息,所述第二消息用于指示在所述第二文档中获取所述目标数据,以使所述客户端基于所述第二消息从所述第二文档中获取所述目标数据。sending a second message to the client, where the second message is used to indicate to obtain the target data in the second document, so that the client obtains the target data from the second document based on the second message Get the target data.
在一种可能的设计中,在所述目标数据的类型为视频类型,且所述目标操作还包括文字转换和/或视频提取操作时,所述方法还包括:In a possible design, when the type of the target data is a video type, and the target operation also includes text conversion and/or video extraction operations, the method further includes:
对所述目标数据进行文字转换和/或视频提取操作,得到处理后的数据;Perform text conversion and/or video extraction operations on the target data to obtain processed data;
向所述客户端发送第三消息,所述第三消息中携带有所述处理后的数据,以使所述客户端获取所述处理后的数据。Sending a third message to the client, where the third message carries the processed data, so that the client acquires the processed data.
在一种可能的设计中,在所述目标数据的类型为网络链接类型,且所述目标操作还包括视频提取操作时,所述方法还包括:In a possible design, when the type of the target data is a network link type, and the target operation also includes a video extraction operation, the method further includes:
对所述目标数据进行视频提取操作,得到提取视频;Carrying out a video extraction operation on the target data to obtain the extracted video;
向所述客户端发送第四消息,所述第四消息中携带有所述提取视频,以使所述客户端获取所述提取视频。Sending a fourth message to the client, where the fourth message carries the extracted video, so that the client acquires the extracted video.
基于所述第三消息,获取所述处理后的数据。Based on the third message, acquire the processed data.
第三方面,本公开提供了一种数据处理装置,包括:In a third aspect, the present disclosure provides a data processing device, including:
发送模块,用于向服务器发送目标数据;A sending module, configured to send target data to the server;
接收模块,用于从所述服务器接收目标通知,所述目标通知为所述服务器基于所述目标数据的类型得到的,所述目标通知用于表示可对所述目标数据进行目标操作;A receiving module, configured to receive a target notification from the server, the target notification is obtained by the server based on the type of the target data, and the target notification is used to indicate that target operations can be performed on the target data;
显示模块,用于基于所述目标通知,显示目标内容;A display module, configured to display target content based on the target notification;
发送模块,还用于在接收到针对所述目标内容的触发指令后,向所述服务器发送目标请求,所述目标请求用于请求对所述目标数据进行所述目标操作,以使所述服务器对所述目标数据进行所述目标操作。The sending module is further configured to send a target request to the server after receiving the trigger instruction for the target content, the target request is used to request the target operation on the target data, so that the server The target operation is performed on the target data.
在一种可能的设计中,接收模块,具体用于:In one possible design, the receiving module is specifically used for:
接收对所述目标控件执行触发操作对应的所述触发指令。The trigger instruction corresponding to executing a trigger operation on the target control is received.
在一种可能的设计中,所述目标控件的显示样式与所述目标数据的类型相关。In a possible design, the display style of the target control is related to the type of the target data.
在一种可能的设计中,所述目标数据的类型包括:文本、图片、音频、视频、网络链接中的至少一种。In a possible design, the type of the target data includes: at least one of text, picture, audio, video, and network link.
在一种可能的设计中,该装置还包括:获取模块;In a possible design, the device also includes: an acquisition module;
接收模块,还用于从所述服务器接收第一文档的链接;a receiving module, further configured to receive a link of the first document from the server;
获取模块,用于在接收到对所述第一文档的链接执行的触发操作后,获取所述第一文档。An acquiring module, configured to acquire the first document after receiving a trigger operation performed on the link of the first document.
在一种可能的设计中,接收模块,还用于从所述服务器接收第一消息,所述第一消息用于指示所述目标数据已归档到第一文档中,所述第一文档为所述服务器对所述目标数据进行存储得到的;In a possible design, the receiving module is further configured to receive a first message from the server, where the first message is used to indicate that the target data has been archived into a first document, and the first document is the obtained by storing the target data by the server;
获取模块,还用于基于所述第一消息,从所述第一文档中获取所述目标数据。The acquiring module is further configured to acquire the target data from the first document based on the first message.
在一种可能的设计中,接收模块,还用于从所述服务器接收第二消 息,所述第二消息用于指示在第二文档中获取所述目标数据,所述第二文档为所述服务器对所述目标数据进行存储得到的;In a possible design, the receiving module is further configured to receive a second message from the server, the second message is used to indicate that the target data is acquired in a second document, the second document is the The server stores the target data;
获取模块,还用于基于所述第二消息,从所述第二文档中获取所述目标数据。The acquiring module is further configured to acquire the target data from the second document based on the second message.
在一种可能的设计中,接收模块,还用于从所述服务器接收第三消息,所述第三消息中携带有处理后的数据,所述处理后的数据为所述服务器对所述目标数据进行文字转换和/或视频提取操作得到的;In a possible design, the receiving module is further configured to receive a third message from the server, the third message carries processed data, and the processed data is the Data obtained through text conversion and/or video extraction operations;
获取模块,还用于基于所述第三消息,获取所述处理后的数据。The obtaining module is further configured to obtain the processed data based on the third message.
在一种可能的设计中,接收模块,还用于从所述服务器接收第四消息,所述第四消息中携带有提取视频,所述提取视频为所述服务器对所述目标数据进行视频提取操作得到的;In a possible design, the receiving module is further configured to receive a fourth message from the server, the fourth message carries an extracted video, and the extracted video is a video extracted by the server for the target data obtained by the operation;
获取模块,还用于基于所述第四消息,获取所述提取视频。The obtaining module is further configured to obtain the extracted video based on the fourth message.
上述第三方面以及上述第三方面的各可能的设计中所提供的数据处理装置,其有益效果可以参见上述第一方面和第一方面的各可能的实施方式所带来的有益效果,在此不再赘述。The beneficial effects of the data processing device provided in the above third aspect and each possible design of the above third aspect can be referred to the beneficial effects brought by the above first aspect and each possible implementation of the first aspect, here No longer.
第四方面,本公开提供了一种数据处理装置,包括:In a fourth aspect, the present disclosure provides a data processing device, including:
接收模块,用于从客户端接收目标数据;A receiving module, configured to receive target data from the client;
发送模块,用于基于所述目标数据的类型,向所述客户端发送目标通知,所述目标通知用于表示可对所述目标数据进行目标操作;A sending module, configured to send a target notification to the client based on the type of the target data, where the target notification is used to indicate that target operations can be performed on the target data;
接收模块,还用于从所述客户端接收目标请求,所述目标请求为所述客户端在接收到针对目标内容的触发指令后得到的,所述目标内容为所述客户端基于所述目标通知显示的,所述目标请求用于请求对所述目标数据进行所述目标操作;The receiving module is further configured to receive a target request from the client, the target request is obtained by the client after receiving a trigger instruction for target content, and the target content is the client based on the target As shown in the notification, the target request is used to request the target operation on the target data;
操作模块,用于对所述目标数据进行所述目标操作。An operation module, configured to perform the target operation on the target data.
在一种可能的设计中,操作模块,具体用于:In one possible design, the operating module is specifically for:
将所述目标数据存储到第一文档中。The target data is stored in a first document.
在一种可能的设计中,发送模块,还用于向所述客户端发送所述第一文档的链接,以使所述客户端在接收到对所述第一文档的链接执行 的触发操作后,获取所述第一文档。In a possible design, the sending module is further configured to send the link of the first document to the client, so that the client receives the trigger operation performed on the link of the first document , to get the first document.
在一种可能的设计中,发送模块,还用于向所述客户端发送第一消息,所述第一消息用于指示所述目标数据已归档到所述第一文档中,以使所述客户端基于所述第一消息从所述第一文档中获取所述目标数据。In a possible design, the sending module is further configured to send a first message to the client, where the first message is used to indicate that the target data has been filed in the first document, so that the The client acquires the target data from the first document based on the first message.
在一种可能的设计中,该装置还包括:存储模块;In a possible design, the device also includes: a storage module;
存储模块,用于将所述目标数据存储到第二文档中;a storage module, configured to store the target data into a second file;
发送模块,还用于向所述客户端发送第二消息,所述第二消息用于指示在所述第二文档中获取所述目标数据,以使所述客户端基于所述第二消息从所述第二文档中获取所述目标数据。A sending module, further configured to send a second message to the client, where the second message is used to indicate to obtain the target data in the second document, so that the client can obtain the target data based on the second message from The target data is obtained from the second document.
在一种可能的设计中,操作模块,还用于对所述目标数据进行文字转换和/或视频提取操作,得到处理后的数据;In a possible design, the operation module is further configured to perform text conversion and/or video extraction operations on the target data to obtain processed data;
发送模块,还用于向所述客户端发送第三消息,所述第三消息中携带有所述处理后的数据,以使所述客户端获取所述处理后的数据。The sending module is further configured to send a third message to the client, where the third message carries the processed data, so that the client can obtain the processed data.
在一种可能的设计中,操作模块,还用于对所述目标数据进行视频提取操作,得到提取视频;In a possible design, the operation module is further configured to perform a video extraction operation on the target data to obtain the extracted video;
发送模块,还用于向所述客户端发送第四消息,所述第四消息中携带有所述提取视频,以使所述客户端获取所述提取视频。The sending module is further configured to send a fourth message to the client, where the fourth message carries the extracted video, so that the client acquires the extracted video.
上述第四方面以及上述第四方面的各可能的设计中所提供的数据处理装置,其有益效果可以参见上述第二方面和第二方面的各可能的实施方式所带来的有益效果,在此不再赘述。The beneficial effects of the data processing device provided in the above fourth aspect and each possible design of the above fourth aspect can be referred to the beneficial effects brought by the above second aspect and each possible implementation of the second aspect, here No longer.
第五方面,本公开提供了一种服务器,包括:存储器和处理器;存储器用于存储程序指令;处理器用于调用存储器中的程序指令使得电子设备执行第一方面及第一方面任一种可能的设计中的数据处理方法。In a fifth aspect, the present disclosure provides a server, including: a memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions in the memory so that the electronic device executes any possibility of the first aspect and the first aspect The data processing method in the design.
第六方面,本公开提供了一种客户端,包括:存储器和处理器;存储器用于存储程序指令;处理器用于调用存储器中的程序指令使得电子设备执行第二方面及第二方面任一种可能的设计中的数据处理方法。In a sixth aspect, the present disclosure provides a client, including: a memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions in the memory so that the electronic device executes any one of the second aspect and the second aspect Data handling methods in possible designs.
第七方面,本公开提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行第一方面及第 一方面任一种可能的设计中的数据处理方法,或者,使得电子设备执行第二方面及第二方面任一种可能的设计中的数据处理方法。In a seventh aspect, the present disclosure provides a computer storage medium, including computer instructions. When the computer instructions are run on the electronic device, the electronic device executes the data processing method in any possible design of the first aspect and the first aspect. , or, causing the electronic device to execute the data processing method in any possible design of the second aspect and the second aspect.
第八方面,本公开提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行第一方面及第一方面任一种可能的设计中的数据处理方法,或者,使得计算机执行第二方面及第二方面任一种可能的设计中的数据处理方法。In an eighth aspect, the present disclosure provides a computer program product. When the computer program product is run on a computer, the computer is made to execute the data processing method in any possible design of the first aspect and the first aspect, or to make the computer Execute the second aspect and the data processing method in any possible design of the second aspect.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1为本公开实施例提供的服务器和客户端的信令交互图;FIG. 1 is a signaling interaction diagram between a server and a client provided by an embodiment of the present disclosure;
图2A-图2I为本公开实施例提供的服务器与客户端交互的界面示意图;2A-2I are schematic diagrams of an interface for interaction between a server and a client provided by an embodiment of the present disclosure;
图3为本公开实施例提供的数据处理装置的结构示意图;FIG. 3 is a schematic structural diagram of a data processing device provided by an embodiment of the present disclosure;
图4为本公开实施例提供的数据处理装置的结构示意图。FIG. 4 is a schematic structural diagram of a data processing device provided by an embodiment of the present disclosure.
具体实施方式detailed description
为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, in the case of no conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.
在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure can also be implemented in other ways than described here; obviously, the embodiments in the description are only some of the embodiments of the present disclosure, and Not all examples.
示例性地,本公开提供一种数据处理方法、装置、服务器、客户端、计算机存储介质以及计算机程序产品,通过服务器基于客户端对目标 数据的目标请求,对客户端进行数据操作通知,便于用户通过客户端选择目标数据需执行的操作,使得服务器能够对目标数据进行相应操作。从而,解决了用户需要通过第三方软件对目标数据进行数据处理才能得到所需的结果,有效提高客户端上数据的处理效率,同时,大大提升了用户与客户端的粘度。Exemplarily, the present disclosure provides a data processing method, device, server, client, computer storage medium, and computer program product. The server notifies the client of data operations based on the client's target request for target data, which is convenient for users The client selects the operation to be performed on the target data, so that the server can perform corresponding operations on the target data. Therefore, it solves the problem that users need to process the target data through third-party software to obtain the required results, effectively improves the data processing efficiency on the client, and at the same time greatly improves the viscosity between users and the client.
其中,本公开的数据处理方法由电子设备或者电子设备中的应用程序、网页、公众号等来执行。电子设备可以是平板电脑、手机、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、智能电视、智慧屏、高清电视、4K电视、智能音箱、智能投影仪等设备,本公开对电子设备的具体类型不作任何限制。Wherein, the data processing method of the present disclosure is executed by an electronic device or an application program, a webpage, a public account, etc. in the electronic device. The electronic device can be a tablet computer, a mobile phone, a wearable device, an in-vehicle device, an augmented reality (AR)/virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC) ), netbooks, personal digital assistants (personal digital assistants, PDAs), smart TVs, smart screens, high-definition TVs, 4K TVs, smart speakers, smart projectors and other devices, this disclosure does not impose any restrictions on the specific types of electronic devices.
其中,本公开对电子设备的操作系统的类型不做限定。例如,Android系统、Linux系统、Windows系统、iOS系统等。Wherein, the present disclosure does not limit the type of the operating system of the electronic device. For example, Android system, Linux system, Windows system, iOS system, etc.
请参阅图1,图1为本公开实施例提供的服务器和客户端的信令交互图。如图1所示,本公开提供的数据处理方法可以包括:Please refer to FIG. 1 . FIG. 1 is a signaling interaction diagram between a server and a client provided by an embodiment of the present disclosure. As shown in Figure 1, the data processing method provided by the present disclosure may include:
S110、客户端向服务器发送目标数据。S110. The client sends the target data to the server.
在本公开中,客户端对应于电子设备上安装的应用程序,其中,应用程序为具有聊天功能的一类软件,用于传递各个用户之间发送的实时数据。In this disclosure, a client corresponds to an application program installed on an electronic device, wherein the application program is a type of software with a chat function, and is used to transmit real-time data sent between users.
用户可通过客户端与其他用户进行消息传递。其中,目标数据为用户浏览客户端上指定内容而获得的一些数据,如用户浏览客户端上的推送消息,或者是用户与其他用户在客户端上进行数据传递时生成的一些数据,如用户与其他用户之间的聊天消息。Users can communicate with other users through the client. Among them, the target data is some data obtained by the user browsing the specified content on the client, such as the user browsing the push message on the client, or some data generated when the user communicates with other users on the client, such as the user and other users. Chat messages between other users.
其中,本公开对目标数据的具体形式不做限定,如目标数据可以包括但不限于是文本、图片、视频、音频等形式的数据。Wherein, the present disclosure does not limit the specific form of the target data, for example, the target data may include but not limited to data in the form of text, picture, video, audio and so on.
需要说明的是,本公开中客户端向服务器发送目标数据之前,需要经过登录客户端的用户的授权认证,用户才可通过客户端将目标数据 发送至服务器,从而,便于客户端中登录用户的数据安全性。It should be noted that before the client sends the target data to the server in this disclosure, it needs to be authorized and authenticated by the user who logs in to the client, and the user can send the target data to the server through the client. safety.
本公开中,服务器与客户端之间通信连接,来使得服务器和客户端之间能够进行有效的数据通信。其中,服务器与客户端之间通信连接的方式可包括但不限于是有线连接和无线连接。In the present disclosure, the communication connection between the server and the client enables effective data communication between the server and the client. Wherein, the manner of the communication connection between the server and the client may include but not limited to wired connection and wireless connection.
S120、服务器基于目标数据的类型,向客户端发送目标通知,目标通知用于表示可对目标数据进行目标操作。S120. The server sends a target notification to the client based on the type of the target data, where the target notification is used to indicate that a target operation can be performed on the target data.
在本公开中,可根据目标数据的展现形式对目标数据进行分类,得到多个目标数据的类型。其中,目标数据的类型可包括:聊天消息、图片、文本、视频以及音频。In the present disclosure, the target data can be classified according to the presentation form of the target data to obtain multiple types of target data. Wherein, the type of target data may include: chat messages, pictures, text, video and audio.
举例而言,第一用户和第二用户在客户端上进行聊天产生了聊天消息,客户端若向服务器发送的是多条聊天消息的集合,则服务器可确定接收到的目标数据的类型为聊天消息。其中,多条聊天消息的集合可为第一用户与第二用户在客户端上产生的聊天消息中的部分聊天消息,也可为第一用户与第二用户在客户端上产生的聊天消息中的全部聊天消息。For example, the first user and the second user chat on the client and generate chat messages. If the client sends a collection of chat messages to the server, the server can determine that the type of the received target data is chat information. Wherein, the collection of multiple chat messages may be part of the chat messages generated by the first user and the second user on the client, or may be part of the chat messages generated by the first user and the second user on the client. All chat messages for .
其中,第一用户和第二用户在客户端上进行聊天产生了聊天消息,客户端若向服务器发送的是聊天消息中的一条聊天消息,且该条聊天消息为一张图片,则服务器可确定接收到的目标数据的类型为图片。Wherein, the first user and the second user chat on the client and generate a chat message, if the client sends a chat message in the chat message to the server, and the chat message is a picture, the server can determine The type of the received target data is a picture.
其中,第一用户和第二用户在客户端上进行聊天产生了聊天消息,客户端若向服务器发送的是聊天消息中的一条聊天消息,且该条聊天消息为一条视频,则服务器可确定接收到的目标数据的类型为视频。Wherein, the first user and the second user chat on the client and generate a chat message. If the client sends a chat message in the chat message to the server, and the chat message is a video, the server can determine to receive the chat message. The type of the target data received is video.
其中,第一用户和第二用户在客户端上进行聊天产生了聊天消息,客户端若向服务器发送的是聊天消息中的一条聊天消息,且该条聊天消息为一条音频,则服务器可确定接收到的目标数据的类型为音频。Wherein, the first user and the second user chat on the client to generate a chat message, if the client sends a chat message in the chat message to the server, and the chat message is an audio, the server can determine to receive the chat message. The type of the target data received is audio.
本公开中,服务器在确定出目标数据的类型后,可向客户端返回一个目标通知,使得客户端选择对目标数据进行相应的目标操作。其中,目标通知可以弹窗、聊天消息等展现形式展示在客户端上。In the present disclosure, after determining the type of the target data, the server can return a target notification to the client, so that the client can choose to perform a corresponding target operation on the target data. Wherein, the target notification may be displayed on the client in the form of a pop-up window, a chat message, or the like.
在本公开中,客户端将目标数据发送给服务器后,可根据接收到的 服务器返回的目标通知,来对目标数据进行目标操作。其中,目标操作为对目标数据的内容的操作,可以包括但不限于是:归档操作、文本翻译、文本识别、文字转换和/或音频提取、翻译图片文字和/或识别图片文字、视频提取。In this disclosure, after the client sends the target data to the server, it can perform target operations on the target data according to the received target notification returned by the server. Wherein, the target operation is an operation on the content of the target data, which may include but not limited to: archiving operation, text translation, text recognition, text conversion and/or audio extraction, translation of picture text and/or recognition of picture text, video extraction.
S130、客户端基于目标通知,显示目标内容;在接收到针对目标内容的触发指令后,向服务器发送目标请求。S130. The client terminal displays the target content based on the target notification; after receiving a trigger instruction for the target content, sends a target request to the server.
其中,目标请求用于请求对目标数据进行目标操作,以使服务器对目标数据进行目标操作。Wherein, the target request is used to request to perform a target operation on the target data, so that the server performs the target operation on the target data.
在本公开中,目标请求为对应于目标操作的数据操作请求,用于告知服务器,客户端对目标数据所需的数据操作请求,从而,使得服务器根据目标请求对目标数据进行目标操作。In this disclosure, the target request is a data operation request corresponding to the target operation, and is used to inform the server of the data operation request required by the client for the target data, so that the server performs the target operation on the target data according to the target request.
其中,目标请求为客户端基于目标通知得到的,目标请求用于请求对目标数据进行目标操作。Wherein, the target request is obtained by the client based on the target notification, and the target request is used to request a target operation on the target data.
在本公开中,目标数据的标识为目标数据在客户端中用于区分身份信息的一个标志。其中,目标数据的标识可包括但不限于是目标数据在客户端中存储位置的一个编号,或者是目标数据的在客户端中的数据编号,如数字111。In this disclosure, the identification of the target data is a mark used by the target data to distinguish identity information in the client. Wherein, the identification of the target data may include, but not limited to, a serial number of the storage location of the target data in the client, or a data serial number of the target data in the client, such as the number 111 .
在本公开中,服务器可能存在同时接收多个目标数据的情况,在接收到客户端发送的目标数据后,服务器会将接收到的目标数据进行存储,来保存客户端中的数据。In this disclosure, the server may receive multiple target data at the same time, and after receiving the target data sent by the client, the server will store the received target data to save the data in the client.
其中,服务器在接收到目标请求时,从预先存储的多个目标数据中,基于目标数据的标识,查找出目标数据的标识对应的目标数据,从而,服务器能够基于不同的目标数据的标识,便于对多个目标数据进行同时处理。Wherein, when the server receives the target request, it searches out the target data corresponding to the target data mark from the pre-stored multiple target data based on the mark of the target data, so that the server can use different target data marks to facilitate Simultaneous processing of multiple target data.
S140、服务器对目标数据进行目标操作。S140. The server performs a target operation on the target data.
在本公开中,与客户端连接的服务器可直接根据客户端的需求对目标数据进行目标操作,能够及时响应客户端的需求,对目标数据进行相应操作,来得到用户所需的目标数据的处理结果。In this disclosure, the server connected to the client can directly perform target operations on the target data according to the needs of the client, respond to the needs of the client in time, and perform corresponding operations on the target data to obtain the processing results of the target data required by the user.
本公开提供的数据处理方法,在用户使用客户端期间,服务器能够基于客户端对目标数据的目标请求,对客户端进行数据操作通知,便于用户通过客户端自主选择目标数据需执行的操作。从而,解决了用户需要通过第三方软件对目标数据进行数据处理才能得到所需的结果,有效提高客户端上数据的处理效率,同时,大大提升了用户与客户端的粘度。In the data processing method provided by the present disclosure, during the user's use of the client, the server can notify the client of data operations based on the client's target request for the target data, so that the user can independently select the operation to be performed on the target data through the client. Therefore, it solves the problem that users need to process the target data through third-party software to obtain the required results, effectively improves the data processing efficiency on the client, and at the same time greatly improves the viscosity between users and the client.
基于上述实施例的描述,在目标操作包括归档操作时,服务器对获取到的目标数据进行目标操作,包括:服务器将目标数据存储到第一文档中。Based on the description of the above embodiment, when the target operation includes an archiving operation, the server performs the target operation on the acquired target data, including: the server stores the target data in the first document.
在本公开中,归档操作为对目标数据进行的存储操作,如将目标数据写入到已创建的一个云文档中,或者,新建一个云文档,将目标数据写入新建的云文档。In this disclosure, the archiving operation is a storage operation performed on target data, such as writing the target data into a created cloud document, or creating a new cloud document and writing the target data into the newly created cloud document.
其中,第一文档为服务器中的一个云文档,服务器与客户端通信连接,从而,能够确保客户端在需要查看文档时直接从服务器中获取得到。Wherein, the first document is a cloud document in the server, and the server communicates with the client, thereby ensuring that the client directly obtains the document from the server when it needs to view the document.
需要说明的是,本公开对第一文档不做限定。如第一文档可为服务器中已创建的云文档,或者,第一文档可为用户通过客户端在服务器中创建的一个新的云文档。It should be noted that the present disclosure does not limit the first document. For example, the first document may be a cloud document created on the server, or the first document may be a new cloud document created by the user on the server through the client.
本公开以客户端向服务器发送的目标数据的类型为文本类型进行客户端与服务器数据交互的示例说明,可参见图2A。在图2A中,界面11为客户端向机器人(如上述所提及的服务器)发送目标数据的界面。In the present disclosure, the type of target data sent by the client to the server is a text type for an example description of data interaction between the client and the server, as shown in FIG. 2A . In FIG. 2A , the interface 11 is an interface for the client to send target data to the robot (such as the server mentioned above).
其中,界面11可以包括:区域101,用于展示目标数据的具体内容。其中,区域101中展示的目标数据对应的类型为文本类型,文本类型即表示目标数据包含的具体内容为纯文本信息。纯文本信息如文字、字符串、数字、或者文字、字符串和数字中至少两种形式的组合。Wherein, the interface 11 may include: an area 101 for displaying specific content of the target data. Wherein, the type corresponding to the target data displayed in the area 101 is a text type, and the text type means that the specific content contained in the target data is plain text information. Plain text information such as words, character strings, numbers, or a combination of at least two forms of words, character strings, and numbers.
界面11除了包含区域101之外,还可以包含区域102,用于记录区域101中的目标数据的发送时间。In addition to the area 101 , the interface 11 may also include an area 102 for recording the sending time of the target data in the area 101 .
其中,一个目标数据的发送时间均与该目标数据对应,在区域101 中具有多个目标数据时,区域102可分别展示在与区域101对应的位置。在一些实施例中,区域102可展示在区域101的上方位置。Wherein, the sending time of one object data corresponds to the object data, and when there are multiple object data in the area 101, the area 102 can be displayed in the positions corresponding to the area 101 respectively. In some embodiments, area 102 may be shown above area 101 .
客户端在向服务器发送目标数据之后,服务器会向客户端返回一个目标通知,目标通知的具体展示形式可参见图2B示例性所示。图2B中,界面11中可以包括:区域103,用于展示目标数据的目标通知。After the client sends the target data to the server, the server will return a target notification to the client. For a specific display form of the target notification, refer to the example shown in FIG. 2B . In FIG. 2B , the interface 11 may include: an area 103 for displaying target notification of target data.
其中,区域103中可包括:区域1031和区域1032。Wherein, the area 103 may include: an area 1031 and an area 1032 .
区域1031,用于对应展示区域101中的目标数据的信息。使得客户端向用户展示待处理的目标数据,便于用户进行相关操作的选择。其中,目标数据的信息可为区域101中的目标数据,也可为区域101中目标数据的标识。Area 1031 is used for correspondingly displaying the target data information in area 101 . This enables the client to display the target data to be processed to the user, making it convenient for the user to select related operations. Wherein, the information of the target data may be the target data in the area 101 , and may also be the identification of the target data in the area 101 .
区域1032,用于展示区域1031中的目标数据对应的目标通知的展开控件。用户可通过触发区域1032中的展开控件,来指示服务器对目标数据进行目标操作,其中,展开控件如区域1032中的“写入文档”。The area 1032 is used to display the expansion control of the target notification corresponding to the target data in the area 1031 . The user can instruct the server to perform a target operation on the target data by triggering the expansion control in the area 1032 , wherein the expansion control is "write document" in the area 1032 .
在服务器接收到区域1032中展开控件的触发操作时,在界面11中展示如图2C示例性所示的区域104。其中,区域104用于展示目标通知下对应的目标操作。区域104可包括区域1041和区域1042。When the server receives a trigger operation to expand the controls in the area 1032 , the area 104 as exemplarily shown in FIG. 2C is displayed on the interface 11 . Among them, the area 104 is used to display the corresponding target operation under the target notification. Region 104 may include region 1041 and region 1042 .
区域1041,用于展示新建文档的创建窗口。用户可通过点击区域1041,为目标数据创建一个新的云文档。 Area 1041 is used to display the creation window of a new document. The user can create a new cloud document for the target data by clicking on the area 1041 .
区域1042,用于展示服务器中默认的多个已有文档的窗口。用户可通过点击区域1042中的一个已有文档的窗口,将目标数据插入到该文档中。在一些实施例中,用户可根据自身需求对区域1042中的已有文档进行删除或者增添操作,来满足数据的存储需求。 Area 1042 is used to display multiple default windows of existing documents in the server. A user may insert target data into a document by clicking on an existing document window in area 1042 . In some embodiments, users can delete or add existing documents in the area 1042 according to their own needs, so as to meet the data storage requirements.
其中,上述提及的触发操作可包括点击、双击等操作。本公开对此不做限定。Wherein, the trigger operation mentioned above may include operations such as clicking and double-clicking. The present disclosure does not limit this.
基于上述实施例的描述,目标内容可包括目标控件。客户端在接收到对目标控件执行触发操作对应的触发指令后,向服务器发送目标请求。目标控件的具体实现方式可参见对图2B中区域1032的展开控件的描述。Based on the description of the above embodiments, the target content may include a target control. The client sends a target request to the server after receiving a trigger instruction corresponding to executing a trigger operation on the target control. For the specific implementation of the target control, refer to the description of the expanded control in area 1032 in FIG. 2B .
其中,目标控件的显示样式与目标数据的类型相关。使得,不同目标数据的类型下显示的目标控件与该目标数据具有较强的关联关系。Wherein, the display style of the target control is related to the type of the target data. Thus, the target controls displayed under different types of target data have a strong correlation with the target data.
进一步地,在服务器将目标数据存储到第一文档中之后,服务器还可向客户端发送目标数据的获取途径,使得客户端能够有效获取到目标数据。Further, after the server stores the target data in the first document, the server may also send the client a way to obtain the target data, so that the client can effectively obtain the target data.
在本实施例中,可选的,还可以包括:In this embodiment, optionally, may also include:
服务器向客户端发送第一文档的链接,以使客户端在接收到对第一文档的链接执行的触发操作后,获取第一文档。The server sends the link of the first document to the client, so that the client acquires the first document after receiving a trigger operation performed on the link of the first document.
其中,服务器在将目标数据存储至第一文档之后,向客户端返回一个外部链接,使得,便于用户通过客户端上的外部链接对目标数据进行实时追溯。Wherein, after storing the target data in the first document, the server returns an external link to the client, so that the user can trace the target data in real time through the external link on the client.
另外,客户端可从服务器接收第一文档的链接。Additionally, the client may receive a link to the first document from the server.
在接收到对第一文档的链接执行的触发操作后,获取第一文档。After receiving the trigger operation performed on the link of the first document, the first document is acquired.
从而,便于在客户端中记录目标数据在服务器中的存储位置,使得能够直接从客户端进入到服务器的目标数据的存储位置,来获取目标数据。Therefore, it is convenient to record the storage location of the target data in the server in the client, so that the target data can be obtained by directly entering the storage location of the target data in the server from the client.
其中,第一文档可分为如下多种情况。Wherein, the first document can be divided into the following multiple situations.
在一些实施例中,第一文档可为服务器中新建的一个云文档。其中,客户端接收到针对目标内容的触发指令为新建一个文档时,则第一文档对应服务器中新建的一个云文档。且,第一文档的链接由服务器生成。In some embodiments, the first document may be a new cloud document in the server. Wherein, when the client receives a trigger instruction for the target content to create a new document, the first document corresponds to a new cloud document in the server. And, the link of the first document is generated by the server.
在另一些实施例中,第一文档可为服务器中已有的一个默认云文档。其中,客户端接收到针对目标内容的触发指令为将目标数据插入一个默认云文档时,则第一文档对应该默认文档。且,客户端发送给服务器的目标请求中携带有该默认文档的标识。其中,默认文档的标识可包括文档ID或者文档链接。In some other embodiments, the first document may be a default cloud document existing in the server. Wherein, when the client receives a trigger instruction for the target content to insert the target data into a default cloud document, the first document corresponds to the default document. Moreover, the target request sent by the client to the server carries the identifier of the default document. Wherein, the identifier of the default document may include a document ID or a document link.
在又一些实施例中,第一文档可为服务器中已经创建过的一个云文档。其中,客户端接收到针对目标内容的触发指令为将目标数据插入一个已创建的云文档时,则第一文档对应该已创建的云文档。且,客户 端发送给服务器的目标请求中携带有该已创建的云文档的标识。其中,默认文档的标识可包括文档ID或者文档链接。In some other embodiments, the first document may be a cloud document already created in the server. Wherein, when the client receives a trigger instruction for the target content to insert the target data into a created cloud document, the first document corresponds to the created cloud document. Moreover, the target request sent by the client to the server carries the identifier of the created cloud document. Wherein, the identifier of the default document may include a document ID or a document link.
其中,服务器响应于用户通过客户端对区域104中的触发操作,服务器在界面11中展示如图2D示例性所示的区域105,用于展示目标数据的存储文档对应的外部链接。Wherein, in response to the user's trigger operation on the area 104 through the client, the server displays the area 105 in the interface 11 as exemplarily shown in FIG. 2D , which is used to display the external link corresponding to the stored document of the target data.
举例而言,用户通过点击如图2C中的区域1041中的“新建”按钮,为目标数据创建一个新的文档,来将目标数据进行存储,服务器会返回一个目标数据的存储文档的外部链接。For example, the user creates a new document for the target data by clicking the "New" button in the area 1041 in FIG. 2C to store the target data, and the server returns an external link of the stored document of the target data.
或者,用户通过点击如图2C中区域1042中某一已有文档中的“插入”按钮,将目标数据添加至该已有文档的末尾位置,服务器会返回一个目标数据的存储文档的外部链接。Alternatively, the user adds the target data to the end of the existing document by clicking the "insert" button in an existing document in area 1042 in FIG. 2C, and the server returns an external link of the stored document of the target data.
从而,有效在客户端中记录目标数据的保存地址,便于用户后期对目标数据进行有效追溯。Therefore, the storage address of the target data is effectively recorded in the client, which is convenient for the user to effectively trace the target data later.
基于上述实施例的描述,在S180之后,本实施例方法还可以包括:Based on the description of the above embodiment, after S180, the method in this embodiment may further include:
服务器向客户端发送第一消息。The server sends a first message to the client.
其中,第一消息用于指示目标数据已归档到第一文档中,以使客户端基于第一消息从第一文档中获取目标数据。Wherein, the first message is used to indicate that the target data has been filed in the first document, so that the client obtains the target data from the first document based on the first message.
在本公开中,第一消息为服务器向客户端发送的一个提示消息,用于提示客户端目标数据已进行归档操作,使得客户端在需要获取目标数据时,根据第一消息获取目标数据。In this disclosure, the first message is a prompt message sent by the server to the client, which is used to remind the client that the target data has been archived, so that the client can obtain the target data according to the first message when it needs to obtain the target data.
基于上述实施例的描述,在服务器向客户端发送第一消息之后,本实施例还可以包括:Based on the description of the above embodiment, after the server sends the first message to the client, this embodiment may further include:
客户端从服务器接收第一消息,基于第一消息,从第一文档中获取目标数据。The client receives the first message from the server, and acquires target data from the first document based on the first message.
其中,第一消息用于指示目标数据已归档到第一文档中,第一文档为服务器对目标数据进行存储得到的。Wherein, the first message is used to indicate that the target data has been archived into the first document, and the first document is obtained by storing the target data by the server.
本公开中,客户端从服务器中接收目标数据对应的第一消息,能够在需要查看目标数据时,基于第一消息快速定位出目标数据存储的云 文档,从而,有效获取到目标数据。In this disclosure, the client receives the first message corresponding to the target data from the server, and can quickly locate the cloud document stored in the target data based on the first message when the target data needs to be viewed, thereby effectively obtaining the target data.
基于上述实施例的描述,目标操作还可以包括延迟阅读操作,本实施例方法还可以包括:Based on the description of the above embodiment, the target operation may also include a delayed read operation, and the method of this embodiment may also include:
服务器将目标数据存储到第二文档中;向客户端发送第二消息,第二消息用于指示在第二文档中获取目标数据,以使客户端基于第二消息从第二文档中获取目标数据。The server stores the target data in the second document; sends a second message to the client, the second message is used to indicate to obtain the target data in the second document, so that the client obtains the target data from the second document based on the second message .
本公开中,第二文档为服务器中存储文档中的一个云文档,用于表示文档中的数据延迟阅读。In the present disclosure, the second document is a cloud document among the documents stored in the server, which is used to represent the delayed reading of the data in the document.
其中,第二消息中可包括第二文档的链接,第二消息的展现形式如图2E的界面12中的区域106示例性所示。从而,服务器能够响应于用户需求,对目标数据进行延迟操作处理。Wherein, the second message may include a link of the second document, and the presentation form of the second message is exemplarily shown as the area 106 in the interface 12 of FIG. 2E . Therefore, the server can perform delayed operation processing on the target data in response to user requirements.
另外,区域106中可记录延迟阅读的提醒时间,从而,在当前时间达到提醒时间时,及时进行阅读提醒。In addition, the reminder time for delayed reading can be recorded in the area 106, so that when the current time reaches the reminder time, a reading reminder is performed in time.
客户端从服务器接收第二消息,第二消息用于指示在第二文档中获取目标数据,第二文档为服务器对目标数据进行存储得到的;基于第二消息,从第二文档中获取目标数据。The client receives a second message from the server, the second message is used to indicate to obtain the target data in the second document, and the second document is obtained by the server storing the target data; based on the second message, the target data is obtained from the second document .
其中,第二文档为目标数据在服务器中存储的云文档。客户端能够基于服务器返回的第二消息,对目标数据进行有效查看。Wherein, the second document is a cloud document in which the target data is stored in the server. The client can effectively check the target data based on the second message returned by the server.
基于上述实施例的描述,目标数据的类型可具有多种实现类型,其中,目标数据的类型可包括:文本、图片、音频、视频、网络链接中的至少一种。同时,目标操作可具有多种实现操作。Based on the descriptions of the above embodiments, the type of target data may have multiple implementation types, wherein the type of target data may include: at least one of text, picture, audio, video, and network link. Meanwhile, the target operation may have various realization operations.
一些实施例中,可选的,在目标数据的类型为文本类型,且目标操作还包括文本翻译操作时,本实施例方法还可包括:In some embodiments, optionally, when the type of the target data is a text type, and the target operation also includes a text translation operation, the method in this embodiment may further include:
服务器对目标数据进行文本翻译操作,得到翻译数据;向客户端发送翻译消息,翻译消息中携带有翻译数据,以使客户端基于翻译消息获取翻译数据。The server performs a text translation operation on the target data to obtain translation data; sends a translation message to the client, and the translation message carries the translation data, so that the client obtains the translation data based on the translation message.
其中,用户可在客户端上选择目标数据需要进行的操作,如文本翻译操作,使得用户能够在客户端上直接获取到目标数据翻译后的结果。Among them, the user can select the operation required by the target data on the client, such as a text translation operation, so that the user can directly obtain the translated result of the target data on the client.
客户端从服务器接收翻译消息,翻译消息中携带有翻译数据,翻译数据为服务器对目标数据进行文本翻译操作得到的;基于翻译消息,获取翻译数据。The client receives a translation message from the server, the translation message carries translation data, and the translation data is obtained by the server performing a text translation operation on the target data; based on the translation message, the translation data is obtained.
其中,服务器将目标数据经过翻译后得到的翻译数据返回给客户端,从而,便于用户在客户端上对需要进行文本翻译操作的目标数据直接进行文本翻译,能够有效提高在客户端上对目标数据的有效处理。Among them, the server returns the translation data obtained after the target data is translated to the client, so that it is convenient for the user to directly perform text translation on the target data that needs to be translated on the client, which can effectively improve the accuracy of the target data on the client. effective processing.
另一些实施例中,可选的,在目标数据的类型为音频类型,且目标操作还包括文字转换和/或音频提取操作时,本实施例方法还可包括:In other embodiments, optionally, when the type of the target data is an audio type, and the target operation also includes text conversion and/or audio extraction operations, the method in this embodiment may further include:
服务器对目标数据进行文字转换和/或音频提取操作,得到处理后的数据;向客户端发送对应消息,对应消息中携带有处理后的数据,以使客户端获取处理后的数据。其中,对应消息可包括转换消息和/或提取消息。The server performs text conversion and/or audio extraction operations on the target data to obtain processed data; sends a corresponding message to the client, and the corresponding message carries the processed data, so that the client obtains the processed data. Wherein, the corresponding message may include converting the message and/or extracting the message.
其中,目标数据可为音频类型,如第一用户发送给第二用户的语音消息,或者,第二用户发送给第一用户的语音消息。Wherein, the target data may be an audio type, such as a voice message sent by the first user to the second user, or a voice message sent by the second user to the first user.
客户端从服务器接收对应消息,对应消息中携带有处理后的数据,处理后的数据为服务器对目标数据进行文字转换和/或音频提取操作得到的;基于对应消息,获取处理后的数据。The client receives a corresponding message from the server, and the corresponding message carries processed data obtained by the server performing text conversion and/or audio extraction on the target data; based on the corresponding message, the processed data is obtained.
服务器在对音频类型的目标数据进行云文档存储前,可将目标数据进行文字转换和/或音频提取,得到处理后的数据,并将处理后的数据存储在云文档中,返回给客户端对应消息。Before storing the target data of the audio type in the cloud document, the server can convert the target data into text and/or extract the audio to obtain the processed data, store the processed data in the cloud document, and return the corresponding data to the client. information.
从而,使得用户可在客户端上查看音频类型的目标数据对应的文本信息和音频信息。Thus, the user can view the text information and audio information corresponding to the target data of the audio type on the client.
再一些实施例中,可选的,在目标数据的类型为图片类型,且目标操作还包括翻译图片文字和/或识别图片文字操作时,本实施例方法还可包括:In some further embodiments, optionally, when the type of target data is a picture type, and the target operation also includes translating picture text and/or recognizing picture text, the method in this embodiment may further include:
服务器对目标数据进行翻译图片文字和/或识别图片文字操作,得到处理后的数据;向客户端发送图片处理消息,图片处理消息中携带有处理后的数据,以使客户端获取处理后的数据。其中,图片处理消息可 包括翻译消息和/或识别消息。The server translates the image text and/or recognizes the image text on the target data to obtain the processed data; sends an image processing message to the client, and the image processing message carries the processed data, so that the client can obtain the processed data . Wherein, the image processing message may include a translation message and/or an identification message.
其中,在客户端发送给服务器的目标数据为一张带有文字的图片时,服务器会向客户端返回一个如图2F示例性所示的界面13。Wherein, when the target data sent by the client to the server is a picture with text, the server will return an interface 13 as exemplarily shown in FIG. 2F to the client.
界面13中包括:区域107和区域108。 Interface 13 includes: area 107 and area 108 .
区域107,用于展示客户端向服务器发送的图片。其中,图片中的文字的具体展示形式可为英文形式。 Area 107 is used to display pictures sent by the client to the server. Wherein, the specific display form of the text in the picture may be in English.
区域108,用于展示服务器向客户端提供的对于区域107中图片的处理操作。其中,处理操作可包括但不限于是:翻译图中文字、识别文字、插入到@@@文档中、生成外部链接。 Area 108 is used to display the processing operations for the pictures in area 107 provided by the server to the client. Wherein, the processing operation may include but not limited to: translate text in the picture, recognize text, insert into @@@document, generate external link.
需要说明的是,区域108中展示的更多操作可基于区域107中的内容进行展示。举例而言,若区域107中文本的具体展示形式为中文,则区域108中可不出现“翻译图中文字”的操作。It should be noted that more operations displayed in area 108 may be displayed based on content in area 107 . For example, if the specific display form of the text in the area 107 is Chinese, the operation of "translate the text in the picture" may not appear in the area 108 .
其中,区域108中更多操作对应的各操作框为一个可触控的虚拟按钮,用于对区域107中的图片进行相应的操作。Wherein, each operation box corresponding to more operations in the area 108 is a touchable virtual button for performing corresponding operations on the pictures in the area 107 .
在点击触发区域108中的“识别文字”的虚拟按钮时,服务器可向客户端返回如图2G中示例性所示的区域109。When the virtual button of "recognize text" in the trigger area 108 is clicked, the server may return the area 109 as exemplarily shown in FIG. 2G to the client.
在点击触发区域108中的“翻译图中文字”的虚拟按钮时,服务器可向客户端返回如图2H中示例性所示的区域110。When the virtual button of "translate text in the picture" in the trigger area 108 is clicked, the server may return the area 110 as exemplarily shown in FIG. 2H to the client.
客户端从服务器接收图片处理消息,图片处理消息中携带有处理后的数据,处理后的数据为服务器对目标数据进行翻译图片文字和/或识别图片文字操作得到的;基于图片处理消息,获取处理后的数据。The client receives the image processing message from the server. The image processing message carries the processed data. The processed data is obtained by the server by translating the image text and/or identifying the image text of the target data; based on the image processing message, the processing after the data.
其中,客户端能够根据与服务器的信息交互,对客户端中产生的图片类型的目标数据进行光学字符识别(Optical Character Recognition,OCR),从而,有效得到图片中的文本信息。Among them, the client can perform optical character recognition (Optical Character Recognition, OCR) on the target data of the picture type generated in the client according to the information interaction with the server, thereby effectively obtaining the text information in the picture.
需要说明的是,服务器会对客户端发送的图片进行尺寸压缩,从而,客户端在进行再次查看该图片时,尺寸比原来的小,能够降低服务器存储图片的容量损耗。It should be noted that the server will compress the size of the picture sent by the client, so that when the client checks the picture again, the size will be smaller than the original one, which can reduce the capacity loss of the server for storing pictures.
再一些实施例中,可选的,在目标数据的类型为视频类型,且目标 操作还包括文字转换和/或视频提取操作时,本实施例方法还可包括:In some further embodiments, optionally, when the type of the target data is a video type, and the target operation also includes text conversion and/or video extraction operations, the method of this embodiment may also include:
服务器对目标数据进行文字转换和/或视频提取操作,得到处理后的数据;向客户端发送第三消息,第三消息中携带有处理后的数据,以使客户端获取处理后的数据。The server performs text conversion and/or video extraction operations on the target data to obtain processed data; sends a third message to the client, and the third message carries the processed data, so that the client obtains the processed data.
客户端从服务器接收第三消息,第三消息中携带有处理后的数据,处理后的数据为服务器对目标数据进行文字转换和/或视频提取操作得到的;基于第三消息,获取处理后的数据。The client receives a third message from the server, the third message carries processed data, and the processed data is obtained by the server performing text conversion and/or video extraction on the target data; based on the third message, the processed data is obtained data.
其中,服务器在接收到客户端发送的视频类型的目标数据后,响应于客户端的文字转换和/或视频提取操作,对目标数据进行文字转换和/或视频提取,使得客户端能够获得目标数据处理后的数据。Wherein, after receiving the target data of the video type sent by the client, the server performs text conversion and/or video extraction on the target data in response to the text conversion and/or video extraction operation of the client, so that the client can obtain the target data processing after the data.
再一些实施例中,可选的,在目标数据的类型为网络链接类型,且目标操作还包括视频提取操作时,本实施例方法还包括:In some further embodiments, optionally, when the type of the target data is a network link type, and the target operation also includes a video extraction operation, the method in this embodiment further includes:
对目标数据进行视频提取操作,得到提取视频;Perform a video extraction operation on the target data to obtain the extracted video;
向客户端发送第四消息,第四消息中携带有提取视频,以使客户端获取提取视频。A fourth message is sent to the client, where the extracted video is carried in the fourth message, so that the client obtains the extracted video.
其中,客户端向服务器发送的网络链接类型的目标数据如图2I的界面14中区域120示例性所示的展示。Wherein, the target data of the network link type sent by the client to the server is shown as an example in the area 120 in the interface 14 of FIG. 2I .
界面14中还可以包括:区域121。The interface 14 may further include: an area 121 .
区域121,用于在接收到对区域120中虚拟按钮的触发后,展示区域120链接中内容的获取途径。The area 121 is used to display the acquisition method of the content in the link in the area 120 after receiving the trigger of the virtual button in the area 120 .
另外,客户端可从服务器接收第四消息,第四消息中携带有提取视频,提取视频为服务器对目标数据进行视频提取操作得到的;基于第四消息,获取提取视频。In addition, the client may receive a fourth message from the server, the fourth message carries the extracted video, and the extracted video is obtained by the server performing a video extraction operation on the target data; based on the fourth message, the extracted video is obtained.
其中,提取视频可参见如图2I中区域121中的展示。用户可在客户端上点击区域121中视频的下载按钮,从而,能够使得用户快速获取到链接中的视频。Wherein, the extracted video may refer to the display in area 121 in FIG. 2I. The user can click the download button of the video in the area 121 on the client terminal, so that the user can quickly obtain the video in the link.
示例性地,本公开提供另一种数据处理装置。Exemplarily, the present disclosure provides another data processing device.
如图3所示,本公开提供的数据处理装置300可以包括:发送模块301、接收模块302和显示模块303。As shown in FIG. 3 , the data processing apparatus 300 provided in the present disclosure may include: a sending module 301 , a receiving module 302 and a display module 303 .
发送模块301,用于向服务器发送目标数据;Sending module 301, configured to send target data to the server;
接收模块302,用于从所述服务器接收目标通知,所述目标通知为所述服务器基于所述目标数据的类型得到的,所述目标通知用于表示可对所述目标数据进行目标操作;A receiving module 302, configured to receive a target notification from the server, the target notification is obtained by the server based on the type of the target data, and the target notification is used to indicate that target operations can be performed on the target data;
显示模块303,用于基于所述目标通知,显示目标内容;A display module 303, configured to display target content based on the target notification;
发送模块301,还用于在接收到针对所述目标内容的触发指令后,向所述服务器发送目标请求,所述目标请求用于请求对所述目标数据进行所述目标操作,以使所述服务器对所述目标数据进行所述目标操作。The sending module 301 is further configured to send a target request to the server after receiving the trigger instruction for the target content, the target request is used to request the target operation on the target data, so that the The server performs the target operation on the target data.
在一些实施例中,接收模块302,具体用于:In some embodiments, the receiving module 302 is specifically used for:
接收对所述目标控件执行触发操作对应的所述触发指令。The trigger instruction corresponding to executing a trigger operation on the target control is received.
在一些实施例中,所述目标控件的显示样式与所述目标数据的类型相关。In some embodiments, the display style of the target control is related to the type of the target data.
在一些实施例中,所述目标数据的类型包括:文本、图片、音频、视频、网络链接中的至少一种。In some embodiments, the type of the target data includes: at least one of text, picture, audio, video, and network link.
在一些实施例中,该装置还包括:获取模块;In some embodiments, the device also includes: an acquisition module;
接收模块302,还用于从所述服务器接收第一文档的链接;The receiving module 302 is further configured to receive the link of the first document from the server;
获取模块,用于在接收到对所述第一文档的链接执行的触发操作后,获取所述第一文档。An acquiring module, configured to acquire the first document after receiving a trigger operation performed on the link of the first document.
在一些实施例中,接收模块302,还用于从所述服务器接收第一消息,所述第一消息用于指示所述目标数据已归档到第一文档中,所述第一文档为所述服务器对所述目标数据进行存储得到的;In some embodiments, the receiving module 302 is further configured to receive a first message from the server, the first message is used to indicate that the target data has been archived into a first document, and the first document is the The server stores the target data;
获取模块,还用于基于所述第一消息,从所述第一文档中获取所述目标数据。The acquiring module is further configured to acquire the target data from the first document based on the first message.
在一些实施例中,接收模块302,还用于从所述服务器接收第二消息,所述第二消息用于指示在第二文档中获取所述目标数据,所述第二 文档为所述服务器对所述目标数据进行存储得到的;In some embodiments, the receiving module 302 is further configured to receive a second message from the server, the second message is used to indicate that the target data is acquired in a second document, the second document is the obtained by storing the target data;
获取模块,还用于基于所述第二消息,从所述第二文档中获取所述目标数据。The acquiring module is further configured to acquire the target data from the second document based on the second message.
在一些实施例中,接收模块302,还用于从所述服务器接收第三消息,所述第三消息中携带有处理后的数据,所述处理后的数据为所述服务器对所述目标数据进行文字转换和/或视频提取操作得到的;In some embodiments, the receiving module 302 is further configured to receive a third message from the server, the third message carries processed data, and the processed data is obtained through text conversion and/or video extraction;
获取模块,还用于基于所述第三消息,获取所述处理后的数据。The obtaining module is further configured to obtain the processed data based on the third message.
在一些实施例中,接收模块302,还用于从所述服务器接收第四消息,所述第四消息中携带有提取视频,所述提取视频为所述服务器对所述目标数据进行视频提取操作得到的;In some embodiments, the receiving module 302 is further configured to receive a fourth message from the server, the fourth message carries an extracted video, and the extracted video is a video extraction operation performed by the server on the target data owned;
获取模块,还用于基于所述第四消息,获取所述提取视频。The obtaining module is further configured to obtain the extracted video based on the fourth message.
本公开提供的数据处理装置,可执行上述方法实施例,其具体实现原理和技术效果,可参见上述方法实施例,本公开此处不再赘述。The data processing device provided in the present disclosure can execute the foregoing method embodiments, and its specific implementation principles and technical effects can be referred to the foregoing method embodiments, which will not be repeated here in the present disclosure.
示例性地,本公开提供一种数据处理装置。Exemplarily, the present disclosure provides a data processing device.
如图4所示,本公开提供的数据处理装置400可以包括:接收模块401、发送模块402和操作模块404。As shown in FIG. 4 , the data processing apparatus 400 provided in the present disclosure may include: a receiving module 401 , a sending module 402 and an operating module 404 .
接收模块401,用于从客户端接收目标数据;A receiving module 401, configured to receive target data from a client;
发送模块402,用于基于所述目标数据的类型,向所述客户端发送目标通知,所述目标通知用于表示可对所述目标数据进行目标操作;A sending module 402, configured to send a target notification to the client based on the type of the target data, where the target notification is used to indicate that target operations can be performed on the target data;
接收模块401,还用于从所述客户端接收目标请求,所述目标请求为所述客户端在接收到针对目标内容的触发指令后得到的,所述目标内容为所述客户端基于所述目标通知显示的,所述目标请求用于请求对所述目标数据进行所述目标操作;The receiving module 401 is further configured to receive a target request from the client, the target request is obtained by the client after receiving a trigger instruction for target content, the target content is the client based on the As displayed in the target notification, the target request is used to request the target operation on the target data;
操作模块403,用于对所述目标数据进行所述目标操作。An operation module 403, configured to perform the target operation on the target data.
在一些实施例中,操作模块403,具体用于:In some embodiments, the operation module 403 is specifically used to:
将所述目标数据存储到第一文档中。The target data is stored in a first document.
在一些实施例中,发送模块402,还用于向所述客户端发送所述第一文档的链接,以使所述客户端在接收到对所述第一文档的链接执行 的触发操作后,获取所述第一文档。In some embodiments, the sending module 402 is further configured to send the link of the first document to the client, so that the client, after receiving the trigger operation performed on the link of the first document, The first document is obtained.
在一些实施例中,发送模块402,还用于向所述客户端发送第一消息,所述第一消息用于指示所述目标数据已归档到所述第一文档中,以使所述客户端基于所述第一消息从所述第一文档中获取所述目标数据。In some embodiments, the sending module 402 is further configured to send a first message to the client, where the first message is used to indicate that the target data has been archived in the first document, so that the client The terminal acquires the target data from the first document based on the first message.
在一些实施例中,该装置还包括:存储模块;In some embodiments, the device also includes: a storage module;
存储模块,用于将所述目标数据存储到第二文档中;a storage module, configured to store the target data into a second file;
发送模块402,还用于向所述客户端发送第二消息,所述第二消息用于指示在所述第二文档中获取所述目标数据,以使所述客户端基于所述第二消息从所述第二文档中获取所述目标数据。The sending module 402 is further configured to send a second message to the client, where the second message is used to indicate to obtain the target data in the second document, so that the client can obtain the target data based on the second message The target data is obtained from the second document.
在一些实施例中,操作模块403,还用于对所述目标数据进行文字转换和/或视频提取操作,得到处理后的数据;In some embodiments, the operation module 403 is further configured to perform text conversion and/or video extraction operations on the target data to obtain processed data;
发送模块402,还用于向所述客户端发送第三消息,所述第三消息中携带有所述处理后的数据,以使所述客户端获取所述处理后的数据。The sending module 402 is further configured to send a third message to the client, where the third message carries the processed data, so that the client obtains the processed data.
在一些实施例中,操作模块403,还用于对所述目标数据进行视频提取操作,得到提取视频;In some embodiments, the operation module 403 is further configured to perform a video extraction operation on the target data to obtain the extracted video;
发送模块402,还用于向所述客户端发送第四消息,所述第四消息中携带有所述提取视频,以使所述客户端获取所述提取视频。The sending module 402 is further configured to send a fourth message to the client, where the fourth message carries the extracted video, so that the client acquires the extracted video.
本公开提供的数据处理装置,可执行上述方法实施例,其具体实现原理和技术效果,可参见上述方法实施例,本公开此处不再赘述。The data processing device provided in the present disclosure can execute the foregoing method embodiments, and its specific implementation principles and technical effects can be referred to the foregoing method embodiments, which will not be repeated here in the present disclosure.
示例性地,本公开提供一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序;其中一个或多个计算机程序被存储在存储器中;一个或多个处理器在执行一个或多个计算机程序时,使得电子设备实现前文实施例的数据处理方法。Exemplarily, the present disclosure provides an electronic device comprising: one or more processors; memory; and one or more computer programs; wherein the one or more computer programs are stored in the memory; one or more processors When one or more computer programs are executed, the electronic device is made to implement the data processing method of the foregoing embodiments.
示例性地,本公开提供一种芯片系统,芯片系统应用于包括存储器和传感器的电子设备;芯片系统包括:处理器;当处理器执行前文实施例的数据处理方法。Exemplarily, the present disclosure provides a chip system, which is applied to an electronic device including a memory and a sensor; the chip system includes: a processor; and the processor executes the data processing method of the foregoing embodiments.
示例性地,本公开提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器使得电子设备执行时实现前文实施例的 数据处理方法。Exemplarily, the present disclosure provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor so that an electronic device implements the data processing method of the foregoing embodiments.
示例性地,本公开提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行前文实施例的数据处理方法。Exemplarily, the present disclosure provides a computer program product, which causes the computer to execute the data processing method of the foregoing embodiments when the computer program product is run on the computer.
在上述实施例中,全部或部分功能可以通过软件、硬件、或者软件加硬件的组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本公开实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of the functions may be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present disclosure are produced in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored on a computer readable storage medium. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relative terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these No such actual relationship or order exists between entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特 点相一致的最宽的范围。The above descriptions are only specific implementation manners of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (22)

  1. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method comprises:
    向服务器发送目标数据;Send the target data to the server;
    从所述服务器接收目标通知,所述目标通知为所述服务器基于所述目标数据的类型得到的,所述目标通知用于表示可对所述目标数据进行目标操作;receiving a target notification from the server, the target notification is obtained by the server based on the type of the target data, and the target notification is used to indicate that a target operation can be performed on the target data;
    基于所述目标通知,显示目标内容;displaying targeted content based on the targeted notification;
    在接收到针对所述目标内容的触发指令后,向所述服务器发送目标请求,所述目标请求用于请求对所述目标数据进行所述目标操作,以使所述服务器对所述目标数据进行所述目标操作。After receiving the trigger instruction for the target content, sending a target request to the server, the target request is used to request to perform the target operation on the target data, so that the server performs the target operation on the target data The target operation.
  2. 根据权利要求1所述的方法,其特征在于,所述目标内容包括目标控件;所述方法具体包括:The method according to claim 1, wherein the target content includes a target control; the method specifically includes:
    接收对所述目标控件执行触发操作对应的所述触发指令。The trigger instruction corresponding to executing a trigger operation on the target control is received.
  3. 根据权利要求2所述的方法,其特征在于,所述目标控件的显示样式与所述目标数据的类型相关。The method according to claim 2, wherein the display style of the target control is related to the type of the target data.
  4. 根据权利要求3所述的方法,其特征在于,所述目标数据的类型包括:文本、图片、音频、视频、网络链接中的至少一种。The method according to claim 3, wherein the type of the target data includes: at least one of text, picture, audio, video, and network link.
  5. 根据权利要求1所述的方法,其特征在于,在所述目标操作包括归档操作时,所述方法还包括:The method according to claim 1, wherein when the target operation includes an archiving operation, the method further comprises:
    从所述服务器接收第一文档的链接;receiving a link to a first document from the server;
    在接收到对所述第一文档的链接执行的触发操作后,获取所述第一文档。After receiving the trigger operation performed on the link of the first document, the first document is acquired.
  6. 根据权利要求1所述的方法,其特征在于,在所述目标操作包括归档操作时,所述方法还包括:The method according to claim 1, wherein when the target operation includes an archiving operation, the method further comprises:
    从所述服务器接收第一消息,所述第一消息用于指示所述目标数据已归档到第一文档中,所述第一文档为所述服务器对所述目标数据进行存储得到的;receiving a first message from the server, where the first message is used to indicate that the target data has been archived into a first document, and the first document is obtained by storing the target data by the server;
    基于所述第一消息,从所述第一文档中获取所述目标数据。Based on the first message, the target data is obtained from the first document.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,在所述目标操作还包括延迟阅读操作时,所述方法还包括:The method according to any one of claims 1-6, wherein when the target operation also includes a delayed read operation, the method further comprises:
    从所述服务器接收第二消息,所述第二消息用于指示在第二文档中获取所述目标数据,所述第二文档为所述服务器对所述目标数据进行存储得到的;receiving a second message from the server, where the second message is used to indicate that the target data is acquired in a second document obtained by storing the target data by the server;
    基于所述第二消息,从所述第二文档中获取所述目标数据。Based on the second message, the target data is retrieved from the second document.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,在所述目标数据的类型为视频类型,且所述目标操作还包括文字转换和/或视频提取操作时,所述方法还包括:The method according to any one of claims 1-6, wherein when the type of the target data is a video type, and the target operation also includes text conversion and/or video extraction operations, the method further includes include:
    从所述服务器接收第三消息,所述第三消息中携带有处理后的数据,所述处理后的数据为所述服务器对所述目标数据进行文字转换和/或视频提取操作得到的;receiving a third message from the server, the third message carrying processed data, the processed data obtained by the server performing text conversion and/or video extraction operations on the target data;
    基于所述第三消息,获取所述处理后的数据。Based on the third message, acquire the processed data.
  9. 根据权利要求1-6任一项所述的方法,其特征在于,在所述目标数据的类型为网络链接类型,且所述目标操作还包括视频提取操作时,所述方法还包括:The method according to any one of claims 1-6, wherein when the type of the target data is a network link type, and the target operation also includes a video extraction operation, the method further includes:
    从所述服务器接收第四消息,所述第四消息中携带有提取视频,所述提取视频为所述服务器对所述目标数据进行视频提取操作得到的;receiving a fourth message from the server, where the fourth message carries an extracted video, and the extracted video is obtained by performing a video extraction operation on the target data by the server;
    基于所述第四消息,获取所述提取视频。Based on the fourth message, acquire the extracted video.
  10. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method comprises:
    从客户端接收目标数据;Receive target data from the client;
    基于所述目标数据的类型,向所述客户端发送目标通知,所述目标通知用于表示可对所述目标数据进行目标操作;Sending a target notification to the client based on the type of the target data, where the target notification is used to indicate that a target operation can be performed on the target data;
    从所述客户端接收目标请求,所述目标请求为所述客户端在接收到针对目标内容的触发指令后得到的,所述目标内容为所述客户端基于所述目标通知显示的,所述目标请求用于请求对所述目标数据进行所述目标操作;Receive a target request from the client, the target request is obtained by the client after receiving a trigger instruction for target content, the target content is displayed by the client based on the target notification, the The target request is used to request to perform the target operation on the target data;
    对所述目标数据进行所述目标操作。The target operation is performed on the target data.
  11. 根据权利要求10所述的方法,其特征在于,在所述目标操作包括归档操作时,对获取到的所述目标数据进行所述目标操作,包括:The method according to claim 10, wherein when the target operation includes an archiving operation, performing the target operation on the acquired target data includes:
    将所述目标数据存储到第一文档中。The target data is stored in a first document.
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method according to claim 11, characterized in that the method further comprises:
    向所述客户端发送所述第一文档的链接,以使所述客户端在接收到对所述第一文档的链接执行的触发操作后,获取所述第一文档。Sending the link of the first document to the client, so that the client acquires the first document after receiving a trigger operation performed on the link of the first document.
  13. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method according to claim 11, characterized in that the method further comprises:
    向所述客户端发送第一消息,所述第一消息用于指示所述目标数据已归档到所述第一文档中,以使所述客户端基于所述第一消息从所述第一文档中获取所述目标数据。sending a first message to the client, where the first message is used to indicate that the target data has been archived in the first document, so that the client can retrieve the first document from the first document based on the first message Get the target data in .
  14. 根据权利要求10-13任一项所述的方法,其特征在于,在所述目标操作还包括延迟阅读操作时,所述方法还包括:The method according to any one of claims 10-13, wherein when the target operation also includes a delayed read operation, the method further comprises:
    将所述目标数据存储到第二文档中;storing the target data in a second file;
    向所述客户端发送第二消息,所述第二消息用于指示在所述第二文档中获取所述目标数据,以使所述客户端基于所述第二消息从所述第二文档中获取所述目标数据。sending a second message to the client, where the second message is used to indicate to obtain the target data in the second document, so that the client obtains the target data from the second document based on the second message Get the target data.
  15. 根据权利要求10-13任一项所述的方法,其特征在于,在所述目标数据的类型为视频类型,且所述目标操作还包括文字转换和/或视频提取操作时,所述方法还包括:The method according to any one of claims 10-13, wherein when the type of the target data is a video type, and the target operation also includes text conversion and/or video extraction operations, the method further includes include:
    对所述目标数据进行文字转换和/或视频提取操作,得到处理后的数据;Perform text conversion and/or video extraction operations on the target data to obtain processed data;
    向所述客户端发送第三消息,所述第三消息中携带有所述处理后的数据,以使所述客户端获取所述处理后的数据。Sending a third message to the client, where the third message carries the processed data, so that the client acquires the processed data.
  16. 根据权利要求10-13任一项所述的方法,其特征在于,在所述目标数据的类型为网络链接类型,且所述目标操作还包括视频提取操作时,所述方法还包括:The method according to any one of claims 10-13, wherein when the type of the target data is a network link type, and the target operation also includes a video extraction operation, the method further includes:
    对所述目标数据进行视频提取操作,得到提取视频;Carrying out a video extraction operation on the target data to obtain the extracted video;
    向所述客户端发送第四消息,所述第四消息中携带有所述提取视频,以使所述客户端获取所述提取视频。Sending a fourth message to the client, where the fourth message carries the extracted video, so that the client acquires the extracted video.
  17. 一种数据处理装置,其特征在于,所述装置包括:A data processing device, characterized in that the device comprises:
    发送模块,用于向服务器发送目标数据;A sending module, configured to send target data to the server;
    接收模块,用于从所述服务器接收目标通知,所述目标通知为所述服务器基于所述目标数据的类型得到的,所述目标通知用于表示可对所述目标数据进行目标操作;A receiving module, configured to receive a target notification from the server, the target notification is obtained by the server based on the type of the target data, and the target notification is used to indicate that target operations can be performed on the target data;
    显示模块,用于基于所述目标通知,显示目标内容;A display module, configured to display target content based on the target notification;
    发送模块,还用于在接收到针对所述目标内容的触发指令后,向所述服务器发送目标请求,所述目标请求用于请求对所述目标数据进行所述目标操作,以使所述服务器对所述目标数据进行所述目标操作。The sending module is further configured to send a target request to the server after receiving the trigger instruction for the target content, the target request is used to request the target operation on the target data, so that the server The target operation is performed on the target data.
  18. 一种数据处理装置,其特征在于,所述装置包括:A data processing device, characterized in that the device comprises:
    接收模块,用于从客户端接收目标数据;A receiving module, configured to receive target data from the client;
    发送模块,用于基于所述目标数据的类型,向所述客户端发送目标通知,所述目标通知用于表示可对所述目标数据进行目标操作;A sending module, configured to send a target notification to the client based on the type of the target data, where the target notification is used to indicate that target operations can be performed on the target data;
    接收模块,还用于从所述客户端接收目标请求,所述目标请求为所述客户端在接收到针对目标内容的触发指令后得到的,所述目标内容为所述客户端基于所述目标通知显示的,所述目标请求用于请求对所述目标数据进行所述目标操作;The receiving module is further configured to receive a target request from the client, the target request is obtained by the client after receiving a trigger instruction for target content, and the target content is the client based on the target As shown in the notification, the target request is used to request the target operation on the target data;
    操作模块,用于对所述目标数据进行所述目标操作。An operation module, configured to perform the target operation on the target data.
  19. 一种客户端,包括:一个或多个处理器;存储器;以及一个或多个计算机程序;其中所述一个或多个计算机程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个计算机程序时,使得所述客户端实现如权利要求1-9任一项所述的数据处理方法。A client, comprising: one or more processors; memory; and one or more computer programs; wherein the one or more computer programs are stored in the memory; it is characterized in that the one or more When a processor executes the one or more computer programs, the client implements the data processing method according to any one of claims 1-9.
  20. 一种服务器,包括:一个或多个处理器;存储器;以及一个或多个计算机程序;其中所述一个或多个计算机程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个计算 机程序时,使得所述服务器实现如权利要求10-16任一项所述的数据处理方法。A server comprising: one or more processors; memory; and one or more computer programs; wherein the one or more computer programs are stored in the memory; it is characterized in that the one or more When the processor executes the one or more computer programs, the server is enabled to implement the data processing method according to any one of claims 10-16.
  21. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-9任一项所述的数据处理方法,或者,使得所述电子设备执行如权利要求10-16任一项所述的数据处理方法。A computer storage medium, characterized in that it includes computer instructions, and when the computer instructions are run on the electronic device, the electronic device is made to execute the data processing method according to any one of claims 1-9, or, The electronic device is made to execute the data processing method according to any one of claims 10-16.
  22. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-9任一项所述的数据处理方法,或者,使得所述计算机执行如权利要求10-16任一项所述的数据处理方法。A computer program product, characterized in that, when the computer program product is run on a computer, the computer is made to execute the data processing method according to any one of claims 1-9, or the computer is made to execute The data processing method according to any one of claims 10-16.
PCT/CN2022/093371 2021-06-30 2022-05-17 Data processing method and apparatus, server, client, medium, and product WO2023273667A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110738539.7 2021-06-30
CN202110738539.7A CN115567473A (en) 2021-06-30 2021-06-30 Data processing method, device, server, client, medium and product

Publications (1)

Publication Number Publication Date
WO2023273667A1 true WO2023273667A1 (en) 2023-01-05

Family

ID=84690335

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/093371 WO2023273667A1 (en) 2021-06-30 2022-05-17 Data processing method and apparatus, server, client, medium, and product

Country Status (2)

Country Link
CN (1) CN115567473A (en)
WO (1) WO2023273667A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170149913A1 (en) * 2015-11-19 2017-05-25 Morven Management Limited Enhanced push notification for alerts
US20180255159A1 (en) * 2017-03-06 2018-09-06 Google Llc Notification Permission Management
US20200137184A1 (en) * 2018-10-31 2020-04-30 EMC IP Holding Company LLC Methods, devices, and computer program products for processing target data
US20210165797A1 (en) * 2018-04-13 2021-06-03 Perry + Currier Inc. System and method for automatic docketing and data entry

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114332887A (en) * 2019-12-26 2022-04-12 腾讯科技(深圳)有限公司 Image processing method and device, computer equipment and storage medium
CN112752134B (en) * 2020-07-17 2023-09-22 腾讯科技(深圳)有限公司 Video processing method and device, storage medium and electronic device
CN112422405B (en) * 2020-10-22 2022-05-03 腾讯科技(深圳)有限公司 Message interaction method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170149913A1 (en) * 2015-11-19 2017-05-25 Morven Management Limited Enhanced push notification for alerts
US20180255159A1 (en) * 2017-03-06 2018-09-06 Google Llc Notification Permission Management
US20210165797A1 (en) * 2018-04-13 2021-06-03 Perry + Currier Inc. System and method for automatic docketing and data entry
US20200137184A1 (en) * 2018-10-31 2020-04-30 EMC IP Holding Company LLC Methods, devices, and computer program products for processing target data

Also Published As

Publication number Publication date
CN115567473A (en) 2023-01-03

Similar Documents

Publication Publication Date Title
JP6647351B2 (en) Method and apparatus for generating candidate response information
CN107622135B (en) Method and apparatus for displaying information
WO2020253389A1 (en) Page translation method and apparatus, medium, and electronic device
JP4818278B2 (en) Application linkage method and system
US20140040767A1 (en) Shared digital whiteboard
WO2015196954A1 (en) Webpage element display method and browser device
KR101759349B1 (en) System and method for transmitting data
TW201523581A (en) Method and system for speech recognition processing
CN110245304B (en) Data sharing method, device and computer readable medium
WO2022252932A1 (en) Electronic document editing method and apparatus, and device and storage medium
JP7076471B2 (en) File transmission in instant communication applications
WO2017049761A1 (en) Method, apparatus, system, device and storage medium for copying/pasting picture
CN110597773B (en) Method and apparatus for sharing files between computer device and virtual reality device
WO2015101074A1 (en) Image-based image identification method, system, equipment and device
WO2019214132A1 (en) Information processing method, device and equipment
CN106558311B (en) Voice content prompting method and device
WO2014166283A1 (en) Interaction method and device between browsers and browser
WO2021179156A1 (en) Message processing method, device and system, and server
JP7399999B2 (en) Information display method and device
WO2017211202A1 (en) Method, device, and terminal device for extracting data
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
WO2020010817A1 (en) Video processing method and device, and terminal and storage medium
CN108255898B (en) Page display method and device
WO2023202721A1 (en) File transmission method and apparatus, and electronic device and storage medium
WO2023273667A1 (en) Data processing method and apparatus, server, client, medium, and product

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: 22831493

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE