增加企业版认证相关API

This commit is contained in:
GoEdgeLab
2021-04-13 20:01:21 +08:00
parent 0eec199ff6
commit d260f0f8e6
9 changed files with 271 additions and 61 deletions

View File

@@ -0,0 +1,23 @@
package models
import (
_ "github.com/go-sql-driver/mysql"
_ "github.com/iwind/TeaGo/bootstrap"
"testing"
)
func TestAuthorityKeyDAO_UpdateValue(t *testing.T) {
err := NewAuthorityKeyDAO().UpdateValue(nil, "12345678")
if err != nil {
t.Fatal(err)
}
t.Logf("ok")
}
func TestAuthorityKeyDAO_ReadValue(t *testing.T) {
value, err := NewAuthorityKeyDAO().ReadValue(nil)
if err != nil {
t.Fatal(err)
}
t.Logf(value)
}