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 interconnect 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.