open_lark/service/cloud_docs/bitable/v1/app_workflow/
mod.rs1use crate::core::config::Config;
2
3pub use list::*;
4pub use update::*;
5
6mod list;
7mod update;
8
9pub struct AppWorkflowService {
11 config: Config,
12}
13
14impl AppWorkflowService {
15 pub fn new(config: Config) -> Self {
16 Self { config }
17 }
18
19 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 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}