Disclosure of Invention
The invention mainly aims to provide a method, equipment, storage medium and device for collaborative editing of a travel itinerary, and aims to solve the technical problems that in the prior art, the creator is required to count ideas of peers one by one, so that time and labor are wasted and user experience is poor.
In order to achieve the above object, the present invention provides a travel itinerary collaborative editing method, which includes the following steps:
When a collaborative editing request initiated by a request user based on a travel itinerary is received, acquiring the current state of the travel itinerary;
Judging whether the travel itinerary is allowed to be edited or not according to the current state;
If yes, editing the travel itinerary based on the editing operation of the request user.
Optionally, the step of determining whether the travel itinerary is allowed to be edited according to the current state includes:
matching the current state with a preset locking state;
and judging whether the travel itinerary is allowed to be edited according to the matching result.
Optionally, the step of determining whether the travel itinerary is allowed to be edited according to the matching result includes:
When the matching result is that the matching is successful, acquiring the previous editing time of the travel itinerary;
And judging whether the travel itinerary is allowed to be edited or not according to the previous editing time.
Optionally, the step of determining whether the travel itinerary allows editing according to the previous editing time includes:
acquiring current time, and determining a time difference value according to the current time and the previous editing time;
comparing the time difference value with a preset time threshold value;
And judging whether the travel itinerary is allowed to be edited or not according to the comparison result.
Optionally, if so, the step of editing the travel itinerary based on the editing operation of the requesting user includes:
if yes, resetting the travel list;
and editing the trip information of the reset trip ticket based on the editing operation of the request user.
Optionally, before the step of determining whether the travel itinerary is allowed to be edited according to the current state, the method further includes:
Acquiring user information of the requesting user;
Judging whether the request user has the right to edit the travel itinerary according to the user information;
correspondingly, the step of judging whether the travel itinerary is allowed to be edited according to the current state comprises the following steps:
if so, judging whether the travel itinerary is allowed to be edited or not according to the current state.
Optionally, after the step of determining whether the travel itinerary is allowed to be edited according to the current state, the method further includes:
if not, generating prompt information;
and sending the prompt information to the requesting user.
Optionally, if not, the step of generating the prompt message includes:
if not, acquiring the current editing information of the travel itinerary;
And generating prompt information according to the current editing information.
Optionally, after the step of editing the travel itinerary based on the editing operation of the requesting user if the request is yes, the method further includes:
And when the travel itinerary is in an editing state, temporarily locking the travel itinerary so that the travel itinerary only allows the requesting user to edit.
Optionally, after the step of editing the travel itinerary based on the editing operation of the requesting user if the request is yes, the method further includes:
Acquiring user information of the requesting user and operation time of the editing operation;
and generating an editing log according to the user information, the editing operation and the operation time.
Optionally, if so, the step of editing the travel itinerary based on the editing operation of the requesting user includes:
If yes, acquiring the collaborative editing authority of the request user;
and editing the travel itinerary based on the editing operation of the request user and the collaborative editing authority.
Optionally, after the step of editing the travel itinerary based on the editing operation of the requesting user if the request is yes, the method further includes:
when a storage request initiated by the requesting user based on the edited travel itinerary is received, storage information is generated according to the edited travel itinerary and the travel itinerary;
and storing the stored information into a preset storage area.
In addition, in order to achieve the above object, the present invention also proposes a travel itinerary collaborative editing apparatus including a memory, a processor, and a travel itinerary collaborative editing program stored on the memory and executable on the processor, the travel itinerary collaborative editing program configured to implement the travel itinerary collaborative editing method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a travel itinerary collaborative editing program that, when executed by a processor, implements the travel itinerary collaborative editing method as described above.
In addition, in order to achieve the aim, the invention also provides a travel itinerary collaborative editing device, which comprises a state acquisition module, an editing judgment module and a travel itinerary editing module;
The state acquisition module is used for acquiring the current state of the travel itinerary when receiving a collaborative editing request initiated by a request user based on the travel itinerary;
The editing judging module is used for judging whether the travel itinerary is allowed to be edited or not according to the current state;
and the travel itinerary editing module is used for editing the travel itinerary based on the editing operation of the request user if the travel itinerary is yes.
Optionally, the editing judgment module is further configured to match the current state with a preset locking state;
And the editing judging module is also used for judging whether the travel itinerary is allowed to be edited or not according to the matching result.
Optionally, the editing judgment module is further configured to obtain a previous editing time of the travel itinerary when the matching result is that the matching is successful;
The editing judging module is further used for judging whether the travel itinerary is allowed to be edited or not according to the previous editing time.
Optionally, the editing judgment module is further configured to obtain a current time, and determine a time difference value according to the current time and the previous editing time;
the editing judgment module is further used for comparing the time difference value with a preset time threshold value;
and the editing judging module is also used for judging whether the travel itinerary is allowed to be edited or not according to the comparison result.
Optionally, the trip editing module is further configured to reset the trip if yes;
and the travel itinerary editing module is also used for editing the travel itinerary information of the reset travel itinerary based on the editing operation of the request user.
Optionally, the travel itinerary collaborative editing device further comprises a user judging module;
The user judging module is used for acquiring the user information of the request user;
The user judging module is further used for judging whether the request user has the right to edit the travel itinerary according to the user information;
correspondingly, the editing judgment module is further used for judging whether the travel itinerary is allowed to be edited according to the current state if yes.
The invention can initiate the collaborative editing request of the travel ticket by the request user and edit the travel ticket based on the editing operation of the request user when the travel ticket is allowed to be edited, so that the travel ticket can be edited cooperatively when the travel ticket is allowed to be edited, the editing mode of the travel ticket is optimized, and the user experience is improved.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a travel itinerary collaborative editing device in a hardware operation environment according to an embodiment of the present invention.
As shown in fig. 1, the itinerary collaborative editing device may include a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), and the optional user interface 1003 may also include a standard wired interface, a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 does not constitute a limitation of the travel itinerary collaborative editing device, and may include more or fewer components than illustrated, or may combine certain components, or may have a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a travel itinerary collaborative editing program may be included in a memory 1005 identified as one type of computer storage medium.
In the trip co-editing device shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server, the user interface 1003 is mainly used for connecting user equipment, and the trip co-editing device invokes a trip co-editing program stored in the memory 1005 through the processor 1001 and executes the trip co-editing method provided by the embodiment of the invention.
Based on the hardware structure, the embodiment of the travel itinerary collaborative editing method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the present invention, and a first embodiment of the present invention is provided.
In a first embodiment, the travel itinerary collaborative editing method includes the steps of:
and step S10, when a collaborative editing request initiated by a request user based on the travel itinerary is received, acquiring the current state of the travel itinerary.
It should be understood that the execution body of the method of the present embodiment may be a trip ticket collaborative editing device with functions of data processing, network communication and program running, for example, a server, or other electronic devices capable of implementing the same or similar functions, which is not limited in this embodiment.
It should be noted that the requesting user may be a user who applies for collaborative editing of a travel itinerary.
It will be appreciated that in practical applications, if multiple people edit a travel itinerary at the same time, the itinerary may be cluttered. Therefore, in order to overcome the above-mentioned drawbacks, in this embodiment, when a collaborative editing request initiated by a requesting user based on a travel itinerary is received, the current state of the travel itinerary is also obtained, and whether the travel itinerary is allowed to be edited is determined according to the current state, and when the travel itinerary is operated to be edited, the travel itinerary is edited based on the editing operation of the requesting user.
It should be noted that, the current state of the travel itinerary may be an open state or a closed state. When the travel list is opened by the user, the travel list is in an open state, and when the travel list is not opened by the user, the travel list is in a closed state.
It should be understood that the acquiring the current state of the travel itinerary may be detecting whether the travel itinerary is opened by the user, and determining the current state of the travel itinerary according to the detection result.
And step S20, judging whether the travel itinerary is allowed to be edited according to the current state.
It will be appreciated that when the travel itinerary is in an open state, it is indicated that other users are opening the travel itinerary for editing, which may result in a cluttered travel itinerary if the requesting user is allowed to edit the travel itinerary. Therefore, in this embodiment, whether the travel ticket is allowed to be edited or not is determined according to the current state, and whether the travel ticket is allowed to be edited or not may be determined when the travel ticket is in an open state, and whether the travel ticket is allowed to be edited is determined when the travel ticket is in a closed state.
Further, in order to prompt the user when the user cannot edit the travel itinerary, after step S20, the method further includes:
if not, generating prompt information;
and sending the prompt information to the requesting user.
Note that, the prompt information may be preset, or may be generated according to the current editing information of the travel itinerary, which is not limited in this embodiment.
In a specific implementation, for example, the prompt message may be preset to "the travel itinerary is being edited by other users, please slightly, etc.
Further, in order to make the prompt information more conform to the actual requirement of the user, if not, generating the prompt information includes:
if not, acquiring the current editing information of the travel itinerary;
And generating prompt information according to the current editing information.
It should be noted that, the current editing information may include information such as a current editing user and editing time.
It should be understood that the generating the prompt information according to the current editing information may be writing the current editing information into a preset template to obtain the prompt information. Wherein, the preset template can be preset. For example, the preset template may be preset to "user XXX is editing a travel itinerary, the editing time is XXX, you are temporarily unable to edit".
And step S30, if yes, editing the travel itinerary based on the editing operation of the request user.
It can be appreciated that when the travel itinerary is allowed to be edited, the travel itinerary can be edited based on the editing operation of the requesting user, so as to realize multi-user collaborative editing of the travel itinerary.
It should be noted that, the editing operation may include adding and deleting a destination, modifying a theme, modifying a date, modifying a traffic mode, modifying a title, and the like.
Further, in order to avoid interference of other users when the requesting user edits the travel itinerary, the step S30 further includes:
And when the travel itinerary is in an editing state, temporarily locking the travel itinerary so that the travel itinerary only allows the requesting user to edit.
It should be appreciated that when a travel itinerary is in an edit state, other users may cause the travel itinerary to be cluttered if editing the travel itinerary together. Therefore, in order to overcome the above-mentioned drawbacks, in this embodiment, when the travel ticket is in the editing state, the travel ticket is also temporarily locked, so that the travel ticket only allows the requesting user to edit until the requesting user finishes editing.
Further, in order to reduce the information storage amount when the travel itinerary is stored, after the step S30, the method further includes:
when a storage request initiated by the requesting user based on the edited travel itinerary is received, storage information is generated according to the edited travel itinerary and the travel itinerary;
and storing the stored information into a preset storage area.
It may be understood that the generation of the save information according to the edited travel itinerary and the travel itinerary may be comparing the edited travel itinerary with the travel itinerary to obtain the edit modification information, and the edit modification information is used as the save information.
It should be noted that the preset storage area may be preset for storing the travel itinerary.
In the first embodiment, the method and the device for editing the travel forms are disclosed, when a collaborative editing request initiated by a request user based on the travel forms is received, the current state of the travel forms is obtained, whether the travel forms are allowed to be edited or not is judged according to the current state, and if yes, the travel forms are edited based on the editing operation of the request user.
Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of the present invention, and based on the first embodiment shown in fig. 2, a second embodiment of the present invention is provided.
In a second embodiment, the step S20 includes:
Step S201, matching the current state with a preset locking state.
It should be appreciated that in practical applications, the user may set when the itinerary may be edited for the convenience of his own. In this embodiment, the current state may be matched with the preset locking state, and whether the travel itinerary is allowed to be edited may be determined according to the matching result.
It should be noted that the preset locking state may be preset. For example, the preset locking state may be preset as an open state of the travel itinerary.
And step S202, judging whether the travel itinerary is allowed to be edited or not according to the matching result.
It can be understood that whether the travel list is allowed to be edited or not can be judged according to the matching result, if the current state is successfully matched with the preset locking state, the travel list is not allowed to be edited, and if the current state is failed to be matched with the preset locking state, the travel list is judged to be allowed to be edited.
In a second embodiment, it is disclosed that the current state is matched with a preset locking state, and whether the travel itinerary is allowed to be edited is judged according to the matching result; in the embodiment, the current state is matched with the preset locking state, and whether the travel itinerary is allowed to be edited is judged according to the matching result, so that the user can set when the travel itinerary can be edited by himself, and further the user experience is improved.
In a second embodiment, after the step S30, the method further includes:
And S40, when the travel itinerary is in an editing state, temporarily locking the travel itinerary so that the travel itinerary only allows the request user to edit.
It should be appreciated that when a travel itinerary is in an edit state, other users may cause the travel itinerary to be cluttered if editing the travel itinerary together. Therefore, in order to overcome the above-mentioned drawbacks, in this embodiment, when the travel ticket is in the editing state, the travel ticket is also temporarily locked, so that the travel ticket only allows the requesting user to edit until the requesting user finishes editing.
In the second embodiment, when the travel form is in the editing state, the travel form is temporarily locked, so that the travel form only allows the requesting user to edit, and therefore the problem that when the travel form is in the editing state, other users edit the travel form together to cause the disorder of the travel form is avoided.
Referring to fig. 4, fig. 4 is a schematic flow chart of a third embodiment of the present invention, and based on the second embodiment shown in fig. 3, a third embodiment of the present invention is provided.
In a third embodiment, the step S202 includes:
step S2021, when the matching result is that the matching is successful, acquiring the previous editing time of the travel itinerary;
It should be appreciated that when the match results in a match being successful, the travel itinerary is illustrated being edited by other users. In practical application, the fact that some users possibly open the travel list and forget to close after editing is considered, so that the travel list is locked, and other users cannot edit the travel list. Therefore, in this embodiment, when the matching result is that the matching is successful, the previous editing time of the travel itinerary is also obtained, and whether the travel itinerary is allowed to be edited is determined according to the previous editing time.
Step S2022, judging whether the travel itinerary is allowed to be edited according to the previous editing time.
It can be understood that judging whether the travel itinerary is allowed to be edited according to the previous editing time can be obtaining the current time, determining a time difference value according to the current time and the previous editing time, comparing the time difference value with a preset time threshold value, and judging whether the travel itinerary is allowed to be edited according to the comparison result.
It should be noted that the preset time threshold may be preset. For example, the preset time threshold may be preset to 10 minutes.
It should be appreciated that determining whether the travel itinerary is allowed to be edited based on the comparison may be when the time difference is greater than a preset time threshold, and other users have had a longer time to unedit the travel itinerary. Therefore, it is determined that the travel itinerary is allowed to be edited. And when the time difference value is smaller than or equal to the preset time threshold value, other users are editing the travel itinerary. Therefore, it is determined that the travel itinerary is not allowed to be edited.
In a third embodiment, it is disclosed that when the matching result is that the matching is successful, the previous editing time of the travel itinerary is obtained, and whether the travel itinerary is allowed to be edited is judged according to the previous editing time; in the embodiment, when the matching result is that the matching is successful, whether the time difference between the current time and the previous editing time is larger than the preset time threshold is also judged, so that the situation that the travel list is locked due to the fact that some users forget to close after opening the travel list for editing is avoided, and the reliability of the travel list editing judgment is improved.
In a third embodiment, the step S30 includes:
and step S301, if yes, resetting the travel itinerary.
It will be appreciated that in practical applications, the itinerary is disturbed in order to avoid unedited information. In this embodiment, when the time difference between the current time and the previous editing time is greater than the preset time threshold, the trip is also reset.
It should be appreciated that the reset travel itinerary may be the contents, open state, and time of the reset travel itinerary.
Step S302, editing the trip information of the reset trip ticket based on the editing operation of the request user.
It can be appreciated that after the travel itinerary is reset, the travel itinerary can be opened at the client of the requesting user, and the travel information of the reset travel itinerary can be edited based on the editing operation of the requesting user.
In a third embodiment, if yes, resetting the travel itinerary, and editing the travel information of the reset travel itinerary based on the editing operation of the request user; in the embodiment, when the time difference between the current time and the previous editing time is greater than the preset time threshold, the travel itinerary is reset, so that the interference of unedited information on the travel itinerary is avoided.
Further, step S30 further includes:
if yes, acquiring the previous editing information of the travel itinerary, and updating the travel itinerary according to the previous editing information;
and editing the updated travel information of the travel list based on the editing operation of the request user.
It should be understood that in practical applications, there are some situations where a user forgets to close the save after opening a travel itinerary for editing. In order to avoid the loss of editing information of other users, in this embodiment, when the time difference between the current time and the previous editing time is greater than the preset time threshold, the previous editing information of the itinerary may be obtained, and the itinerary may be updated according to the previous editing information.
Referring to fig. 5, fig. 5 is a schematic flow chart of a fourth embodiment of the present invention, and based on the first embodiment shown in fig. 2, a fourth embodiment of the present invention is provided.
In a fourth embodiment, before the step S20, the method further includes:
Step S110, obtaining the user information of the request user.
It should be understood that, in order to avoid an unauthorized user modifying the itinerary, the present embodiment further obtains user information of the requesting user before determining whether to allow editing, and determines whether the requesting user has authority to edit the itinerary according to the user information.
It should be noted that, the user information may include information such as a user account number and a user login environment.
And step 120, judging whether the request user has the right to edit the travel itinerary according to the user information.
It can be understood that whether the request user has the right to edit the travel itinerary can be judged according to the user information by matching the user account with the user account in the preset authorized user library, judging that the request user has the right to edit the travel itinerary when the matching is successful, and judging that the request user has no right to edit the travel itinerary when the matching is failed. The user account number in the preset authorized user library may be preset by the creator of the travel itinerary, or may be preset by the management user of the travel itinerary, which is not limited in this embodiment.
Judging whether the request user has the right to edit the travel itinerary according to the user information, or firstly matching the user account with the user account in the preset authorized user library, then detecting whether the user login environment is safe, and judging that the request user has the right to edit the travel itinerary when the user account is successfully matched with the user account in the preset authorized user library and the user login environment is safe. Otherwise, determining that the requesting user has no right to edit the travel itinerary.
Accordingly, the step S20 includes:
and step S20', if so, judging whether the travel itinerary is allowed to be edited according to the current state.
It should be appreciated that after determining that the requesting user has the right to edit the travel itinerary, it is also necessary to determine whether the itinerary is allowed to be edited based on the current state.
In the fourth embodiment, it is disclosed that the user information of the request user is obtained, whether the request user has the right to edit the travel itinerary is judged according to the user information, if so, whether the travel itinerary is allowed to be edited is judged according to the current state, and because the user information of the request user is also obtained before judging whether the travel itinerary is allowed to be edited, and whether the request user has the right to edit the travel itinerary is judged according to the user information, thereby avoiding the malicious modification of the travel itinerary by an unauthorized user and further improving the security of travel itinerary editing.
In a fourth embodiment, the step S30 includes:
And step 301, if yes, acquiring the collaborative editing authority of the request user.
It should be appreciated that in practical applications, some users may only be able to edit portions of the content of a travel itinerary. For example, the creator of the travel itinerary may preset that the collaborator can only edit the destination. Therefore, before the request user edits the travel itinerary, the embodiment also obtains the collaborative editing authority of the request user, and edits the travel itinerary based on the editing operation and collaborative editing authority of the request user.
The collaborative editing authority of the requesting user may be preset by the creator of the travel itinerary, or may be preset by the management user of the travel itinerary, which is not limited in this embodiment.
And step S302, editing the travel itinerary based on the editing operation of the request user and the collaborative editing authority.
It can be understood that the editing of the travel itinerary based on the editing operation and the collaborative editing authority of the requesting user may be to first determine whether the editing operation of the requesting user accords with the collaborative editing authority, if so, edit the travel itinerary based on the editing operation of the requesting user, and if not, reject the editing operation of the requesting user and generate the reminding information to remind the requesting user.
In the fourth embodiment, if yes, acquiring the collaborative editing authority of the request user, and editing the travel itinerary based on the editing operation and the collaborative editing authority of the request user; according to the embodiment, before the request user edits the travel itinerary, the collaborative editing authority of the request user is also obtained, and the travel itinerary is edited based on the editing operation and the collaborative editing authority of the request user, so that the request user is ensured to edit the content within the authorized range only, and hierarchical editing of the travel itinerary is further realized.
In a fourth embodiment, after the step S30, the method further includes:
step S40, obtaining the user information of the request user and the operation time of the editing operation.
It should be understood that, in order to record the editing information of the requesting user after the travel itinerary is edited, in this embodiment, after the travel itinerary is edited, the user information of the requesting user and the operation time of the editing operation are also acquired, and an editing log is generated according to the user information, the editing operation and the operation time.
The user information may be a user name of the requesting user, and the operation time may be a time of editing operation.
And S50, generating an editing log according to the user information, the editing operation and the operation time.
It is understood that generating the edit log according to the user information, the editing operation, and the operation time may be to correlate the user information, the editing operation, and the operation time to generate the edit log of the itinerary.
In a fourth embodiment, it is disclosed to acquire user information of a requesting user and an operation time of an editing operation, and generate an editing log according to the user information, the editing operation, and the operation time; in the embodiment, after the program is edited, the user information of the requesting user and the operation time of the editing operation are also acquired, and the editing log is generated according to the user information, the editing operation and the operation time, so that the editing information of the requesting user can be recorded after the program is edited, and the subsequent user can inquire.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium is stored with a travel itinerary collaborative editing program, and the travel itinerary collaborative editing program realizes the travel itinerary collaborative editing method when being executed by a processor.
In addition, referring to fig. 6, the embodiment of the invention further provides a travel itinerary collaborative editing device, which comprises a state acquisition module 10, an editing judgment module 20 and a travel itinerary editing module 30;
the state acquisition module 10 is configured to acquire a current state of a travel itinerary when a collaborative editing request initiated by a requesting user based on the travel itinerary is received.
It should be noted that the requesting user may be a user who applies for collaborative editing of a travel itinerary.
It will be appreciated that in practical applications, if multiple people edit a travel itinerary at the same time, the itinerary may be cluttered. Therefore, in order to overcome the above-mentioned drawbacks, in this embodiment, when a collaborative editing request initiated by a requesting user based on a travel itinerary is received, the current state of the travel itinerary is also obtained, and whether the travel itinerary is allowed to be edited is determined according to the current state, and when the travel itinerary is operated to be edited, the travel itinerary is edited based on the editing operation of the requesting user.
It should be noted that, the current state of the travel itinerary may be an open state or a closed state. When the travel list is opened by the user, the travel list is in an open state, and when the travel list is not opened by the user, the travel list is in a closed state.
It should be understood that the acquiring the current state of the travel itinerary may be detecting whether the travel itinerary is opened by the user, and determining the current state of the travel itinerary according to the detection result.
The editing judgment module 20 is configured to judge whether the travel itinerary is allowed to be edited according to the current state.
It will be appreciated that when the travel itinerary is in an open state, it is indicated that other users are opening the travel itinerary for editing, which may result in a cluttered travel itinerary if the requesting user is allowed to edit the travel itinerary. Therefore, in this embodiment, whether the travel ticket is allowed to be edited or not is determined according to the current state, and whether the travel ticket is allowed to be edited or not may be determined when the travel ticket is in an open state, and whether the travel ticket is allowed to be edited is determined when the travel ticket is in a closed state.
Further, in order to prompt the user when the user cannot edit the travel itinerary, the travel itinerary collaborative editing device further comprises an editing prompt module;
The editing prompt module is used for generating prompt information if not;
the editing prompt module is further used for sending the prompt information to the requesting user.
Note that, the prompt information may be preset, or may be generated according to the current editing information of the travel itinerary, which is not limited in this embodiment.
In a specific implementation, for example, the prompt message may be preset to "the travel itinerary is being edited by other users, please slightly, etc.
Further, in order to make the prompt information more in line with the actual requirement of the user, the editing prompt module is further configured to obtain the current editing information of the travel itinerary if not;
the editing prompt module is also used for generating prompt information according to the current editing information.
It should be noted that, the current editing information may include information such as a current editing user and editing time.
It should be understood that the generating the prompt information according to the current editing information may be writing the current editing information into a preset template to obtain the prompt information. Wherein, the preset template can be preset. For example, the preset template may be preset to "user XXX is editing a travel itinerary, the editing time is XXX, you are temporarily unable to edit".
And the travel itinerary editing module 30 is configured to edit the travel itinerary based on the editing operation of the requesting user if yes.
It can be appreciated that when the travel itinerary is allowed to be edited, the travel itinerary can be edited based on the editing operation of the requesting user, so as to realize multi-user collaborative editing of the travel itinerary.
It should be noted that, the editing operation may include adding and deleting a destination, modifying a theme, modifying a date, modifying a traffic mode, modifying a title, and the like.
Further, in order to avoid interference of other users when the user is requested to edit the travel itinerary, the travel itinerary collaborative editing device further comprises a temporary locking module;
the temporary locking module is used for temporarily locking the travel itinerary when the travel itinerary is in an editing state, so that the travel itinerary only allows the request user to edit.
It should be appreciated that when a travel itinerary is in an edit state, other users may cause the travel itinerary to be cluttered if editing the travel itinerary together. Therefore, in order to overcome the above-mentioned drawbacks, in this embodiment, when the travel ticket is in the editing state, the travel ticket is also temporarily locked, so that the travel ticket only allows the requesting user to edit until the requesting user finishes editing.
Further, in order to reduce the information storage amount when storing the travel itinerary, the travel itinerary collaborative editing device further comprises an increment storage module;
The increment saving module is used for generating saving information according to the edited travel itinerary and the travel itinerary when receiving a saving request initiated by the requesting user based on the edited travel itinerary;
The increment saving module is further used for storing the saving information into a preset storage area.
It may be understood that the generation of the save information according to the edited travel itinerary and the travel itinerary may be comparing the edited travel itinerary with the travel itinerary to obtain the edit modification information, and the edit modification information is used as the save information.
It should be noted that the preset storage area may be preset for storing the travel itinerary.
In the embodiment, when a collaborative editing request initiated by a request user based on a travel itinerary is received, the current state of the travel itinerary is obtained, whether the travel itinerary is allowed to be edited or not is judged according to the current state, if yes, the travel itinerary is edited based on the editing operation of the request user.
Other embodiments or specific implementation manners of the travel itinerary collaborative editing device according to the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, 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 process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the terms first, second, third, etc. do not denote any order, but rather the terms first, second, third, etc. are used to interpret the terms as names.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read only memory mirror (Read Only Memory image, ROM)/random access memory (Random Access Memory, RAM), magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.