student-30864-patch-1 #11

Closed
student-30864 wants to merge 19 commits from student-30864/NTO-2025-Backend-TeamTask-1:student-30864-patch-1 into main
3 changed files with 25 additions and 0 deletions
Showing only changes of commit ba04d412e8 - Show all commits

View File

@@ -0,0 +1,11 @@
package com.example.nto.dto;
/**
* Тело запроса для POST /api/{code}/book
* {
* "date": "2025-01-05",
* "placeId": 1
* }
*/
public record BookingRequestDto(String date, Long placeId) {
}

View File

@@ -0,0 +1,4 @@
package com.example.nto.dto;
public record BookingShortDto(long id, String place) {
}

View File

@@ -0,0 +1,10 @@
package com.example.nto.dto;
import java.util.Map;
public record EmployeeInfoResponseDto(
String name,
String photoUrl,
Map<String, BookingShortDto> booking
) {
}