Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop

This commit is contained in:
laodaming
2023-09-22 14:38:32 +08:00
3 changed files with 37 additions and 17 deletions

View File

@@ -157,10 +157,16 @@ func TestMain(t *testing.T) {
func TestCaseJSON_EXTRACT(t *testing.T) {
userProfile := &gmodel.UserProfile{
FirstName: "FirstName",
LastName: "LastName",
Resetaurant: "Resetaurant",
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",
},
}
metadata, err := json.Marshal(userProfile)
if err != nil {