Merge branch 'master' of https://gitee.com/johng/gf into develop

This commit is contained in:
John
2019-02-01 00:02:17 +08:00
16 changed files with 1281 additions and 492 deletions

View File

@ -16,7 +16,7 @@ func (r Result) ToJson() string {
return string(content)
}
// 将结果集转换为JSON字符串
// 将结果集转换为XML字符串
func (r Result) ToXml(rootTag...string) string {
content, _ := gparser.VarToXml(r.ToList(), rootTag...)
return string(content)