LNHttpManager+Config.swift 607 B

1234567891011121314151617181920212223
  1. //
  2. // LNHttpManager+Config.swift
  3. // Lanu
  4. //
  5. // Created by OneeChan on 2025/12/25.
  6. //
  7. import Foundation
  8. private let kNetPath_Config_Common = "/base/consts/config"
  9. private let kNetPath_Config_Country = "/base/country/mobile"
  10. extension LNHttpManager {
  11. func getCommonConfig(completion: @escaping (LNConfigResponse?, LNHttpError?) -> Void) {
  12. post(path: kNetPath_Config_Common, completion: completion)
  13. }
  14. func getCountryCodeList(completion: @escaping (LNCountryCodeListResponse?, LNHttpError?) -> Void) {
  15. post(path: kNetPath_Config_Country, completion: completion)
  16. }
  17. }