mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 22:05:45 +00:00
feat(FE-170,174,175): implement next day recording functionality in RecordingForm
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
UpdateRecordingPayload,
|
||||
CreateGradingPayload,
|
||||
UpdateGradingPayload,
|
||||
NextDayRecording,
|
||||
} from '@/types/api/production/recording';
|
||||
import { ProjectFlockKandang } from '@/types/api/production/project-flock-kandang';
|
||||
|
||||
@@ -95,6 +96,17 @@ export class RecordingService extends BaseApiService<
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async nextDayRecording(
|
||||
projectFlockId: number
|
||||
): Promise<BaseApiResponse<NextDayRecording> | undefined> {
|
||||
return await this.customRequest<BaseApiResponse<NextDayRecording>>(`next-day`, {
|
||||
method: 'GET',
|
||||
params: {
|
||||
project_flock_id: projectFlockId,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export const RecordingApi = new RecordingService('/production/recordings');
|
||||
|
||||
Reference in New Issue
Block a user