From 33c84480b1688f0992ca274c2cba428ac8c32e53 Mon Sep 17 00:00:00 2001 From: "Morning.Chen" Date: Fri, 14 Oct 2022 14:51:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E4=BA=86=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E8=A1=A8=E5=92=8C=E4=BF=AE=E6=94=B9=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=AF=B9=E8=A1=A8?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B=E7=9A=84=E5=A4=84=E7=90=86?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6220b68..0b149ab 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,10 @@ String tableId = operation.createTable("HelloTable", "#分组Id(可选)"); ### 更新表数据 数据的格式采用csv文件存储,格式如下,假设文件名为data.csv,其内容为(其中第一行是表头,第一行之后是表数据): +表头行字段中可以将字段类型(目前支持字符串文本string、日期或时间date、数字类型number(不区分大小写))写在字段后,用#分隔,不带类型则默认为文本 ``` -"合同签约时间(Year Month Day)","城市","国家","客户名称","省份","回款金额","合同金额" +"合同签约时间(Year Month Day)#date","城市","国家","客户名称","省份","回款金额","合同金额" "18/1/2016","杭州市","中国","浙江臻善科技有限公司","浙江省","1200000","1200000" "1/8/2016","郑州市","中国","杭州明佑电子有限公司","河南省","100800","100800" "1/4/2016","西安市","中国","西北工业大学","陕西省","430000","430000" @@ -190,7 +191,7 @@ operation.reset(); 请求类型:POST -请求参数: ``` {"tableName":"#表名","groupId":"#分组Id(可选)"} ``` +请求参数: ``` {"tableName":"#表名","groupId":"#分组Id(可选)","increase":true(可选,true表示后续更新为增量更新)} ``` 返回值: ```json @@ -232,12 +233,12 @@ operation.reset(); } ``` -#### 修改数据源表名 +#### 修改数据源表名、更新方式 请求地址:```/api/v1/datasource/table/modify``` 请求类型:POST -请求参数: ``` {"tableId":"#表Id","tableName":"#新的表名"} ``` +请求参数: ``` {"tableId":"#表Id","tableName":"#新的表名","increase": true(可选,同创建表的参数increase)} ``` 返回值: ```json