CN111262776A - Method, device, electronic equipment and computer readable medium for sending notification message - Google Patents

Method, device, electronic equipment and computer readable medium for sending notification message Download PDF

Info

Publication number
CN111262776A
CN111262776A CN202010025449.9A CN202010025449A CN111262776A CN 111262776 A CN111262776 A CN 111262776A CN 202010025449 A CN202010025449 A CN 202010025449A CN 111262776 A CN111262776 A CN 111262776A
Authority
CN
China
Prior art keywords
online document
knowledge base
notification message
updater
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010025449.9A
Other languages
Chinese (zh)
Other versions
CN111262776B (en
Inventor
彭龙腾
罗丹岳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010025449.9A priority Critical patent/CN111262776B/en
Publication of CN111262776A publication Critical patent/CN111262776A/en
Application granted granted Critical
Publication of CN111262776B publication Critical patent/CN111262776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure provides a method, a device, an electronic device and a computer readable medium for sending a notification message, wherein the method comprises the following steps: acquiring an update message, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base; when the ID of the online document updater is different from the ID of the message receiver, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base; the notification message is sent to the recipient according to the format of the notification message, and the recipient includes an ownership owner and/or knowledge base manager of the online document. The method realizes that the online document is added into the knowledge base and then sends the notification message to the ownership owner of the online document, and the online document is removed from the knowledge base and then sends the notification message to the knowledge base manager, thereby ensuring that the online document is timely notified when being updated and providing precondition guarantee for maintaining the information safety of the knowledge base.

Description

Method, device, electronic equipment and computer readable medium for sending notification message
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for sending a notification message, an electronic device, and a computer-readable medium.
Background
At present, users use online documents to record and share content in a suite, and users can write content and share knowledge by using the online documents. When the online documents are provided for the team to share, the online documents can be added to the knowledge base, and all members of the knowledge base can see the online documents. The users in the suite can also use the communication tool to chat and communicate with each other, the suite is a collection of various office products, and the users of the office products share an account system and can be related to each other through accounts. But after the online document is updated, the ownership owner of the online document does not know that the online document has been updated.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The present disclosure addresses the shortcomings of the prior art by providing a method, an apparatus, an electronic device, and a computer-readable medium for sending a notification message, so as to solve the problem of how to send a notification message to an ownership owner of an online document after the online document is added to a knowledge base, and send a notification message to a knowledge base manager after the online document is removed from the knowledge base.
In a first aspect, the present disclosure provides a method for sending a notification message, including:
acquiring an update message, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base;
when the ID of the online document updater is different from the ID of the message receiver, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base;
and sending the notification message to the message receiver according to the format of the notification message, wherein the message receiver comprises an ownership owner and/or a knowledge base manager of the online document.
In a second aspect, the present disclosure provides an apparatus for sending a notification message, including:
the first processing module is used for acquiring an update message, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base;
the second processing module is used for determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base when the ID of the online document updater is different from the ID of the message receiver;
and the third processing module is used for sending the notification message to a message receiver according to the format of the notification message, wherein the message receiver comprises an ownership owner and/or a knowledge base manager of the online document.
In a third aspect, the present disclosure provides an electronic device, comprising: a processor, a memory, and a bus;
a bus for connecting the processor and the memory;
a memory for storing operating instructions;
a processor, configured to execute the method for sending a notification message according to the first aspect of the present disclosure by calling an operation instruction.
In a fourth aspect, the present disclosure provides a computer readable medium storing a computer program for executing the method of transmitting a notification message of the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure has at least the following beneficial effects:
acquiring an update message, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base; when the ID of the online document updater is different from the ID of the message receiver, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base; the notification message is sent to the recipient according to the format of the notification message, and the recipient includes an ownership owner and/or knowledge base manager of the online document. Therefore, after the online document is added to the knowledge base, the notification message is sent to the ownership owner of the online document, and after the online document is removed from the knowledge base, the notification message is sent to the knowledge base manager, so that the online document is ensured to be timely notified of updating, and the precondition guarantee is provided for maintaining the information safety of the knowledge base.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings used in the description of the embodiments of the present disclosure will be briefly described below.
Fig. 1 is a flowchart illustrating a method for sending a notification message according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating another method for sending a notification message according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a further method for sending a notification message according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus for sending a notification message according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Example one
The embodiment of the present disclosure provides a method for sending a notification message, a flowchart of the method is shown in fig. 1, and the method includes:
s101, obtaining an updating message, wherein the updating message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base.
In the embodiment of the present disclosure, the concept of knowledge base comes from two different fields, one is artificial intelligence and its branch-knowledge engineering field, and the other is traditional database field, and the organic combination of two computer technologies, Artificial Intelligence (AI) and Database (DB), promotes the generation and development of knowledge base system, and the knowledge base is a knowledge-based system (or expert system) with intelligence. The tree directory manages online documents, and a tree directory structure can be regarded as a knowledge base. An online document can only exist once in a repository. I.e., online document a is already under the directory of repository B, then online document a cannot be repeatedly added under repository directory B, but online document a may exist under other repository directories. That is, one online document can be mounted under the directories of multiple knowledge bases, but the directory under the same knowledge base and the same online document can be mounted only once.
S102, when the ID of the online document updater is different from the ID of the message receiver, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base.
In the embodiment of the disclosure, the ID of the online document is the unique identifier of the online document, one online document has only one ID, and the IDs of all online documents are different. The ID of the online document updater is the unique identity of the updater. The ID of the knowledge base is the unique identifier of the knowledge base, and one knowledge base can have thousands of members, and members other than the knowledge base cannot view the knowledge base.
S103, sending the notification message to the message receiver according to the format of the notification message, wherein the message receiver comprises an ownership owner and/or a knowledge base manager of the online document.
In the embodiment of the disclosure, the ownership owner of the online document is an owner of ownership of the online document, and one online document only has one ownership owner.
In the embodiment of the disclosure, an update message is acquired, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base; when the ID of the online document updater is different from the ID of the message receiver, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base; the notification message is sent to the recipient according to the format of the notification message, and the recipient includes an ownership owner and/or knowledge base manager of the online document. Therefore, after the online document is added to the knowledge base, the notification message is sent to the ownership owner of the online document, and after the online document is removed from the knowledge base, the notification message is sent to the knowledge base manager, so that the online document is ensured to be timely notified of updating, and the precondition guarantee is provided for maintaining the information safety of the knowledge base.
In the embodiment of the present disclosure, before obtaining the update message, the method further includes:
acquiring an online document adding request, wherein the online document adding request comprises an ID of an online document updater, an ID of an online document and an ID of a knowledge base;
when it is determined that the online document updater has permission to access the knowledge base, the online document is added to the knowledge base.
In the embodiment of the present disclosure, when the ID of the online document updater is different from the ID of the message recipient, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base includes:
when the ID of the online document updater is different from the ID of the ownership owner of the online document, determining the name of the online document updater, the name of the online document and the name of the knowledge base according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base;
and splicing the name of the online document updater, the name of the online document, the name of the knowledge base and the link corresponding to the knowledge base to determine the format of the notification message.
In the embodiment of the present disclosure, sending the notification message to the message receiver according to the format of the notification message includes:
and sending the notification message to the instant communication client of the ownership owner of the online document according to the format of the notification message.
Another method for sending a notification message is provided in the embodiments of the present disclosure, and a flowchart of the method is shown in fig. 2, where the method includes:
s201, adding the online document to a knowledge base by the user.
In the embodiment of the disclosure, after the user views the content of the online document, the online document is added into the knowledge base, and the ID of the user and the ID of the online document are transmitted to the background service. The user is an online document updater.
S202, the background service checks whether the user has the authority to add the online document to the knowledge base.
In the embodiment of the present disclosure, when the user has the right to add the online document to the knowledge base, the operation goes to S203 for execution; if the user does not have the right to add the online document to the knowledge base, go to S201 for execution.
S203, determining whether the ID of the online document owner is the same as the ID of the user.
In the embodiment of the present disclosure, after the online document is successfully added to the knowledge base, the ID of the online document owner is obtained, and when the ID of the online document owner is the same as the ID of the user, the online document owner performs the addition operation, and the step goes to S201 without sending a notification; when the ID of the online document owner is different from the ID of the user, the process goes to S204. The online document owner is the ownership owner of the online document.
S204, determining the format of the notification message, and sending the notification message to the online document owner.
In the embodiment of the disclosure, the notification module receives the ID of the user, the ID of the online document, and the ID of the knowledge base. The method comprises the steps of obtaining the name of a user through the ID of the user, obtaining the name of a knowledge base through the ID of the knowledge base, splicing the names into a format of [ user name ] and issuing a document [ document name ] to [ knowledge base name ] [ knowledge base link ], and sending the format to a communication tool of an online document owner.
S205, the communication tool where the online document owner is located receives a notification message prompt.
The technical scheme provided by the embodiment of the disclosure has at least the following beneficial effects:
after the online document is added to the knowledge base by the user, a notification message is sent to the online document owner, and the notification message comprises the title of the notification message, such as the title of an online document publishing reminder, the name of the user, the name of the added online document, the name of the added knowledge base and the corresponding link of the knowledge base, and the online document can be directly jumped to the knowledge base where the online document page is located by clicking the link of the knowledge base. The updating of the online document is ensured to be informed in time, and a precondition guarantee is provided for maintaining the information security of the knowledge base.
In the embodiment of the present disclosure, before obtaining the update message, the method further includes:
acquiring an online document removing request, wherein the online document removing request comprises an ID of an online document updater, an ID of an online document and an ID of a knowledge base;
when it is determined that the online document updater has permission to remove the online document from the repository, the online document is removed from the repository.
In the embodiment of the present disclosure, when the ID of the online document updater is different from the ID of the message recipient, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base includes:
when the ID of the online document updater is different from the ID of the knowledge base manager, determining the name of the online document updater, the name of the online document and the name of the knowledge base according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base;
and splicing the name of the online document updater, the name of the online document, the name of the knowledge base and the link corresponding to the online document to determine the format of the notification message.
In the embodiment of the present disclosure, sending the notification message to the message receiver according to the format of the notification message includes:
and sending the notification message to the instant messaging client of the knowledge base manager according to the format of the notification message.
Another method for sending a notification message is provided in the embodiments of the present disclosure, and a flowchart of the method is shown in fig. 3, where the method includes:
s301, the user removes the online document from the knowledge base.
In the embodiment of the disclosure, a user views an online document in a knowledge base, considers that the online document should not exist in the current knowledge base, and executes a removing operation to remove the online document from the knowledge base. The user is an online document updater.
S302, the background service checks whether the user has the authority to remove the online document from the knowledge base. In the embodiment of the present disclosure, when the user does not have the right to remove the online document from the knowledge base, the process goes to S301 for execution; when the user has the right to remove the online document from the knowledge base, the process goes to S303.
S303, whether the ID of the user is the same as the ID of the knowledge base administrator is determined.
In the embodiment of the disclosure, after the online document is successfully removed from the knowledge base, whether the ID of the user is the same as the ID of the knowledge base administrator is judged, and when the ID of the user is the same as the ID of the knowledge base administrator, the removal operation of the administrator is indicated, and the step is switched to S301 for execution without sending a notification; when the user ID is different from the ID of the knowledge base administrator, the step goes to S304 for execution; the notification is sent to prevent malicious removal of the online document by the user.
S304, determining the format of the notification message, and sending the notification message to a knowledge base administrator.
In the embodiment of the disclosure, the notification module receives the ID of the user, the ID of the online document, and the ID of the knowledge base. The method comprises the steps of obtaining the name of a user through the ID of the user, obtaining the name of a knowledge base through the ID of the knowledge base, splicing into a [ user name ] format for removing a [ document link ] from a [ knowledge base name ] document [ document name ], and sending the format to a communication tool of a knowledge base administrator.
S305, the communication tool where the knowledge base administrator is located receives a notification message prompt.
The technical scheme provided by the embodiment of the disclosure has at least the following beneficial effects:
after the online document is removed from the knowledge base, a notification message is sent to a knowledge base administrator, the notification message comprises a title of the notification message, such as a title of an online document publishing reminder, a name of a user, a name of the removed online document, a name of the knowledge base and a corresponding link of the online document, and the online document page can be directly jumped to by clicking the link. The updating of the online document is ensured to be informed in time, and a precondition guarantee is provided for maintaining the information security of the knowledge base.
Example two
Based on the same inventive concept, the embodiment of the present disclosure further provides an apparatus for sending a notification message, and a schematic structural diagram of the apparatus is shown in fig. 4, and the apparatus 40 for sending a notification message includes a first processing module 401, a second processing module 402, and a third processing module 403.
A first processing module 401, configured to acquire an update message, where the update message includes an identification ID of an online document updater, an ID of a message recipient, an ID of an online document, and an ID of a knowledge base;
a second processing module 402, configured to determine, when the ID of the online document updater is different from the ID of the message recipient, a format of the notification message according to the ID of the online document updater, the ID of the online document, and the ID of the knowledge base;
a third processing module 403, configured to send the notification message to a message recipient according to the format of the notification message, where the message recipient includes an ownership owner and/or knowledge base manager of the online document.
In the embodiment of the present disclosure, before obtaining the update message, the first processing module 401 is specifically configured to obtain an online document addition request, where the online document addition request includes an ID of an online document updater, an ID of an online document, and an ID of a knowledge base; when it is determined that the online document updater has permission to access the knowledge base, the online document is added to the knowledge base.
In the embodiment of the present disclosure, the second processing module 402 is specifically configured to, when the ID of the online document updater is different from the ID of the ownership owner of the online document, determine, according to the ID of the online document updater, the ID of the online document, and the ID of the repository, a name of the online document updater, a name of the online document, and a name of the repository; and splicing the name of the online document updater, the name of the online document, the name of the knowledge base and the link corresponding to the knowledge base to determine the format of the notification message.
In this embodiment of the disclosure, the third processing module 403 is specifically configured to send the notification message to the instant messaging client of the ownership owner of the online document according to the format of the notification message.
In the embodiment of the present disclosure, before obtaining the update message, the first processing module 401 is specifically configured to obtain an online document removal request, where the online document removal request includes an ID of an online document updater, an ID of an online document, and an ID of a knowledge base; when it is determined that the online document updater has permission to remove the online document from the repository, the online document is removed from the repository.
In the embodiment of the present disclosure, the second processing module 402 is specifically configured to, when the ID of the online document updater is different from the ID of the knowledge base manager, determine the name of the online document updater, the name of the online document, and the name of the knowledge base according to the ID of the online document updater, the ID of the online document, and the ID of the knowledge base; and splicing the name of the online document updater, the name of the online document, the name of the knowledge base and the link corresponding to the online document to determine the format of the notification message.
In the embodiment of the present disclosure, the third processing module 403 is specifically configured to send the notification message to the instant messaging client of the knowledge base manager according to the format of the notification message.
The application of the embodiment of the disclosure has at least the following beneficial effects:
acquiring an update message, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base; when the ID of the online document updater is different from the ID of the message receiver, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base; the notification message is sent to the recipient according to the format of the notification message, and the recipient includes an ownership owner and/or knowledge base manager of the online document. Therefore, after the online document is added to the knowledge base, the notification message is sent to the ownership owner of the online document, and after the online document is removed from the knowledge base, the notification message is sent to the knowledge base manager, so that the online document is ensured to be timely notified of updating, and the precondition guarantee is provided for maintaining the information safety of the knowledge base.
For the content that is not described in detail in the apparatus for sending a notification provided in the embodiment of the present disclosure, reference may be made to the method for sending a notification message provided in the first embodiment of the present disclosure, and beneficial effects that can be achieved by the apparatus for sending a notification provided in the embodiment of the present disclosure are the same as the method for sending a notification message provided in the first embodiment of the present disclosure, and are not described again here.
EXAMPLE III
Referring now to FIG. 5, a block diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device includes: a memory and a processor, wherein the processor may be referred to as the processing device 801 described below, and the memory may include at least one of a Read Only Memory (ROM)802, a Random Access Memory (RAM)803, and a storage device 808, as shown in fig. 5 in particular:
the electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 5 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring an update message, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base; when the ID of the online document updater is different from the ID of the message receiver, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base; the notification message is sent to the recipient according to the format of the notification message, and the recipient includes an ownership owner and/or knowledge base manager of the online document.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the designation of a module or unit does not in some cases constitute a limitation of the unit itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, an embodiment provides a method for sending a notification message, including:
acquiring an update message, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base;
when the ID of the online document updater is different from the ID of the message receiver, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base;
and sending the notification message to the message receiver according to the format of the notification message, wherein the message receiver comprises an ownership owner and/or a knowledge base manager of the online document.
In the embodiment of the present disclosure, before obtaining the update message, the method further includes:
acquiring an online document adding request, wherein the online document adding request comprises an ID of an online document updater, an ID of an online document and an ID of a knowledge base;
when it is determined that the online document updater has permission to access the knowledge base, the online document is added to the knowledge base.
In the embodiment of the present disclosure, when the ID of the online document updater is different from the ID of the message recipient, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base includes:
when the ID of the online document updater is different from the ID of the ownership owner of the online document, determining the name of the online document updater, the name of the online document and the name of the knowledge base according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base;
and splicing the name of the online document updater, the name of the online document, the name of the knowledge base and the link corresponding to the knowledge base to determine the format of the notification message.
In the embodiment of the present disclosure, sending the notification message to the message receiver according to the format of the notification message includes:
and sending the notification message to the instant communication client of the ownership owner of the online document according to the format of the notification message.
In the embodiment of the present disclosure, before obtaining the update message, the method further includes:
acquiring an online document removing request, wherein the online document removing request comprises an ID of an online document updater, an ID of an online document and an ID of a knowledge base;
when it is determined that the online document updater has permission to remove the online document from the repository, the online document is removed from the repository.
In the embodiment of the present disclosure, when the ID of the online document updater is different from the ID of the message recipient, determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base includes:
when the ID of the online document updater is different from the ID of the knowledge base manager, determining the name of the online document updater, the name of the online document and the name of the knowledge base according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base;
and splicing the name of the online document updater, the name of the online document, the name of the knowledge base and the link corresponding to the online document to determine the format of the notification message.
In the embodiment of the present disclosure, sending the notification message to the message receiver according to the format of the notification message includes:
and sending the notification message to the instant messaging client of the knowledge base manager according to the format of the notification message.
According to one or more embodiments of the present disclosure, a second embodiment provides an apparatus for sending a notification message, including:
the first processing module is used for acquiring an update message, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base;
the second processing module is used for determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base when the ID of the online document updater is different from the ID of the message receiver;
and the third processing module is used for sending the notification message to a message receiver according to the format of the notification message, wherein the message receiver comprises an ownership owner and/or a knowledge base manager of the online document.
In the embodiment of the present disclosure, before obtaining the update message, the first processing module is specifically configured to obtain an online document addition request, where the online document addition request includes an ID of an online document updater, an ID of an online document, and an ID of a knowledge base; when it is determined that the online document updater has permission to access the knowledge base, the online document is added to the knowledge base.
In the embodiment of the present disclosure, the second processing module is specifically configured to, when the ID of the online document updater is different from the ID of the ownership owner of the online document, determine, according to the ID of the online document updater, the ID of the online document, and the ID of the repository, a name of the online document updater, a name of the online document, and a name of the repository; and splicing the name of the online document updater, the name of the online document, the name of the knowledge base and the link corresponding to the knowledge base to determine the format of the notification message.
In an embodiment of the present disclosure, the third processing module is specifically configured to send the notification message to the instant messaging client of the ownership owner of the online document according to the format of the notification message.
In the embodiment of the present disclosure, before obtaining the update message, the first processing module is specifically configured to obtain an online document removal request, where the online document removal request includes an ID of an online document updater, an ID of an online document, and an ID of a knowledge base; when it is determined that the online document updater has permission to remove the online document from the repository, the online document is removed from the repository.
In the embodiment of the present disclosure, the second processing module is specifically configured to, when the ID of the online document updater is different from the ID of the knowledge base manager, determine the name of the online document updater, the name of the online document, and the name of the knowledge base according to the ID of the online document updater, the ID of the online document, and the ID of the knowledge base; and splicing the name of the online document updater, the name of the online document, the name of the knowledge base and the link corresponding to the online document to determine the format of the notification message.
In the embodiment of the present disclosure, the third processing module is specifically configured to send the notification message to the instant messaging client of the knowledge base manager according to the format of the notification message.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method of sending a notification message, comprising:
acquiring an update message, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base;
when the ID of the online document updater is different from the ID of the message receiver, determining the format of a notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base;
and sending the notification message to the message receiver according to the format of the notification message, wherein the message receiver comprises an ownership owner and/or a knowledge base manager of the online document.
2. The method of claim 1, prior to said obtaining an update message, further comprising:
acquiring an online document adding request, wherein the online document adding request comprises an ID of an online document updater, an ID of an online document and an ID of a knowledge base;
adding the online document to the repository upon determining that the online document updater has permission to access the repository.
3. The method of claim 2, wherein determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base when the ID of the online document updater is different from the ID of the message recipient comprises:
when the ID of the online document updater is different from the ID of the ownership owner of the online document, determining the name of the online document updater, the name of the online document and the name of the knowledge base according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base;
and splicing the name of the online document updater, the name of the online document, the name of the knowledge base and the link corresponding to the knowledge base to determine the format of the notification message.
4. The method of claim 3, wherein sending the notification message to the recipient according to the format of the notification message comprises:
and sending the notification message to an instant messaging client of an ownership owner of the online document according to the format of the notification message.
5. The method of claim 1, prior to said obtaining an update message, further comprising:
acquiring an online document removing request, wherein the online document removing request comprises an ID of an online document updater, an ID of an online document and an ID of a knowledge base;
removing the online document from the repository upon determining that the online document updater has permission to remove the online document from the repository.
6. The method of claim 5, wherein determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base when the ID of the online document updater is different from the ID of the message recipient comprises:
when the ID of the online document updater is different from the ID of the knowledge base manager, determining the name of the online document updater, the name of the online document and the name of the knowledge base according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base;
and splicing the name of the online document updater, the name of the online document, the name of the knowledge base and the link corresponding to the online document to determine the format of the notification message.
7. The method of claim 6, wherein sending the notification message to the recipient according to the format of the notification message comprises:
and sending the notification message to an instant messaging client of the knowledge base manager according to the format of the notification message.
8. An apparatus for sending a notification message, comprising:
the first processing module is used for acquiring an update message, wherein the update message comprises an identification ID of an online document updater, an ID of a message receiver, an ID of an online document and an ID of a knowledge base;
the second processing module is used for determining the format of the notification message according to the ID of the online document updater, the ID of the online document and the ID of the knowledge base when the ID of the online document updater is different from the ID of the message receiver;
and the third processing module is used for sending the notification message to the message receiver according to the format of the notification message, wherein the message receiver comprises an ownership owner and/or a knowledge base manager of the online document.
9. An electronic device, comprising: a processor, a memory;
the memory for storing a computer program;
the processor, configured to execute the method for sending a notification message according to any one of claims 1 to 7 by calling the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of sending a notification message according to any one of claims 1 to 7.
CN202010025449.9A 2020-01-10 2020-01-10 Method, device, electronic equipment and computer readable medium for sending notification message Active CN111262776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010025449.9A CN111262776B (en) 2020-01-10 2020-01-10 Method, device, electronic equipment and computer readable medium for sending notification message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010025449.9A CN111262776B (en) 2020-01-10 2020-01-10 Method, device, electronic equipment and computer readable medium for sending notification message

Publications (2)

Publication Number Publication Date
CN111262776A true CN111262776A (en) 2020-06-09
CN111262776B CN111262776B (en) 2021-05-07

Family

ID=70955270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010025449.9A Active CN111262776B (en) 2020-01-10 2020-01-10 Method, device, electronic equipment and computer readable medium for sending notification message

Country Status (1)

Country Link
CN (1) CN111262776B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004259129A (en) * 2003-02-27 2004-09-16 Fuji Xerox Information Systems Co Ltd Online document generation server device, online document generation method and online document generation program
CN102436441A (en) * 2010-10-26 2012-05-02 微软公司 Synchronizing online document edits
CN102523173A (en) * 2011-12-01 2012-06-27 上海量明科技发展有限公司 Method and system for sharing document update reminding
CN103136656A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 System for transmitting update notification after document being modified and method thereof
US20150195221A1 (en) * 2010-05-28 2015-07-09 Lars Eilstrup Rasmussen Participant-Specific Markup
US20150199222A1 (en) * 2011-09-02 2015-07-16 John Day-Richter System and Method for Managing Remote Procedure Calls Relating to a Third Party Software Application
CN105264516A (en) * 2013-03-14 2016-01-20 微软技术许可有限责任公司 Document collaboration and notification of changes
CN107577684A (en) * 2016-07-05 2018-01-12 福建福昕软件开发股份有限公司 A kind of interconnection document updating method based on common interest
CN108306966A (en) * 2018-01-31 2018-07-20 腾讯科技(深圳)有限公司 Document processing method, device, system, terminal and server
CN109219824A (en) * 2016-06-02 2019-01-15 微软技术许可有限责任公司 Using access privilege come automatic shared document
CN109885654A (en) * 2019-02-01 2019-06-14 天津字节跳动科技有限公司 Online document modifies treating method and apparatus
CN110083421A (en) * 2019-04-16 2019-08-02 北京字节跳动网络技术有限公司 Notification method, device, terminal, server and the storage medium of online document

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004259129A (en) * 2003-02-27 2004-09-16 Fuji Xerox Information Systems Co Ltd Online document generation server device, online document generation method and online document generation program
US20150195221A1 (en) * 2010-05-28 2015-07-09 Lars Eilstrup Rasmussen Participant-Specific Markup
CN102436441A (en) * 2010-10-26 2012-05-02 微软公司 Synchronizing online document edits
US20150199222A1 (en) * 2011-09-02 2015-07-16 John Day-Richter System and Method for Managing Remote Procedure Calls Relating to a Third Party Software Application
CN102523173A (en) * 2011-12-01 2012-06-27 上海量明科技发展有限公司 Method and system for sharing document update reminding
CN103136656A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 System for transmitting update notification after document being modified and method thereof
CN105264516A (en) * 2013-03-14 2016-01-20 微软技术许可有限责任公司 Document collaboration and notification of changes
CN109219824A (en) * 2016-06-02 2019-01-15 微软技术许可有限责任公司 Using access privilege come automatic shared document
CN107577684A (en) * 2016-07-05 2018-01-12 福建福昕软件开发股份有限公司 A kind of interconnection document updating method based on common interest
CN108306966A (en) * 2018-01-31 2018-07-20 腾讯科技(深圳)有限公司 Document processing method, device, system, terminal and server
CN109885654A (en) * 2019-02-01 2019-06-14 天津字节跳动科技有限公司 Online document modifies treating method and apparatus
CN110083421A (en) * 2019-04-16 2019-08-02 北京字节跳动网络技术有限公司 Notification method, device, terminal, server and the storage medium of online document

Also Published As

Publication number Publication date
CN111262776B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN111368519B (en) Method, device, equipment and storage medium for editing online form
CN110781373A (en) List updating method and device, readable medium and electronic equipment
CN113760536A (en) Data caching method and device, electronic equipment and computer readable medium
CN111857720A (en) Method and device for generating user interface state information, electronic equipment and medium
US20230385080A1 (en) Method and apparatus for presenting information on lock screen interface, terminal, and storage medium
CN111309415A (en) UI (user interface) information processing method and device of application program and electronic equipment
CN110674082B (en) Method and device for removing online document, electronic equipment and computer readable medium
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111262776B (en) Method, device, electronic equipment and computer readable medium for sending notification message
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN111309366B (en) Method, device, medium and electronic equipment for managing registration core
CN114861106A (en) Information processing method, device, electronic equipment and storage medium
CN110941683B (en) Method, device, medium and electronic equipment for acquiring object attribute information in space
CN111580890A (en) Method, apparatus, electronic device, and computer-readable medium for processing features
CN111367590A (en) Interrupt event processing method and device
CN111538717A (en) Data processing method and device, electronic equipment and computer readable medium
CN111447298A (en) Method, device, equipment and medium for acquiring network address in application program
CN110633324B (en) Method, apparatus, electronic device and computer readable medium for synchronizing data
CN110262756B (en) Method and device for caching data
CN114116859A (en) Number source information sending method and device, electronic equipment and computer readable medium
CN116880909A (en) Offline device identification method, device, electronic device and computer readable medium
CN114638197A (en) Information processing method, device, electronic equipment and storage medium
CN116155869A (en) Information processing method, apparatus, electronic device and storage medium
CN112256307A (en) Gray scale distribution method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.