提交 6e2b1f49 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

update doc

上级 deb72978
title: 自定义
desc:
author:
version: 1.3
fields:
- field: field_recursion
from: recursion.yaml
use: all
postfix: "\t"
\ No newline at end of file
......@@ -49,9 +49,9 @@ $>zd.exe -i demo/zentao.sql -o db # Generate YAML files for ea
$>zd.exe -c demo/default.yaml -i test.txt --decode # Parse the file specified by -i according to the config of -d.
$>zd.exe -l # List all build-in data types.
$>zd.exe -v system.address.v1 # View data types in build-in Excel file system/address/v1.xlsx.
$>zd.exe -v system.address.v1.china # View data items in Excel sheet "china".
$>zd.exe -v system.ip.v1.yaml # View data items in build-in instances
$>zd.exe -v address.cn.v1 # View data types in build-in Excel file data/address/cn.v1.xlsx.
$>zd.exe -v address.cn.v1.china # View data items in Excel sheet "china".
$>zd.exe -v ip.v1.yaml # View data in build-in instances defined in yaml/ip/v1.yaml
Service Example:
......@@ -60,6 +60,6 @@ $zd.exe -p 80 -R d:\zd\config # Listen port 80. Use d:\zd\config as th
Client Call:
$curl http://loclahost/?d=default.yaml&c=config.yaml&n=100&o=test.sql&t=user # Specify the server config file via GET.
$curl http://loclahost/?default=default.yaml&output=test.sql&table=user # Parameter names can be full.
$curl -d "default=...&config=...&lines=10" http://localhost/ # The config can be uploaded via POST.
$curl http://localhost:8848/?d=demo/default.yaml&c=demo/config.yaml&n=100 # Specify the server config file via GET.
$curl http://localhost:8848/?default=demo/default.yaml&output=test.sql&table=user # Parameter names can be full.
$curl -i -X POST http://localhost:8848?lines=3 -F default=@demo/default.yaml # The config can be uploaded via POST.
......@@ -43,9 +43,9 @@ $>zd.exe -i demo\zentao.sql -o db # 根据sql
$>zd.exe -c demo\default.yaml -i test.txt --decode # 将-i指定的文件根据-d参数的配置进行解析。
$>zd.exe -l # 列出所有內置数据。
$>zd.exe -v system.address.v1 # 查看內置Excel文件system/address/v1.xlsx中的数据表。
$>zd.exe -v system.address.v1.china # 查看內置Excel文件china数据表中的数据。
$>zd.exe -v system.ip.v1.yaml # 查看內置名为IP的Instances数据。
$>zd.exe -v address.cn.v1 # 查看內置Excel文件data/address/cn.v1.xlsx中的数据表。
$>zd.exe -v address.cn.v1.china # 查看內置Excel文件china数据表中的数据。
$>zd.exe -v ip.v1.yaml # 查看內置文件yaml/ip/v1.yaml定义的数据。
服务模式举例:
......@@ -54,6 +54,6 @@ $zd.exe -p 80 -R d:\zd\config # 监听80
客户端调用:
$curl http://loclahost/?d=default.yaml&c=config.yaml&n=100&o=test.sql&t=user # 通过GET方式指定服务器端配置文件。
$curl http://loclahost/?default=default.yaml&output=test.sql&table=user # 参数名可以用全拼。
$curl -d "default=...&config=...&lines=10" http://localhost/ # 可以通过POST方式上传配置
$curl http://localhost:8848/?d=demo/default.yaml&c=demo/config.yaml&n=100 # 通过GET方式指定服务器端配置文件。
$curl http://localhost:8848/?default=demo/default.yaml&output=test.sql&table=user # 参数名可以用全拼。
$curl -i -X POST http://localhost:8848?lines=3 -F default=@demo/default.yaml # 可以通过POST方式上传配置文件
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册