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

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

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

    FindbyTestSubjectUidandTestInforUid(){
        return this.http.get(`${this.fullUrl}?is_main=true`);
    }

    FindLimitPeriod(testInforId, date, subjectCode){
        return this.http.get(`${this.fullUrl}?testing_information_uid=${testInforId}&testing_date=${date}&subject_code=${subjectCode}`);
    }
}
