LNHttpManager+Location.swift 477 B

1234567891011121314151617181920
  1. //
  2. // LNHttpManager+Location.swift
  3. // Lanu
  4. //
  5. // Created by OneeChan on 2025/12/25.
  6. //
  7. import Foundation
  8. private let kNetPath_Location_Upload = "/user/report/location"
  9. extension LNHttpManager {
  10. func uploadLocation(longitude: Double, latitude: Double, completion: @escaping (LNHttpError?) -> Void) {
  11. post(path: kNetPath_Location_Upload, params: [
  12. "latitude": latitude,
  13. "longitude": longitude
  14. ], completion: completion)
  15. }
  16. }