CN112188021B - File processing and resource sharing method, device and equipment - Google Patents

File processing and resource sharing method, device and equipment Download PDF

Info

Publication number
CN112188021B
CN112188021B CN201910586136.8A CN201910586136A CN112188021B CN 112188021 B CN112188021 B CN 112188021B CN 201910586136 A CN201910586136 A CN 201910586136A CN 112188021 B CN112188021 B CN 112188021B
Authority
CN
China
Prior art keywords
instant messaging
identifier
printer
file
user
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.)
Active
Application number
CN201910586136.8A
Other languages
Chinese (zh)
Other versions
CN112188021A (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.)
Nail Holding Cayman Co ltd
Original Assignee
Nail Holding Cayman 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 Nail Holding Cayman Co ltd filed Critical Nail Holding Cayman Co ltd
Priority to CN201910586136.8A priority Critical patent/CN112188021B/en
Publication of CN112188021A publication Critical patent/CN112188021A/en
Application granted granted Critical
Publication of CN112188021B publication Critical patent/CN112188021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
    • H04N1/00278Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a printing apparatus, e.g. a laser beam printer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1822Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
    • H04N1/00281Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a telecommunication apparatus, e.g. a switched network of teleprinters for the distribution of text-based information, a selective call terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The embodiment of the invention provides a file processing and resource sharing method, device and equipment, wherein the file processing method comprises the following steps: receiving a file scanning request sent by an instant messaging client, wherein the file scanning request comprises a file identifier and an instant messaging group identifier; and sending the scanning file corresponding to the file identifier to the instant messaging group corresponding to the instant messaging group identifier, thereby realizing the distribution of the scanning file to the instant messaging group.

Description

