草庐IT

hzzo_response

全部标签

关于ios:ObjectMapper failed to serialize response error Code=2

ObjectMapperfailedtoserializeresponseerrorCode=2我在使用Alamofire对象映射器访问Alamofire获取请求时遇到错误这就是我使用API的方式-12345678APIService.shared.getSlots{(success,weekSlots,error)in  ifsuccess{  self.weekSlots=weekSlots!  print("success!!") }else{  print(error?.errorMessage??"NOPE") }}而APIService类中的getSlot函数是-123456789