LNHttpManager+Statistic.swift 732 B

123456789101112131415161718192021222324252627
  1. //
  2. // LNHttpManager+Statistic.swift
  3. // Gami
  4. //
  5. // Created by OneeChan on 2026/1/27.
  6. //
  7. import Foundation
  8. private let kNetPath_Statistic_GameMate_Exposure = "/playmate/exposure/report"
  9. private let kNetPath_Statistic_GameMate_Visitor = "/user/visitor/report"
  10. extension LNHttpManager {
  11. func reportExposure(uids: [String], completion: @escaping (LNHttpError?) -> Void) {
  12. post(path: kNetPath_Statistic_GameMate_Exposure, params: [
  13. "list": uids
  14. ], completion: completion)
  15. }
  16. func reportVisitor(uid: String, completion: @escaping (LNHttpError?) -> Void) {
  17. post(path: kNetPath_Statistic_GameMate_Visitor, params: [
  18. "id": uid
  19. ], completion: completion)
  20. }
  21. }