//
//  LNHttpManager+Report.swift
//  Lanu
//
//  Created by OneeChan on 2025/12/31.
//

import Foundation


private let kNetPath_Report_Report = "/report/user"
private let kNetPath_Report_Feedback = "/feedback/submit"
private let kNetPath_Report_Event = "/event/report"


extension LNHttpManager {
    func reportUser(uid: String, content: String, photos: [String], completion: @escaping (LNHttpError?) -> Void) {
        post(path: kNetPath_Report_Report, params: [
            "userNo": uid,
            "content": content,
            "images": photos
        ], completion: completion)
    }
    
    func feedback(content: String, photos: [String], completion: @escaping (LNHttpError?) -> Void) {
        post(path: kNetPath_Report_Feedback, params: [
            "content": content,
            "images": photos
        ], completion: completion)
    }
    
    func reportEvent(event: LNReportEvent, completion: @escaping (LNHttpError?) -> Void) {
        post(path: kNetPath_Report_Event, params: event.toParam, completion: completion)
    }
}
