This commit is contained in:
eson
2023-09-22 15:42:09 +08:00
parent 6fd3bc8a3b
commit b3ed5703a8
3 changed files with 19 additions and 34 deletions

View File

@@ -157,17 +157,7 @@ func TestMain(t *testing.T) {
func TestCaseJSON_EXTRACT(t *testing.T) {
userProfile := &gmodel.UserProfileBase{
Base: struct {
FirstName string "json:\"first_name\""
LastName string "json:\"last_name\""
Resetaurant string "json:\"resetaurant\""
}{
FirstName: "FirstName",
LastName: "LastName",
Resetaurant: "Resetaurant",
},
}
userProfile := &gmodel.UserProfile{}
metadata, err := json.Marshal(userProfile)
if err != nil {
panic(err)