open_lark/service/cloud_docs/bitable/v1/app_workflow/
mod.rs

1use crate::core::config::Config;
2
3pub use list::*;
4pub use update::*;
5
6mod list;
7mod update;
8
9/// 自动化流程服务
10pub struct AppWorkflowService {
11    config: Config,
12}
13
14impl AppWorkflowService {
15    pub fn new(config: Config) -> Self {
16        Self { config }
17    }
18
19    /// 列出自动化流程
20    pub async fn list(
21        &self,
22        request: ListWorkflowRequest,
23        option: Option<crate::core::req_option::RequestOption>,
24    ) -> crate::core::SDKResult<crate::core::api_resp::BaseResponse<ListWorkflowResponse>> {
25        list_workflows(request, &self.config, option).await
26    }
27
28    /// 更新自动化流程状态
29    pub async fn update(
30        &self,
31        request: UpdateWorkflowRequest,
32        option: Option<crate::core::req_option::RequestOption>,
33    ) -> crate::core::SDKResult<crate::core::api_resp::BaseResponse<UpdateWorkflowResponse>> {
34        update_workflow(request, &self.config, option).await
35    }
36}