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