//
//  LNHttpManager+Config.swift
//  Lanu
//
//  Created by OneeChan on 2025/12/25.
//

import Foundation


private let kNetPath_Config_Common = "/base/consts/config"
private let kNetPath_Config_Country = "/base/country/mobile"
private let kNetPath_Config_Banner = "/base/banner/list"


extension LNHttpManager {
    func getCommonConfig(completion: @escaping (LNConfigResponse?, LNHttpError?) -> Void) {
        post(path: kNetPath_Config_Common, completion: completion)
    }
    
    func getCountryCodeList(completion: @escaping (LNCountryCodeListResponse?, LNHttpError?) -> Void) {
        post(path: kNetPath_Config_Country, completion: completion)
    }
    
    func getBannerList(adSlot: Int, completion: @escaping (LNListVOBannerInfoVO?, LNHttpError?) -> Void) {
        post(path: kNetPath_Config_Banner, params: [
            "adSlot": adSlot
        ], completion: completion)
    }
}
