fusenapi/utils/fssql/metadata_test.go
2023-09-22 14:34:23 +08:00

26 lines
587 B
Go

package fssql_test
import (
"fusenapi/initalize"
"fusenapi/model/gmodel"
"fusenapi/utils/fssql"
"testing"
)
func TestCase1(t *testing.T) {
u := gmodel.UserProfileBase{
Base: struct {
FirstName string "json:\"first_name\""
LastName string "json:\"last_name\""
Resetaurant string "json:\"resetaurant\""
}{},
}
conn := initalize.InitMysql("fsreaderwriter:XErSYmLELKMnf3Dh@tcp(fusen.cdmigcvz3rle.us-east-2.rds.amazonaws.com:3306)/fusen")
err := fssql.MetadataModulePATCH(conn, "profile", gmodel.FsUserInfo{}, u, "id = ?", 90)
if err != nil {
panic(err)
}
}