简化代码/增加HTTPPage服务

This commit is contained in:
刘祥超
2020-09-17 10:16:00 +08:00
parent 58bce36fb3
commit c1327e8ca8
22 changed files with 453 additions and 75 deletions

View File

@@ -2,4 +2,23 @@ package models
import (
_ "github.com/go-sql-driver/mysql"
"testing"
)
func TestHTTPWebDAO_UpdateWebShutdown(t *testing.T) {
{
err := SharedHTTPWebDAO.UpdateWebShutdown(1, []byte("{}"))
if err != nil {
t.Fatal(err)
}
}
{
err := SharedHTTPWebDAO.UpdateWebShutdown(1, nil)
if err != nil {
t.Fatal(err)
}
}
t.Log("ok")
}