sqlite的api,便于内部使用
add
liuxiaolong
2019-07-08 bd331e44a4fa35f4757bf121d797c42424d89f61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}