list room

This commit is contained in:
Peter Maquiran
2024-06-05 11:09:03 +01:00
parent 2e9492db68
commit 1a319093ee
6 changed files with 32 additions and 8 deletions
@@ -23,8 +23,8 @@ export class RoomRemoteDataSourceService {
return await this.httpService.post<RoomOutPutDTO>(`${this.baseUrl}/Room`, data);
}
async getRoomList(): Promise<Result<RoomListOutPutDTO ,any>> {
return await this.httpService.get<any>(`${this.baseUrl}/Room`);
async getRoomList(): Promise<DataSourceReturn<RoomListOutPutDTO>> {
return await this.httpService.get<RoomListOutPutDTO>(`${this.baseUrl}/Room`);
}
async getRoom(id: string): Promise<Result<any ,any>> {