質問編集履歴
3
変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -166,7 +166,7 @@
|
|
166
166
|
X-Runtime: 0.104696
|
167
167
|
X-XSS-Protection: 1; mode=block
|
168
168
|
[Body]:
|
169
|
-
{"posts":[{"id":1,"user_id":1,"content":"テスト","status":"public","created_at":"2021-03-04T06:44:55.317+09:00","updated_at":"2021-03-07T20:43:28.347+09:00","
|
169
|
+
{"posts":[{"id":1,"user_id":1,"content":"テスト","status":"public","created_at":"2021-03-04T06:44:55.317+09:00","updated_at":"2021-03-07T20:43:28.347+09:00","photos":[{"image":{"url":"/uploads/post_photo/image/1/2018-06-29_12.13.21.jpg","thumb":{"url":"/uploads/post_photo/image/1/thumb_2018-06-29_12.13.21.jpg"}}}]}]}
|
170
170
|
[Network Duration]: 0.955036997795105s
|
171
171
|
[Serialization Duration]: 0.0s
|
172
172
|
[Result]: success(Optional(495 bytes))
|
2
修正
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -170,4 +170,27 @@
|
|
170
170
|
[Network Duration]: 0.955036997795105s
|
171
171
|
[Serialization Duration]: 0.0s
|
172
172
|
[Result]: success(Optional(495 bytes))
|
173
|
-
```
|
173
|
+
```
|
174
|
+
|
175
|
+
|
176
|
+
現状は、構造体の以下の部分を削除すればPost単体のデータは取得してセルに表示出来るという所までは分かっております。
|
177
|
+
```ここに言語を入力
|
178
|
+
var photo: [Photo]
|
179
|
+
...
|
180
|
+
|
181
|
+
struct Photo: Decodable, Encodable {
|
182
|
+
var image: [Image]
|
183
|
+
|
184
|
+
struct Image: Decodable, Encodable {
|
185
|
+
var url: String
|
186
|
+
|
187
|
+
var thumb: [Thumb]
|
188
|
+
|
189
|
+
struct Thumb: Decodable, Encodable {
|
190
|
+
var url: String
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
```
|
195
|
+
|
196
|
+
しかし、上記のPhotoとImageなども一緒にセルに表示したいです!!!
|