24 lines
430 B
Swift
24 lines
430 B
Swift
![]() |
//
|
||
|
// UserViewModel.swift
|
||
|
// yinmeng-ios
|
||
|
//
|
||
|
// Created by MaiMang on 2024/2/25.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
class UserViewModel: NSObject {
|
||
|
static let userVM = UserViewModel.init()
|
||
|
|
||
|
func getUserInfo(uid:Int) {
|
||
|
let params = ["uid":uid]
|
||
|
RequestGet(path: "user/get", parma: params) { data in
|
||
|
if let info = Deserialized<UserObject>.toModel(with: data) {
|
||
|
print("用户信息是")
|
||
|
}
|
||
|
} fail: { code, message in
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|