import { inject , injectable } from 'inversify' ; import * as apid from '../../../../../api' ; import IRepositoryModel from '../IRepositoryModel' ; import IRecordingApiModel from './IRecordingApiModel' ; @ injectable ( ) export default class RecordingApiModel implements IRecordingApiModel { private repository : IRepositoryModel ; constructor ( @ inject ( 'IRepositoryModel' ) repository ) { this . repository = repository ; } param option return public async gets ( option ) { const result = await this . repository . get ( '/recording' , { params : option , } ) ; return result . data ; } }