jsdw_ios/QuickLocation/API/AppNetworkConfig.swift

34 lines
622 B
Swift

//
// AppNetworkConfig.swift
// SHECommunity
//
// Created by 林 on 2024/11/25.
//
import Foundation
import Moya
// 网络配置
class AppNetworkConfig {
// MARK: - Property
/// 单例
public static let shared = AppNetworkConfig()
/// 服务器地址
public var baseURL: String = ""
/// 请求header
public var httpHeader: (() -> [String: String])?
/// 处理接口请求数据
public var handleRespone: ((Result<Response, MoyaError>, Bool) -> Result<Response, MoyaError>?)?
// MARK: - Lifecyc
private init() {}
}
extension AppNetworkConfig {
}