Files
yingmeng-ios-switf/yinmeng-ios/Base/Request/YMNetworkFun.swift
2024-02-25 12:53:56 +08:00

18 lines
564 B
Swift

//
// YMNetworkFun.swift
// yinmeng-ios
//
// Created by MaiMang on 2024/2/25.
//
import Foundation
func RequestGet(path:String,parma:Dictionary<String, Any>, succeed: SessionCallSucceed?,fail:SessionCallFail?) -> Void {
YMNetworkHelper.share.requestSend(type: .get, path: path, params: parma, succeed: succeed, fail: fail)
}
func RequestPost(path:String,parma:Dictionary<String, Any>, succeed: SessionCallSucceed? ,fail:SessionCallFail?) -> Void {
YMNetworkHelper.share.requestSend(type: .post, path: path, params: parma, succeed: succeed, fail: fail)
}