[go: up one dir, main page]

CN110334823B - Reservation method, device, electronic equipment and medium - Google Patents

Reservation method, device, electronic equipment and medium Download PDF

Info

Publication number
CN110334823B
CN110334823B CN201910520332.5A CN201910520332A CN110334823B CN 110334823 B CN110334823 B CN 110334823B CN 201910520332 A CN201910520332 A CN 201910520332A CN 110334823 B CN110334823 B CN 110334823B
Authority
CN
China
Prior art keywords
reservation
teaching
information
user
time point
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
CN201910520332.5A
Other languages
Chinese (zh)
Other versions
CN110334823A (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.)
Chengdu Yudi Technology Co ltd
Original Assignee
Beijing Dami Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dami Technology Co Ltd filed Critical Beijing Dami Technology Co Ltd
Priority to CN201910520332.5A priority Critical patent/CN110334823B/en
Publication of CN110334823A publication Critical patent/CN110334823A/en
Application granted granted Critical
Publication of CN110334823B publication Critical patent/CN110334823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2336Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps
    • G06F16/2343Locking methods, e.g. distributed locking or locking implementation details
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Educational Technology (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请公开了一种预约方法、装置、电子设备及介质。其中,本申请中,当获取针对目标用户的第一预约请求之后,可以基于第一预约请求中携带的预约时间点以及预约对象,在分布式部署的数据库中利用分布式锁进行加锁操作,并当检测到加锁操作成功时,基于第一预约请求,为目标用户进行预约。通过应用本申请的技术方案,可以利用分布式数据库中,通过检测对应预约对象以及预约时间点的授课资源处利用分布式锁是否加锁成功的操作,确定是否为目标用户进行预约。从而可以避免相关技术中需要人工为每个用户进行预约而出现的效率低下的问题。

Figure 201910520332

The present application discloses a reservation method, device, electronic device and medium. Wherein, in the present application, after obtaining the first reservation request for the target user, the distributed lock can be used to perform the locking operation in the distributed deployment database based on the reservation time point and the reservation object carried in the first reservation request, And when it is detected that the locking operation is successful, a reservation is made for the target user based on the first reservation request. By applying the technical solution of the present application, it is possible to determine whether to make a reservation for the target user by detecting whether the distributed lock is successfully locked at the teaching resource corresponding to the reservation object and the reservation time point in the distributed database. Therefore, the problem of inefficiency arising from the need to manually make reservations for each user in the related art can be avoided.

Figure 201910520332

Description

Reservation method, reservation device, electronic equipment and medium
Technical Field
The present application relates to image processing technologies, and in particular, to a reservation method, an apparatus, an electronic device, and a medium.
Background
With the development of society, more and more people can choose to learn various knowledge to expand themselves continuously. In which, the traditional face-to-face teaching of students and teachers requires the two parties to spend a lot of time and energy on the road. Therefore, with the development of the communication era, network lectures are accepted by vast users.
Further, before a student gives lessons to learn knowledge through the network, the student needs to firstly carry out advance lessons in the system to determine which teacher the student follows when to complete the teaching instruction. And after receiving the appointment instruction of the user side for the class appointment time and the class types, the background allocates the classes corresponding to the teachers to the students in the corresponding time periods.
However, in the existing course booking mode, after the system receives a course booking request of a user, a manual worker corresponds to a course booking for the user according to the selected time and object, but when a large number of course booking requests are received in a short time, the problem of missing the course booking is easy to occur.
Disclosure of Invention
The embodiment of the invention provides a reservation method, a reservation device, electronic equipment and a medium.
According to an aspect of an embodiment of the present application, there is provided a reservation method, including:
acquiring a first reservation request aiming at a target user, wherein the first reservation request carries a corresponding reservation time point and a reservation object;
based on the reservation time point and the reservation object, locking operation is carried out in a distributed deployed database by using a distributed lock;
and when the locking operation is detected to be successful, reserving the target user based on the first reservation request.
Optionally, in another embodiment of the method according to the present application, the performing a locking operation in a distributed deployed database by using a distributed lock based on the reserved time point and the reserved object includes:
determining a teaching resource in the database aiming at the reservation object based on the reservation time point and the reservation object, wherein the teaching resource is a teaching resource corresponding to the reservation time point;
and locking the teaching resources by using the distributed lock.
Optionally, in another embodiment based on the foregoing method of the present application, after the locking operation is performed by using a distributed lock in the lecture resource, the method further includes:
when the locking operation aiming at the teaching resources is detected to be successful, acquiring an identification number of the teaching resources, wherein the identification number is used for representing that the teaching resources are locked;
recording the identification number in a reserved list;
and when a second reservation request carrying the reservation time point and/or the reservation object is acquired in a first preset time period after reservation is carried out on the target user, processing the second reservation request based on the reserved list.
Optionally, in another embodiment based on the foregoing method of the present application, after the locking operation is performed by using a distributed lock in the lecture resource, the method further includes:
when the distributed locking operation is successfully used, adding teaching mark information of the target user into the teaching resources, wherein the teaching mark information is used for extracting teaching information of the target user in the network online education;
reserving for the target user based on the first reservation request;
after the successful reservation of the target user is detected, generating reservation success information, wherein the reservation success information carries the teaching mark information;
and after a second preset time period of the reservation success information is generated, sending the reservation success information carrying the teaching mark information to the reservation object.
Optionally, in another embodiment of the method according to the present application, the performing a locking operation in a distributed deployed database by using a distributed lock based on the reserved time point and the reserved object includes:
and releasing the target distributed lock when a third time period passes, wherein the third time period is determined based on the reserved time point.
Optionally, in another embodiment of the method according to the present application, after performing a reservation for the target user based on the first reservation request, the method further includes:
detecting the reserved times of the reserved object in a fourth preset time period, wherein the fourth preset time period is a time period including the preset time point;
and when the reserved times are determined to exceed a preset threshold, generating forbidding information aiming at the reserved object, wherein the forbidding information is used for prompting a user that the reserved object cannot be reserved within the fourth preset time period.
According to another aspect of the embodiments of the present application, there is provided a reservation apparatus including:
the system comprises an acquisition module, a reservation module and a reservation module, wherein the acquisition module is used for acquiring a first reservation request aiming at a target user, and the first reservation request carries a corresponding reservation time point and a reservation object;
a locking module configured to perform a locking operation using a distributed lock in a distributed deployed database based on the reservation time point and the reservation object;
and the reservation module is used for reserving the target user based on the first reservation request when the locking operation is detected to be successful.
According to another aspect of the embodiments of the present application, there is provided an electronic device including:
a memory for storing executable instructions; and
a display for displaying with the memory to execute the executable instructions to perform the operations of any of the reservation methods described above.
According to yet another aspect of the embodiments of the present application, there is provided a computer-readable storage medium for storing computer-readable instructions, which when executed perform the operations of any of the above-mentioned reservation methods.
In the application, after the first reservation request for the target user is obtained, a locking operation may be performed in a distributed deployed database by using a distributed lock based on a reservation time point and a reservation object carried in the first reservation request, and when it is detected that the locking operation is successful, reservation is performed for the target user based on the first reservation request. By applying the technical scheme of the application, whether the reservation is carried out for the target user can be determined by detecting whether the distributed lock is successfully locked at the teaching resource position corresponding to the reservation object and the reservation time point in the distributed database. Therefore, the problem of low efficiency caused by the fact that each user needs to be reserved manually in the related art can be solved.
The technical solution of the present application is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
fig. 1 is a schematic diagram of a reservation method proposed in the present application;
FIG. 2 is a schematic diagram of another reservation method proposed in the present application;
fig. 3 is a schematic diagram of another reservation method proposed in the present application;
fig. 4 is a schematic structural diagram of a reservation apparatus according to the present application.
Fig. 5 is a schematic view of an electronic device according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
It should be noted that all the directional indications (such as up, down, left, right, front, and rear … …) in the embodiment of the present application are only used to explain the relative position relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indication is changed accordingly.
In addition, descriptions in this application as to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicit to the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In this application, unless expressly stated or limited otherwise, the terms "connected," "secured," and the like are to be construed broadly, and for example, "secured" may be a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
In addition, technical solutions between the various embodiments of the present application may be combined with each other, but it must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should be considered to be absent and not within the protection scope of the present application.
A method for making a reservation according to an exemplary embodiment of the present application is described below with reference to fig. 1 to 3. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The application also provides a reservation method, a reservation device, a target terminal and a medium.
Fig. 1 schematically shows a flow diagram of a reservation method according to an embodiment of the present application. As shown in fig. 1, the method is applied to online education, and includes:
s101, a first reservation request aiming at a target user is obtained, and the first reservation request carries a corresponding reservation time point and a reservation object.
First, it should be noted that, in the present application, a device for obtaining the first reservation request is not specifically limited, for example, the first reservation request may be obtained by an intelligent device, or the first reservation request may be obtained by a server.
In addition, in the present application, the smart device is not specifically limited, that is, the smart device may be any smart device, such as a mobile phone, an electronic notebook, a PDA, and the like.
The first reservation request in the application is used for reserving another party user who completes a teaching process with the user before the user gives a teaching in online education on a network. The target user generating the first reservation request is not specifically limited by the application. For example, the target user may be a student in online education on the internet, so that the student makes an appointment with a teacher with whom a lecture process is completed through a first appointment request. Alternatively, the target user may be a teacher in online education through a network, so that the teacher makes an appointment with a student who completes a teaching process through the first appointment request. Or, the target user can also be a manager in the network online education, so that the manager can make an appointment through the first appointment request for the purpose of completing teaching of students and teachers.
Optionally, the first reservation request of the present application carries a reservation time point and a reservation object generated by a target user. It is to be understood that the present application is not specifically limited to the reservation time point and the reservation target. For example, the reserved time point may be a certain day, a certain minute, or the like.
And S102, based on the reservation time point and the reservation object, locking operation is carried out in the distributed deployed database by using the distributed lock.
According to the method and the device, after the first reservation request is obtained, locking operation can be performed in a distributed deployed database by using a distributed lock based on the reservation time point and the reservation object carried in the reservation request. Further, the present application does not specifically limit the distributed deployed database, and for example, the distributed deployed database may be a cache type database, such as a Redis storage system (REmote DIctionary Server), a Memcached distributed cache system, and a Tair structured data storage system. Or, it may be a ZooKeeper distributed service framework system.
Alternatively, distributed locks are one way to control the synchronous access to shared resources between distributed systems. In the application, mutual interference can be prevented through mutual exclusivity of the distributed locks to ensure consistency, so that one reserved object can be executed by only one thread of one machine at the same time in a distributed system environment. That is to say, the method and the device can perform locking operation on the reserved time point of the reserved object by using the distributed lock in the distributed deployed database according to the reserved time point and the reserved object input by the target user.
Further optionally, the distributed lock in the present application may be a highly available acquire lock and release lock, which should have reentrant characteristics and a lock failure mechanism, so as to avoid deadlock problems that easily occur when locking in a distributed cluster.
In addition, the distributed deployed database in the present application should include the lecture resources or locations corresponding to each reservation object. And corresponding sub-teaching resources or sub-positions are required to be arranged at the teaching resources or positions of each reservation object along with different time periods. It is understood that, taking the target user as a student as an example, the reservation object can be a teacher in online education through a network. Since a teacher can complete the course of several classes of lectures at different time points on the same day, i.e. for example, teacher A can complete 5 classes of lectures between 9:00-10:00, 10:00-11:00, 14:00-15:00, 15:00-16:00, and 16:00-17:00 on the same day. In the distributed database, the teaching resources a corresponding to the teacher a should exist, and under the teaching resources a of the teacher a, the teaching resources 1 in the time period of 9:00-10:00, the teaching resources 2 in the time period of 10:00-11:00, the teaching resources 3 in the time period of 14:00-15:00, the teaching resources 4 in the time period of 15:00-16:00, and the teaching resources 5 in the time period of 16:00-17:00 are respectively corresponding. To ensure that locking operations can be performed with distributed locks at each of the lecture resources in the distributed database.
S103, when the locking operation is detected to be successful, reserving the target user based on the first reservation request.
Optionally, in the present application, based on the reservation time point and the reservation object, after the locking operation is performed by using the distributed lock in the distributed deployed database, the success of the locking operation may be further detected. The distributed lock is used for ensuring that one service can be executed by only one thread of one machine at the same time in the distributed system environment. That is, if the reservation object is reserved by another user at the reservation time point, the lecture resource at the time point is already occupied by the distributed lock corresponding to the reservation request generated by the other user, so that the lecture resource or location cannot be locked.
Further, when the locking operation is detected to be successful, no other user performs reservation on the reservation object at the reservation changing time point. Therefore, the method and the device can perform reservation for the target user based on the first reservation request generated by the target user after detecting that the locking operation is successful. The first appointment request is not specifically limited, for example, the user may input a course type, a course level, a course quantity, and the like in the appointment request.
In the application, after the first reservation request for the target user is obtained, a locking operation may be performed in a distributed deployed database by using a distributed lock based on a reservation time point and a reservation object carried in the first reservation request, and when it is detected that the locking operation is successful, reservation is performed for the target user based on the first reservation request. By applying the technical scheme of the application, whether the reservation is carried out for the target user can be determined by detecting whether the distributed lock is successfully locked at the teaching resource position corresponding to the reservation object and the reservation time point in the distributed database. Therefore, the problem of low efficiency caused by the fact that each user needs to be reserved manually in the related art can be solved.
Further optionally, in an embodiment of the present application, in S102 (based on the reservation time point and the reservation object, performing a locking operation using a distributed lock in a distributed deployed database), a specific embodiment is further included, as shown in fig. 2, including:
s201, a first reservation request aiming at a target user is obtained.
And S202, determining the teaching resources in the database corresponding to the reservation time points according to the reservation time points and the reservation objects and aiming at the teaching resources in the reservation objects.
Optionally, the distributed deployed database in the present application should have teaching resources corresponding to each reservation object in online education. For example, when a certain online education system includes 3 teachers and 5 students, the database should include user teaching resources corresponding to the 3 teachers and 5 students, respectively. Similarly, each user should have a corresponding course time point for each course under the teaching resources. As can be appreciated, the respective lesson time points correspond to respective appointment time points.
And S203, locking the teaching resources by using the distributed lock.
Further, for example, the distributed database includes a teaching resource a corresponding to teacher a, a teaching resource B corresponding to teacher B, a teaching resource C corresponding to teacher C, a teaching resource 1 corresponding to student d, a teaching resource 2 corresponding to student ant, and a teaching resource 3 corresponding to student xin. When a first reservation request which is generated by a student D of a target user and carries a reservation time point of 2019.6.6 days 10:00 and a reservation object of a teacher A is received. And determining the teaching resources in the database as teaching resources A through the reservation time points and the reservation objects. Furthermore, the present application may perform a locking operation on the teaching resource a by using a distributed lock.
And S204, when the distributed locking operation is detected to be successful, adding teaching mark information of the target user into the teaching resources, wherein the teaching mark information is used for extracting the teaching information of the target user in the online education.
Optionally, after the distributed lock is used for locking the teaching resources, teaching mark information for the reservation user can be further added to the teaching resources when the locking operation is detected to be successful. It should be noted that, when it is detected that the locking operation using the distributed lock is successful on the lecture resource, since the distributed lock has a characteristic that only one thread can be occupied at the same time, it means that the reservation object is not reserved by other users at the reservation time point. Furthermore, the teaching mark information used for extracting the teaching information of the target user can be added into the teaching resource, so that the teaching information corresponding to the reservation user can be directly obtained according to the teaching mark information after the reservation object receives the successful reservation notification message of the target user. Therefore, the target user can be known in advance, and better teaching efficiency can be achieved in class.
Furthermore, the teaching mark information is not specifically limited in the present application, for example, the teaching mark information may be teaching material information required for extracting the course of the target user, and the teaching mark information may also be teaching record information used for extracting the course of the target user in history, and the like. It is to be understood that the instructional mark information may be an identifier for extracting instructional information of a target user in the network online education.
And S205, reserving for the target user based on the first reservation request.
And S206, after the successful reservation of the target user is detected, generating reservation success information, wherein the reservation success information carries teaching mark information.
And S207, after the second preset time period of the reservation success information is generated, transmitting the reservation success information carrying the teaching mark information to a reservation object.
Optionally, after the reservation is successfully made for the target user, the reservation success information carrying the teaching mark information may be sent to the reservation object. So that the reservation object can know that the reservation object gives lessons to the target user at the reservation time point according to the reservation success information. Meanwhile, the application is applied to the field of online education of networks, namely, the reservation object and the reservation user complete the teaching process through remote communication, so that the problem that the reservation object (such as a teacher) and the reservation user (such as a student) are not mutually understood due to the unfamiliar state and the teaching efficiency is not high is avoided. The reservation object in the application can also extract the teaching information about the target user according to the teaching mark information aiming at the target user in the reservation success information. Therefore, the teaching progress, character characters, teaching weak points and the like of the target user can be known before the teaching process, and the course teaching direction is specifically deployed, so that the teaching efficiency is improved.
It should be noted that, in the present application, the position of the reservation object for extracting the teaching information according to the teaching mark information is not specifically limited. For example, the reservation target may extract corresponding teaching information from the corresponding information database according to the teaching mark information. The reservation object can also extract corresponding teaching information from the database according to the teaching mark information.
And S208, when the locking operation aiming at the teaching resources is detected to be successful, acquiring the identification number of the teaching resources, wherein the identification number is used for representing that the teaching resources are locked.
Optionally, after the locking operation for the teaching resources is detected to be successful, the reservation success information carrying the teaching mark information may be generated, and the identification number of the teaching resources may be further obtained. The identification number of the teaching resource can be used for representing that the teaching resource is locked, that is, the reservation object is reserved by other reservation users at the reservation time point.
S209, the identification number is recorded in the reserved list.
S210, when a second reservation request carrying a reservation time point and/or a reservation object is acquired in a first preset time period after reservation is carried out on a target user, the second reservation request is processed based on a reserved list.
Optionally, in the present application, in order to avoid a problem of resource waste caused by locking an object to be reserved at a certain time point for many times when the object to be reserved is reserved by other reservation users at the certain time point. In the method, when it is detected that a second reservation request related to the reservation time point and/or a reservation object is received again within a first preset time period after reservation is performed for a target user, a distributed lock is not directly used in a distributed deployed database to lock a teaching resource, but a pre-generated reserved list is firstly inquired, and the second reservation request is processed according to an inquiry result.
Further, when the identification number of the teaching resource exists in the list according to the reserved list, the reserved object is judged to be reserved by other users at a certain reserved time point. Furthermore, the reservation time point corresponding to the identification number of the teaching resource is continuously inquired. It can be understood that, when it is detected that the reservation object and the reservation time point in the second reservation request are both consistent with the reservation object and the reservation time point corresponding to the identification number according to the identification number of the teaching resource, it is determined that the reservation object is reserved at the reservation time point. And further generates judgment information which cannot be reserved. Similarly, when the reservation object and the reservation time point in the second reservation request are detected to be inconsistent with the reservation object and the reservation time point corresponding to the identification number according to the identification number of the teaching resource, the reservation object is determined not to be reserved at the reservation time point. And then according to the second reservation request, reserving the corresponding user.
It should be noted that the reserved list in the present application is time-limited, that is, after the reservation course is completed, the reserved list needs to be updated to ensure that the latest reservation request is processed. For example, it may be updated once a week or once a month. Further, in order to avoid the disadvantage that the second reservation request is repeatedly processed according to the reserved list after the target user is reserved according to the first reservation request, when the second reservation request is received after the target user is reserved in the application, it may be first detected whether the second reservation request is the reservation request received within a first preset time period after the target user is reserved. And processing the second reservation request based on the reserved list after the determination.
Optionally, the first preset time period is not specifically limited in this application, and may be, for example, 7 days or 30 days.
In the method and the device, after the first reservation request for the target user is obtained, based on the reservation time point and the reservation object carried in the first reservation request, a distributed lock is used for locking at the teaching resource in the database, and after the reservation for the target user is successfully made, the teaching mark information of the target user is added into the reservation success information. By applying the technical scheme of the application, after distributed locking is successfully utilized at the teaching resources corresponding to the reservation objects and the reservation time points, the teaching mark information of the target user can be added into the reservation success information informing the reservation objects, so that the reservation objects can acquire the teaching information of the target user according to the mark information. Therefore, the problem of poor teaching efficiency caused by unfamiliarity between students and students in online network education in the related technology can be solved.
Further optionally, in an embodiment of the present application, in S102 (based on the reservation time point and the reservation object, performing a locking operation using a distributed lock in a distributed deployed database), a specific embodiment is further included, as shown in fig. 3, including:
s301, a first reservation request for a target user is acquired.
S302, acquiring a target distributed lock;
and S303, releasing the target distributed lock when a third time period passes, wherein the third time period is determined based on the reserved time point.
Optionally, after the first reservation request of the target user is obtained, the target distributed lock may be released after a third time period elapses by setting a timer for releasing the target distributed lock after the third time period elapses on the target distributed lock. It can be understood that the purpose of setting the timer on the target distributed lock is to prevent the problem that the reserved object cannot be reserved continuously because the distributed lock is always locked on the teaching resource due to a fault, a conflict and the like. For example, when the reservation target completes the lecture process at 10:00 with the target user, the distributed lock of the lecture resource corresponding to 10 points in the reservation target is not automatically released due to a system failure, and the like, so that the reservation target cannot be locked again at the corresponding lecture resource position at 10 points. That is, the reservation target cannot be reserved by other users at 10 o' clock time period of the remaining days all the time. Therefore, in the present application, a timer for releasing the target distributed lock after the third preset time period may be added to the distributed lock, so that the distributed lock automatically releases the distributed lock after the third preset time period. Thereby avoiding the resources of the lecture from being occupied all the time.
Further, the third preset time period in the present application may be a time period obtained based on a reserved time point. For example, when the preset time point is a time point that is different from the time point when the target distributed lock is acquired by 24 hours, the third preset time period may be a time period with a duration of 24 hours. Thereby ensuring that the target distributed lock can be automatically released after the reserved time point is reached. Still alternatively, in the case where the preset time point is a specific time point (for example, 2019.6.6 days 10: 00), the third preset time period may also be a time period that is 1 hour before the preset time point since the target distributed lock is acquired (for example, 2019.6.5 days 18: 00) (that is, a time period that is 15 hours long). The third preset time period is not specifically limited in the present application.
And S304, based on the reservation time point and the reservation object, locking operation is carried out in the distributed deployed database by using the target distributed lock.
S305, when the locking operation is detected to be successful, reserving the target user based on the first reservation request.
S306, detecting the reserved times of the reserved object in a fourth preset time period, wherein the fourth preset time period is a time period including a preset time point.
Optionally, the problem of low teaching efficiency caused by that the same reservation object is reserved in a large amount in a short time in online education through a network is avoided. In the application, after the reservation is performed for the reserved object at the corresponding time point according to the first reservation request, the reserved times of the reserved object in a fourth preset time period can be further detected.
It should be noted that the fourth preset time period is not specifically limited in the present application. For example, the fourth predetermined period of time may be 1 day, and the fourth predetermined period of time may also be 1 week. And the fourth preset time period is a time period including a preset time point.
And S307, when the reserved times are determined to exceed the preset threshold, generating forbidding information aiming at the reserved object, wherein the forbidding information is used for prompting the user that the reserved object cannot be reserved in a fourth preset time period.
It can be understood that, in the present application, when detecting the reserved times of the reserved object in the fourth preset time period and determining that the reserved times exceeds the preset threshold, generating the barring information prompting the user that the reserved object cannot be reserved in the fourth preset time period. And when a reservation request generated by other users about the reservation object is received subsequently, determining whether to display the forbidding information of the reservation object for the users generating the other reservation requests according to the time relationship between the reservation time point of the other reservation requests and the fourth preset time period. It can be understood that, when the reservation time point of the other reservation request is included in the fourth preset time period range, the prohibition information for the reservation object is directly displayed to the corresponding user.
It should also be noted that the preset threshold is not specifically limited in the present application, for example, the preset threshold may be 10 times, and the preset threshold may also be 5 times.
In the method and the device, after a first reservation request for a target user is acquired, a locking operation can be performed at a teaching resource in a database by using a distributed lock based on a reservation time point and a reservation object carried in the first reservation request, and after the target user successfully reserves, a notification that the reservation object cannot be reserved in a preset time period is generated when the reservation object is detected to have a reserved number of times in the preset time period exceeding a threshold value. By applying the technical scheme of the application, when the fact that the reserved times of the reserved object in the preset time period exceed the threshold value is detected, other users are prohibited from reserving the reserved object again. Therefore, the problem of low teaching efficiency caused by that the same reservation object is reserved in a large amount in a short time in the related technology can be avoided.
In another embodiment of the present application, as shown in fig. 4, the present application further provides a reservation apparatus, which includes an obtaining module 401, a locking module 402, and a reservation module 403, wherein,
an obtaining module 401, configured to obtain a first reservation request for a target user, where the first reservation request carries a corresponding reservation time point and a reservation object;
a locking module 402 configured to perform a locking operation with a distributed lock in a distributed deployed database based on the reserved time point and the reserved object;
a reservation module 403 configured to perform reservation for the target user based on the first reservation request when the locking operation is detected to be successful.
In the application, after the first reservation request for the target user is obtained, a locking operation may be performed in a distributed deployed database by using a distributed lock based on a reservation time point and a reservation object carried in the first reservation request, and when it is detected that the locking operation is successful, reservation is performed for the target user based on the first reservation request. By applying the technical scheme of the application, whether the reservation is carried out for the target user can be determined by detecting whether the distributed lock is successfully locked at the teaching resource position corresponding to the reservation object and the reservation time point in the distributed database. Therefore, the problem of low efficiency caused by the fact that each user needs to be reserved manually in the related art can be solved.
Optionally, in another embodiment of the present application, the locking module 402 further includes a determining unit and a locking unit, where:
a determination unit configured to determine, based on the reservation time point and a reservation object, a teaching resource in the database for the reservation object, the teaching resource being a teaching resource corresponding to the reservation time point;
and the locking unit is set to perform locking operation on the teaching resources by using the distributed lock.
In another embodiment of the present application, the locking module 402 further includes a detecting unit, a recording unit, and a processing unit, wherein:
the detection unit is used for acquiring an identification number of the teaching resource when the locking operation aiming at the teaching resource is detected to be successful, wherein the identification number is used for representing that the teaching resource is locked;
a recording unit configured to record the identification number in a reserved list;
and the processing unit is configured to process a second reservation request based on the reserved list when the second reservation request carrying the reservation time point and/or the reservation object is acquired within a first preset time period after reservation is performed for the target user.
In another embodiment of the present application, the locking module 402 further includes an adding unit, a sending unit, and a generating unit, wherein:
the joining unit is used for joining teaching mark information of the target user in the teaching resources when the distributed locking operation is detected to be successful, and the teaching mark information is used for extracting teaching information of the target user in the network online education;
a reservation unit configured to make a reservation for the target user based on the first reservation request;
the generating unit is set to generate reservation success information after detecting that reservation for the target user is successful, wherein the reservation success information carries the teaching mark information;
and the sending unit is set to send the reservation success information carrying the teaching mark information to the reservation object after a second preset time period of the reservation success information is generated.
In another embodiment of the present application, the locking module 402 further includes an obtaining unit and a releasing unit, wherein:
an acquisition unit configured to acquire a target distributed lock;
a releasing unit, configured to add a timer to the target distributed lock, where the timer is used to release the target distributed lock after a third preset time period, where the third preset time period is a time period obtained based on the reserved time point;
and the locking unit is set to perform locking operation by using the target distributed lock in a distributed deployed database based on the reserved time point and the reserved object.
In another embodiment of the present application, the method further comprises a detection module, wherein:
the detection module is used for detecting the reserved times of the reserved object in a fourth preset time period, wherein the fourth preset time period is a time period including the preset time point;
the detection module is configured to generate, when it is determined that the reserved times exceed a preset threshold, barring information for the reserved object, where the barring information is used to prompt a user that the reserved object cannot be reserved within the fourth preset time period.
Fig. 5 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 500 may include one or more of the following components: a processor 501 and a memory 502.
The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 502 may include one or more computer-readable storage media, which may be non-transitory. Memory 502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 502 is used to store at least one instruction for execution by processor 501 to implement the interactive special effects calibration method provided by method embodiments herein.
In some embodiments, the electronic device 500 may further optionally include: a peripheral interface 503 and at least one peripheral. The processor 501, memory 502 and peripheral interface 503 may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface 503 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 504, touch screen display 505, camera 506, audio circuitry 507, positioning components 508, and power supply 509.
The peripheral interface 503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, memory 502, and peripheral interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 504 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 504 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 504 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 504 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to capture touch signals on or over the surface of the display screen 505. The touch signal may be input to the processor 501 as a control signal for processing. At this point, the display screen 505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 505 may be one, providing the front panel of the electronic device 500; in other embodiments, the display screens 505 may be at least two, respectively disposed on different surfaces of the electronic device 500 or in a folded design; in still other embodiments, the display 505 may be a flexible display disposed on a curved surface or on a folded surface of the electronic device 500. Even more, the display screen 505 can be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 505 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 506 is used to capture images or video. Optionally, camera assembly 506 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 507 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 501 for processing, or inputting the electric signals to the radio frequency circuit 504 to realize voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and disposed at different locations of the electronic device 500. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 501 or the radio frequency circuit 504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 507 may also include a headphone jack.
The positioning component 508 is used to locate the current geographic Location of the electronic device 500 for navigation or LBS (Location Based Service). The Positioning component 508 may be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union's galileo System.
The power supply 509 is used to power the various components in the electronic device 500. The power source 509 may be alternating current, direct current, disposable or rechargeable. When power supply 509 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 500 also includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: acceleration sensor 511, gyro sensor 512, pressure sensor 513, fingerprint sensor 514, optical sensor 515, and proximity sensor 516.
The acceleration sensor 511 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the electronic device 500. For example, the acceleration sensor 511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 501 may control the touch screen 505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 512 may detect a body direction and a rotation angle of the electronic device 500, and the gyro sensor 512 may cooperate with the acceleration sensor 511 to acquire a 3D motion of the user on the electronic device 500. The processor 501 may implement the following functions according to the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 513 may be disposed on a side bezel of the electronic device 500 and/or on an underlying layer of the touch display screen 505. When the pressure sensor 513 is disposed on the side frame of the electronic device 500, the holding signal of the user to the electronic device 500 can be detected, and the processor 501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is disposed at the lower layer of the touch display screen 505, the processor 501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 514 is used for collecting a fingerprint of the user, and the processor 501 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 514 may be disposed on the front, back, or side of the electronic device 500. When a physical button or vendor Logo is provided on the electronic device 500, the fingerprint sensor 514 may be integrated with the physical button or vendor Logo.
The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the touch display screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 505 is turned down. In another embodiment, processor 501 may also dynamically adjust the shooting parameters of camera head assembly 506 based on the ambient light intensity collected by optical sensor 515.
A proximity sensor 516, also known as a distance sensor, is typically disposed on the front panel of the electronic device 500. The proximity sensor 516 is used to capture the distance between the user and the front of the electronic device 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front surface of the electronic device 500 gradually decreases, the processor 501 controls the touch display screen 505 to switch from the bright screen state to the dark screen state; when the proximity sensor 516 detects that the distance between the user and the front surface of the electronic device 500 becomes gradually larger, the processor 501 controls the touch display screen 505 to switch from the screen-on state to the screen-on state.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of the electronic device 500 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium, such as the memory 504, including instructions executable by the processor 520 of the electronic device 500 to perform the above-described reservation method, the method including: acquiring a first reservation request aiming at a target user, wherein the first reservation request carries a corresponding reservation time point and a reservation object; based on the reservation time point and the reservation object, locking operation is carried out in a distributed deployed database by using a distributed lock; and when the locking operation is detected to be successful, reserving the target user based on the first reservation request. Optionally, the instructions may also be executable by the processor 520 of the electronic device 500 to perform other steps involved in the exemplary embodiments described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided an application/computer program product comprising one or more instructions executable by the processor 520 of the electronic device 500 to perform the above-described reservation method, the method comprising: acquiring a first reservation request aiming at a target user, wherein the first reservation request carries a corresponding reservation time point and a reservation object; based on the reservation time point and the reservation object, locking operation is carried out in a distributed deployed database by using a distributed lock; and when the locking operation is detected to be successful, reserving the target user based on the first reservation request. Optionally, the instructions may also be executable by the processor 520 of the electronic device 500 to perform other steps involved in the exemplary embodiments described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1.一种预约方法,其特征在于,应用于网络在线教育中,包括:1. a reservation method, is characterized in that, is applied in network online education, comprises: 获取用户的第一预约请求,所述第一预约请求中携带有预约时间点以及预约对象;obtaining a first reservation request of the user, where the first reservation request carries the reservation time point and the reservation object; 基于所述预约时间点以及预约对象,在分布式部署的数据库中利用分布式锁进行加锁操作;Based on the reservation time point and the reservation object, the distributed lock is used to perform the locking operation in the distributed deployment database; 当检测到所述加锁操作成功时,基于所述第一预约请求,为所述用户进行预约;其中,所述预约对象根据预约成功信息中针对所述用户的教学标记信息,提取关于适应于用户的教学信息,所述教学信息至少包括:所述用户的教学进度、人物性格和教学薄弱点。When it is detected that the locking operation is successful, based on the first reservation request, make a reservation for the user; wherein, the reservation object extracts information about adapting to the user according to the teaching mark information for the user in the reservation success information User's teaching information, the teaching information at least includes: the user's teaching progress, character and teaching weakness. 2.如权利要求1所述的方法,其特征在于,所述基于所述预约时间点以及预约对象,在分布式部署的数据库中利用分布式锁进行加锁操作,包括:2. The method according to claim 1, wherein, based on the reservation time point and the reservation object, using a distributed lock to perform a locking operation in a distributed deployment database, comprising: 基于所述预约时间点以及预约对象,确定所述数据库中对应的授课资源;Determine the corresponding teaching resources in the database based on the reservation time point and the reservation object; 利用所述分布式锁进行加锁操作。The locking operation is performed using the distributed lock. 3.如权利要求2所述的方法,其特征在于,在所述授课资源中利用分布式锁进行所述加锁操作之后,还包括:3. The method according to claim 2, characterized in that, after performing the locking operation using distributed locks in the teaching resources, the method further comprises: 当检测到针对所述授课资源的加锁操作成功时,获取所述授课资源的标识号;When it is detected that the locking operation for the teaching resource is successful, obtain the identification number of the teaching resource; 将所述标识号记录在已预约列表中;recording the identification number in the reserved list; 在为所述目标用户进行预约之后的第一预设时间段内获取到携带有所述预约时间点,和/或,所述预约对象的第二预约请求时,基于所述已预约列表,对所述第二预约请求进行处理。When a second reservation request carrying the reservation time point and/or the reservation object is acquired within the first preset time period after the reservation is made for the target user, based on the reservation list, the The second reservation request is processed. 4.如权利要求2或3所述的方法,其特征在于,在所述授课资源中利用分布式锁进行所述加锁操作之后,还包括:4. The method according to claim 2 or 3, characterized in that, after the locking operation is performed using distributed locks in the teaching resources, the method further comprises: 当检测到利用所述分布式锁加锁操作成功时,在所述授课资源中加入所述用户的教学标记信息,所述教学标记信息用于提取所述目标用户在所述网络在线教育中的教学信息;When it is detected that the locking operation using the distributed lock is successful, the teaching mark information of the user is added to the teaching resource, and the teaching mark information is used to extract the target user's teaching mark information in the online education. teaching information; 基于所述第一预约请求,为所述目标用户进行预约;making a reservation for the target user based on the first reservation request; 在检测到为所述目标用户进行预约成功后,生成预约成功信息,所述预约成功信息中携带有所述教学标记信息;After detecting that the reservation is successful for the target user, generate reservation success information, and the reservation success information carries the teaching mark information; 在生成所述预约成功信息的第二预设时间段之后,将携带有所述教学标记信息的所述预约成功信息发送给所述预约对象。After the second preset time period of the reservation success information is generated, the reservation success information carrying the teaching mark information is sent to the reservation object. 5.如权利要求1所述的方法,其特征在于,当第三时间段经过,解除所述目标分布式锁,所述第三时间段基于所述预约时间点确定。5 . The method of claim 1 , wherein the target distributed lock is released when a third time period elapses, the third time period being determined based on the reservation time point. 6 . 6.如权利要求1所述的方法,其特征在于,在所述基于所述第一预约请求,为所述目标用户进行预约之后,还包括:6. The method of claim 1, wherein after the reservation is made for the target user based on the first reservation request, the method further comprises: 检测所述预约对象在第四预设时间段内的被预约次数,所述第四预设时间段为包含所述预设时间点在内的时间段;Detecting the number of times the reservation object is reserved within a fourth preset time period, where the fourth preset time period is a time period including the preset time point; 当确定所述被预约次数超过预设阈值时,生成针对所述预约对象的禁约信息,所述禁约信息用于提示用户所述预约对象在所述第四预设时间段内无法被预约。When it is determined that the number of reservations exceeds a preset threshold, generating reservation prohibition information for the reservation object, where the reservation prohibition information is used to prompt the user that the reservation object cannot be reserved within the fourth preset time period . 7.一种预约装置,其特征在于,包括:7. A reservation device, characterized in that, comprising: 获取模块,被设置为获取针对目标用户的第一预约请求,所述第一预约请求中携带有对应的预约时间点以及预约对象;an acquisition module, configured to acquire a first reservation request for a target user, where the first reservation request carries a corresponding reservation time point and reservation object; 加锁模块,被设置为基于所述预约时间点以及预约对象,在分布式部署的数据库中利用分布式锁进行加锁操作;The locking module is set to use distributed locks to perform locking operations in the distributed deployment database based on the reservation time point and the reservation object; 预约模块,被设置为当检测到所述加锁操作成功时,基于所述第一预约请求,为所述目标用户进行预约;其中,所述预约对象根据预约成功信息中的针对所述用户的教学标记信息,提取关于适应于用户的教学信息,所述教学信息至少包括:所述用户的教学进度、人物性格和教学薄弱点。The reservation module is configured to make reservation for the target user based on the first reservation request when it is detected that the locking operation is successful; wherein, the reservation object is based on the reservation success information for the user according to the reservation success information. Teaching marking information, extracting teaching information suitable for the user, the teaching information at least including: the teaching progress, character and teaching weakness of the user. 8.如权利要求7所述的装置,其特征在于,所述加锁模块,包括:8. The device of claim 7, wherein the locking module comprises: 确定模块,被设置为基于所述预约时间点以及预约对象,确定所述数据库中对应的授课资源;a determining module, configured to determine the corresponding teaching resources in the database based on the reservation time point and the reservation object; 加锁操作模块,被设置为利用所述分布式锁进行加锁操作。The locking operation module is configured to use the distributed lock to perform the locking operation. 9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that, comprising: 存储器,用于存储可执行指令;以及,memory for storing executable instructions; and, 显示器,用于与所述存储器显示以执行所述可执行指令从而完成权利要求1-6中任一所述预约方法的操作。A display for displaying with the memory to execute the executable instructions so as to complete the operation of the reservation method in any one of claims 1-6. 10.一种计算机可读存储介质,用于存储计算机可读取的指令,其特征在于,所述指令被执行时执行权利要求1-6中任一所述预约方法的操作。10. A computer-readable storage medium for storing computer-readable instructions, wherein when the instructions are executed, the operations of the reservation method in any one of claims 1-6 are performed.
CN201910520332.5A 2019-06-17 2019-06-17 Reservation method, device, electronic equipment and medium Active CN110334823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910520332.5A CN110334823B (en) 2019-06-17 2019-06-17 Reservation method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910520332.5A CN110334823B (en) 2019-06-17 2019-06-17 Reservation method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN110334823A CN110334823A (en) 2019-10-15
CN110334823B true CN110334823B (en) 2022-04-05

Family

ID=68141066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910520332.5A Active CN110334823B (en) 2019-06-17 2019-06-17 Reservation method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110334823B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507492A (en) * 2020-03-31 2020-08-07 北京大米科技有限公司 Course reservation request processing method, device, storage medium and terminal
CN111611081B (en) * 2020-05-25 2023-05-09 北京字节跳动网络技术有限公司 Request method, request device, computer equipment and storage medium
CN111897517B (en) * 2020-07-13 2024-12-31 浙江大华技术股份有限公司 A method and device for generating a relationship diagram
CN112732454A (en) * 2020-12-30 2021-04-30 北京懿医云科技有限公司 Medical service appointment method, device, storage medium and equipment

Family Cites Families (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716180B2 (en) * 2005-12-29 2010-05-11 Amazon Technologies, Inc. Distributed storage system with web services client interface
US8606605B2 (en) * 2006-09-28 2013-12-10 Lo-Q, Plc Reservation management system and method
CN101256509B (en) * 2008-04-07 2010-09-01 中兴通讯股份有限公司 Locking method, unlocking method and implementation method of a lock mechanism
CN101901237B (en) * 2009-12-04 2012-05-23 四川川大智胜软件股份有限公司 Type-Index-Value distributed database built based on SQIite
CN103020257B (en) * 2012-12-21 2016-12-07 曙光信息产业(北京)有限公司 The implementation method of data manipulation and device
CN103034739A (en) * 2012-12-29 2013-04-10 天津南大通用数据技术有限公司 Distributed memory system and updating and querying method thereof
CN103150602A (en) * 2013-03-04 2013-06-12 黄晓惠 Reservation system and reservation method
CN104065636B (en) * 2013-07-02 2015-09-16 腾讯科技(深圳)有限公司 Data processing method and system
CN103458036B (en) * 2013-09-03 2017-02-15 杭州华三通信技术有限公司 Access device and method of cluster file system
CN103514485B (en) * 2013-09-23 2016-04-27 苏州经贸职业技术学院 The online reservation system of multi-media classroom based on the all-purpose card of LAN (Local Area Network)
CN104702655B (en) * 2014-03-21 2018-04-27 杭州海康威视系统技术有限公司 Cloud storage resource allocation methods and its system
CN106503001B (en) * 2015-09-03 2019-11-12 菜鸟智能物流控股有限公司 Data updating method and device in distributed cluster environment
CN105208124A (en) * 2015-09-29 2015-12-30 华为技术有限公司 Method and device for managing locks and method and device for determining lock management servers
CA2960982C (en) * 2015-12-30 2021-02-16 Huawei Technologies Co., Ltd. Method for processing acquire lock request and server
CN105761182A (en) * 2016-03-02 2016-07-13 深圳青豆教育科技有限公司 Teacher appointment method and device for online curriculum
CN107292640A (en) * 2016-03-30 2017-10-24 阿里巴巴集团控股有限公司 Resource information processing method and device in many businessman's joint promotion activities
CN107544850A (en) * 2016-06-29 2018-01-05 百度在线网络技术(北京)有限公司 Method and apparatus for controlling distributed lock
CN106202462B (en) * 2016-07-15 2020-05-01 北京奇虎科技有限公司 Method and apparatus for configuring data lock for data
CN107181789A (en) * 2017-03-31 2017-09-19 北京奇艺世纪科技有限公司 A kind of distributed lock implementation method and device
CN108717810A (en) * 2018-05-12 2018-10-30 周油 A kind of Yoga information issuing system
CN108833563A (en) * 2018-06-26 2018-11-16 南通森雅商务服务有限公司 A kind of cloud customer service platform based on cloud computing and the network teleconference
CN109145007A (en) * 2018-07-28 2019-01-04 重庆小雨点小额贷款有限公司 A kind of data processing method, device, server and computer storage medium
CN109583835A (en) * 2018-11-27 2019-04-05 平安科技(深圳)有限公司 A kind of information query method and device and storage medium
CN109657829A (en) * 2018-12-20 2019-04-19 泰康保险集团股份有限公司 Service request processing method, device, electronic equipment and computer-readable medium
CN109766186B (en) * 2019-01-03 2021-05-18 中国联合网络通信集团有限公司 Reservation resource allocation method, apparatus, system and readable storage medium

Also Published As

Publication number Publication date
CN110334823A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN110795236B (en) Method, device, electronic equipment and medium for adjusting capacity of server
CN110532170B (en) Method, device, electronic equipment and medium for building test environment
CN111083516B (en) Live broadcast processing method and device
CN110278464B (en) Method and device for displaying list
CN110334823B (en) Reservation method, device, electronic equipment and medium
CN110971930A (en) Live virtual image broadcasting method, device, terminal and storage medium
CN113613028B (en) Live broadcast data processing method, device, terminal, server and storage medium
CN110418152B (en) Method and device for carrying out live broadcast prompt
CN110784370B (en) Method and device for testing equipment, electronic equipment and medium
CN111031170A (en) Method, apparatus, electronic device and medium for selecting communication mode
CN111128115B (en) Information verification method and device, electronic equipment and storage medium
CN112991439A (en) Method, apparatus, electronic device, and medium for positioning target object
CN110544193A (en) Donation information distributed storage method and device
CN110290191B (en) Resource transfer result processing method, device, server, terminal and storage medium
CN109660876B (en) Method and device for displaying list
CN114219112B (en) Health service reservation method, device, server and storage medium
CN114201244A (en) Task execution method, task creation method, device, terminal and storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN114140105A (en) Resource transfer method, device, equipment and computer readable storage medium
CN109819308B (en) Virtual resource acquisition method, device, terminal, server and storage medium
CN113836426A (en) Information pushing method and device and electronic equipment
CN111327919A (en) Method, device, system, equipment and storage medium for virtual gift feedback processing
CN114078582B (en) Service information association method, device, terminal and storage medium
CN110991909A (en) Teaching progress reminding method and device
CN110781032A (en) Data transmission method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250703

Address after: No. 902, 9th Floor, Unit 2, Building 1, No. 333 Jiqing 3rd Road, Chengdu High tech Zone, Chengdu Free Trade Zone, Sichuan Province 610000

Patentee after: Chengdu Yudi Technology Co.,Ltd.

Country or region after: China

Address before: 100007 t4-27 floor, Damei center, courtyard 7, Qingnian Road, Chaoyang District, Beijing

Patentee before: BEIJING DA MI TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right