LNHttpManager+Report.swift 810 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // LNHttpManager+Report.swift
  3. // Lanu
  4. //
  5. // Created by OneeChan on 2025/12/31.
  6. //
  7. import Foundation
  8. private let kNetPath_Report_Report = "/report/user"
  9. private let kNetPath_Report_Feedback = "/feedback/submit"
  10. extension LNHttpManager {
  11. func reportUser(uid: String, content: String, photos: [String], completion: @escaping (LNHttpError?) -> Void) {
  12. post(path: kNetPath_Report_Report, params: [
  13. "userNo": uid,
  14. "content": content,
  15. "images": photos
  16. ], completion: completion)
  17. }
  18. func feedback(content: String, photos: [String], completion: @escaping (LNHttpError?) -> Void) {
  19. post(path: kNetPath_Report_Feedback, params: [
  20. "content": content,
  21. "images": photos
  22. ], completion: completion)
  23. }
  24. }