package ru.myitschool.work.data.network.api;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;
import ru.myitschool.work.data.dto.EmployeeDataDto;
import ru.myitschool.work.data.dto.EntryDto;

public interface AdminApi {
    @POST("/api/admin/am-i-admin")
    Call<Void> amIAdmin(@Header("Authorization") String auth);

    @POST("/api/admin/panel/get-employee-info")
    Call<EmployeeDataDto> getEmployeeInfo(@Header("Authorization") String auth, @Query("employee-login") String login);

    @POST("/api/admin/panel/set-block-condition")
    Call<Void> setBlockCondition(@Header("Authorization") String auth, @Query("employee-login") String login, @Query("block-condition") Boolean condition);

    @POST("/api/admin/panel/get-employee-entry-list")
    Call<List<EntryDto>> getEmployeeEntry(@Header("Authorization") String auth, @Query("employee-login") String login);

    @POST("/api/admin/panel/is-employee-blocked")
    Call<Boolean> isEmployeeBlock(@Header("Authorization") String auth, @Query("employee-login") String login);
}
