This commit is contained in:
2026-07-28 22:49:50 +02:00
parent 066074dcd4
commit 9b705f0d96
6 changed files with 94 additions and 40 deletions
+19
View File
@@ -0,0 +1,19 @@
use crate::services::ServicesContext;
use std::sync::Arc;
#[derive(Debug, Clone)]
pub struct ServerOrderService {
service_context: Arc<ServicesContext>,
}
impl ServerOrderService {
pub fn new(service_context: Arc<ServicesContext>) -> Self {
Self { service_context }
}
pub async fn exemple_call_other_service(&self) {
if let Some(services) = self.service_context.services.get() {
services.permission_sync.start_listen_event().await;
}
}
}