質問編集履歴
2
引数の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
```
|
26
26
|
class TestLogic: ApiLogic {
|
27
27
|
class func requestList(success: @escaping ([AssetModel]) -> Void, failure: @escaping ErrorHandler) {
|
28
|
-
ApiLogic.get(path: endpoint).responseJSON { res in ←この部分
|
28
|
+
ApiLogic.get(path: endpoint, params: [:]).responseJSON { res in ←この部分
|
29
29
|
}
|
30
30
|
}
|
31
31
|
}
|
1
エラー箇所ついか
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,4 +16,17 @@
|
|
16
16
|
タイトルに示すようなエラーが出ました.
|
17
17
|
|
18
18
|
Swift2まではこれで動いていたのですが,
|
19
|
-
どのようにすればいいでしょうか?
|
19
|
+
どのようにすればいいでしょうか?
|
20
|
+
|
21
|
+
|
22
|
+
--------
|
23
|
+
エラー箇所
|
24
|
+
|
25
|
+
```
|
26
|
+
class TestLogic: ApiLogic {
|
27
|
+
class func requestList(success: @escaping ([AssetModel]) -> Void, failure: @escaping ErrorHandler) {
|
28
|
+
ApiLogic.get(path: endpoint).responseJSON { res in ←この部分
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
```
|