fusenapi/utils/fssql/metadata_test.go

20 lines
425 B
Go
Raw Normal View History

2023-09-09 18:58:56 +00:00
package fssql_test
import (
"fusenapi/initalize"
"fusenapi/model/gmodel"
"fusenapi/utils/fssql"
"testing"
)
func TestCase1(t *testing.T) {
2023-09-22 07:42:09 +00:00
u := gmodel.UserProfile{}
2023-09-09 18:58:56 +00:00
conn := initalize.InitMysql("fsreaderwriter:XErSYmLELKMnf3Dh@tcp(fusen.cdmigcvz3rle.us-east-2.rds.amazonaws.com:3306)/fusen")
2023-09-19 04:04:51 +00:00
err := fssql.MetadataModulePATCH(conn, "profile", gmodel.FsUserInfo{}, u, "id = ?", 90)
2023-09-09 18:58:56 +00:00
if err != nil {
panic(err)
}
}