SynthReel/SynthReel/Base/API/SRUserApi.swift
2025-11-20 16:59:32 +08:00

26 lines
609 B
Swift

//
// SRUserApi.swift
// SynthReel
//
// Created by on 2025/11/13.
// Copyright © 2025 SR. All rights reserved.
//
import Foundation
import Alamofire
struct SRUserApi {
static func requestUserInfo() async -> SRUserInfo? {
await withCheckedContinuation { continuation in
var param = SRNetwork.Parameters(path: "/customer/info")
param.method = .get
SRNetwork.request(parameters: param) { (response: SRNetwork.Response<SRUserInfo>) in
continuation.resume(returning: response.data)
}
}
}
}