Expand description
§OpenLark 平台服务模块
OpenLark SDK 的平台服务模块,提供飞书平台管理相关 API 的完整访问。
§功能特性
- 应用引擎: 应用管理、多租户、应用市场集成
- 目录服务: 用户搜索、组织目录、人员查找
- 系统管理: 系统配置、后台管理、平台工具
§模块组织
本模块按业务域(bizTag)组织:
app_engine- 应用引擎相关 API (37 APIs)directory- 目录服务相关 API (21 APIs)admin- 系统管理相关 API (14 APIs)spark- 妙搭平台相关 API (1 API)
§使用示例
use openlark_platform::PlatformService;
use openlark_core::prelude::Config;
// 使用 builder 模式创建配置
let config = Config::builder()
.app_id("app_id")
.app_secret("app_secret")
.build();
let platform_service = PlatformService::new(config)?;
// 具体功能请参考各个子模块的文档Modules§
- admin
- 系统管理模块
- app_
engine - 应用引擎模块
- common
- 通用数据模型
- directory
- 目录服务模块
- mdm
- 主数据管理模块
- prelude
- 平台服务预导入模块
- spark
- 妙搭平台模块
- tenant
- 租户服务模块
- trust_
party - 关联组织模块
Structs§
- Config
- 零拷贝配置共享实现
- Platform
Service - 平台服务
Constants§
- VERSION
- 平台服务模块版本信息
Type Aliases§
- Platform
Client - 平台服务客户端类型别名(统一命名为
XxxClient)。 - Platform
Config - 平台服务配置别名