mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-14 02:37:55 +02:00
Paramètres : diagnostic et URL de l'API FF branchés sur le module ff
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LG2LLJuswrrTTPKJmunEVf
This commit is contained in:
1 file changed
+5
-3
@@ -1,7 +1,7 @@
|
||||
//! Points d'appel vers les modules `qlik` et `ff` utilisés par les Paramètres.
|
||||
//! Branchés après l'intégration de ces modules.
|
||||
|
||||
use serde_json::{json, Value};
|
||||
use serde_json::Value;
|
||||
|
||||
/// Ouvre une session Qlik (NTLM → ticket → cookie) avec les identifiants donnés.
|
||||
pub async fn tester_session(_host: String, _user: String, _password: Option<String>) -> anyhow::Result<()> {
|
||||
@@ -9,9 +9,11 @@ pub async fn tester_session(_host: String, _user: String, _password: Option<Stri
|
||||
}
|
||||
|
||||
/// Oublie l'URL mémorisée de l'API FF Nancy.
|
||||
pub fn reset_ff_api_base() {}
|
||||
pub fn reset_ff_api_base() {
|
||||
crate::ff::api::reset_ff_api_base_cache();
|
||||
}
|
||||
|
||||
/// Diagnostic de l'API FF Nancy.
|
||||
pub async fn diagnostiquer_api_ff(base: Option<String>) -> Value {
|
||||
json!({ "success": false, "url": base.unwrap_or_default(), "error": "Diagnostic indisponible : module en cours de portage" })
|
||||
serde_json::to_value(crate::ff::diagnostic::diagnostiquer_api_ff(base).await).unwrap_or(Value::Null)
|
||||
}
|
||||
Reference in new issue
Block a user