/**
 * Remote service
 *
 * @version 1.0
 */
import { BaseService } from './base'
import { GET } from 'src/hooks/useRequest'

export class ProviderDefaultModelService extends BaseService {
  protected apiName = 'providerDefaultModel'

  findByType(type: string): Promise<any> {
    const query = { model_type: type }
    return GET({ name: this.apiName, path: '/by-type', query })
  }
}

export const pdmService = new ProviderDefaultModelService()
