1234567891011121314151617181920212223242526272829303132 |
- //
- // IHFloorMapService.swift
- // Inhealth
- //
- // Created by weclouds on 2020/1/14.
- // Copyright © 2020 weclouds. All rights reserved.
- //
- import UIKit
- class IHFloorMapService: NSObject {
- static let share = IHFloorMapService()
-
- func getfloorImage(_ floorId:String,requestSuccess:@escaping (String)->Void,requestFail:@escaping (()->Void)){
- let username = AppShare.username
- let client_key = AppShare.client_key
- let os = AppShare.os
- let version = AppShare.version
- let token = AppShare.token
- g_area_floor_build_imageHttpRequest(username, client_key: client_key, os: os, version: version, token: token, floorId: floorId, success: { (json) -> (Void) in
- let mFloorInfo = Floor_build_image_Result_Info.fromJSON(json)
- let result = mFloorInfo?.result
- let image = result?.floorImage
- requestSuccess(image ?? "")
- }) { () -> (Void) in
-
- }
- }
- deinit {
- log.debug("IHFloorMapService销毁")
- }
- }
|