import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { BaseService } from '../../base/base-service';

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

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

    deleteImportType2(data){
        const httpOptions = {
            headers: new HttpHeaders({ 'Content-Type': 'application/json' }),
            body: data
        }
        return this.http.delete(`${this.fullUrl}/delete_import_students`,httpOptions);
    }

    deleteImportType1(uid,data){
        const httpOptions = {
            headers: new HttpHeaders({ 'Content-Type': 'application/json' }),
            body: data
        }
        return this.http.delete(`${this.fullUrl}/delete_ru_import_students/${uid}`,httpOptions);
    }
}
