open_lark/service/cloud_docs/board/
mod.rs1pub mod v1;
7
8use std::sync::Arc;
9
10use crate::core::{config::Config, req_option::RequestOption, SDKResult};
11
12use self::v1::*;
13
14pub struct BoardService {
16 config: Arc<Config>,
17 pub whiteboard: v1::whiteboard::WhiteboardService,
18}
19
20impl BoardService {
21 pub fn new(config: Arc<Config>) -> Self {
22 Self {
23 whiteboard: v1::whiteboard::WhiteboardService::new((*config).clone()),
24 config,
25 }
26 }
27
28 pub async fn list_nodes(
30 &self,
31 request: ListWhiteboardNodesRequest,
32 option: Option<RequestOption>,
33 ) -> SDKResult<crate::core::api_resp::BaseResponse<ListWhiteboardNodesResponse>> {
34 list_whiteboard_nodes(request, &self.config, option).await
35 }
36}