This application relates to the field of Internet technologies, including a file commenting method and apparatus, a comment viewing method and apparatus, a computer device, and a storage medium.
Currently, commenting on target content of file content is an operation that conveys a point of view and improves efficiency. In an Internet communication scenario based on an instant messaging technology, to send a comment on file content to a receiving party, the file that includes the comment needs to be sent to the receiving party. If the file includes multiple comments and each comment corresponds to one piece of target content of file content, the receiving party needs to take a particular time to determine, among comments corresponding to multiple pieces of target content, a comment corresponding to target viewing content.
In the research and practice process of the related art, the inventors of this application find that the related art has the disadvantage of low commenting efficiency.
According to various embodiments of this disclosure, a file commenting method and apparatus, a comment viewing method and apparatus, a computer device, and a non-transitory computer-readable storage medium are provided.
In an embodiment, a file commenting method includes displaying a file content page of an instant messaging client, the file content page comprising file content, displaying comment content based on a commenting operation performed on a portion of the file content, and displaying a session page in response to a determination that the commenting operation performed on the portion of the file content is completed, the session page including a comment message, and the comment message comprising the portion of the file content, the comment content, and a file identifier corresponding to the file content.
In an embodiment, a comment viewing method includes displaying a session page of an instant messaging client, the session page including a first comment message sent by a first commentor, and the first comment message including comment content of the first commentor on a first portion of a target file. The comment viewing method further includes displaying a first file content page in response to detection of a viewing operation performed on the first comment message, the first file content page including the target file, a comment identifier of the first portion of the target file, the comment content, and identification of the first commentor.
In an embodiment, a file commenting method includes displaying a file content page of an instant messaging client, the file content page including file content, displaying a comment control in response to detection of a selection operation selecting a portion of the file content, and displaying a session page of a commentor in response to detection of an operation performed on the comment control. The method further includes displaying comment content on the session page based on a comment editing operation performed on the portion of the file content on the session page, and displaying, on the session page in response to a determination that the comment editing operation performed on the portion of the file content is completed, a comment message sent by the commentor, and adding a comment identifier to the portion of the file content, the comment message including the portion of the file content, the comment content, and a file identifier corresponding to the file content.
Details of one or more embodiments of this disclosure are provided in the accompanying drawings and descriptions below. Other features and advantages of this disclosure may be understood with reference to the specification, the accompanying drawings, and the claims.
To describe the technical solutions in the embodiments of this disclosure, the following briefly describes the accompanying drawings describing the embodiments. The accompanying drawings in the following description show some embodiments of this disclosure, and a person skilled in the art may still derive other drawings from these accompanying drawings.
The following describes the technical solutions in the embodiments of this disclosure with reference to the accompanying drawings. The described embodiments are some of the embodiments of this disclosure rather than all of the embodiments. Other embodiments within the scope of the present disclosure may be obtained by a person skilled in the art based on the embodiments of this disclosure.
The embodiments of this disclosure provide a file commenting method and a comment viewing method. Specifically, an embodiment of this disclosure may be integrated in a first commenting apparatus and a second commenting apparatus. The first commenting apparatus may be integrated in a first computer device. The first computer device may be an electronic device such as a terminal or a server. The terminal may be an electronic device such as a smartphone, a tablet computer, a notebook computer, or a personal computer. The server may be a single server, or may be a server cluster.
The second commenting apparatus may be integrated in a second computer device. The second computer device may be an electronic device such as a terminal or a server. The terminal may be an electronic device such as a smartphone, a tablet computer, a notebook computer, or a personal computer. The server may be a single server, or may be a server cluster. The server may be a web page server, an application program server, a data server, or the like.
In the following, for example, the first computer device is a terminal, and the second computer device is a server, and the file commenting method and the comment viewing method are described in the embodiments of this disclosure.
As shown in
Specifically, the first commenting apparatus on the terminal 10 may display a file content page of an instant messaging client, where the file content page includes file content of a target file; display comment content of target content (e.g., a portion of the file content) based on a commenting operation performed on the target content of the file content; and display a session page of a commenting object (e.g., a commentor) in response to a determination that the commenting operation performed on the target content is completed, where the session page includes a comment message of the target file that is sent by the commenting object, and the comment message includes the target content, the comment content, and a file identifier of the target file.
For example, the terminal 10 may display file content “A.doc” on a file content page of instant messaging software. A commenting object Xiaoyi may select the portion “shou qu yi zhi” from file content as target content and comment on the target content. Comment content may be “typo”. When Xiaoyi completes a commenting operation on the target content, a comment message of Xiaoyi may be displayed on a session page of the instant messaging software. The comment message may include the target content “shou qu yi zhi”, the comment content “typo”, and the file identifier “A.doc” of the target file.
The server 20 may send file content to the terminal based on requirements of the terminal in different application scenarios. When a commenting operation is completed on the terminal, the server may receive comment-related data sent by the terminal, for example, comment content, target content, and a commenting object. The server may further send the comment-related data to a session page of the terminal. In this case, the comment-related data may be displayed on the session page in the form of a comment message.
For example, the server 20 sends the file content “A.doc” to the instant messaging software, and the commenting object Xiaoyi provides comment content “typo” on the target content “shou qu yi zhi”. The server 20 may receive comment-related data that includes Xiaoyi, “shou qu yi zhi”, “typo”, and the like sent by the terminal. The server 20 may further send the comment-related data back to the terminal 10 and/or to a different terminal, so that the recipient terminal(s) may display the comment-related data in the form of a comment message on the session page.
Specifically, the first commenting apparatus on the terminal 10 may further display a session page of an instant messaging client, where the session page includes a first comment message sent by a first commenting object (e.g., a first commentor), and the first comment message includes comment content of the first commenting object on first target content (e.g., a first portion) of a target file; and display a first file content page in response to detection of a viewing operation performed on the first comment message, where the first file content page includes: file content of the target file, a comment identifier of the first target content of file content (e.g., a first portion of the file content), the comment content of the first target content, and the first commenting object.
For example, the terminal 10 may display the first comment message of Xiaoyi on the session page of the instant messaging software. The first comment message may include the comment content of Xiaoyi on the first target content in the target file, the target content may be “shou qu yi zhi”, and the comment content may be “typo”. When detecting a viewing operation performed by Xiaoyi on the first comment message, the terminal 10 may display the file content of the target file, the comment identifier of the target content “shou qu yi zhi” (the comment identifier may emphasize “shou qu yi zhi”, such as the font size is increased or display is highlighted), “typo”, and Xiaoyi on the first file content page.
The server 20 may determine an initial file based on a viewing operation performed on the first comment message and obtain comment information to be applied to the initial file. The comment information includes location information, commenting object (e.g., commentor) information, and comment content information. The server 20 determines target content (e.g., a portion) of the initial file based on the location information, adds a comment identifier of the target content, comment content, and a commenting object to file content of the initial file, to obtain a target file, and displays the first file content page. The first file page includes the file content of the target file.
For example, when receiving a viewing request for the first comment message sent by Xiaoyi on the terminal, the server 20 may determine the initial file “A.doc” of the first comment viewing message, obtain location information (for example, lines 12-15), commenting object information (for example, Xiaoyi), and comment content information (for example, “typo”) included in the first comment message, determine the target content as “shou qu yi zhi” according to lines 12-15, add the file identifier of “shou qu yi zhi”, Xiaoyi, and “typo” to a corresponding position of the initial file, to obtain a target file, and then send the target file to the terminal, so that the terminal may display file content of the target file on the file content page.
Detailed descriptions are separately provided below. The description sequence of the following embodiments is not intended to limit preference orders of the embodiments.
An embodiment of this disclosure provides a file commenting method. The method may be integrated and implemented in a terminal installed with a processor. As shown in
In step 201, a file content page of an instant messaging client is displayed, where the file content page includes file content of a target file.
The file in this embodiment of this disclosure may be a virtual file stored on a computer device (such as a terminal or a server). The file may include a particular amount of information and occupy a particular storage space on the computer device based on the amount of information. The type of the file has a wide range and may be determined according to an identifier of the file. Specifically, the file may be a character file such as an electronic book file including a TXT identifier, or a data file including an HTML identifier; the file may be a picture file such as a screenshot file including a PNG identifier; or the file may be an audio/video file such as a song file including an M4A identifier or a video file including a TS identifier.
As computer devices storing the file vary, forms of file identifiers are also different when the file is obtained. If the file is stored on the terminal locally, the file may be directly opened by software pre-installed on the terminal. This manner depends on the software pre-installed on the computer device. A common file may be conveniently and quickly opened. For example, the instant messaging client may open the file and perform a viewing operation on file content of the file.
If the file is stored on the server, the terminal may obtain the file on the server by sending a request message and view file content of the file. This manner may reduce the storage load on the terminal and save the storage space of the terminal. A viewing operation is performed on the file through the request message when the file content needs to be viewed. For example, the instant messaging client may view, based on a network address, the file content stored on the server.
The file content page may display file content. The type of the file content may be character, picture, audio/video, or the like. The type of the file content of the file may be a single type, such as a file only including characters, or two or more types, such as a file including a video and characters. When the file content page displays file content, a display manner may be adjusted for different types. The file content may be displayed on a split screen, or the file content currently displayed on the file content page may be adjusted based on a user operation such as enlarging and jumping. For example, if the file content page displays a picture, based on a display enlarging operation performed by a user on the picture, the file content page may display an enlarged partial area of the picture.
The target file is a file displayed on the file content page, and the file content of the target file may be all or a part of an amount of information included in the target file. For example, if the target file is opened based on a network address, the file content may be file content of the file corresponding to the network address, or may be attribute information of the file, or may be a comment on the file or the file content. If the file content of the target file has multiple forms, the file content may be one or more forms of the target file. For example, if the target file is an audio file, file content corresponding to the audio file may include audio, may include audio and text information in the audio, and may include waveforms of the audio.
For example, referring to
In an embodiment, before the file content page of the instant messaging client is displayed, where the file content page includes the file content of the target file, the method may include the following step: displaying a file list page of a commenting object in the instant messaging client, where the file list page includes a file identifier of at least one file, and based on a determining operation (e.g., a selection operation) performed on a target file identifier (e.g., selected file identifier), displaying a file content page corresponding to the target file identifier.
The commenting object may be an object that performs a commenting operation. Specifically, a commenting object may be a user in an actual application scenario, or may be a test program, a smart device, or a test person in a simulated scenario. For example, an instant application of an alpha version is automatically tested by a test engineer with a test device. In this case, a commenting object is the test device.
The file list page may be a page including a file identifier of at least one file and displays a file identifier, so that a commenting object may determine a target file identifier from at least one file identifier. The target file identifier corresponds to a target file.
In this embodiment of this disclosure, a control may take various forms, such as an input box, an icon, and a button, or a combination of these forms.
The file list page displayed in the instant messaging client may have multiple sources. If the commenting object is in a session scenario, the file list page may be obtained by integrating file messages of history messages of the session and displaying all the file messages. A number of session persons in the session scenario is not limited. The session scenario may be a group with at least one person or may be a one-on-one session. File messages may be integrated in multiple manners and may be integrated with the help of an auxiliary control in the session. For example, the auxiliary control may be a search control. All history messages are retrieved by searching keywords, to obtain history file messages, and a file list page including the history file messages is displayed. The auxiliary control may be a file display control. The history file messages are obtained by triggering the file display control, and the file list page including the history file messages is displayed.
The file list page may be an intermediate page for completing a file upload operation. The file list page is displayed through an upload control of the instant messaging client (the upload control may be set on a function page, a setting page, or a session page of the client). The file list page includes at least one file identifier. A file corresponding to the file identifier may be a file stored on a computer device installed with the instant messaging client, or an online file stored by the commenting object or other commenting objects. The online file may be stored in the cloud, may be stored on a server, or the like.
The file list page may also be displayed by triggering other functional controls in the instant messaging client. Specifically, a file list may be obtained based on setting of the commenting object. In this case, a control that may display the file list may be triggered to display a file list page. For example, the instant messaging client may include a collection control, and the collection control may be triggered to display collection content of the commenting object. The collection content may include various types of files. Functional controls such as entertainment, shopping, and learning may be triggered to display the file list page. For example, a book reading functional control may be triggered to display a file list page including several book files; and a learning functional control may be triggered to display a file list page including learning resources such as a video, audio, and a picture.
The determining operation performed on the target file identifier may be an operation such as a single click, a continuous click, long press, or sliding performed on the target file identifier. The type of determining operation is subject to the system parameters and design and is not limited herein.
For example, referring to
In an embodiment, before the file content page of the instant messaging client is displayed, where the file content page includes the file content of the target file, the method may include the following step: displaying the session page of the commenting object in the instant messaging client, where the session page includes a file message of the target file sent by an object in a session; and when detecting a viewing operation performed on the file message, displaying the file content page, where the file content page includes the file content of the target file.
The file message may be a message including a file identifier sent by any object in the session, and the file identifier corresponds to a file. The session page may be a page used by an object in a session scenario to send and receive a message and is mainly used for communication between objects (e.g., commentors).
The viewing operation performed on the file message may be an operation such as a single click, a continuous click, long press, or sliding performed on the file message. The type of viewing operation is subject to system parameters and design and is not limited herein.
The target file is directly determined based on the file message displayed on the session page, and the file content of the target file is displayed. This may conveniently and quickly display the file content in the session, simplify the operation, and improve the operation efficiency.
For example, referring to
In step 202, comment content of target content (e.g., a portion of the file content) is displayed based on a commenting operation performed on the target content of the file content.
The target content includes to-be-commented content selected by the user from the file content, and the target content may be a subset of the file content. The comment content includes a comment made by the commenting object on the target content. The form of the comment content is not limited and may be a text, a character (a character set including at least one single character or a character set such as a network address or an emoticon), an emoji, a picture (a static picture or a dynamic picture), a small video, or the like. This may be autonomously set according to the characteristic of the client and an actual scenario.
The commenting operation performed on the target content of the file content may include manually entering comment text by a commenting object or may include automatically generating a comment by the client based on a trigger, or the like.
The comment content may be displayed in multiple display methods. For example, when the user comments on the target content on the file content page, the client may display, on the file content page in real time, the comment content entered by the user or display comment content already provided by the user on other target content or display comment content already provided by another user on the target content. The comment content already provided may be displayed to provide the user with reference. The comment content already provided may be directly displayed on the file content page, or displayed on a particular comment content display page, or the like.
The target content is selected and the commenting operation is performed. In this way, the file content may be commented in a more targeted manner. In addition, for the commenting object (i.e., commentor) and the viewing object (i.e., viewer) viewing the comment, the operation of directly commenting on the target content can significantly improve commenting efficiency and viewing efficiency.
For example, referring to
In an embodiment, the displaying the comment content of the target content based on the commenting operation performed on the target content of the file content may include the following step: when a selection operation performed on the target content of the file content is detected, displaying a comment editing control of the target content; and based on an editing operation performed on the comment editing control, displaying the comment content of the target content.
The selection operation may serve to select the target content based on an operation such as long press or a click of the object, and the selected target content is displayed differently (e.g., highlighted).
The comment editing control is used to edit and determine the comment content of the target content, and display the comment content in real time in an editing process, to facilitate viewing and modifying of the comment editing content. The comment content in the comment editing control may be entered by the commenting object, automatically filled, or the like.
The editing operation performed on the comment editing control may be entering content such as entering a character or entering a picture, or modifying and adjusting entered content. The editing operation may be a process of determining the target content based on particular preset content, for example, a target dynamic picture is selected from a stored dynamic picture set.
For example, referring to
In an embodiment, the displaying a comment editing control of target content in response to detection of a selection operation performed on the target content of the file content may include the following step: when a selection operation performed on the target content of the file content is detected, displaying a comment control of the target content; and based on a triggering operation performed on the comment control, displaying the comment editing control of the target content.
The selection operation may serve to select the target content based on an operation such as long press or a click of the object, and the selected target content is displayed differently.
The comment control is a start point for performing a commenting operation on the target content. When the target content is selected, another operation, such as copying, other than commenting may be performed on the target content and corresponds to another functional control. In this case, a comment control in parallel with another functional control is set, and an actual commenting operation is performed through the comment control. This can improve functional diversity and conciseness of the page.
For example, referring to
In an embodiment, the displaying the comment content of the target content based on the editing operation performed on the comment editing control may include the following step: displaying the comment content of the target content based on a triggering operation performed on the comment editing control in the content editing area.
The comment content editing page may include a comment content editing area. The comment content editing area includes the comment editing control, and may include other functional controls in addition to the comment editing control. Other functional controls may expand the source of the comment content, for example, may include an emoji control and a picture control.
In addition, the comment content editing page may also include other areas in addition to the comment content editing area, to improve functionality of the comment content editing page. For example, the comment content editing page may include a history message display area, and the history message display area may include a history message sent by an object in the session, so that the commenting object may refer to the history message when editing the comment content. In this case, the comment content editing page is similar to the session page. Therefore, the comment may be edited by displaying the session page. Specifically, a procedure of the file commenting method may be as follows:
A file content page of an instant messaging client is displayed, where the file content page includes file content of a target file; a comment control of target content is displayed in response to detection of a selection operation performed on the target content of the file content; a session page of a commenting object is displayed in response to detection of an operation performed on the comment control; and comment editing content is displayed on the session page based on a comment editing operation performed on the target content on the session page; and a comment message of the target file that is sent by the commenting object is displayed on the session page in response to a determination that the comment editing operation performed on the target content is completed, and a comment identifier is added to the target content of the file content, where the comment message includes the target content, the comment content, and a file identifier of the target file.
In another example, the comment content editing page may include a target content comment display area, and the target content comment display area may display other comment content of another commenting object (i.e., another commentor) on the target content. This may provide reference to the commenting object.
For example, referring to
In an embodiment, the comment content includes a specified message receiving identifier and comment editing content, and the displaying the comment content of the target content based on an editing operation performed on the comment editing control may include displaying a specified message receiving identifier of the target object (e.g., target recipient) based on a specified operation performed on the target object in the comment editing control; and displaying, based on a content editing operation in the comment editing control, comment editing content of the target content that corresponds to the specified message receiving identifier of the target object.
To remind a particular object (e.g., a particular user) to view the comment message, the commenting object (e.g., a commentor) may select the target object from the session. This can be achieved by setting a specified message receiving identifier for the target object. The instant messaging client of the target object (the particular user) reminds the target object to view the comment in a particular manner, for example, sends a viewing prompt message to the target object. The number of target objects may be unlimited, and a target object may have a corresponding specified message receiving identifier.
For example, referring to
In step 203, a session page of a commenting object (i.e., commentor) is displayed in response to a determination that the commenting operation performed on the target content is completed, where the session page includes a comment message of the target file that is sent by the commenting object, and the comment message includes the target content, the comment content, and a file identifier of the target file.
On the session page of the instant messaging client, an object (e.g., user) may perform operations such as information viewing and information editing and sending, to facilitate communication between objects (e.g., users) included on the session page. The form of information is a message on the session page. According to different forms of information, messages may be divided into different types, such as a text message and a picture message.
A comment message is a type of message and may include comment content, target content to which the comment content is directed, and a file identifier of a target file of the target content and may further include location description of the target content in the target file. When sending a comment message, the comment message may be sent in one message, or may be sent in multiple messages. For example, the target content and the comment content are separated from each other, and the comment message is sent in two messages.
The file identifier and the file are in a one-to-one correspondence. The file identifier may indicate the file, and may have multiple forms and may be a character such as a text or a digit, or may be a picture including a part of file content, or may be formed with the help of a color, a font size, and an audio/video effect.
When it is detected that the commenting operation performed on the target content is completed, the session page of the commenting object is displayed. The session page includes the comment message sent by the commenting object. When the commenting object completes the commenting operation, the comment message may be sent automatically by the client or sent manually by the commenting object. The comment message includes the comment made by the commenting object on the target content on the file content page, and the file identifier of the target file of the comment. After opening the session page, another object in the session may directly view the comment message to learn of the view of the commenting object on the target content of the target file. If the comment needs to be further appreciated with reference to the file content, a determining operation may be performed on the comment message, for example, the comment message is clicked, and the file content page is displayed to view the file content and the target content.
For example, referring to
In an embodiment, the comment editing control includes a comment editing sub-control and a comment determining sub-control, and the displaying the comment content of the target content based on an editing operation performed on the comment editing control may include the following step: based on an editing operation performed on the comment editing sub-control of the comment editing control, displaying the comment content of the target content.
In this case, the displaying a session page of the commenting object in response to a determination that the commenting operation performed on the target content is completed may include the following step: determining that the commenting operation performed on the target content is completed in response to detecting a triggering operation performed on the comment determining sub-control, and displaying the session page of the commenting object.
For example, referring to
In an embodiment, the displaying a session page of a commenting object in response to a determination that the commenting operation performed on the target content is completed may include displaying a file content page in response to a determination that the commenting operation performed on the target content is completed, where the file content page includes the file content of the target file, a comment identifier of the target content, and a session display control; and switching, in response to detection of a triggering operation performed on the session display control, to displaying the session page for displaying to the commenting object (e.g., commentor).
The comment identifier may be used to mark the target content on the file content page to highlight the target content, to remind a viewing object to pay attention to the target content when browsing the file content. The comment identifier may have multiple forms. The target content may be differently displayed in color, a label may be set for the target content, an area corresponding to the target content may be increased or reduced, the target content may be repeatedly displayed, the target content may be quickly or slowly displayed, or the like.
The file content page is displayed, and the target content selected by the commenting object is highlighted through the comment identifier. In this case, the commenting object may view the display effect of the commenting operation on the file content page, and may further view comment content through the determining operation performed on the comment identifier. In addition, a session page returning control is set on the file content page. When triggering the session page returning control, the commenting object may return to the session page, and view a comment message that is already sent and that includes the comment content already provided.
For example, referring to
For example, a user receives a file message, and the session page of the instant messaging client of the user includes the file message. The user clicks on the file message, and the instant messaging client displays the file content page. The file content page includes the file content of the target file corresponding to the file message, and the user selects the target content from the file content. The client displays a commenting button of the target content, the user clicks on the commenting button, the client displays the session page, and the user enters the comment content of the target content on the editing control of the session page. The session page may display in real time the comment content entered by the user. After completing entering of the comment content, the user may click on an editing completing confirmation button on the session page to complete an editing operation on the target content. Then, the client may add a comment identifier to the target content of the file content, and display the file content page. In this case, the user may click on the session display control on the file content page, and the client displays the session page. The session page includes the comment message of the target file. The comment message may include the file identifier of the target file, the target content, and the comment content.
In the embodiments of this disclosure, a file content page of an instant messaging client is displayed, where the file content page includes file content of a target file; comment content directed to target content is displayed based on a commenting operation performed on the target content of the file content; and a session page of a commenting object is displayed in response to a determination that the commenting operation performed on the target content is completed, where the session page includes a comment message of the target file that is sent by the commenting object, and the comment message includes the target content, the comment content, and a file identifier of the target file. In this embodiment, when the commenting operation is completed, the comment message including the file identifier of the target file, the target content, the comment content, and the commenting object is displayed on the session page of the instant messaging client, which is different from the related art in which a file corresponding to a file identifier needs to be opened and then a comment is viewed. Therefore, this embodiment can effectively simplify steps and improve the viewing efficiency.
An embodiment of this disclosure provides a comment viewing method. The method may be integrated and implemented in a terminal installed with a processor. As shown in
In step 301, a session page of an instant messaging client is displayed, where the session page includes a first comment message sent by a first commenting object (e.g., first commentor), and the first comment message includes comment content of the first commenting object on first target content (e.g., a first portion) of a target file.
The file in this embodiment of this disclosure may be a virtual file stored on a computer device (such as a terminal or a server). The file may include a particular amount of information and occupy a particular storage space on the computer device. The file carries a file identifier, the file identifier and the file are in a one-to-one correspondence, and a file type may be determined based on the file identifier.
The target file is a file displayed on the file content page, and the file content of the target file may be all or a part of an amount of information included in the target file. For example, if the target file is opened based on a network address, the file content may be file content of the file corresponding to the network address, or may be attribute information of the file, or may be a comment on the file or the file content. If the file content of the target file has multiple forms, the file content may be one or more forms of the target file. For example, if the target file is an audio file, file content corresponding to the audio file may include audio, may include audio and text information in the audio, and may include waveforms of the audio.
On the session page of the instant messaging client, an object (e.g., user) may perform operations such as information viewing and information editing and sending, to facilitate communication between objects (e.g., users) included on the session page. The form of information is a message on the session page. According to different forms of information, messages may be divided into different types, such as a text message and a picture message.
A comment message is a type of message and may include comment content, target content to which the comment content is directed, and a file identifier of a target file of the target content and may further include location description of the target content in the target file. When sending a comment message, the comment message may be sent in one message, or may be sent in multiple messages. For example, the target content and the comment content are separated from each other, and the comment message is sent in two messages.
The comment message corresponds to the target content, and the target content may be a subset of the file content of the target file and is a portion selected by the commenting object (e.g., commentor) from the file content.
If a session includes at least one file, during a commenting and/or viewing operation, content may be selected from the at least one file in the session and a file of the selected content is the target file. The target file may be a file of target content selected from file content when the file content is commented, or may be a file of target content included in a selected comment message when the comment message is viewed. A commenting or viewing operation is performed based on the target file.
The comment content is a comment made by the commenting object on the target content. The form of the comment content is not limited and may be a text, a character (a character set including at least one single character or a character set such as a network address or an emoticon), an emoji, a picture (a static picture or a dynamic picture), a small video, or the like. This may be autonomously set according to the characteristic of the client and an actual scenario.
On the session page of the instant messaging client, comment content of the commenting object on a target text of the target file may be viewed through the comment message without opening the file content of the target file, effectively improving the efficiency of viewing the comment of the file content by the object (e.g., a user) in an instant messaging scenario. In addition, an object may further obtain the comment of the commenting object on the file content in time, and all objects in the session may comment on the file content of the target file as commenting objects. In addition, comments of different commenting objects are concisely displayed on the session page in time directly in the form of comment messages, further improving the communication efficiency.
The first comment message may be a comment message sent by a first commenting object, and there is at least one first comment message. First target content is a part of file content selected by the first commenting object from the file content, and the first commenting object provides at least one piece of comment content on the first target content. In addition, the first commenting object may further select other target content from the file content and comment on the other target content.
For example,
In step 302, a first file content page is displayed in a case of detecting a viewing operation performed on the first comment message (i.e., in response to detection of the viewing operation performed on the first comment message, the first file content page is displayed), where the first file content page includes: file content of the target file, a comment identifier of the first target content of file content, the comment content of the first target content, and the first commenting object.
The file content page may display the file content. The type of the file content may be character, picture, audio/video, or the like. When the file content page displays file content, adjustment may be made for different types. The file content may be displayed on a split screen, or the file content currently displayed on the file content page may be adjusted based on a user operation such as enlarging and jumping. For example, if the file content page displays a picture, based on a display enlarging operation performed by a user on the picture, the file content page may display an enlarged partial area of the picture.
The comment identifier may be used to mark the target content on the file content page to highlight the target content, to remind a viewing object to pay attention to the target content when browsing the file content. The comment identifier may have multiple forms. The target content may be differently displayed in color, a label may be set for the target content, an area corresponding to the target content may be increased or reduced, the target content may be repeatedly displayed, the target content may be quickly or slowly displayed, a particular character may be added to the target content, or the like.
A first file content page is displayed in response to detection of a viewing operation performed on the first comment message, where the first file content page includes: file content of the target file, a comment identifier of the first target content of file content, the comment content of the first target content, and identification of the first commenting object (i.e., the commentor that generated the comment content).
The viewing operation performed on the first comment message may be flexibly set in an application scenario according to different devices and operation manners, which is not limited herein. After the viewing operation is detected, the first file content page is displayed. Elements displayed on the first file content page correspond to the first comment message, that is, the first target content is highlighted through the comment identifier, and then the first commenting object and the comment content of the first target content are displayed. In this case, the viewing object may intuitively and quickly view the comment directly based on the highlighting effect without searching for the comment from all comment content included in the file content, effectively improving viewing efficiency.
When the first commenting object is displayed, an object identifier such as a profile picture, a nickname, or a user name of the first commenting object may be displayed. The first commenting object and the comment content of the first target content may be displayed in a group, to determine the commenting object and the comment content of the comment, helping to understand the comment.
For example, referring to
In an embodiment, the displaying a first file content page in response to detection of a viewing operation performed on the first comment message may include determining an initial file based on a viewing operation performed on the first comment message and obtaining comment information of the initial file. The comment information includes location information (i.e., location of a portion of content within the initial file), commenting object information (i.e., identification of the commentor), and comment content information. Target content of the initial file is determined based on the location information, a comment identifier of the target content and comment content and a commenting object of the target content are added to file content of the initial file, to obtain a target file, and the first file content page is displayed. The first file page includes the file content of the target file.
The comment message and the initial file are in a one-to-one correspondence and determining the first comment message is determining the initial file. The initial file includes several pieces of comment information. The comment information may be comment content provided by the commenting object on a part of file content (that is, the target content) of the initial file. The target content corresponds to particular location information in the file content of the initial file. To store file comment information conveniently, location information of the target content is actually stored. Therefore, comment information may further be the commenting object and the location information of the target content within the target file. The comment information may be stored locally, may be stored online in the cloud, may be stored in a network device such as a server, or the like.
The file content has different forms. The location information may have different forms during storage, and may be a start value corresponding to a start location that records the target content, and a value offset of an end value at the end of the target content relative to the start value of the start location; may be a data set consisting of a value or a value pair at a location corresponding to each minimum unit of the target content, or the like. The target content is determined according to the file content and the location information, and is differently displayed in the initial file (that is, the comment identifier of the target content is added). A label including the comment content and the commenting object is added for the target content. The label may have multiple forms, and may be a screenshot corresponding to the comment message, may be a dynamic bubble or a static bubble, may be an annotation, or the like.
In an embodiment, the first file content page further includes: a comment identifier of at least one piece of second target content; and the comment viewing method may include displaying comment content of the second target content in response to detection of a viewing operation performed on the comment identifier of the second target content, where the comment content of the second target content includes: at least one of (i) comment content of the first commenting object (e.g., a first commentor) on the second target content or (ii) comment content of at least one second commenting object (e.g., a second commentor) on the second target content.
If the file content page includes the comment identifier of the second target content, when a viewing object wants to view the comment content of the second target content, this may be implemented by performing a viewing operation. When the viewing operation is detected, comment content provided by all commenting objects on the second target content may be displayed. The commenting object includes a first commenting object and a second commenting object. A number of second commenting objects, a number of comment content of the second target content, and a number of the second target content are all at least one.
For example, referring to
In another example, referring to
In an embodiment, the first file content page further includes: comment content of at least one second commenting object on the first target content; and the comment viewing method may include displaying the comment content of the second commenting object on the first target content and identification of the second commenting object on the first file content page in response to detection of a viewing operation performed on the comment message.
A number of second commenting objects and a number of comment content of the second commenting object on the first target content are both at least one.
For example, referring to
In an embodiment, the first file content page includes an all-comment display control, and the comment viewing method may include displaying comment content of all commenting objects (e.g., all commentors) on all target content (e.g., all portions) on the first file content page in response to detection of a triggering operation performed on the all-comment display control.
In this embodiment of this disclosure, a control has various forms, such as an input box, an icon, and a button.
For example, referring to
In an embodiment, the comment viewing method may include hiding comment information of the target file in response to detection of a hiding operation performed on the first file content page.
According to different operations, the first file page displays several pieces of comment information. The comment information includes, but is not limited to, a commenting object, comment content, and a comment identifier of the target content. In different application scenarios, the comment information may be hidden according to an actual requirement, so that the comment information is not displayed on the first file content page.
In an embodiment, the comment information includes comment content and a commenting object, and the hiding comment information of the target file in response to detection of a hiding operation performed on the first file content page may include hiding comment content and a commenting object of the target file in response to detection of a comment content hiding operation performed on the first file content page.
The hiding operation performed on the comment content on the first file content page may be flexibly set according to system parameters, and may be forms such as sliding, slight touch, or a continuous click, may be an operation of triggering a preset control, or may be automatic hiding set by the background or by an object according to a setting entered by the object (e.g., user) based on conditions such as a time and an operation (for example, the object sets that after 5 seconds from the time of displaying the comment content and the commenting object, the comment content and the commenting object are automatically hidden, and in another example, the background sets that when a viewing operation performed by an object on a comment identifier of other target content is detected, the currently displayed comment content and commenting object are automatically hidden).
For example, referring to
In an embodiment, the comment information includes a comment identifier, and the hiding comment information of the target file in response to detection of a hiding operation performed on the first file content page may include displaying a comment identifier hiding control in response to detection of a selection operation performed on the first file content page; and hiding comment identifiers of all target content of the target file based on a triggering operation performed on the comment hiding control.
It should be noted that, when the hiding operation performed on the comment identifier corresponding to the commenting object and the comment content is detected, the commenting object and the comment content may be automatically hidden. The hiding operation performed on the comment identifier may be any operation that may hide the comment identifier, and includes a preset automatic operation or a manual operation performed by an object on a control or a specified action, or the like.
For example, referring to
In an embodiment, the first file content page includes an all-identifier hiding control, the comment information includes a comment identifier, and the hiding comment information of the target file in response to detection of a hiding operation performed on the first file content page may include hiding comment identifiers of all target content of the target file in response to detection of a triggering operation performed on the all-identifier hiding control.
For example, referring to
In an embodiment, the comment viewing method may include displaying comment identifiers of all target content of the target file in response to detection of a comment display operation based on the file content page.
The comment display operation on the file content page may have various forms, and may be a control, may be forms such as sliding, long press, slight touch, or a continuous click, may be automatic display set by the background or by an object according to a setting entered by the object based on conditions such as a time and an operation, or the like.
For example, referring to
In an embodiment, the file content of the target file includes first file content and second file content, the first file content page includes a page switching control, and the comment viewing method may include, in response to detection of a switching operation based on the page switching control, switching to display of a second file content page, where the second file content page includes the second file content (e.g., a second portion) of the target file, a comment identifier of a target content (e.g., the second portion) of the second file content, and comment content of a comment identifier of at least one piece of target content (e.g., comment content directed to the second portion of the target file).
A number of second file content pages may change according to properties of file content and a computer device. A number of second file content pages displayed after the page switching control is triggered may be 1 or may be flexibly set according to an actual requirement. The form of the page switching control may be a button, an input box, an icon, or the like, or may be a combination of several forms such as a combination of a button and an input box, or the like. In an application scenario, the form of the page switching control may be flexibly set according to factors such as an actual requirement or a number of second file content pages. In addition to the form of a control, another operation such as sliding the screen or pulling a progress bar may also implement page switching.
A number of comment content displayed on the second file content page may change according to a requirement. Comment content of all comment identifiers on the page may be displayed, particular comment content may be displayed, comment content corresponding to a particular commenting object may be displayed, or comment content of a particular location, such as comment content of first target content of the page, may be displayed. Different display types of comment content may be flexibly implemented through a control or in another manner, which is not described in detail herein.
For example, referring to
For example, the session page of the instant messaging client of the user includes several comment messages of a file. A user may click on a comment message, and the client displays the file content page of the target file corresponding to the comment message. The file content page displays the file content of the target file and several comment identifiers (one comment identifier corresponds to one piece of target content). In addition, the file content page further displays a comment identifier, comment content, and a commenting object of the target content corresponding to the comment message. The user may click on any comment identifier, and the client may display the comment content and the commenting object corresponding to the comment identifier. The user may also click on the all-comment display button on the file content page, and the client may display comment content and commenting objects corresponding to all comment identifiers.
For the commenting object and the comment content displayed on the file content page, the user may click on a file identifier. The client displays the comment hiding button, the user clicks on the comment hiding button, and the client may hide the comment content and the commenting object corresponding to the comment identifier. The user may click on a file identifier, the client may also display an identifier hiding button, the user clicks on the identifier hiding button, and the client hides the comment identifier. The file content page includes an all-comment hiding button, the user clicks on the all-comment hiding button, and the client hides all comment content and commenting objects displayed on the file content. The file content page includes an all-identifier hiding button, the user clicks on the all-identifier hiding button, and the client hides all comment identifiers displayed on the file content. The file content page includes an all-identifier display button, the user clicks on the identifier display button, and the client displays all file identifiers of the target file.
In this embodiment of this disclosure, a session page of an instant messaging client may be displayed, where the session page includes a first comment message sent by a first commenting object, and the first comment message includes comment content of the first commenting object on first target content of a target file. A first file content page is displayed in response to detection of a viewing operation performed on the first comment message, where the first file content page includes: file content of the target file, a comment identifier of the first target content of file content, the comment content of the first target content, and the first commenting object. In this embodiment, the first target content in the file content may be quickly positioned based on the first comment message on the session page and the comment identifier of the first target content, and the comment content and the first commenting object of the first target content are viewed. Different from the related art in which the file needs to be opened and each piece of target content is viewed in the file to determine the first target content, this embodiment can significantly simplify steps and improve the viewing efficiency.
According to the method described in the foregoing embodiments, the following further provides detailed description by using examples.
In this embodiment, for example, the first commenting apparatus is specifically integrated in a terminal, and the second commenting apparatus is specifically integrated in a server.
As shown in
In step 401, a terminal displays a file content page of an instant messaging client, where the file content page includes file content of a target file.
For example, referring to
In another example, referring to
In step 402, the terminal displays comment content of target content based on a commenting operation performed on the target content of the file content.
For example, referring to
In step 403, in response to a determination that the commenting operation is completed, the terminal sends comment information related to the commenting operation to the server.
For example, after Xiaoyi triggers the “sending” button, the terminal sends comment information such as the commenting object “Xiaoyi”, the comment content “whether to supplement?”, the target content “this solution”, and the file identifier “technical solutions B.doc” of the target file to the server.
In step 404, the server sends a comment message to the terminal based on the comment information, where the comment message includes the target content, the comment content on the target content, and the file identifier of the target file. In an embodiment, the server may send the comment message to terminals of all group members of “kaikai group (5)”.
The comment message may include a nickname and a profile picture of the commenting object, the file identifier of the target file, a location of the target content in the file content, the target content, and the comment content.
For example, the file identifier of the target file is “technical solution B.doc”. The location of the target content in the file (i.e., the page number within the file), the target content, the comment content, and the nickname of the commenting object may correspondingly be included in the following exemplary comment messages.
Page 1: this solution, whether to supplement?, and Xiaoyi;
Page 1: technical point, @ Xiaoyi: this part further requires text description, and Xiaoliu;
Page 1: presentation audio B2.mp3, @ Xiaoyi: whether to write text content of audio?, and Xiaoliu;
Page 1: this solution, @ Xiaoyi: no supplement, and Xiaowu; and
Page 2: 1XXXX2, @ Xiaoyi: one number is lost, and Xiaoliu.
In step 405, the terminal displays the comment message on the session page of the group.
For example, referring to
In step 406, in response to detection of the viewing operation performed on the comment message, the terminal sends a target file obtaining request to the server.
For example, referring to
In another example, referring to
In another example, referring to
In step 407, the server determines an initial file based on the obtaining request.
In step 408, the server determines comment information of the initial file, where the comment information includes location information (of the commented portion within the initial file), commenting object information (i.e., identification of the commentor), and comment content information.
The file content has different forms. The location information may have different forms during storage, and location information of a document mainly including a text may be a start value corresponding to a start location of the target content, and a value offset of an end value at the end of the target content relative to the start value of the start location.
For example, the location information of the target content “this solution” is indicated by a start value 23 and a value offset 3.
In step 409, the server adds the comment identifier, the commenting object, and the comment content of the target content corresponding to location information to the file content of the initial file, to obtain a target file, and sends the target file to the requesting terminal.
In step 410, the terminal receives the target file and displays the target file on the file content page.
For example, referring to
In another example, referring to
For example, referring to
For example, a user 1, a user 2, and a user 3 are three members of a group in the instant messaging software. The group session page of the user 1 displays a file message sent by the user 2 in the group. The user 1 clicks on the file message, and the instant messaging client of the user 1 displays the file content page. The file content page includes the file content of the target file corresponding to the file message. The user 1 selects “parameter” from the file content as the target content. The user 1 selects “parameter”, the client displays the commenting button corresponding to the target content, and the user 1 clicks on the commenting button. The client displays the group session page of the user 1, and the user 1 edits the comment content of “parameter” on the group session page. When the user 1 completes the commenting operation, the client adds a comment identifier to the target content, and sends a comment message to the group. The comment message includes the target content, the comment content of the user 1 on the target content, and the file identifier of the target file. The file content page is displayed. The user 1 may click on the session display button on the file content page, and the group session page is displayed, where the session page includes the comment message of the user 1.
A session page of the user 3 displays the comment message of the user 1, and the user 3 may click on the comment message. The client of the user 3 displays the file content page, and the file content page includes the file content of the target file and the comment identifier of the target content. The user 3 may click on the comment identifier, and the client may display the comment content of the user 1 on the target content. In addition, the file content page may further display another comment identifier, and the user 3 may click on the comment identifier to view the comment content and the commenting object. The user 3 may further hide comment content and the commenting objects through the comment hiding button, hide the comment identifier through the identifier hiding button, and display the hidden comment identifier through the identifier display button.
As can be seen from the above, this solution may display the comment of the object on the file content directly on the session page in the form of a comment message. Based on the commenting operation of the object, the session page of the instant messaging client displays the latest comment in real time, and there is no need to repeatedly open the file to view the comment. In addition, if comment information included in a comment message needs to be viewed with reference to the file content, the comment message may be directly selected, the target content corresponding to the comment message may be automatically positioned, and the comment content and the commenting object are displayed. In this way, the comment information included in the comment message may be intuitively and quickly viewed in the file content. In conclusion, this solution can effectively simplify operation steps and improve efficiency.
To better implement the file commenting method provided in the embodiments of this disclosure, an embodiment of this disclosure further provides an apparatus based on the foregoing file commenting method. Terms have meanings the same as those in the foregoing file commenting method. For specific implementation details, reference may be made to the description in the method embodiments.
The file content display module 501 is configured to display a file content page of an instant messaging client, where the file content page includes file content of a target file.
The comment content display module 502 is configured to display comment content of target content based on a commenting operation performed on the target content of the file content.
The comment message display module 503 is configured to display a session page of a commenting object in response to a determination that the commenting operation performed on the target content is completed, where the session page includes a comment message of the target file that is sent by the commenting object, and the comment message includes the target content, the comment content, and a file identifier of the target file.
In some embodiments of this disclosure, referring to
The editing control display submodule 5021 is configured to display a comment editing control of target content in response to detection of a selection operation performed on the target content of the file content.
The comment content display submodule 5022 is configured to display the comment content of the target content based on an editing operation performed on the comment editing control.
In some embodiments of this disclosure, the editing control display submodule 5021 includes a comment control display unit and an editing control display unit.
The comment control display unit is configured to display a comment control of target content in response to detection of a selection operation performed on the target content of the file content.
The editing control display unit is configured to display the comment editing control of the target content based on a triggering operation performed on the comment control.
In some embodiments of this disclosure, the comment content editing page includes a history message display area and a comment content editing area, the comment content editing area includes a comment editing control, and the history message display area includes a history message sent by an object in the session. The editing control display submodule 5021 is specifically configured to display the comment content of the target content based on a triggering operation performed on the comment editing control in the content editing area.
In some embodiments of this disclosure, the comment editing control includes a comment editing sub-control and a comment determining sub-control. The editing control display submodule 5021 is specifically configured to display the comment content of the target content based on an editing operation performed on the comment editing sub-control of the comment editing control.
The comment message display module 503 is specifically configured to determine that the commenting operation performed on the target content is completed in response to detection of a triggering operation performed on the comment determining sub-control and display the session page of the commenting object.
In some embodiments of this disclosure, referring to
The comment identifier display submodule 5031 is configured to display a file content page in response to a determination that the commenting operation performed on the target content is completed, where the file content page includes the file content of the target file, a comment identifier of the target content, and a session display control.
The comment message display submodule 5032 is configured to switch, in response to detection of a triggering operation performed on the session display control, to the session page for displaying the commenting object.
In some embodiments of this disclosure, the comment content includes a specified message receiving identifier and comment editing content, and the comment content display submodule 5022 is specifically configured to display a specified message receiving identifier of the target object based on a specified operation performed on the target object in the comment editing control; and display, based on a content editing operation in the comment editing control, comment editing content of the target content that corresponds to the specified message receiving identifier of the target object.
In some embodiments of this disclosure, the file content display module 501 is specifically configured to display a file list page of the commenting object in the instant messaging client, where the file list page includes a file identifier of at least one file; and display, based on a determining operation performed on a target file identifier, a file content page corresponding to the target file identifier.
In some embodiments of this disclosure, the file content display module 501 is specifically configured to display the session page of the commenting object in the instant messaging client, where the session page includes a file message of a target file that is sent by an object in a session; and display a file content page in response to detection of a viewing operation performed on the file message, where the file content page includes file content of the target file.
In this embodiment of this disclosure, the file content display module 501 displays a file content page of an instant messaging client, where the file content page includes file content of a target file; the comment content display module 502 displays comment content of target content based on a commenting operation performed on the target content of the file content; and the comment message display module 503 displays a session page of a commenting object in response to a determination that the commenting operation performed on the target content is completed, where the session page includes a comment message of the target file that is sent by the commenting object, and the comment message includes the target content, the comment content, and a file identifier of the target file. In this embodiment, when the commenting operation is completed, the comment message including the file identifier of the target file, the target content, the comment content, and the commenting object is displayed on the session page of the instant messaging client, which is different from the related art in which a file corresponding to a file identifier needs to be opened and then a comment is viewed. Therefore, this embodiment can effectively simplify steps and improve the viewing efficiency.
To better implement the comment viewing method provided in the embodiments of this disclosure, an embodiment of this disclosure further provides an apparatus based on the foregoing comment viewing method. Terms have meanings the same as those in the foregoing comment viewing method. For specific implementation details, reference may be made to the description in the method embodiments.
The session page display module 601 is configured to display a session page of an instant messaging client, where the session page includes a first comment message sent by a first commenting object, and the first comment message includes comment content of the first commenting object on first target content of a target file.
The first comment display module 602 is configured to display a first file content page in response to detection of a viewing operation performed on the comment message, where the first file content page includes: file content of the target file, a comment identifier of the first target content of file content, the comment content of the first target content, and the first commenting object.
In some embodiments of this disclosure, the first file content page further includes a comment identifier of at least one piece of second target content; and the comment viewing apparatus includes: a second comment display module 603, configured to display comment content of the second target content in response to detection of a viewing operation performed on the comment identifier of the second target content, where the comment content of the second target content includes comment content of the first commenting object on the second target content or comment content of at least one second commenting object on the second target content, as shown in
In some embodiments of this disclosure, the first file content page further includes: comment content of at least one second commenting object on the first target content; and the comment viewing apparatus includes a third comment display module 604, configured to display the comment content of the second commenting object on the first target content and the second commenting object on the first file content page in response to detection of a viewing operation performed on the comment message, as shown in
In some embodiments of this disclosure, the first file content page includes an all-comment display control, and the comment viewing apparatus includes a fourth comment display module 605, configured to display comment content of all commenting objects on all target content on the first file content page in response to detection of a triggering operation performed on the all-comment display control, as shown in
In some embodiments of this disclosure, referring to
The hiding module 606 is configured to hide comment information of the target file in response to detection of a hiding operation performed on the first file content page.
The display module 607 is configured to display comment identifiers of all target content of the target file in response to detection of a comment display operation based on the file content page.
In some embodiments of this disclosure, the comment information includes comment content and a commenting object, and the hiding module 606 is specifically configured to hide comment content and a commenting object of the target file in response to detection of a comment content hiding operation performed on the first file content page.
In some embodiments of this disclosure, the comment information includes a comment identifier, and the hiding module 606 is specifically configured to display a comment identifier hiding control in response to detection of a selection operation performed on the first file content page; and hide comment identifiers of all target content of the target file based on a triggering operation performed on the comment hiding control.
In some embodiments of this disclosure, the first file content page includes an all-identifier hiding control, the comment information includes a comment identifier, and the hiding module 606 is specifically configured to hide comment identifiers of all target content of the target file in response to detection of a triggering operation performed on the all-identifier hiding control.
In some embodiments of this disclosure, file content of the target file includes first file content and second file content, the first file content page includes a page switching control, and the comment viewing apparatus includes a display page switching module, configured to in response to detection of a switching operation based on the page switching control, switch to display a second file content page, where the second file content page includes the second file content of the target file, a comment identifier of a target content of the second file content, and comment content of a comment identifier of at least one piece of target content.
In some embodiments of this disclosure, referring to
The first determining submodule 6021 is configured to determine an initial file based on the viewing operation performed on the first comment message.
The obtaining submodule 6022 is configured to obtain comment information of the initial file, where the comment information includes location information, commenting object information (i.e., identification of the commentor), and comment content information.
The second determining submodule 6023 is configured to determine target content of the initial file based on the location information.
The adding submodule 6024 is configured to add a comment identifier of the target content and comment content and a commenting object of the target content to file content of the initial file, to obtain a target file.
The display submodule 6025 is configured to display the first file content page, where the first file page includes file content of the target file.
In this embodiment of this disclosure, the session page display module 601 may display a session page of an instant messaging client, where the session page includes a first comment message sent by a first commenting object, and the first comment message includes comment content of the first commenting object on first target content of a target file. The first comment display module 602 displays a first file content page in response to detection of a viewing operation performed on the first comment message, where the first file content page includes: file content of the target file, a comment identifier of the first target content of file content, the comment content of the first target content, and the first commenting object. In this embodiment, the first target content in the file content may be quickly positioned based on the first comment message on the session page and the comment identifier of the first target content, and the comment content and the first commenting object of the first target content are viewed. Different from the related art in which the file needs to be opened and each piece of target content is viewed in the file to determine the first target content, this embodiment can significantly simplify steps and improve the viewing efficiency.
An embodiment of this disclosure provides a file commenting apparatus, including a content display module, configured to display a file content page of an instant messaging client, where the file content page includes file content of a target file; a control display module, configured to display a comment control of target content in response to detection of a selection operation performed on the target content of the file content; a session display module, configured to display a session page of a commenting object in response to detection of an operation performed on the comment control; a comment display module, configured to display comment editing content on the session page based on a comment editing operation performed on the target content on the session page; and a message display module, configured to: display, on the session page in response to a determination that the comment editing operation performed on the target content is completed, a comment message of the target file that is sent by the commenting object, and add a comment identifier to the target content of the file content, where the comment message includes the target content, the comment content, and a file identifier of the target file.
In some embodiments of this disclosure, the message display module includes a content display submodule and a message display submodule.
The content display submodule is configured to display a file content page in response to a determination that the comment editing operation performed on the target content is completed, where the file content page includes file content of the target file, a comment identifier of the target content, and a session display control.
The message display submodule is configured to switch to display the session page of the commenting object in response to detection of a triggering operation performed on the session display control and add the comment identifier to the target content of the file content, where a message display area of the session page includes a comment message of the target file that is sent by the commenting object.
In some embodiments of this disclosure, the comment content includes a specified message receiving identifier and comment editing content. The comment display module includes a receiving identifier display submodule and a comment content display submodule.
The receiving identifier display submodule is configured to display a specified message receiving identifier of the target object based on a specified operation performed on the target object in a content editing area.
The comment content display submodule is configured to display comment editing content in the content editing area based on a comment editing operation performed on the target content in the content editing area, where the comment editing content is comment content of the target content that corresponds to the specified message receiving identifier of the target object.
In some embodiments of this disclosure, the content display module is specifically configured to display a file list page of the commenting object in the instant messaging client, where the file list page includes a file identifier of at least one file; and display, based on a determining operation performed on a target file identifier, a file content page corresponding to the target file identifier.
In some embodiments of this disclosure, the content display module is specifically configured to display the session page of the commenting object in the instant messaging client, where the session page includes a file message of a target file that is sent by an object in a session; and display a file content page in response to detection of a viewing operation performed on the file message, where the file content page includes file content of the target file.
In addition, an embodiment of this disclosure further provides a computer device, and the computer device may be a terminal or a server.
The computing device may include components such as processing circuitry (e.g., a processor 701) of one or more processing cores, a memory 702 (e.g., a non-transitory computer-readable storage medium) of one or more computer readable storage media, a power supply 703, and an input unit 704. A person skilled in the art may understand that, the structure of the computer device shown in
The processor 701 is a control center of the computer device and is connected to various parts of the computer device by using various interfaces and lines. By running or executing software programs and/or modules stored in the memory 702, and invoking data stored in the memory 702, the processor performs various functions and data processing of the computer device, thereby performing overall monitoring on the computer device. The processor 701 may include one or more processing cores. The processor 701 may integrate an application processor and a modem processor. The application processor mainly processes an operating system, a user interface, an application program, and the like. The modem processor mainly processes wireless communication. It may be understood that the modem processor may not be integrated into the processor 701.
The memory 702 may be configured to store a software program and module. The processor 701 runs the software program and module stored in the memory 702, to execute various functional applications and data processing. The memory 702 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program corresponding to at least one function (for example, a sound playback function and an image display function), and the like. The data storage area may store data created according to use of the computer device, and the like. In addition, the memory 702 may include a high-speed random access memory, and may also include a nonvolatile memory, for example, at least one magnetic disk storage device, a flash memory, or another volatile solid-status storage device. Correspondingly, the memory 702 may further include a memory controller, to provide access of the processor 701 to the memory 702.
The computer device further includes the power supply 703 for supplying power to the components. The power supply 703 may be logically connected to the processor 701 by using a power management system, thereby implementing functions such as charging, discharging, and power consumption management by using the power management system. The power supply 703 may further include one or more of a direct current or alternating current power supply, a re-charging system, a power failure detection circuit, a power supply converter or inverter, a power supply state indicator, and any other component.
The computer device may further include the input unit 704. The input unit 704 may be configured to receive input digit or character information and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control.
Although not shown in the figure, the computer device may further include a display unit, and the like. Details are not described herein again. Specifically, in this embodiment, the processor 701 in the computer device may load, according to the following computer-readable instructions, executable files corresponding to processes of one or more application programs into the memory 702. The processor 701 runs the application programs stored in the memory 702, to implement the steps in any one of file commenting and comment viewing methods. For example, a file content page of an instant messaging client is displayed, where the file content page includes file content of a target file; comment content of target content is displayed based on a commenting operation performed on the target content of the file content; and a session page of a commenting object is displayed in response to a determination that the commenting operation performed on the target content is completed, where the session page includes a comment message of the target file that is sent by the commenting object, and the comment message includes the target content, the comment content, and a file identifier of the target file.
In an embodiment, a session page of an instant messaging client is displayed, where the session page includes a first comment message sent by a first commenting object, and the first comment message includes comment content of the first commenting object on first target content of a target file; and a first file content page is displayed in response to detection of a viewing operation performed on the first comment message, where the first file content page includes: file content of the target file, a comment identifier of the first target content of file content, the comment content of the first target content, and the first commenting object.
In an embodiment, a file content page of an instant messaging client is displayed, where the file content page includes file content of a target file; a comment control of target content is displayed in response to detection of a selection operation performed on the target content of the file content; a session page of a commenting object is displayed in response to detection of an operation performed on the comment control; and comment editing content is displayed on the session page based on a comment editing operation performed on the target content on the session page; and a comment message of the target file that is sent by the commenting object is displayed on the session page in response to a determination that the comment editing operation performed on the target content is completed, and a comment identifier is added to the target content of the file content, where the comment message includes the target content, the comment content, and a file identifier of the target file.
A person of ordinary skill in the art could understand that all or some steps of various embodiments in the embodiments may be implemented through computer-readable instructions or implemented through the computer-readable instructions controlling relevant hardware, and the instructions may be stored in a non-volatile storage medium of one or more computer-readable instructions and loaded and executed by one or more processors.
Therefore, the embodiments of this disclosure further provides one or more non-volatile storage media storing computer-readable instructions, when executed by one or more processors, the computer-readable instructions causing the one or more processors to perform the steps in any one of the file commenting and comment viewing methods provided in the embodiments of this disclosure. For example, the computer-readable instructions may perform the following steps: displaying a file content page of an instant messaging client, where the file content page includes file content of a target file; displaying comment content of target content based on a commenting operation performed on the target content (e.g., a portion) of the file content; displaying a session page of a commenting object in response to a determination that the commenting operation performed on the target content is completed, where the session page includes a comment message of the target file that is sent by the commenting object, and the comment message includes the target content, the comment content, and a file identifier of the target file.
In an embodiment, displaying a session page of an instant messaging client, where the session page includes a first comment message sent by a first commenting object, and the first comment message includes comment content of the first commenting object on first target content of a target file; and displaying a first file content page in response to detection of a viewing operation performed on the first comment message, where the first file content page includes: file content of the target file, a comment identifier of the first target content of file content, the comment content of the first target content, and the first commenting object.
In an embodiment, displaying a file content page of an instant messaging client, where the file content page includes file content of a target file; displaying a comment control of target content in response to detection of a selection operation performed on the target content of the file content; displaying a session page of a commenting object in response to detection of an operation performed on the comment control; and displaying comment editing content on the session page based on a comment editing operation performed on the target content on the session page; and displaying a comment message of the target file that is sent by the commenting object on the session page in response to a determination that the comment editing operation performed on the target content is completed, and adding a comment identifier to the target content of the file content, where the comment message includes the target content, the comment content, and a file identifier of the target file.
In an embodiment, this disclosure provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, to cause the computer device to perform the steps in the foregoing method embodiments.
The system related to the embodiments of this disclosure may be a distributed system formed by connecting a client to a plurality of nodes (computer devices in any form in an access network, such as, servers and terminals) in a network communication form.
For example, the distributed system is a blockchain system. Referring to
Referring to functions of each node in the blockchain system shown in
In addition to the routing function, the node may further have an application function, which is deployed in a blockchain, and is used for implementing a particular service according to an actual service requirement, recording data related to function implementation to form recorded data, adding a digital signature to the recorded data to indicate a source of task data, and transmitting the recorded data to another node in the blockchain system, so that the another node adds the recorded data to a temporary block when successfully verifying a source and integrity of the recorded data.
For example, services implemented by the application may include a wallet service used for providing a transaction function with electronic money, including transaction initiation (that is, a transaction record of a current transaction is transmitted to another node in the blockchain system, and the another node stores, after successfully verifying the transaction record, recorded data of the transaction to a temporary block in a blockchain in response to admitting that the transaction is valid). The wallet service further supports querying for remaining electronic money in an electronic money address.
Another service implemented by the application may include a shared ledger service used for providing functions of operations such as storage, query, and modification of account data. Recorded data of the operations on the account data is transmitted to another node in the blockchain system. The another node stores, after verifying that the account data is valid, the recorded data to a temporary block in response to admitting that the account data is valid and may further transmit an acknowledgement to a node initiating the operations.
Another service implemented by the application may include a shared contract service which is a computerized protocol, may be used for executing conditions of a contract, and is implemented by using code that is deployed in the shared ledger and that is executed when a condition is satisfied. The code is used for completing, according to an actual service requirement, an automated transaction, for example, searching for a delivery status of goods purchased by a purchaser, and transferring electronic money of the purchaser to an address of a merchant after the purchaser signs for the goods. The smart contract is not limited to a contract used for executing a transaction and may be further a contract used for processing received information.
In addition to the routing and application functions, the node may further have a blockchain function including a series of blocks that are consecutive in a chronological order of generation. Once a new block is added to the blockchain, the new block is no longer removed. The block records recorded data submitted by the node in the blockchain system.
The comment information, such as target content, comment content, and a commenting object in this embodiment, may be stored in a blockchain shared ledger through a node. A computer device (such as a terminal or a server) may obtain the comment information based on data stored in the shared ledger.
Referring to
For specific implementations of the above operations, refer to the foregoing embodiments. Details are not described herein again.
The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disc, or the like.
Because the computer program stored in the storage medium may perform the steps of any one of the file commenting and comment viewing methods provided in the embodiments of this disclosure, the computer program may implement beneficial effects that may be implemented by any one of the file commenting and comment viewing methods provided in the embodiments of this disclosure. For details, reference may be made to the foregoing embodiments. Details are not described herein again.
The file commenting and comment viewing methods provided in the embodiments of this disclosure are described above in detail. Although the principles and implementations of this disclosure are described by using specific examples in this specification, the descriptions of the foregoing embodiments are merely intended to help understand the method and the core idea of the method of this disclosure. Meanwhile, a person skilled in the art may make modifications to the specific implementations according to the idea of this disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202010109009.1 | Feb 2020 | CN | national |
This application is a continuation of International Application No. PCT/CN2020/122703, filed on Oct. 22, 2020, which claims priority to Chinese Patent Application No. 202010109009.1, entitled “FILE COMMENTING METHOD AND COMMENT VIEWING METHOD” and filed on Feb. 21, 2020. The disclosures of the prior applications are hereby incorporated by reference in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
8374975 | Cierniak | Feb 2013 | B1 |
10679627 | Ramasamy | Jun 2020 | B2 |
20040205547 | Feldt | Oct 2004 | A1 |
20110099463 | Abagyan | Apr 2011 | A1 |
20130212507 | Fedoseyeva | Aug 2013 | A1 |
20140188803 | James | Jul 2014 | A1 |
20140258972 | Savage | Sep 2014 | A1 |
20140380173 | Zhang | Dec 2014 | A1 |
20160100019 | Leondires | Apr 2016 | A1 |
20160219057 | Das | Jul 2016 | A1 |
20160308940 | Procopio | Oct 2016 | A1 |
20160344667 | Lane | Nov 2016 | A1 |
20170017658 | Blong | Jan 2017 | A1 |
20170032021 | Watanachote | Feb 2017 | A1 |
20170353410 | Gonzales | Dec 2017 | A1 |
20180077092 | Jalil | Mar 2018 | A1 |
20180276559 | Kodali | Sep 2018 | A1 |
20180302462 | Kwon | Oct 2018 | A1 |
20190272071 | Greenberger | Sep 2019 | A1 |
20200366629 | Jalil | Nov 2020 | A1 |
20210067570 | Chen | Mar 2021 | A1 |
20220086238 | Oh | Mar 2022 | A1 |
Number | Date | Country |
---|---|---|
103347091 | Oct 2013 | CN |
104952095 | Sep 2015 | CN |
105630353 | Jun 2016 | CN |
105912224 | Aug 2016 | CN |
109726367 | May 2019 | CN |
110061900 | Jul 2019 | CN |
111240543 | Jun 2020 | CN |
111325004 | Jun 2020 | CN |
Entry |
---|
Churchill, ‘Anchored Conversations: Chatting in the context of a document’, CHI '2000 The Hague, Amsterdam, ACM (Year: 2000). |
International Search Report and Written Opinion dated Jan. 20, 2021 in Application No. PCT/CN2020/122703 with English Translation. |
Chinese Office Action dated May 7, 2021 in Patent Application No. 202010109009.1 with English Translation. |
Number | Date | Country | |
---|---|---|---|
20220217108 A1 | Jul 2022 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2020/122703 | Oct 2020 | US |
Child | 17702349 | US |