[日志审计]增加删除、清理和别的一些设置

This commit is contained in:
刘祥超
2020-12-02 20:31:29 +08:00
parent 4c0f97e03c
commit 73e5d60326
9 changed files with 320 additions and 3 deletions

View File

@@ -2,4 +2,16 @@ package models
import (
_ "github.com/go-sql-driver/mysql"
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestLogDAO_SumLogsSize(t *testing.T) {
dbs.NotifyReady()
size, err := SharedLogDAO.SumLogsSize()
if err != nil {
t.Fatal(err)
}
t.Log("size:", size)
}