Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zendata
提交
6e2b1f49
Z
zendata
项目概览
易企天创
/
zendata
8 个月 前同步成功
通知
17
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zendata
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6e2b1f49
编写于
9月 04, 2020
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update doc
上级
deb72978
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
29 addition
and
12 deletion
+29
-12
demo/test/f1.yaml
demo/test/f1.yaml
+17
-0
res/en/usage.txt
res/en/usage.txt
+6
-6
res/zh/usage.txt
res/zh/usage.txt
+6
-6
未找到文件。
demo/test/f1.yaml
0 → 100644
浏览文件 @
6e2b1f49
title
:
自定义
desc
:
author
:
version
:
1.3
fields
:
-
field
:
field_recursion
from
:
recursion.yaml
use
:
all
postfix
:
"
\t
"
\ No newline at end of file
res/en/usage.txt
浏览文件 @
6e2b1f49
...
...
@@ -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://loc
lahost/?d=default.yaml&c=config.yaml&n=100&o=test.sql&t=user
# Specify the server config file via GET.
$curl http://loc
lahost/?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://loc
alhost:8848/?d=demo/default.yaml&c=demo/config.yaml&n=100
# Specify the server config file via GET.
$curl http://loc
alhost: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.
res/zh/usage.txt
浏览文件 @
6e2b1f49
...
...
@@ -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://loc
lahost/?d=default.yaml&c=config.yaml&n=100&o=test.sql&t=user
# 通过GET方式指定服务器端配置文件。
$curl http://loc
lahost/?default=default.yaml&output=test.sql&table=user
# 参数名可以用全拼。
$curl -
d "default=...&config=...&lines=10" http://localhost/ # 可以通过POST方式上传配置
。
$curl http://loc
alhost:8848/?d=demo/default.yaml&c=demo/config.yaml&n=100
# 通过GET方式指定服务器端配置文件。
$curl http://loc
alhost: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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录