use crate::core::config::Config;
pub use list::*;
pub use update::*;
mod list;
mod update;
pub struct AppWorkflowService {
config: Config,
}
impl AppWorkflowService {
pub fn new(config: Config) -> Self {
Self { config }
}
pub async fn list(
&self,
request: ListWorkflowRequest,
option: Option<crate::core::req_option::RequestOption>,
) -> crate::core::SDKResult<crate::core::api_resp::BaseResponse<ListWorkflowResponse>> {
list_workflows(request, &self.config, option).await
}
pub async fn update(
&self,
request: UpdateWorkflowRequest,
option: Option<crate::core::req_option::RequestOption>,
) -> crate::core::SDKResult<crate::core::api_resp::BaseResponse<UpdateWorkflowResponse>> {
update_workflow(request, &self.config, option).await
}
}