質問編集履歴
3
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -334,7 +334,7 @@
|
|
334
334
|
|
335
335
|
[Body]:
|
336
336
|
|
337
|
-
{"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","p
|
337
|
+
{"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"}}}]}]}
|
338
338
|
|
339
339
|
[Network Duration]: 0.955036997795105s
|
340
340
|
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -343,3 +343,49 @@
|
|
343
343
|
[Result]: success(Optional(495 bytes))
|
344
344
|
|
345
345
|
```
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
現状は、構造体の以下の部分を削除すればPost単体のデータは取得してセルに表示出来るという所までは分かっております。
|
352
|
+
|
353
|
+
```ここに言語を入力
|
354
|
+
|
355
|
+
var photo: [Photo]
|
356
|
+
|
357
|
+
...
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
struct Photo: Decodable, Encodable {
|
362
|
+
|
363
|
+
var image: [Image]
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
struct Image: Decodable, Encodable {
|
368
|
+
|
369
|
+
var url: String
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
var thumb: [Thumb]
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
struct Thumb: Decodable, Encodable {
|
378
|
+
|
379
|
+
var url: String
|
380
|
+
|
381
|
+
}
|
382
|
+
|
383
|
+
}
|
384
|
+
|
385
|
+
}
|
386
|
+
|
387
|
+
```
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
しかし、上記のPhotoとImageなども一緒にセルに表示したいです!!!
|