File processing and resource sharing method, device and equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, and a device for file processing and resource sharing.
Background
With the development of internet technology, many data required by people can be obtained through a network, for example, required data is obtained by searching from the network, and required data is obtained from other user sides through tools such as mails and instant messaging application programs. In the form of presentation, these data are electronic data or digital data.
However, in real life, paper data (or paper documents) are still needed in many scenes. Currently, two main sources of paper documents are: documents printed by the printer, documents scanned by the printer.
At present, the mode of using a printer by a user is mainly as follows: a terminal device of a user, such as a PC, a notebook computer, or the like, establishes a connection with a printer so that printing or scanning of a desired document is performed through the connected printer.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and a device for file processing and resource sharing, which can implement sharing of a printer to other users, so that the other users can print and scan files using the shared printer.
In a first aspect, an embodiment of the present invention provides a file processing method, where the method includes:
receiving a file scanning request sent by an instant messaging client, wherein the file scanning request comprises a file identifier and an instant messaging group identifier;
and sending the scanning file corresponding to the file identifier to an instant messaging group corresponding to the instant messaging group identifier.
In a second aspect, an embodiment of the present invention provides a file processing apparatus, including:
the receiving module is used for receiving a file scanning request sent by an instant messaging client, wherein the file scanning request comprises a file identifier and an instant messaging group identifier;
and the sending module is used for sending the scanning file corresponding to the file identifier to the instant messaging group corresponding to the instant messaging group identifier.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a first memory, a first processor; wherein the first memory has stored thereon executable code which, when executed by the first processor, causes the first processor to at least implement the file processing method of the first aspect.
An embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which, when executed by a processor of an electronic device, causes the processor to implement at least the file processing method according to the first aspect.
In addition, an embodiment of the present invention further provides a file processing method, where the method includes:
receiving a file scanning request sent by an instant messaging client, wherein the file scanning request comprises an instant messaging group identifier;
and sending the scanning file to an instant messaging group corresponding to the instant messaging group identification.
Correspondingly, an embodiment of the present invention further provides a file processing apparatus, where the apparatus includes:
the receiving module is used for receiving a file scanning request sent by an instant messaging client, wherein the file scanning request comprises an instant messaging group identifier;
and the sending module is used for sending the scanning file to the instant messaging group corresponding to the instant messaging group identification.
Based on the file scanning scheme, the user can share the scanned file into one or more instant messaging groups.
In a fourth aspect, an embodiment of the present invention provides a file processing method, where the method includes:
receiving a sharing request sent by a first instant messaging client corresponding to a first user, wherein the sharing request comprises a first printer identifier and a shared object identifier;
storing the corresponding relation between the first printer identifier and the shared object identifier;
receiving a file processing request sent by a second instant messaging client corresponding to a second user;
sending a plurality of options corresponding to the file processing request to the second instant messaging client, wherein if the second user is matched with the shared object identifier, the options comprise an option corresponding to the first printer identifier;
and responding to the file processing request according to the selection operation of the second user on the plurality of options.
In a fifth aspect, an embodiment of the present invention provides a file processing apparatus, where the apparatus includes:
the receiving module is used for receiving a sharing request sent by a first instant messaging client corresponding to a first user, wherein the sharing request comprises a first printer identifier and a shared object identifier;
the storage module is used for storing the corresponding relation between the first printer identifier and the shared object identifier;
the receiving module is further configured to receive a file processing request sent by a second instant messaging client corresponding to a second user;
a sending module, configured to send a plurality of options corresponding to the file processing request to the second instant messaging client, where if the second user matches the shared object identifier, the plurality of options include an option corresponding to the first printer identifier;
and the response module is used for responding to the file processing request according to the selection operation of the second user on the plurality of options.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including: a second memory, a second processor; wherein the second memory has stored thereon executable code which, when executed by the second processor, causes the second processor to at least implement the file processing method of the fourth aspect.
An embodiment of the present invention provides a non-transitory machine-readable storage medium, having stored thereon executable code, which, when executed by a processor of an electronic device, causes the processor to implement at least the file processing method according to the fourth aspect.
In a seventh aspect, an embodiment of the present invention provides a resource sharing method, where the method includes:
receiving a sharing request sent by an instant messaging client, wherein the sharing request comprises a resource identifier and a shared object identifier, and the sharing request is used for sharing the resource corresponding to the resource identifier to the shared object corresponding to the shared object identifier for use;
and storing the corresponding relation between the resource identification and the shared object identification.
In an eighth aspect, an embodiment of the present invention provides a resource sharing apparatus, where the apparatus includes:
a receiving module, configured to receive a sharing request sent by an instant messaging client, where the sharing request includes a resource identifier and a shared object identifier, and the sharing request is used to share a resource corresponding to the resource identifier with a shared object corresponding to the shared object identifier;
and the storage module is used for storing the corresponding relation between the resource identifier and the shared object identifier.
In a ninth aspect, an embodiment of the present invention provides an electronic device, including: a third memory, a third processor; wherein the third memory has stored thereon executable code which, when executed by the third processor, causes the third processor to at least implement the resource sharing method of the seventh aspect.
An embodiment of the present invention provides a non-transitory machine-readable storage medium, having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to implement at least the resource sharing method according to the seventh aspect.
In a tenth aspect, an embodiment of the present invention provides a file processing method, which is applied to an instant messaging client, and the method includes:
sending a file processing request to a server;
displaying a plurality of options corresponding to the file processing request sent by the server, wherein if a user corresponding to the instant messaging client matches a shared object identifier of a printer corresponding to a shared first printer identifier, the options comprise an option corresponding to the first printer identifier;
and responding to the selection operation of the user on the options, and sending the selected options to the server so as to enable the server to respond to the file processing request according to the selected options.
In an eleventh aspect, an embodiment of the present invention provides a file processing apparatus, located on an instant messaging client side, where the apparatus includes:
the sending module is used for sending a file processing request to the server;
a display module, configured to display multiple options corresponding to the file processing request sent by the server, where if a user corresponding to the instant messaging client matches a shared object identifier of a printer corresponding to a shared first printer identifier, the multiple options include an option corresponding to the first printer identifier;
the sending module is further configured to send the selected option to the server in response to a selection operation of the user on the multiple options, so that the server responds to the file processing request according to the selected option.
In a twelfth aspect, an embodiment of the present invention provides an electronic device, including: a fourth memory, a fourth processor; wherein said fourth memory has stored thereon executable code which, when executed by said fourth processor, causes said fourth processor to implement at least the file processing method according to the tenth aspect.
An embodiment of the present invention provides a non-transitory machine-readable storage medium, on which is stored executable code, which when executed by a processor of an electronic device, causes the processor to implement at least a file processing method as described in the tenth aspect.
The following scenario is assumed: the user A is located in Shanghai, the user B is located in Beijing, the user A needs to print a file for the user B, and the printer P on the side of the user B can be shared for the user A to use, so that the user A can print the file through the printer P shared for the user A, and the user B can acquire the file printed by the printer P conveniently.
In order to achieve the effect of the scene illustration, the following solutions are provided in the embodiments of the present invention. First, the sharing of resources (such as printers) is achieved through the instant messaging client and the server: the first user can set a certain printer to be shared by one or more users (called sharing objects), and based on the setting operation, the first instant messaging client corresponding to the first user sends a sharing request comprising the corresponding first printer identification and sharing object identification to the server. The server stores a correspondence relationship between the first printer identifier and the shared object identifier based on the sharing request. Furthermore, if a user assumes that a second user initiates a file processing request through a corresponding second instant messaging client, for example, a file printing request or a file scanning request, the server sends a plurality of options corresponding to the file processing request to the second instant messaging client, where if the second user matches the shared object, the plurality of options includes an option corresponding to an identifier (for example, a first printer identifier) of a printer shared for use by the shared object. The second user selects an option from the plurality of options in conjunction with the actual file processing purpose, whereby the server responds to the file processing request in accordance with the selection of the second user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is an interaction flow diagram of a file processing method according to an embodiment of the present invention;
FIG. 2 is a schematic view of a file printing scenario based on a shared printer according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating interface state changes in a printer sharing process according to an embodiment of the present invention;
FIG. 4 is a schematic view of an interaction flow of a document printing process according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a printer sharing scenario according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a change of interface status during a document printing process according to an embodiment of the present invention;
FIG. 7 is a schematic view of an interaction flow of a file scanning process according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating an interface state change in a file scanning process according to an embodiment of the present invention;
FIG. 9 is a schematic diagram illustrating an interaction flow of another document scanning process according to an embodiment of the present invention;
FIG. 10 is a schematic view of an interface state of another document scanning process according to an embodiment of the present invention;
FIG. 11 is a flowchart illustrating another exemplary document scanning process according to an embodiment of the present invention;
fig. 12 is a flowchart of a resource sharing method according to an embodiment of the present invention;
FIG. 13 is a schematic structural diagram of a document processing apparatus according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an electronic device corresponding to the file processing apparatus provided in the embodiment shown in fig. 13;
fig. 15 is a schematic structural diagram of a resource sharing device according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of an electronic device corresponding to the resource sharing apparatus provided in the embodiment shown in fig. 15;
FIG. 17 is a schematic structural diagram of another document processing apparatus according to an embodiment of the present invention;
fig. 18 is a schematic structural diagram of an electronic device corresponding to the document processing apparatus provided in the embodiment shown in fig. 17;
FIG. 19 is a schematic structural diagram of another document processing apparatus according to an embodiment of the present invention;
fig. 20 is a schematic structural diagram of an electronic device corresponding to the file processing apparatus provided in the embodiment shown in fig. 19.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
The words "if", as used herein may be interpreted as "at \8230; \8230whenor" when 8230; \8230when or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (a stated condition or event)" may be interpreted as "upon determining" or "in response to determining" or "upon detecting (a stated condition or event)" or "in response to detecting (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrases "comprising one of \8230;" does not exclude the presence of additional like elements in an article or system comprising the element.
In addition, the sequence of steps in the embodiments of the methods described below is merely an example, and is not strictly limited.
Fig. 1 is an interaction flow diagram of a file processing method according to an embodiment of the present invention, and as shown in fig. 1, the method may include the following steps:
101. the first instant messaging client corresponding to the first user sends a sharing request to the server, wherein the sharing request comprises a first printer identifier and a sharing object identifier.
102. The server stores the corresponding relation between the first printer identifier and the shared object identifier.
103. And the second instant messaging client corresponding to the second user sends a file processing request to the server.
104. And the server sends a plurality of options corresponding to the file processing request to the second instant messaging client.
And if the second user is matched with the shared object identifier, the multiple options comprise an option corresponding to the first printer identifier.
105. The second instant communication client displays a plurality of options sent by the server.
106. And the second instant communication client informs the server of the selection operation of the second user on the plurality of options.
107. The server responds to the file processing request according to the selection operation of the second user on the plurality of options.
Before describing the document processing scheme provided by the present embodiment in detail, an effect that can be achieved by the document processing scheme provided by the present embodiment is first intuitively explained, as shown in fig. 2, the following scenario is now assumed: a company is respectively provided with branch companies in Shanghai and Beijing, and a user A and a user B are assumed to be employees of the two branch companies, wherein the user A is located in Shanghai and the user B is located in Beijing. Taking a file printing process as an example, a user a needs to print a file X for a user B, and based on the file processing scheme, a printer P on the side of the user B can be shared to the user a for use, so that the user a can print the file X by sharing the printer P for use, and the user B can acquire the file X printed by the printer P.
With reference to the above example, the user B may be regarded as the first user in the above step, and the user a may be regarded as the second user in the above step. In order to implement the above scheme, firstly, a certain printer on the user B side needs to be shared by the user a, and then, when the user a triggers a printing operation, the printer on the user B side is selected to be used to execute a printing task.
Before describing the document processing scheme provided by this embodiment in detail, the following points are also described: first, it can be understood that the first instant messaging client and the second instant messaging client are not two different instant messaging clients, but are the same instant messaging client, and only the registered users corresponding to the first instant messaging client are different, where the registered user corresponding to the first instant messaging client is the first user, and the registered user corresponding to the second instant messaging client is the second user. Second, the shared resource in this embodiment is exemplified by a printer, and in fact, this is not limited thereto, and other resources are also applicable, such as a storage resource.
The following describes the file processing scheme provided in this embodiment in detail.
First, it is assumed that a first user has control authority over a first printer (for example, the first printer belongs to or is managed by the first user), so that the first user can share the first printer to other people (called shared objects) according to actual needs. Optionally, the shared object may be one or more persons, or one or more instant messaging groups.
In an alternative embodiment, a graphic code such as a two-dimensional code may be provided in the first printer, and the graphic code includes an identifier of the first printer, so that the first user may operate the first instant messaging client to scan the graphic code to obtain the first printer identifier. In practical application, the first printer identifier may be a name of the first printer, and the first printer supports user-defined name of the first printer, and generates a corresponding two-dimensional code according to the user-defined name. For example, assuming that a first printer is used by a research and development department provided to a company, the first printer name may be: the research and development department printer.
In this embodiment, as shown in fig. 3, after the first user scans the two-dimensional code of the first printer to obtain the first printer identifier, an interface as shown in fig. 3 may be popped up, where the interface includes an operation item "share" for sharing the first printer to other people, and after the user clicks the "share" operation item, optionally, a shared object selection interface may be popped up to enable the first user to select, in the shared object selection interface, the shared object identifier of the first printer to be shared.
Optionally, in the shared object selection interface, the respective instant communication group identifiers corresponding to the first user, such as group a, group b, and group c illustrated in fig. 3, may be preferentially displayed. Optionally, after displaying each instant messaging group identifier corresponding to each first user, each user in the address list of the first user may be sequentially displayed according to the contact frequency of the first user, or only the first few users with frequent contact may be displayed. Of course, an input box may be further included in the shared object selection interface, so that the first user may directly input the shared object identifier through the input box.
After the first user sets the shared object identifier, the button "ok" in the shared object selection interface may be clicked, so as to trigger the first instant messaging client to send, to the server, a sharing request including the first printer identifier and the shared object identifier, where the sharing request is used to share the first printer with the shared object corresponding to the shared object identifier.
After receiving the sharing request, the server stores the corresponding relationship between the first printer identifier and the shared object identifier, that is, records that the first printer is shared by the shared object for use.
As described above, the shared object identifier may be a user identifier or an instant messaging group identifier, and when the shared object identifier is the user identifier, it means that the first printer may be shared by the corresponding user; when the shared object identifier is the instant messaging group identifier, it means that the first printer can be shared by all users in the instant messaging group, and based on this, when the shared object identifier is the instant messaging group identifier, the server can record the corresponding relationship between the first printer identifier and the instant messaging group identifier on one hand, and on the other hand, can also establish the corresponding relationship between the first printer identifier and each user in the instant messaging group for later use.
It should be noted that, in some practical application scenarios, in order to prevent any user from sharing a printer to others at will and easily causing information security hidden trouble, the embodiment of the present invention further provides the following scheme:
the first user sends a registration request to the server through the first instant messaging client, wherein the registration request comprises a first user identifier and a first printer identifier. The server stores the corresponding relation between the first user identification and the first printer identification. Based on this, after the server receives the sharing request sent by the first communication client, if the corresponding relationship corresponding to the first user identifier is found, it is determined that the sharing request is valid. Here, it is assumed here that the first user has a control authority of the first printer.
That is, a first user having a control authority over a first printer first needs to register its control authority over the first printer in a server in order to validate a subsequently initiated sharing behavior for the first printer based on a registration result of the control authority.
In practical application, in the registration process of the first user, the server may also verify whether the first user has the control authority of the first printer, and if the first user passes the verification, store the corresponding relationship between the first user identifier and the first printer identifier. For example, a white list corresponding to the first printer may be set, where the white list includes one or more user identifiers having control authority over the first printer, and if the first user identifier is located in the white list, it is indicated that the first user has the control authority over the first printer.
The usage process of the correspondence between the first printer identifier and the shared object identifier stored in the server may be embodied as:
if the server receives a file processing request sent by a second instant messaging client corresponding to a second user, the server sends a plurality of options corresponding to the file processing request to the second instant messaging client so that the second user can select a required option from the plurality of options, wherein if the second user is matched with the shared object identifier corresponding to the first printer identifier, the plurality of options comprise the option corresponding to the first printer identifier. The server further responds to the file processing request according to the selection operation of the second user on the plurality of options. It should be noted that the second user may or may not be the first user.
The plurality of options corresponding to the file processing request means that file processing requests of different task types will correspond to different types of options. Specifically, the document processing request may include two job types of a document printing request and a document scanning request. The plurality of options corresponding to the file printing request may be options corresponding to a plurality of printers, based on which the second user may select a printer to be used for printing the file. The plurality of options corresponding to the file scan request may be an option corresponding to a recipient of the scan file, based on which the second user may select to whom to send the scan file.
When the shared object identifier corresponding to the first printer identifier is a certain instant messaging group identifier, the second user is matched with the shared object identifier, which means that the second user is located in the instant messaging group corresponding to the instant messaging group identifier. Of course, if the shared object identifier corresponding to the first printer identifier is a person, the second user is matched with the shared object identifier, which means that the second user is the person.
Based on the above description of the meaning of the plurality of options, it can be understood that the server's response to the file processing request may be: when the file processing request is a file printing request, the server can control the selected printer to print the file according to the selection operation of the second user on the plurality of printers indicated by the plurality of options; when the file processing request is a file scanning request, the server may send the scanned file to a corresponding receiver according to a selection operation of the second user on a plurality of scanned file receivers.
In practical applications, the task types corresponding to the file processing request mainly include two task types, i.e., a file printing task and a file scanning task, that is, the file processing request may be a file printing request or a file scanning request, and therefore, the following description will exemplarily describe the execution processes of the file printing process and the file scanning process, respectively.
Fig. 4 is an interaction flow diagram of a document printing process according to an embodiment of the present invention, and as shown in fig. 4, the method may include the following steps:
401. the first instant messaging client corresponding to the first user sends a sharing request to the server, wherein the sharing request comprises a first printer identifier and a sharing object identifier.
402. The server stores the corresponding relation between the first printer identifier and the shared object identifier.
403. And the second instant messaging client corresponding to the second user sends a file printing request to the server.
404. The server acquires a plurality of second printer identifications available to the second user as a plurality of options, wherein the plurality of second printer identifications comprise identifications of printers shared to at least one instant messaging group corresponding to the second user.
405. The server sends the plurality of options to the second instant messaging client.
406. The second instant communication client displays a plurality of options sent by the server.
407. The second instant messaging client informs the server of the target printer identification selected by the second user.
408. And the server sends the file to be printed to the corresponding target printer for printing.
This embodiment illustrates a practical implementation of the document printing process.
In this embodiment, when the file processing request is specifically implemented as a file printing request, the server may obtain a plurality of second printer identifiers available to the second user as a plurality of options, and send the plurality of second printer identifiers to the second instant messaging client, so that the second user selects a printer that the second user wants to use from the plurality of second printer identifiers to print the file.
Wherein, the plurality of second printer identifications are identifications of printers available to the second user. Here, the printers available to the second user include two kinds: one shared by other users (such as the first user described above); one is inherently available locally to the second user. In some practical scenarios, it may be simply understood that one is a printer that is not local, i.e. remote, to the second user, and one is a printer that is local to the second user.
For the example of fig. 5, assume that the second user (denoted as user a in fig. 5) is an employee located in the Shanghai division, where printer 1 and printer 2 are available for use by the employee. Assume that the first user is an employee of the Beijing Corp, which is provided with a printer 3 and a printer 4. It is assumed that the first user shares the printer 3 of the total company of beijing to a certain instant messaging group where the second user is located for use, so that the second user can use the printer 3 because the second user is a member in the instant messaging group, and thus, the printers available to the second user include: printer 1, printer 2, and printer 3.
In practice, after receiving a file print request triggered by the second user, the server may first obtain, as the plurality of second printer identifications, identifications of printers available to the second user from the second user identification. The second user identifier includes, but is not limited to, a name, an address, a position, a belonging instant messaging group, and other information of the second user.
In addition, as can be seen from the above example, if the sharing object identifier set by the first user to share the first printer is a certain instant messaging group identifier, if the second user is a member in the instant messaging group corresponding to the instant messaging group identifier, the first printer identifier is included in the plurality of second printer identifiers available to the second user.
Of course, if the second user is located in a different instant messaging group, and the different instant messaging group is shared with a different printer, the identifier of the shared printer in each instant messaging group to which the second user belongs may be located in the plurality of second printer identifiers.
Of course, if the shared object identifier set when the first user shares the first printer in the foregoing description includes the second user identifier, the first printer identifier is also included in the plurality of second printer identifiers, that is, the first printer is one of the printers available to the second user.
The operation of the second user to print a file is schematically described below with reference to fig. 6. And if the second user triggers a printing operation on a certain file W stored in the terminal device, the second instant messaging client sends a file printing request to the server, wherein the file printing request comprises the file W and a second user identifier. The server obtains a plurality of second printer identifications available to the second user, which are assumed to be printer a, printer b, and printer c (corresponding to the first printer identification described above) in fig. 6, from the second user identification. It is assumed that the printer a is a printer locally and commonly used by the second user, the printer b is shared by the printers used by the instant messaging group X to which the second user belongs, and the printer c is shared by the printers used by the other instant messaging group Y to which the second user belongs. Assuming that the second user currently wants to print a file W for a friend within the instant messaging group Y, the second user may choose to use printer c. Based on the second user's selection of printer c, the server transmits file W to printer c for printing.
Fig. 7 is a schematic view of an interaction flow of a file scanning process according to an embodiment of the present invention, as shown in fig. 7, the method may include the following steps:
701. the first instant messaging client corresponding to the first user sends a sharing request to the server, wherein the sharing request comprises a first printer identifier and a sharing object identifier.
702. The server stores the corresponding relation between the first printer identifier and the shared object identifier.
703. And the second instant messaging client corresponding to the second user sends a file scanning request to the server, wherein the file scanning request comprises a first printer identifier used for scanning the file.
704. The server acquires at least one instant messaging group sharing the printer corresponding to the first printer identifier, and determines a plurality of file receiver options according to the at least one instant messaging group.
705. The server sends the plurality of file recipient options to the second instant messaging client.
706. The second instant messaging client displays a plurality of file recipient options.
707. And the second instant messaging client informs the server of the selection result of the second user on the option corresponding to the target instant messaging group.
708. And the server controls the printer corresponding to the first printer identifier to scan the file and sends the obtained scanned file to the target instant messaging group.
In this embodiment, it is assumed that the second user performs file scanning using the first printer. Since the document to be scanned needs to be placed on the printer when the document is scanned, the second user is often a user located near the first printer.
In this embodiment, the second user may be the same user as the first user or may be a different user from the first user.
The file scanning process of the second user is schematically explained in conjunction with fig. 8.
In practical application, a two-dimensional code including a first printer identifier may be set in the first printer, and the second user may operate the second instant messaging client to scan the two-dimensional code, so as to obtain the first printer identifier, and trigger a file scanning request including the second user identifier and the first printer identifier to the server.
After receiving the file scanning request, the server acquires at least one instant messaging group sharing the printer corresponding to the first printer identifier, further determines a plurality of file receiver options according to the acquired at least one instant messaging group, and sends the plurality of file receiver options to the second instant messaging client. The plurality of file receiver options comprise options respectively corresponding to the at least one instant messaging group.
Specifically, when the first user performs the sharing setting on the first printer through steps 701 to 702, the first user may share the first printer to a plurality of instant messaging groups, that is, the server may establish a correspondence relationship between the first printer identifier and the plurality of instant messaging group identifiers. Assume that the first printer is shared to three instant messaging groups: group a, group B and group C. Therefore, when the second user triggers the file scanning request carrying the first printer identifier, the server queries that the instant messaging group identifier corresponding to the first printer identifier is: group a, group B and group C, so that three file recipient options corresponding to the three instant messaging groups can be generated, such as illustrated in fig. 8: and sending the scanning file to the group A, sending the scanning file to the group B, and sending the scanning file to the group C.
And the server sends the generated file receiver options to a second instant messaging client for displaying so that a second user can select the required options according to actual requirements.
Among them, it is understood that the file recipient option indicates to whom the second user needs to send the file scanned by the first printer, i.e., who the recipient of the scanned file is.
In a practical application scenario, the second user may want to share the scanned file in a certain instant messaging group, and through taking the printer (assumed to be the first printer in this embodiment) used by the second user for scanning as a medium, multiple instant messaging groups associated with the first printer used for scanning can be displayed as alternative recipients, so that the second user can quickly select a desired recipient, because in some embodiments, the instant messaging group sharing the first printer often has a certain association with the second user, such as a certain instant messaging group where the second user is located, or a certain instant messaging group in business association with the second user.
It should be noted that, as shown in fig. 8, the plurality of file recipient options generated by the server may include, in addition to the options respectively corresponding to the at least one instant messaging group sharing the first printer, other options, such as: an option to send the scan file to a second user, and/or an option to share the scan file to other users or other instant messaging groups. In fig. 8, the option of sending the scan file to the second user is represented by an option of "send scan file to self"; the option to share the scan file to other users or other instant messaging groups is represented by the option to "set the recipient of the scan file". When the second user selects the option "set recipient of scan file," a contact list may pop up for selection by the second user.
Based on the selection result of the second user, the server obtains the scan file scanned by the first printer and sends the scan file to the receiver selected by the second user, for example, if the second user selects the group B, the scan file is sent to the corresponding instant messaging group.
In summary, the scheme provided by the embodiment of the invention can realize the sharing of the printer among different users, can realize remote file printing operation based on the sharing result of the printer, and can also realize convenient file scanning sharing operation.
Fig. 9 is a schematic interaction flow diagram of another file scanning process according to an embodiment of the present invention, and as shown in fig. 9, the method may include the following steps:
901. the user sends a file scanning request to the server through the instant messaging client, wherein the file scanning request comprises a file identifier and an instant messaging group identifier.
902. And the server sends the scanning file corresponding to the file identifier to an instant messaging group corresponding to the instant messaging group identifier.
The main purposes of the file scanning scheme provided by the embodiment are: distribution of the scan file to one or more instant messaging groups is enabled.
Optionally, a scanned file setting interface may be provided in the instant messaging client, as shown in fig. 10, in which setting of a scanned file receiver and input of a file identifier may be performed. In fig. 10, it is assumed that the names of the files that the user wants to scan are: project planning books, and assume that the set recipients include: user Z, group a. After completing these settings, the user may click an "OK" button in the interface to trigger a file scan request.
It can be understood that, when scanning a document, a user may first place a document to be scanned on a certain printer, and perform a document scanning operation on the printer to trigger the printer to scan the document. When the printer finishes scanning the file, the scanned file can be sent to the server for storage.
After receiving the file scanning request, the server acquires a scanning file corresponding to the file identifier contained in the file scanning request from the acquired scanning file, and further sends the scanning file to an instant messaging group corresponding to the instant messaging group identifier contained in the file scanning request.
In some practical scenarios, there may be many printers connected to the server, each printer may perform one or more document scanning tasks, and thus, there may be many scanned documents stored in the server. In order to improve efficiency, the file scanning request triggered by the user may also directly include an identifier of a printer used for scanning the file, so that the server may send the scanned file acquired from the printer corresponding to the identifier of the printer to the instant messaging group set by the user. That is, the server may first screen out the file scanned by the printer according to the printer identifier, and then obtain the scanned file corresponding to the file identifier from the screened scanned file according to the file identifier. In this way, a scan file distribution error phenomenon caused by different files having the same name can also be avoided.
The printer identifier included in the file scanning request can be obtained by scanning an identifier displayed on the printer through the instant messaging client by the user.
In addition, as for the instant messaging group identifier contained in the file scanning request, in an optional manner, the instant messaging group identifier may be manually selected or input by the user from all the instant messaging groups owned by the user.
In another alternative, the instant messaging group identity may also be obtained by: the server obtains at least one instant messaging group mark of the printer corresponding to the shared file scanning request, and sends the at least one instant messaging group mark to the instant messaging client so that the user can select the required instant messaging group mark, and therefore the selection efficiency of the instant messaging group can be improved.
Wherein, the sharing process from the printer to the instant messaging group is as follows:
a user sends a sharing request to a server through an instant messaging client, wherein the sharing request comprises a printer identifier and at least one instant messaging group identifier, and therefore, after receiving the sharing request, the server stores the corresponding relation between the printer identifier and the at least one instant messaging group identifier.
Fig. 11 is a schematic flowchart of another file scanning process provided in the embodiment of the present invention, and as shown in fig. 11, the method may include the following steps:
1101. the server receives a file scanning request sent by the instant messaging client, wherein the file scanning request comprises an instant messaging group identifier.
1102. And the server sends the scanning file to an instant messaging group corresponding to the instant messaging group identification.
In this embodiment, it is assumed that only one printer is available, and a certain user is currently scanning a file using the printer, so that the user can set a receiver of a scanned file as a certain instant messaging group when triggering a file scanning request, and the server sends the file scanned by the printer to the instant messaging group.
As described above, the user may trigger the file scan request by scanning the two-dimensional code of the printer through the instant messaging client.
Fig. 12 is a flowchart of a resource sharing method according to an embodiment of the present invention, where the resource sharing method may be executed by a server running an instant messaging application. As shown in fig. 12, the method includes the steps of:
1201. and receiving a sharing request sent by the instant messaging client, wherein the sharing request comprises a resource identifier and a shared object identifier, and the sharing request is used for sharing the resource corresponding to the resource identifier to the shared object corresponding to the shared object identifier for use.
1202. And storing the corresponding relation between the resource identification and the shared object identification.
As described in other embodiments above, optionally, the resource identifier comprises a printer identifier and the shared object identifier comprises an instant messaging group identifier.
Of course, optionally, the resource identifier may also include a storage space identifier, and the shared object identifier may include a user identifier and/or an instant messaging group identifier, so as to implement sharing of the storage resource by different users and different instant messaging groups.
For another example, the resource identifier may also be a computing resource identifier (such as a computing thread identifier, a computing node identifier, and the like), and the shared object identifier may include a user identifier and/or an instant messaging group identifier, so as to implement sharing of computing resources by different users and different instant messaging groups.
In addition, the server can also process the task initiated by the corresponding shared object by using the resource corresponding to the resource identifier based on the established corresponding relationship. For example, as mentioned in the foregoing embodiments, the document printing task and the document scanning task initiated by the user are processed according to the sharing result of the printer to some instant messaging groups and some users.
The file processing apparatus and the resource sharing apparatus according to one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that the file processing apparatus and the resource sharing apparatus can be configured by the steps taught in the present embodiment using commercially available hardware components.
Fig. 13 is a schematic structural diagram of a document processing apparatus according to an embodiment of the present invention, and as shown in fig. 13, the apparatus includes: the device comprises a receiving module 11, a storage module 12, a sending module 13 and a response module 14.
The receiving module 11 is configured to receive a sharing request sent by a first instant messaging client corresponding to a first user, where the sharing request includes a first printer identifier and a shared object identifier.
A storage module 12, configured to store a correspondence between the first printer identifier and the shared object identifier.
The receiving module 11 is further configured to receive a file processing request sent by a second instant messaging client corresponding to a second user.
A sending module 13, configured to send a plurality of options corresponding to the file processing request to the second instant messaging client, where if the second user matches the shared object identifier, the plurality of options include an option corresponding to the first printer identifier;
a response module 14, configured to respond to the file processing request according to a selection operation of the second user on the multiple options.
Optionally, the shared object identifier is an instant messaging group identifier; and the second user is matched with the shared object identifier, which means that the second user is positioned in the instant messaging group corresponding to the instant messaging group identifier.
Optionally, the file processing request is a file printing request, and the apparatus further includes: the first obtaining module is configured to obtain multiple second printer identifiers available to the second user as the multiple options, where the multiple second printer identifiers include identifiers of printers shared to at least one instant messaging group corresponding to the second user.
Optionally, the file printing request includes a file to be printed, and the response module 14 is specifically configured to: and responding to the selection operation of the second user on a target printer identifier in the plurality of second printer identifiers, and sending the file to the corresponding target printer for printing.
Optionally, the file processing request is a file scanning request, where the file scanning request includes the first printer identifier used for scanning a file, and the apparatus further includes: the second acquisition module is used for acquiring at least one instant messaging group sharing the printer corresponding to the first printer identifier; and determining a plurality of file receiver options as the plurality of options according to the at least one instant messaging group, wherein the plurality of file receiver options comprise option file receiver options corresponding to the at least one instant messaging group. The sending module 13 is specifically configured to: and sending the plurality of file receiver options to the second instant messaging client.
Optionally, the plurality of file recipient options further include: an option to send the scan file to the second user, and/or an option to share the scan file to other users or other instant messaging groups.
In the file scanning process, the response module 14 is specifically configured to: responding to the selection operation of the second user on an option corresponding to a target instant messaging group in the at least one instant messaging group, and controlling a printer corresponding to the first printer identification to perform file scanning; and sending the obtained scan file to the target instant messaging group through a sending module 13.
Optionally, the receiving module 11 is further configured to: and receiving a registration request sent by the first instant messaging client, wherein the registration request comprises a first user identifier and the first printer identifier. The storage module 12 is further configured to: and storing the corresponding relation between the first user identification and the first printer identification.
Optionally, the sharing request includes the first user identifier, and the storage module 12 is further configured to: and if the corresponding relation corresponding to the first user identification exists, determining that the sharing request is valid.
The apparatus shown in fig. 13 may perform the steps related to the server in the embodiments shown in fig. 1 to fig. 7, and the detailed execution process and technical effect are described in the foregoing embodiments and are not described again here.
In one possible design, the structure of the document processing apparatus shown in fig. 13 may be implemented as an electronic device, and as shown in fig. 14, the electronic device may include: a first processor 21, a first memory 22. Wherein, the first memory 22 stores executable codes thereon, and when the executable codes are executed by the first processor 21, the first processor 21 is enabled to at least realize each step executed by the server in the embodiments shown in fig. 1 to fig. 7.
Optionally, the electronic device may further include a first communication interface 23 for communicating with other devices.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored, and when the executable code is executed by a processor of an electronic device, the processor is enabled to implement at least the steps performed by the server in the embodiments shown in fig. 1 to 7.
Fig. 15 is a schematic structural diagram of a resource sharing device according to an embodiment of the present invention, and as shown in fig. 15, the device includes: a receiving module 31 and a storage module 32.
A receiving module 31, configured to receive a sharing request sent by an instant messaging client, where the sharing request includes a resource identifier and a shared object identifier, and the sharing request is used to share a resource corresponding to the resource identifier with a shared object corresponding to the shared object identifier.
A storage module 32, configured to store a corresponding relationship between the resource identifier and the shared object identifier.
Optionally, the resource identifier comprises a printer identifier, and the shared object identifier comprises an instant messaging group identifier.
Optionally, the apparatus further comprises: and the processing module is used for processing the tasks initiated by the shared objects by using the resources based on the corresponding relation.
The apparatus shown in fig. 15 may perform the steps related to the server in the foregoing embodiment shown in fig. 12, and for details of the performing process and the technical effect, reference is made to the description in the foregoing embodiment, and details are not repeated here.
In one possible design, the structure of the resource sharing apparatus shown in fig. 15 may be implemented as an electronic device, as shown in fig. 16, where the electronic device may include: a second processor 41, a second memory 42. Wherein the second memory 42 has stored thereon executable code, which when executed by the second processor 41, causes the second processor 41 to at least implement the steps of the embodiment shown in fig. 12.
Optionally, the electronic device may further include a second communication interface 43 for communicating with other devices.
Additionally, embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code that, when executed by a processor of an electronic device, causes the processor to implement at least the steps of the embodiment shown in fig. 12.
Fig. 17 is a schematic structural diagram of another document processing apparatus according to an embodiment of the present invention, and as shown in fig. 17, the apparatus includes: a receiving module 51 and a transmitting module 52.
The receiving module 51 is configured to receive a file scanning request sent by an instant messaging client, where the file scanning request includes a file identifier and an instant messaging group identifier.
A sending module 52, configured to send the scanned file corresponding to the file identifier to the instant messaging group corresponding to the instant messaging group identifier.
Optionally, the file scanning request includes a printer identifier; the sending module 52 is specifically configured to: and sending the scanning file acquired from the printer corresponding to the printer identifier to the instant messaging group.
Optionally, the apparatus further comprises: and an acquisition module.
And the acquisition module is used for acquiring at least one instant messaging group identifier sharing the printer.
Thus, the sending module 52 is further configured to: and sending the at least one instant messaging group identifier to the instant messaging client so that a user can select the instant messaging group identifier.
Optionally, the receiving module 51 is further configured to: and receiving a sharing request sent by an instant messaging client, wherein the sharing request comprises the printer identifier and the at least one instant messaging group identifier. The device further comprises: and the storage module is used for storing the corresponding relation between the printer identifier and the at least one instant messaging group identifier.
Optionally, the printer identifier is obtained by scanning an identification code displayed on the printer by the instant messaging client.
The apparatus shown in fig. 17 may perform the steps related to the server in the foregoing embodiment shown in fig. 9, and the detailed execution process and technical effect refer to the description in the foregoing embodiment, which are not described herein again.
In one possible design, the structure of the document processing apparatus shown in fig. 17 may be implemented as an electronic device, as shown in fig. 18, which may include: a third processor 61, a third memory 62. Wherein the third memory 62 stores executable code thereon, which, when executed by the third processor 61, causes the third processor 61 to at least implement the steps performed by the server in the embodiment shown in fig. 9.
Optionally, the electronic device may further include a third communication interface 63 for communicating with other devices.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored, and when the executable code is executed by a processor of an electronic device, the processor is enabled to implement at least a file processing method provided in the embodiment shown in fig. 9.
In addition, another schematic structural diagram of a file processing apparatus provided in an embodiment of the present invention includes:
the receiving module is used for receiving a file scanning request sent by an instant messaging client, wherein the file scanning request comprises an instant messaging group identifier;
and the sending module is used for sending the scanning file to the instant messaging group corresponding to the instant messaging group identifier.
The structure of the file processing device can be realized as an electronic device, and the electronic device can comprise: a processor and a third memory. Wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform at least the following: receiving a file scanning request sent by an instant messaging client, wherein the file scanning request comprises an instant messaging group identifier; and sending the scanning file to an instant messaging group corresponding to the instant messaging group identification.
Fig. 19 is a schematic structural diagram of another document processing apparatus according to an embodiment of the present invention, as shown in fig. 19, the apparatus includes: a sending module 71 and a display module 72.
A sending module 71, configured to send a file processing request to the server.
A display module 72, configured to display multiple options corresponding to the file processing request sent by the server, where if the user corresponding to the instant messaging client matches a shared object identifier of a printer corresponding to a shared first printer identifier, the multiple options include an option corresponding to the first printer identifier.
The sending module 71 is further configured to send the selected option to the server in response to a selection operation of the user on the multiple options, so that the server responds to the file processing request according to the selected option.
Optionally, the shared object identifier includes an instant messaging group identifier; and the matching of the user and the shared object identifier means that the user is positioned in the instant messaging group corresponding to the instant messaging group identifier.
Optionally, the sending module 71 is further configured to: sending a sharing request to the server, wherein the sharing request comprises the first printer identifier and the shared object identifier, so that the server stores the corresponding relation between the first printer identifier and the shared object identifier
Optionally, the file processing request is a file printing request; the plurality of options are composed of a plurality of second printer identifications available to the user, and the plurality of second printer identifications comprise identifications of printers shared to at least one instant messaging group corresponding to the user.
Optionally, the file processing request is a file scanning request, where the file scanning request includes the first printer identifier used for scanning a file; the options are multiple file receiver options, the multiple file receiver options include an option corresponding to at least one instant messaging group, and the at least one instant messaging group is an instant messaging group sharing a printer corresponding to the first printer identifier. .
Optionally, the sending module 71 may specifically be configured to: responding to the selection operation of the user on an option corresponding to a target instant messaging group in the at least one instant messaging group, sending the identification of the target instant messaging group to the server, so that the server controls a printer corresponding to the first printer identification to perform file scanning, and sending an obtained scanning file to the target instant messaging group.
The apparatus shown in fig. 19 may perform the steps related to the instant messaging client in the embodiments shown in fig. 1 to fig. 7, and the detailed execution process and technical effect refer to the description in the embodiments, which are not described herein again.
In one possible design, the structure of the document processing apparatus shown in fig. 19 may be implemented as an electronic device, as shown in fig. 20, where the electronic device may include: a fourth processor 81, and a fourth memory 82. The fourth memory 82 stores executable code, and when the executable code is executed by the fourth processor 81, the fourth processor 81 is enabled to at least implement the steps performed by the instant messaging client in the embodiments shown in fig. 1 to 7.
Optionally, the electronic device may further include a fourth communication interface 83 for communicating with other devices.
In addition, the present invention provides a non-transitory machine-readable storage medium, which stores executable codes, and when the executable codes are executed by a processor of an electronic device, the processor can realize at least the steps executed by the instant messaging client in the embodiments shown in fig. 1 to 7.
The above-described apparatus embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by a necessary general hardware platform, and may also be implemented by a combination of hardware and software. With this understanding in mind, the above-described solutions and/or portions thereof that are prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein (including but not limited to disk storage, CD-ROM, optical storage, etc.).
The file processing method provided by the embodiment of the present invention may be executed by one or more programs/software, the programs/software may be provided by a network side, the server and the instant messaging client mentioned in the foregoing embodiments may download required programs/software into a local nonvolatile storage medium, and when it is necessary to execute the file processing method, the CPU reads the programs/software into a memory, and then the CPU executes the programs/software to implement the file processing method provided in the foregoing embodiments, and the execution process may refer to the schematic diagrams in fig. 1 to 12.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (23)

1. A file processing method is applied to a server and comprises the following steps:
receiving a sharing request sent by a first instant messaging client corresponding to a first user, wherein the sharing request comprises a printer identifier and a shared object identifier, the sharing request is used for sharing the printer corresponding to the printer identifier with the shared object corresponding to the shared object identifier, and the shared object identifier comprises an instant messaging group identifier;
storing the corresponding relation between the printer identification and the shared object identification;
receiving a file scanning request sent by a second instant messaging client corresponding to a second user, wherein the file scanning request comprises the printer identifier and the instant messaging group identifier;
and sending the scanning file acquired from the printer corresponding to the printer identifier to the instant messaging group corresponding to the instant messaging group identifier.
2. The method of claim 1, further comprising:
acquiring at least one instant messaging group identifier sharing the printer;
and sending the at least one instant messaging group identifier to the second instant messaging client so that the user can select the instant messaging group identifier.
3. The method according to claim 1, wherein the printer identification is obtained by the second instant messaging client scanning an identification code displayed on the printer.
4. A file processing method is applied to a server and comprises the following steps:
receiving a sharing request sent by a first instant messaging client corresponding to a first user, wherein the sharing request comprises a first printer identifier and a shared object identifier, the sharing request is used for sharing a printer corresponding to the first printer identifier with a shared object corresponding to the shared object identifier, and the shared object comprises at least one instant messaging group sharing the printer corresponding to the first printer identifier;
storing the corresponding relation between the first printer identification and the shared object identification;
receiving a file processing request sent by a second instant messaging client corresponding to a second user, wherein the file processing request is a file scanning request which comprises a first printer identifier used for scanning a file;
sending a plurality of options corresponding to the file processing request to the second instant messaging client, wherein if the second user is matched with the shared object identifier, the plurality of options comprise the at least one instant messaging group, and the fact that the second user is matched with the shared object identifier means that the second user is located in the at least one instant messaging group;
responding to the file processing request according to the selection operation of the second user on the options;
wherein sending the plurality of options corresponding to the file processing request to the second instant messaging client comprises:
acquiring at least one instant messaging group sharing the printer corresponding to the first printer identifier;
determining a plurality of file receiver options as the plurality of options according to the at least one instant messaging group, wherein the plurality of file receiver options comprise options corresponding to the at least one instant messaging group;
and sending the plurality of file receiver options to the second instant messaging client.
5. The method according to claim 4, wherein the document processing request is a document printing request;
the sending the multiple options corresponding to the file processing request to the second instant messaging client comprises:
obtaining a plurality of second printer identifications available to the second user;
and sending the plurality of second printer identifications serving as the plurality of options to the second instant messaging client, wherein the plurality of second printer identifications comprise identifications shared to printers of at least one instant messaging group corresponding to the second user.
6. The method according to claim 5, wherein the document print request includes a document to be printed, and the responding to the document processing request according to the selection operation of the second user on the plurality of options includes:
and responding to the selection operation of the second user on a target printer identifier in the plurality of second printer identifiers, and sending the file to a target printer corresponding to the target printer identifier for printing.
7. The method according to claim 4, wherein said responding to the file processing request according to the selection operation of the plurality of options by the second user comprises:
responding to the selection operation of the second user on an option corresponding to a target instant messaging group in the at least one instant messaging group, and controlling a printer corresponding to the first printer identification to perform file scanning;
and sending the obtained scanning file to the target instant messaging group.
8. The method of claim 4, further comprising:
receiving a registration request sent by the first instant messaging client, wherein the registration request comprises a first user identifier and a first printer identifier;
and storing the corresponding relation between the first user identification and the first printer identification.
9. The method according to claim 8, wherein the sharing request includes the first user identifier, and after receiving the sharing request sent by the first instant messaging client corresponding to the first user, the method further includes:
and if the corresponding relation corresponding to the first user identification exists, determining that the sharing request is valid.
10. A resource sharing method is applied to a server and comprises the following steps:
receiving a sharing request sent by a first instant messaging client, wherein the sharing request comprises a resource identifier and a shared object identifier, the resource identifier comprises a printer identifier, the sharing request is used for sharing a resource corresponding to the resource identifier to a shared object corresponding to the shared object identifier for use, and the shared object identifier comprises an instant messaging group identifier;
storing the corresponding relation between the resource identifier and the shared object identifier;
receiving a file scanning request sent by a second instant messaging client, wherein the file scanning request comprises the printer identifier and the instant messaging group identifier;
and sending the scanning file acquired from the printer corresponding to the printer identifier to the instant messaging group corresponding to the instant messaging group identifier.
11. A file processing method is applied to an instant messaging client, and comprises the following steps:
sending a file processing request to a server, wherein the file processing request is a file scanning request which comprises a first printer identifier used for scanning a file;
displaying a plurality of options corresponding to the file processing request sent by the server, wherein if a user corresponding to the instant messaging client matches a shared object identifier of a printer corresponding to a shared first printer identifier, the plurality of options include at least one instant messaging group sharing the printer corresponding to the first printer identifier, the plurality of options are a plurality of file receiver options, the at least one instant messaging group is an instant messaging group sharing the printer corresponding to the first printer identifier, wherein the shared object is set based on a sharing request sent to the server by other instant messaging clients, and the matching of the user and the shared object identifier means that the user is located in the at least one instant messaging group;
responding to the selection operation of the user on an option corresponding to a target instant messaging group in the at least one instant messaging group, sending the identification of the target instant messaging group to the server, so that the server controls a printer corresponding to the first printer identification to scan files, and sending the obtained scanned files to the target instant messaging group.
12. The method according to claim 11, wherein the document processing request is a document printing request;
the plurality of options are composed of a plurality of second printer identifications available to the user, and the plurality of second printer identifications comprise identifications of printers shared to at least one instant messaging group corresponding to the user.
13. A file processing apparatus, applied to a server, includes:
a receiving module, configured to receive a sharing request sent by a first instant messaging client corresponding to a first user, where the sharing request includes a printer identifier and a shared object identifier, the sharing request is used to share the printer corresponding to the printer identifier with a shared object corresponding to the shared object identifier, and the shared object identifier includes an instant messaging group identifier;
the storage module is used for storing the corresponding relation between the printer identifier and the shared object identifier;
the receiving module is used for receiving a file scanning request sent by a second instant messaging client corresponding to a second user, wherein the file scanning request comprises the printer identifier and the instant messaging group identifier;
and the sending module is used for sending the scanned file acquired from the printer corresponding to the printer identifier to the instant messaging group corresponding to the instant messaging group identifier.
14. The document processing apparatus according to claim 13, further comprising:
the acquisition module is used for acquiring at least one instant messaging group identifier sharing the printer;
the sending module is further configured to: and sending the at least one instant messaging group identifier to the instant messaging client so that a user can select the instant messaging group identifier.
15. An electronic device, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to carry out the file processing method of any of claims 1 to 3.
16. A file processing apparatus, applied to a server, includes:
the system comprises a receiving module, a sharing module and a processing module, wherein the receiving module is used for receiving a sharing request sent by a first instant messaging client corresponding to a first user, the sharing request comprises a first printer identifier and a shared object identifier, the sharing request is used for sharing a printer corresponding to the first printer identifier to a shared object corresponding to the shared object identifier, and the shared object comprises at least one instant messaging group sharing the printer corresponding to the first printer identifier;
the storage module is used for storing the corresponding relation between the first printer identifier and the shared object identifier;
the receiving module is further configured to receive a file processing request sent by a second instant messaging client corresponding to a second user, where the file processing request is a file scanning request, and the file scanning request includes the first printer identifier used for scanning a file;
a sending module, configured to send a plurality of options corresponding to the file processing request to the second instant messaging client, where if the second user matches the shared object identifier, the plurality of options include the at least one instant messaging group, where matching the second user with the shared object identifier means that the second user is located in the at least one instant messaging group;
the second acquisition module is used for acquiring at least one instant messaging group sharing the printer corresponding to the first printer identifier; determining a plurality of file receiver options as the plurality of options according to the at least one instant messaging group, wherein the plurality of file receiver options comprise the file receiver option corresponding to the at least one instant messaging group;
and the response module is used for responding to the file processing request according to the selection operation of the second user on the plurality of options.
17. The apparatus according to claim 16, wherein the document processing request is a document printing request;
the device further comprises:
the first obtaining module is configured to obtain multiple second printer identifiers available to the second user as the multiple options, where the multiple second printer identifiers include identifiers of printers shared to at least one instant messaging group corresponding to the second user.
18. An electronic device, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to carry out the file processing method of any of claims 4 to 9.
19. A resource sharing apparatus applied to a server includes:
a receiving module, configured to receive a sharing request sent by a first instant messaging client, where the sharing request includes a resource identifier and a shared object identifier, the resource identifier includes a printer identifier, the sharing request is used to share a resource corresponding to the resource identifier with a shared object corresponding to the shared object identifier, and the shared object identifier includes an instant messaging group;
the storage module is used for storing the corresponding relation between the resource identifier and the shared object identifier;
the receiving module is used for receiving a file scanning request sent by a second instant messaging client, wherein the file scanning request comprises the printer identifier and the instant messaging group identifier;
and the sending module is used for sending the scanning file acquired from the printer corresponding to the printer identifier to the instant messaging group corresponding to the instant messaging group identifier.
20. An electronic device, comprising: a memory, a processor; wherein the memory has stored thereon executable code that, when executed by the processor, causes the processor to perform the resource sharing method of claim 10.
21. A file processing device applied to an instant messaging client comprises:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a file processing request to a server, the file processing request is a file scanning request, and the file scanning request comprises a first printer identifier used for scanning a file;
a display module, configured to display multiple options corresponding to the file processing request sent by the server, where if a user corresponding to an instant messaging client matches a shared object identifier of a printer corresponding to a shared first printer identifier, the multiple options include at least one instant messaging group that shares the printer corresponding to the first printer identifier, the multiple options are multiple file recipient options, and the at least one instant messaging group is an instant messaging group that shares the printer corresponding to the first printer identifier, where the shared object is set based on a sharing request sent to the server by another instant messaging client, and the matching of the user and the shared object identifier means that the user is located in the at least one instant messaging group;
the sending module is further configured to send, in response to a selection operation of the user on an option corresponding to a target instant messaging group in the at least one instant messaging group, an identifier of the target instant messaging group to the server, so that the server controls a printer corresponding to the first printer identifier to perform file scanning, and sends an obtained scanned file to the target instant messaging group.
22. The apparatus according to claim 21, wherein the document processing request is a document printing request;
the plurality of options are composed of a plurality of second printer identifications available to the user, and the plurality of second printer identifications comprise identifications of printers shared to at least one instant messaging group corresponding to the user.
23. An electronic device, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to carry out the file processing method of any one of claims 11 to 12.
CN201910586136.8A 2019-07-01 2019-07-01 File processing and resource sharing method, device and equipment Active CN112188021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910586136.8A CN112188021B (en) 2019-07-01 2019-07-01 File processing and resource sharing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910586136.8A CN112188021B (en) 2019-07-01 2019-07-01 File processing and resource sharing method, device and equipment

Publications (2)

Publication Number Publication Date
CN112188021A CN112188021A (en) 2021-01-05
CN112188021B true CN112188021B (en) 2023-04-07

Family

ID=73914268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910586136.8A Active CN112188021B (en) 2019-07-01 2019-07-01 File processing and resource sharing method, device and equipment

Country Status (1)

Country Link
CN (1) CN112188021B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1928861A (en) * 2005-09-09 2007-03-14 国际商业机器公司 Immediate communication client machine for project share and method thereof
CN102811183A (en) * 2012-08-13 2012-12-05 上海量明科技发展有限公司 Print sharing method and system using instant messaging tool
CN103312920A (en) * 2012-01-19 2013-09-18 佳能株式会社 Print system and correlation devices and controlling method thereof
CN106708446A (en) * 2015-11-19 2017-05-24 北京奇虎科技有限公司 Cloud printing method and cloud printing server
CN109918028A (en) * 2019-01-28 2019-06-21 苏州凸现信息科技有限公司 A kind of computer based remote printing method and its system
CN109918030A (en) * 2019-02-26 2019-06-21 腾讯科技(深圳)有限公司 File printing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10216465B2 (en) * 2017-04-21 2019-02-26 Xerox Corporation Methods and systems to integrate document printing and scanning operations

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1928861A (en) * 2005-09-09 2007-03-14 国际商业机器公司 Immediate communication client machine for project share and method thereof
CN103312920A (en) * 2012-01-19 2013-09-18 佳能株式会社 Print system and correlation devices and controlling method thereof
CN102811183A (en) * 2012-08-13 2012-12-05 上海量明科技发展有限公司 Print sharing method and system using instant messaging tool
CN106708446A (en) * 2015-11-19 2017-05-24 北京奇虎科技有限公司 Cloud printing method and cloud printing server
CN109918028A (en) * 2019-01-28 2019-06-21 苏州凸现信息科技有限公司 A kind of computer based remote printing method and its system
CN109918030A (en) * 2019-02-26 2019-06-21 腾讯科技(深圳)有限公司 File printing method and device

Also Published As

Publication number Publication date
CN112188021A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
US20140129607A1 (en) Information processing apparatus, information processing system, and information processing method
US9807272B2 (en) Information processing system, device, and information processing method
US10212110B2 (en) Cloud system and method of displaying, by cloud system, content
US9524133B2 (en) Printing server group including a print service of transferring a print job to a printer via a network
CN104463336B (en) Conference server, mobile terminal, meeting room reservation system and method
US20190020770A1 (en) Information input apparatus, information processing system, and information processing method
US9948819B2 (en) Information processing system, information processing apparatus, and data process control method
EP2950230A1 (en) Information processing system, method of processing information, information processing apparatus, and program
US10656892B2 (en) Printer registration apparatus, display apparatus, and method for printer registration
JP2014032659A (en) Information processing system, information processing apparatus, equipment, and information processing method and program
US20150271348A1 (en) Information processing system, information processing apparatus, and information processing method
US20140201759A1 (en) Information processing system, information processing apparatus, and process execution method
US9503405B2 (en) Information processing system and method that record result of process that uses e-mail transmission
JP6354419B2 (en) Information processing system, information processing method, and program
US20130139240A1 (en) Network system, information processing apparatus, method for controlling the information processing apparatus, and computer-readable storage medium for computer program
US11652856B2 (en) Server system and method of controlling server system
US20140240765A1 (en) Job performing control system, job performing system and job performing control method
US20170102902A1 (en) Image processing apparatus, method for registration, and information processing system
US11681486B2 (en) Information processing apparatus, method of controlling the same, and recording medium for setting a default printing apparatus
US20130009967A1 (en) Mobile terminal, setting method, and storage medium
US20180270307A1 (en) Information processing apparatus, merge method, and computer program product
CN112188021B (en) File processing and resource sharing method, device and equipment
US8355170B2 (en) Methods and systems to provide scan services to an image forming device
US20150163291A1 (en) Data processing system, device and method of data processing
JP2013051597A (en) Image processing device, method of controlling the same, and program

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