@@ -11,7 +11,7 @@ type GetUserLayoutResponse struct {
11
11
ID string `json:"id"`
12
12
IsDefault bool `json:"is_default"`
13
13
UserID string `json:"user_id"`
14
- Widgets []Widget `json:"widgets"`
14
+ Widgets []WidgetResponse `json:"widgets"`
15
15
Name string `json:"name"`
16
16
Description string `json:"description"`
17
17
UpdatedAt time.Time `json:"updated_at"`
@@ -29,6 +29,19 @@ type Widget struct {
29
29
ColumnOffset int `json:"column_offset"`
30
30
IsPublic bool `json:"is_public"`
31
31
UserID string `json:"user_id"`
32
+
33
+ }
34
+ type WidgetResponse struct {
35
+ ID string `json:"id"`
36
+ Title string `json:"title"`
37
+ Description string `json:"description"`
38
+ WidgetType string `json:"widget_type"`
39
+ WidgetProps []map [string ]any `json:"widget_props"`
40
+ RowSpan int `json:"row_span"`
41
+ ColumnSpan int `json:"column_span"`
42
+ ColumnOffset int `json:"column_offset"`
43
+ IsPublic bool `json:"is_public"`
44
+ UserID string `json:"user_id"`
32
45
CreatedAt time.Time `json:"created_at"`
33
46
UpdatedAt time.Time `json:"updated_at"`
34
47
@@ -40,7 +53,6 @@ type SetDashboardWithWidgetsRequest struct {
40
53
Widgets []Widget `json:"widgets"`
41
54
Name string `json:"name"`
42
55
Description string `json:"description"`
43
- UpdatedAt time.Time `json:"updated_at"`
44
56
IsPrivate bool `json:"is_private"`
45
57
46
58
}
0 commit comments