import { inject , injectable } from 'inversify' ; import * as apid from '../../../../../api' ; import IRepositoryModel from '../IRepositoryModel' ; import IVersionApiModel from './IVersionApiModel' ; @ injectable ( ) export default class VersionApiModel implements IVersionApiModel { private repository : IRepositoryModel ; constructor ( @ inject ( 'IRepositoryModel' ) repository ) { this . repository = repository ; } return public async getInfo ( ) { const result = await this . repository . get ( '/version' ) ; return result . data ; } }