From c5e1dfcec77c98657633c1bab7f9102e566e67eb Mon Sep 17 00:00:00 2001 From: liushuang Date: Sat, 16 Aug 2025 12:12:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor(README):=20=E6=9B=B4=E6=96=B0=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改初始化配置的代码示例,使用 FsClient.getInstance().initializeClient() 方法替代 FsConfig.initConfig() - 更新创建表格的代码示例,明确返回值为 String 类型的 sheetId --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 487b8ba..dec975a 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ implementation 'cn.isliu:feishu-table-helper:0.0.1' ```java // 初始化配置 -FsConfig.initConfig("your_app_id", "your_app_secret"); +FsClient.getInstance().initializeClient("your_app_id", "your_app_secret"); ``` ### 2. 创建实体类 @@ -62,7 +62,7 @@ public class Employee extends BaseEntity { ```java // 根据实体类创建表格 -FsHelper.create("员工表", "your_spreadsheet_token", Employee.class); +String sheetId = FsHelper.create("员工表", "your_spreadsheet_token", Employee.class); ``` ### 4. 写入数据