fix(schedule): calendar
This commit is contained in:
@ -137,31 +137,45 @@ export class ScheduleController {
|
||||
#swagger.parameters['limit'] = { in: 'query', required: false, type: 'number' }
|
||||
#swagger.parameters['page'] = { in: 'query', required: false, type: 'number' }
|
||||
#swagger.responses[200] = {
|
||||
description: 'Schedule calendar resources and events',
|
||||
description: 'Schedule calendar rooms and events',
|
||||
schema: {
|
||||
status: true,
|
||||
code: 200,
|
||||
message: 'success',
|
||||
data: {
|
||||
resources: [{
|
||||
id: 'room-1:doctor-1',
|
||||
roomId: 'room-1',
|
||||
roomName: 'Room 1',
|
||||
doctorId: 'doctor-1',
|
||||
doctorName: 'Dr A'
|
||||
}],
|
||||
events: [{
|
||||
id: 'occ:series-101:2026-03-20',
|
||||
seriesId: 'series-101',
|
||||
resourceId: 'room-1:doctor-1',
|
||||
title: 'Practice',
|
||||
startAt: '2026-03-20T09:00:00+07:00',
|
||||
endAt: '2026-03-20T12:00:00+07:00',
|
||||
isRecurring: true,
|
||||
isException: false,
|
||||
status: 'confirmed'
|
||||
}],
|
||||
meta: { total_count: 24, page: 1, limit: 20 }
|
||||
count: 1,
|
||||
page: 1,
|
||||
total_count: 1,
|
||||
list: {
|
||||
rooms: [{
|
||||
id: 'uuid-string',
|
||||
name: 'string',
|
||||
code: 'string',
|
||||
picture: 'string',
|
||||
location: 'string',
|
||||
status: 'string',
|
||||
department: {
|
||||
name: 'string',
|
||||
},
|
||||
}],
|
||||
events: [{
|
||||
id: 'occ:series-101:2026-03-20',
|
||||
series_id: 'series-101',
|
||||
room_id: 'room-1',
|
||||
room_name: 'Room 1',
|
||||
doctor_id: 'doctor-1',
|
||||
doctor_name: 'Doctor 1',
|
||||
title: 'Practice',
|
||||
start_at: '2026-03-20T09:00:00+07:00',
|
||||
end_at: '2026-03-20T12:00:00+07:00',
|
||||
quota: 10,
|
||||
used_quota: 5,
|
||||
left_quota: 5,
|
||||
is_recurring: true,
|
||||
is_exception: false,
|
||||
status: 'confirmed'
|
||||
}],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user