//
//  SinglePointViewController+SinglePoint.swift
//  MobilePortal
//
//  Created by caiyang on 2020/7/30.
//  Copyright © 2020 yin chen. All rights reserved.
//

import UIKit
import HandyJSON
import SwiftyJSON
extension SinglePointViewController {
    /// 登录 获取 Access_token
    func loginGetAccess_token() {
//        SinglePointProvider.request(SinglePointAPI.singlePointAccessToken(value: "")) { (result) in
//            if case let .success(response) = result {
//                // 解析数据
//                let data = try? response.mapJSON()
//                let json = JSON(data!)
//                print(json)
//            }
//        }
    }
    /// 判断 Access_token 是否合格
//    @objc func isAccess_tokenTrue(){
//        SinglePointProvider.request(SinglePointAPI.singlePointIsAccessToken(value: "")) { (result) in
//            if case let .success(response) = result {
//                // 解析数据
//                let data = try? response.mapJSON()
//                let json = JSON(data!)
//                print(json)
//            }
//        }
//    }
}
