atualizacoes modulo Score e Commander

This commit is contained in:
Vitex Tecnologia
2026-05-20 10:53:17 -03:00
parent 6acfee2c76
commit 0b5c7350c5
14 changed files with 265 additions and 44 deletions
+10
View File
@@ -127,6 +127,16 @@ class FechamentoUsuariosService {
this.handleAxiosError(error, "Erro ao atualizar status do usuário.");
}
}
async excluirUsuario(id: string): Promise<void> {
try {
const headers = await buildCommanderHeaders();
const baseUrl = resolveCommanderBaseUrl();
await axios.delete(`${baseUrl}/usuarios/${id}`, { headers });
} catch (error) {
this.handleAxiosError(error, "Erro ao excluir usuário.");
}
}
}
export const fechamentoUsuariosService = new FechamentoUsuariosService();