From 241e551980ef7489f311186d73dcf692bcc9029a Mon Sep 17 00:00:00 2001 From: gme_2 Date: Mon, 1 Oct 2018 15:12:45 +0900 Subject: [PATCH] changed to post --- .../Service/TransactionHistoryServiceType.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GMERemittance/Module/TransactionHistory/Application Logic/Service/TransactionHistoryServiceType.swift b/GMERemittance/Module/TransactionHistory/Application Logic/Service/TransactionHistoryServiceType.swift index 64607be5..2551205f 100644 --- a/GMERemittance/Module/TransactionHistory/Application Logic/Service/TransactionHistoryServiceType.swift +++ b/GMERemittance/Module/TransactionHistory/Application Logic/Service/TransactionHistoryServiceType.swift @@ -20,7 +20,7 @@ protocol FetchTransactionHistoryService: ApiServiceType { extension FetchTransactionHistoryService { func fetchTransactionHistories(user: String, param: [String: String]?, success: @escaping (([TransactionModel]) -> ()), failure: @escaping ((Error) -> ())) { let url = baseUrl + "mobile/tranhistory/" + "\(user)" - self.auth.request(method: .get, url: url, params: param, success: { (response: TransactionModelContainer) in + self.auth.request(method: .post, url: url, params: param, success: { (response: TransactionModelContainer) in if (response.errorCode ?? "") == "1" { let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""]) failure(error)