feat: 优化预约时段服务

This commit is contained in:
MaDaLei 2026-04-17 12:13:46 +08:00
parent e4410f5794
commit 418dbb5801
4 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ public class AppointmentController {
private final AppointmentService appointmentService;
/**
* 门店某日可预约时段半小时一档医院挂号式占号
* 门店某日可预约时段半小时一档每档最多一单
* date 格式yyyy-MM-dd
*/
@GetMapping("/available-slots")

View File

@ -71,7 +71,7 @@ public class AppointmentService {
}
/**
* 某门店某日半小时挂号时段列表已占用 / 已过 / 可约
* 某门店某日半小时预约档列表已占用 / 已过 / 可约
*/
public Map<String, Object> availableSlots(Long storeId, LocalDate date) {
if (storeId == null || date == null) {

View File

@ -35,7 +35,7 @@ public final class AppointmentSlotSupport {
}
/**
* 在给定放号窗口内生成某日所有半点起始时刻含首尾
* 在给定可预约时间窗口内生成某日所有半点起始时刻含首尾
*/
public static List<LocalDateTime> allSlotStartsOnDay(LocalDate date, StoreBookingWindow window) {
List<LocalDateTime> list = new ArrayList<>();

View File

@ -5,7 +5,7 @@ import com.petstore.entity.Store;
import java.time.LocalTime;
/**
* 门店可预约放号窗口半小时一档的首末时刻
* 门店线上可预约时间窗口半小时一档的首末时刻
*/
public record StoreBookingWindow(LocalTime dayStart, LocalTime lastSlotStart) {