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

read items and definition from another yaml file

上级 fb584e38
......@@ -3,17 +3,15 @@ package action
import (
"fmt"
"github.com/easysoft/zendata/src/gen"
"github.com/easysoft/zendata/src/model"
logUtils "github.com/easysoft/zendata/src/utils/log"
stringUtils "github.com/easysoft/zendata/src/utils/string"
"strconv"
)
func Generate(file string, total int, fieldsToExport string, out string, table string) {
definition := model.Definition{}
gen.LoadDefinitionFromFile(file, &definition)
gen.LoadDefinitionFromFile(file)
rows := gen.GenerateForDefinition(&definition, total, fieldsToExport, out, table)
rows := gen.GenerateForDefinition(total, fieldsToExport, out, table)
Print(rows)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册