package dbapi type Result struct { Code int `json:"code"` Data interface{} `json:"data"` Msg string `json:"msg"` Success bool `json:"success"` } type TreeMenu struct { Id string `json:"id" ` Type string `json:"type"` Name string `json:"name"` IsAI bool `json:"isAI"` Treenodes []TreeMenu `json:"children"` } type TreeNode struct { Id int Name string Parentid int }