open_lark/service/cloud_docs/bitable/v1/form/
mod.rs1pub mod get;
2pub mod list;
3pub mod patch;
4pub mod patch_meta;
5
6use crate::core::config::Config;
7
8pub use get::*;
9pub use list::*;
10pub use patch::*;
11pub use patch_meta::*;
12
13pub struct FormService {
15 config: Config,
16}
17
18impl FormService {
19 pub fn new(config: Config) -> Self {
20 Self { config }
21 }
22
23 pub async fn get(
25 &self,
26 request: GetFormRequest,
27 option: Option<crate::core::req_option::RequestOption>,
28 ) -> crate::core::SDKResult<crate::core::api_resp::BaseResponse<GetFormResponse>> {
29 get::get_form(request, &self.config, option).await
30 }
31
32 pub async fn list(
34 &self,
35 request: ListFormQuestionRequest,
36 option: Option<crate::core::req_option::RequestOption>,
37 ) -> crate::core::SDKResult<crate::core::api_resp::BaseResponse<ListFormQuestionResponse>> {
38 list::list_form_questions(request, &self.config, option).await
39 }
40
41 pub async fn patch(
43 &self,
44 request: PatchFormQuestionRequest,
45 option: Option<crate::core::req_option::RequestOption>,
46 ) -> crate::core::SDKResult<crate::core::api_resp::BaseResponse<PatchFormQuestionResponse>>
47 {
48 patch::patch_form_question(request, &self.config, option).await
49 }
50
51 pub async fn patch_meta(
53 &self,
54 request: PatchFormMetaRequest,
55 option: Option<crate::core::req_option::RequestOption>,
56 ) -> crate::core::SDKResult<crate::core::api_resp::BaseResponse<PatchFormMetaResponse>> {
57 patch_meta::patch_form_meta(request, &self.config, option).await
58 }
59}