//
//  LNHttpManager+Upload.swift
//  Lanu
//
//  Created by OneeChan on 2025/12/2.
//

import Foundation

let kNetPath_Net_UploadOSS = "/base/oss/s3"


enum LNUploadFileType: Int {
    case avatar = 1
    case cover = 2
    case feedback = 3
    case logo = 4
    case log = 5
    case video = 6
    case voice = 7
    case other = 8
}


extension LNHttpManager {
    func getUploadOssUrl(type: LNUploadFileType,
                         suffix: String,
                         completion: @escaping (LNOSSURLResponse?, LNHttpError?) -> Void) {
        post(path: kNetPath_Net_UploadOSS, params: [
            "type": type.rawValue,
            "suffix": suffix
        ], completion: completion)
    }
}
