 
 import Foundation
 import Alamofire
+import ObjectMapper
 
 extension String {
   public func hostUrl() -> String {
     return self.contains("http") ? self : "\(K.Api.host)\(self)"
   }
+}
+
+class PageMeta: Mappable {
+  var perPage: Int?
+  var totalPages: Int?
+  var totalObjects: Int?
+
+  func mapping(map: Map) {
+    perPage <- map["per_page"]
+    totalPages <- map["total_pages"]
+    totalObjects <- map["total_objects"]
+  }
+  required init?(map: Map) { }
 }
 
 open class API {

    headers_["Authorization"] = K.Api.userToken
    return headers_
  }
  
  class public func request(_ method: HTTPMethod = .get, url: String, parameters: [String: AnyObject] = [:], fileName: String? = #file, funcName: String? = #function, run: @escaping (_ response: DataResponse<Any>) -> ()) {
    let indicator = indicatorStart()
    let requestStartTime = NSDate()

          prompt(message ?? "伺服器內部錯誤，請稍後再試。")
          appDelegate().did500Error()
        default:
          // 處理訊息
          if let message = item.value(forKey: K.Api.Response.message) as? String {
            prompt(message)
          } else if let texts = item.value(forKey: K.Api.Response.message) as? NSDictionary {
