sqlite的api,便于内部使用
liuxiaolong
2019-05-23 2b48afdf47d6bc81c60ebcab8b5b24a6e25ac60c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"`
    Treenodes []TreeMenu `json:"children"`
}
 
type TreeNode struct {
    Id       int
    Name     string
    Parentid int
}