use crate::PlatformConfig;
use std::sync::Arc;
pub mod app;
pub mod application;
pub mod approval_instance;
pub mod approval_task;
pub mod seat_activity;
pub mod seat_assignment;
pub mod user_task;
pub mod workspace;
#[derive(Debug, Clone)]
#[allow(dead_code)]
pub struct ApaasV1 {
config: Arc<PlatformConfig>,
}
impl ApaasV1 {
pub fn new(config: Arc<PlatformConfig>) -> Self {
Self { config }
}
}
#[cfg(test)]
mod tests {
use super::ApaasV1;
use crate::PlatformConfig;
#[test]
fn test_apaas_v1_creation() {
let config = PlatformConfig::builder()
.app_id("test_app_id")
.app_secret("test_app_secret")
.build();
let api = ApaasV1::new(std::sync::Arc::new(config));
assert_eq!(api.config.app_id(), "test_app_id");
}
}