Skip to content

Commit 1d56674

Browse files
committed
feat: add json to response
1 parent 935bdd2 commit 1d56674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/core/db/models/metadata-models.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ type QueryView struct {
5252
}
5353
type UserLayout struct{
5454
UserID string `gorm:"primaryKey" ,json:"user_id"`
55-
LayoutConfig pgtype.JSONB `gorm:"type:jsonb"`
56-
Name string `gorm:"type:text"`
55+
LayoutConfig pgtype.JSONB `gorm:"type:jsonb" ,json:"layout_config"`
56+
Name string `gorm:"type:text" ,json:"name"`
5757
CreatedAt time.Time `json:"created_at"`
5858
UpdatedAt time.Time `json:"updated_at"`
5959
IsPrivate bool `json:"is_private"`

0 commit comments

Comments
 (0)