| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // LNHttpManager+IM.swift
- // Lanu
- //
- // Created by OneeChan on 2025/12/26.
- //
- import Foundation
- private let kNetPath_IM_Sign = "/im/userSign"
- private let kNetPath_IM_Remark = "/im/set/usernameNote"
- private let kNetPath_IM_Remark_Query = "/im/get/usernameNotes"
- private let kNetPath_IM_Call_Check = "/im/callCheck"
- extension LNHttpManager {
- func getIMSign(completion: @escaping (String?, LNHttpError?) -> Void) {
- post(path: kNetPath_IM_Sign, completion: completion)
- }
-
- func checkIfCanCall(uid: String, completion: @escaping (LNHttpError?) -> Void) {
- post(path: kNetPath_IM_Call_Check, params: [
- "id": uid
- ], completion: completion)
- }
- }
- extension LNHttpManager {
- func setUserRemark(uid: String, remark: String, completion: @escaping (LNHttpError?) -> Void) {
- post(path: kNetPath_IM_Remark, params: [
- "userNo": uid,
- "note": remark
- ], completion: completion)
- }
-
- func getUsersRemark(uids: [String], completion: @escaping (LNIMUsersRemarkResponse?, LNHttpError?) -> Void) {
- post(path: kNetPath_IM_Remark_Query, params: [
- "list": uids
- ], completion: completion)
- }
- }
|