Skip to content

Commit 7f053c5

Browse files
committed
json tagを明示的に指定
1 parent 3c6b5ac commit 7f053c5

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

entitiy.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ type ContentsAPIResponse struct {
88
}
99

1010
type ManagementAPIMediaResponse struct {
11-
Media []Media
12-
TotalCount int
13-
Limit int
14-
Offset int
11+
Media []Media `json:"media"`
12+
TotalCount int `json:"totalCount"`
13+
Limit int `json:"limit"`
14+
Offset int `json:"offset"`
1515
}
1616

1717
type Media struct {
18-
Id string
19-
Url string
20-
Width int
21-
Height int
18+
Id string `json:"id"`
19+
Url string `json:"url"`
20+
Width int `json:"width"`
21+
Height int `json:"height"`
2222
}
2323

2424
type Config struct {

0 commit comments

Comments
 (0)