18 lines
564 B
Swift
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)
|
|
}
|