mirror of
https://gitee.com/johng/gf
synced 2026-07-07 14:25:17 +08:00
Merge branch 'master' of https://gitee.com/johng/gf into develop
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user