Penambahan Sementara Pengajuan Presensi WhatsApp

This commit is contained in:
Ariyutta
2026-09-15 14:42:01 +07:00
parent 88d27ef207
commit ffcfdd3579
23 changed files with 1257 additions and 384 deletions
+8 -1
View File
@@ -56,6 +56,13 @@ class DawaiService
return $data;
}
public function isAtasanDari(string $nipAtasan, string $nipBawahan): bool
{
$bawahan = $this->getListBawahan($nipAtasan)['data']['bawahan'] ?? [];
return in_array($nipBawahan, array_column($bawahan, 'nip'), true);
}
public function isVerifikatorTriDharma(string $nip)
{
try {
@@ -88,7 +95,7 @@ class DawaiService
public function listPegawai(string $nip = '', string $jenisPegawai = '', string $email = ''): array
{
try {
$response = $this->client->get("api/v1/pegawai?jenis_pegawai=$jenisPegawai&nip=$nip&email=$email&asn=true&pensiun=0&wafat=0&mutkel=0&nonaktif=0");
$response = $this->client->get("api/v1/pegawai?jenis_pegawai=$jenisPegawai&nip=$nip&email=$email&asn=true&pensiun=0&wafat=0&mutkel=0&nonaktif=0&privasi=true");
$data = json_decode($response->getBody()->getContents(), true);
return $data;