import { HttpClient, HttpEventType } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { of } from 'rxjs';
import { map } from 'rxjs/internal/operators/map';
import { catchError } from 'rxjs/operators';
import { BaseService } from '../../base/base-service';

@Injectable({
  providedIn: 'root'
})
export class RuStudentService extends BaseService {

  constructor(
    public http: HttpClient
  ) {
    super('/v1/student/ru',http)
   }

  uploadStudent(target: FormData){
    return  this.http.post(`${this.fullUrl}/student_upload`,target)
  }

  registerUpload(code,target: FormData){
    return  this.http.post(`${this.fullUrl}/register_upload/${code}`,target)
  }

}
