mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-05 07:01:48 +01:00
🎨 数据统计
This commit is contained in:
parent
70490f3e16
commit
953ce38ab7
7 changed files with 51 additions and 12 deletions
|
|
@ -17,11 +17,14 @@
|
|||
package conf
|
||||
|
||||
type Stat struct {
|
||||
DocCount int `json:"docCount"` // 总文档计数
|
||||
TreeCount int `json:"treeCount"`
|
||||
CTreeCount int `json:"cTreeCount"`
|
||||
BlockCount int `json:"blockCount"`
|
||||
CBlockCount int `json:"cBlockCount"`
|
||||
DataSize int64 `json:"dataSize"`
|
||||
CDataSize int64 `json:"cDataSize"`
|
||||
}
|
||||
|
||||
func NewStat() *Stat {
|
||||
return &Stat{
|
||||
DocCount: 0,
|
||||
}
|
||||
return &Stat{}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue