Initial commit

This commit is contained in:
yan.y
2024-03-27 23:25:08 +08:00
commit 0884384e91
127 changed files with 9353 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package operation
import (
"testing"
"pet-house.com/core/server/database"
)
func TestCreateOplog(t *testing.T) {
database.Instance().AutoMigrate(&Oplog{})
t.Run("test create op log", func(t *testing.T) {
record := &Oplog{}
if err := CreateOplog(record); err != nil {
t.Errorf("test create op log get %s", err.Error())
}
})
}