pub use app_dashboard::AppDashboardService;
pub use app_role::AppRoleService;
pub use app_role_member::AppRoleMemberService;
pub use app_table_field::AppTableFieldService;
pub use app_workflow::AppWorkflowService;
pub use form::FormService;
pub mod app;
pub mod app_table;
pub mod app_table_record;
pub mod app_table_view;
use crate::core::config::Config;
mod app_dashboard;
mod app_role;
mod app_role_member;
mod app_table_field;
mod app_workflow;
mod form;
mod share;
pub use share::*;
pub struct V1 {
pub app: app::AppService,
pub app_table: app_table::AppTableService,
pub app_table_view: app_table_view::AppTableViewService,
pub app_table_field: AppTableFieldService,
pub app_table_record: app_table_record::AppTableRecordService,
pub app_dashboard: AppDashboardService,
pub form: FormService,
pub app_role: AppRoleService,
pub app_role_member: AppRoleMemberService,
pub app_workflow: AppWorkflowService,
}
impl V1 {
pub fn new(config: Config) -> Self {
Self {
app: app::AppService::new(config.clone()),
app_table: app_table::AppTableService::new(config.clone()),
app_table_view: app_table_view::AppTableViewService::new(config.clone()),
app_table_field: AppTableFieldService::new(config.clone()),
app_table_record: app_table_record::AppTableRecordService::new(config.clone()),
app_dashboard: AppDashboardService::new(config.clone()),
form: FormService::new(config.clone()),
app_role: AppRoleService::new(config.clone()),
app_role_member: AppRoleMemberService::new(config.clone()),
app_workflow: AppWorkflowService::new(config),
}
}
}