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

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

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

     addStudent(data){
        return this.http.post(`${this.prefix}/v1/student/student_for_generate`,data)
     }

     checkStudentCode(studentCode, testInforUID){
         return this.http.get(`${this.prefix}/v1/student/check_student/${studentCode}/${testInforUID}`);
     }
}
